/* 每日大赛美食挑战打榜赛 - 全局样式 */
:root {
  --primary: #FBBF24;
  --secondary: #DC2626;
  --bg: #FFF7ED;
  --card: #FFFFFF;
  --accent: #16A34A;
  --text: #3F1D0B;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --font-title: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-body: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.nav-header {
  background: var(--card);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .icon-plate {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--secondary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Hero区域 */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #F59E0B 50%, var(--secondary) 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 3px 12px rgba(0,0,0,0.2);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--card);
  color: var(--secondary);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
  background: #FFFFFF;
  color: var(--secondary);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: #15803D;
  transform: translateY(-2px);
}

/* 区块标题 */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: #6B4226;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

/* 菜品投票卡 */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.dish-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: cardFloat 4s ease-in-out infinite;
}

.dish-card:nth-child(2) { animation-delay: 0.5s; }
.dish-card:nth-child(3) { animation-delay: 1s; }
.dish-card:nth-child(4) { animation-delay: 1.5s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.dish-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.dish-card-body {
  padding: 16px;
}

.dish-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.dish-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.taste-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.taste-tag.spicy { background: #FEE2E2; color: #DC2626; }
.taste-tag.sweet { background: #FEF3C7; color: #D97706; }
.taste-tag.fresh { background: #D1FAE5; color: #059669; }
.taste-tag.crispy { background: #DBEAFE; color: #2563EB; }
.taste-tag.creative { background: #EDE9FE; color: #7C3AED; }
.taste-tag.light { background: #E0F2FE; color: #0284C7; }

.dish-card-votes {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vote-count {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
}

.vote-btn {
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.vote-btn:hover {
  background: var(--secondary);
  color: #FFFFFF;
}

/* 口味标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 30px 0;
}

.tag-cloud-item {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  animation: tagRotate 6s ease-in-out infinite;
}

.tag-cloud-item:nth-child(odd) { animation-direction: reverse; }

@keyframes tagRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(1deg) scale(1.02); }
  75% { transform: rotate(-1deg) scale(0.98); }
}

.tag-cloud-item:hover {
  transform: scale(1.1) !important;
  box-shadow: var(--shadow);
}

/* 打卡印章墙 */
.stamp-wall {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding: 20px 0;
}

.stamp-item {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}

.stamp-item.completed {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(22,163,74,0.3);
  animation: stampDown 0.5s ease-out;
}

.stamp-item.pending {
  background: #F3F4F6;
  color: #9CA3AF;
  border: 2px dashed #D1D5DB;
}

@keyframes stampDown {
  0% { transform: scale(1.5) rotate(-10deg); opacity: 0; }
  50% { transform: scale(0.9) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 热度锅 */
.hotpot-meter {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  position: relative;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, var(--secondary) 0%, #991B1B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hotpot-meter::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--fill, 60%);
  background: linear-gradient(180deg, var(--primary) 0%, #F59E0B 100%);
  animation: potBubble 2s ease-in-out infinite;
}

@keyframes potBubble {
  0%, 100% { border-radius: 50% 50% 0 0; }
  50% { border-radius: 40% 60% 0 0; }
}

.hotpot-value {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 探店路线 */
.route-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.route-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.route-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.route-number {
  width: 36px;
  height: 36px;
  background: var(--secondary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.route-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.route-info p {
  font-size: 0.85rem;
  color: #6B4226;
}

/* 双入口 */
.dual-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 0;
}

.entry-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 4px solid var(--primary);
}

.entry-card:nth-child(2) {
  border-top-color: var(--secondary);
}

.entry-card:hover {
  transform: translateY(-4px);
}

.entry-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.entry-card p {
  margin-bottom: 20px;
  color: #6B4226;
}

/* 倒计时 */
.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.countdown-item {
  background: var(--card);
  padding: 12px 16px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-width: 60px;
}

.countdown-item .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
}

.countdown-item .label {
  font-size: 0.75rem;
  color: #6B4226;
}

/* 页脚 */
.site-footer {
  background: var(--text);
  color: #FFFFFF;
  padding: 60px 20px 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumb span {
  color: #6B4226;
  margin: 0 8px;
}

/* 内页通用 */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #F59E0B 100%);
  padding: 50px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 30px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.page-content h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 24px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.page-content ul, .page-content ol {
  margin: 12px 0 20px 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* FAQ */
.faq-list {
  margin: 30px 0;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #FEF3C7;
}

.faq-answer {
  padding: 0 20px 16px;
  color: #6B4226;
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 相关链接 */
.related-links {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.related-links h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.related-links a {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 4px 12px;
  background: #FEF3C7;
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.related-links a:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* 搜索页 */
.search-box {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 30px auto;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: var(--secondary);
}

.search-box button {
  padding: 12px 24px;
  background: var(--secondary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #B91C1C;
}

.search-results {
  max-width: 700px;
  margin: 0 auto;
}

.search-result-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-result-item h3 a {
  color: var(--secondary);
  text-decoration: none;
}

.search-result-item p {
  font-size: 0.9rem;
  color: #6B4226;
  margin: 8px 0;
}

.search-result-item .path {
  font-size: 0.8rem;
  color: var(--accent);
}

/* 安全提示 */
.safety-notice {
  background: #FEF3C7;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.safety-notice strong {
  color: var(--secondary);
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-section {
    padding: 50px 20px;
  }

  .dish-grid {
    grid-template-columns: 1fr;
  }

  .dual-entry {
    grid-template-columns: 1fr;
  }

  .stamp-wall {
    grid-template-columns: repeat(4, 1fr);
  }

  .countdown-item .num {
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stamp-wall {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
