/* ===== 每日厨神民间烹饪大赏 - 国潮烟火气主题样式 ===== */
/* 中华烟火气 + 现代国潮 温暖食欲视觉 */

:root {
  --color-primary: #E60012;
  --color-secondary: #F5A623;
  --color-brown: #8B4513;
  --color-bg: #FFFBF0;
  --color-card: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #F0E6D3;
  --color-gold: #D4A017;
  --font-heading: "Noto Serif SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 20px rgba(139, 69, 19, 0.08);
  --shadow-hover: 0 8px 32px rgba(230, 0, 18, 0.12);
  --max-width: 1200px;
}

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-secondary); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.4; color: var(--color-text); }

/* ===== 容器 ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-desc {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ===== 导航栏 ===== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 251, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 2px 12px rgba(230, 0, 18, 0.08);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .logo-icon { font-size: 1.6rem; }
.nav-menu { display: flex; gap: 24px; align-items: center; }
.nav-menu a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.nav-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: var(--color-primary); }

/* ===== Hero区域 ===== */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0000 0%, #3d0000 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero-content h1 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(230, 0, 18, 0.5);
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  animation: pulse 2s infinite;
}

/* 蒸汽动画 */
.steam-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.steam {
  position: absolute;
  bottom: -20px;
  width: 40px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  filter: blur(12px);
  animation: steamRise 4s infinite ease-out;
}
.steam:nth-child(1) { left: 10%; animation-delay: 0s; }
.steam:nth-child(2) { left: 30%; animation-delay: 1s; }
.steam:nth-child(3) { left: 50%; animation-delay: 2s; }
.steam:nth-child(4) { left: 70%; animation-delay: 0.5s; }
.steam:nth-child(5) { left: 90%; animation-delay: 1.5s; }

@keyframes steamRise {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-80px) scale(1.5); opacity: 0.3; }
  100% { transform: translateY(-160px) scale(2); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-body { padding: 20px; }
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.card-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 排行榜 ===== */
.ranking-list { max-width: 800px; margin: 0 auto; }
.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}
.ranking-item:hover { border-color: var(--color-primary); transform: translateX(4px); }
.ranking-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.ranking-num.top1 { background: var(--color-primary); color: #fff; }
.ranking-num.top2 { background: var(--color-secondary); color: #fff; }
.ranking-num.top3 { background: var(--color-brown); color: #fff; }
.ranking-num.normal { background: #f0f0f0; color: var(--color-text-light); }
.ranking-img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.ranking-info { flex: 1; }
.ranking-name { font-weight: 700; font-size: 1rem; }
.ranking-score { font-size: 0.85rem; color: var(--color-secondary); font-weight: 600; }

/* ===== 盲盒组件 ===== */
.blindbox-section { text-align: center; background: linear-gradient(135deg, #1a0000, #3d0808); padding: 80px 20px; }
.blindbox-section .section-title { color: #fff; }
.blindbox-section .section-title::after { background: linear-gradient(90deg, var(--color-secondary), var(--color-gold)); }
.blindbox-section .section-desc { color: rgba(255,255,255,0.7); }
.blindbox-wrapper {
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.blindbox-wrapper:hover { transform: scale(1.05); }
.blindbox-wrapper img { width: 280px; height: 280px; object-fit: cover; border-radius: var(--radius-lg); }
.blindbox-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--color-primary), #ff4444);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(230, 0, 18, 0.4);
}
.blindbox-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(230, 0, 18, 0.6); }

/* ===== 厨师/评委区 ===== */
.chef-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }
.chef-card {
  text-align: center;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}
.chef-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.chef-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--color-secondary);
}
.chef-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.chef-title { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 8px; }
.chef-desc { font-size: 0.9rem; color: var(--color-text-light); }

/* ===== 徽章墙 ===== */
.badge-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.badge-item {
  width: 100px;
  text-align: center;
  transition: transform 0.3s;
}
.badge-item:hover { transform: scale(1.1) rotate(5deg); }
.badge-item img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 8px; }
.badge-item span { font-size: 0.8rem; color: var(--color-text-light); display: block; }

/* ===== 赞助商区 ===== */
.sponsor-section { background: #f9f5ed; }
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.sponsor-item {
  padding: 16px 24px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text-light);
  transition: all 0.3s;
}
.sponsor-item:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { margin: 0 8px; }

/* ===== 页面Banner ===== */
.page-banner {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2d0000, #5a1010);
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.page-banner-content h1 { font-size: 2.2rem; color: #fff; margin-bottom: 8px; }
.page-banner-content p { font-size: 1rem; opacity: 0.85; }

/* ===== 内容区 ===== */
.content-area { padding: 40px 0; }
.content-area h2 { font-size: 1.6rem; margin: 32px 0 16px; color: var(--color-primary); }
.content-area h3 { font-size: 1.3rem; margin: 24px 0 12px; }
.content-area p { margin-bottom: 16px; line-height: 1.9; }
.content-area ul, .content-area ol { padding-left: 20px; margin-bottom: 16px; }
.content-area li { margin-bottom: 8px; list-style: disc; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-card);
  transition: background 0.3s;
}
.faq-question:hover { background: #fff8f0; }
.faq-answer { padding: 0 20px 16px; color: var(--color-text-light); display: none; }
.faq-item.active .faq-answer { display: block; }

/* ===== 搜索页 ===== */
.search-box {
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  gap: 12px;
}
.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--color-border);
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.search-box input:focus { border-color: var(--color-primary); }
.search-box button {
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.search-box button:hover { background: #cc0010; }
.search-results { max-width: 800px; margin: 0 auto; }
.search-result-item { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.search-result-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.search-result-item h3 a { color: var(--color-primary); }
.search-result-item p { font-size: 0.9rem; color: var(--color-text-light); }

/* ===== 404页面 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-page h1 { font-size: 6rem; color: var(--color-primary); margin-bottom: 16px; }
.error-page p { font-size: 1.2rem; color: var(--color-text-light); margin-bottom: 24px; }
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-primary:hover { background: #cc0010; color: #fff; transform: translateY(-2px); }

/* ===== 页脚 ===== */
.site-footer {
  background: #1a0a00;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--color-secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }

/* ===== 评分转盘 ===== */
.score-wheel {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.score-dimension {
  text-align: center;
}
.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 6px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0 auto 8px;
  position: relative;
  transition: all 0.3s;
}
.score-circle.color { border-color: var(--color-primary); }
.score-circle.aroma { border-color: var(--color-secondary); }
.score-circle.taste { border-color: var(--color-brown); }
.score-label { font-size: 0.9rem; font-weight: 600; }

/* ===== 防油污模式按钮 ===== */
.cooking-mode-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(230, 0, 18, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s;
}
.cooking-mode-btn:hover { transform: scale(1.1); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-bg); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 2px solid var(--color-primary); }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 2rem; }
  .hero-section { height: 50vh; min-height: 400px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.6rem; }
  .card-grid { grid-template-columns: 1fr; }
  .chef-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-banner { height: 200px; }
  .page-banner-content h1 { font-size: 1.6rem; }
  .score-wheel { gap: 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .ranking-item { flex-wrap: wrap; }
}

/* ===== 锅铲翻炒动效 ===== */
@keyframes spatulaFlip {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}
.like-btn.animating { animation: spatulaFlip 0.5s ease; }

/* ===== 切菜板加载动画 ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.chopping-animation {
  width: 80px;
  height: 80px;
  position: relative;
}
.chopping-animation::before {
  content: "🔪";
  font-size: 3rem;
  position: absolute;
  animation: chop 0.6s infinite;
}
@keyframes chop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-20deg); }
}

/* ===== 竹编纹理边框 ===== */
.bamboo-border {
  border: 2px solid var(--color-border);
  border-image: repeating-linear-gradient(45deg, var(--color-border), var(--color-border) 2px, transparent 2px, transparent 6px) 8;
}
