/* ============================================
   糖心美食探店与食谱分享社区 - 主样式表
   设计风格：暖黄+棕色温馨美食风格
   ============================================ */

:root {
  --primary: #F4A261;
  --secondary: #E76F51;
  --bg: #FFF8F0;
  --card: #FFFFFF;
  --accent: #2A9D8F;
  --text: #3D3D3D;
  --text-light: #6B6B6B;
  --text-muted: #999999;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(244,162,97,0.15);
  --shadow-hover: 0 8px 32px rgba(244,162,97,0.25);
  --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --font-title: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-handwrite: "ZCOOL XiaoWei", "STKaiti", serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* 重置与基础 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============ 头部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 162, 97, 0.15);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-title);
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* 主导航 */
.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
}

.main-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* 移动端导航 */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
}

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

.mobile-nav a {
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(244, 162, 97, 0.1);
  color: var(--text);
}

/* ============ 首屏英雄区 ============ */
.hero-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,248,240,0.3) 0%, rgba(255,248,240,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  outline: none;
  background: var(--card);
}

.hero-search button {
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.hero-search button:hover {
  background: var(--secondary);
}

/* ============ 通用模块 ============ */
.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-more {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* ============ 卡片系统 ============ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover .card-img img {
  transform: scale(1.08);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* 网格布局 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============ 食谱步骤卡片 ============ */
.recipe-steps {
  counter-reset: step;
}

.recipe-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  align-items: flex-start;
}

.recipe-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.step-time {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

/* ============ 评分星级 ============ */
.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating .star {
  color: #ddd;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.rating .star.filled {
  color: var(--primary);
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* ============ 食材清单 ============ */
.ingredient-list {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(244, 162, 97, 0.2);
}

.ingredient-item:last-child {
  border-bottom: none;
}

.ingredient-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.ingredient-name {
  flex: 1;
  font-family: var(--font-handwrite);
  font-size: 1rem;
}

.ingredient-amount {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============ 烹饪计时器 ============ */
.timer-widget {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 300px;
}

.timer-display {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-title);
  margin: 1rem 0;
}

.timer-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.timer-controls button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-pause {
  background: var(--primary);
  color: #fff;
}

.btn-reset {
  background: #eee;
  color: var(--text);
}

/* ============ 地图占位 ============ */
.map-placeholder {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 100%);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px dashed rgba(42, 157, 143, 0.3);
}

.map-placeholder::before {
  content: '🗺️ 美食地图加载中...';
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 500;
}

.map-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.map-marker {
  background: var(--card);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============ 排行榜 ============ */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num { background: #FFD700; }
.rank-item:nth-child(2) .rank-num { background: #C0C0C0; }
.rank-item:nth-child(3) .rank-num { background: #CD7F32; }

.rank-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.rank-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ 挑战赛 ============ */
.challenge-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.challenge-banner::after {
  content: '🔥';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  opacity: 0.3;
}

.challenge-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.challenge-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ============ 季节日历 ============ */
.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.seasonal-item {
  text-align: center;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.seasonal-item:hover {
  transform: scale(1.05);
}

.seasonal-item .emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.seasonal-item .name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

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

.btn-secondary:hover {
  background: #238b7e;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb span {
  color: var(--text-light);
}

/* ============ 页脚 ============ */
.site-footer {
  background: #2D2D2D;
  color: #ccc;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #aaa;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  color: #aaa;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

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

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

.footer-bottom a {
  color: #aaa;
}

/* ============ 页面标题区 ============ */
.page-hero {
  background: linear-gradient(135deg, rgba(244,162,97,0.1) 0%, rgba(231,111,81,0.05) 100%);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.8;
  display: none;
}

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

/* ============ 标签 ============ */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(244, 162, 97, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-accent {
  background: rgba(42, 157, 143, 0.1);
  color: var(--accent);
}

/* ============ 合作餐厅 ============ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.partner-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.partner-item:hover {
  transform: scale(1.05);
}

.partner-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.partner-item .name {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============ APP下载 ============ */
.app-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.app-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.app-info p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-buttons .btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

.app-buttons .btn:hover {
  background: #fff;
  color: var(--secondary);
}

/* ============ 搜索页 ============ */
.search-box {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-box input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-box button {
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

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

.search-result-item {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(244,162,97,0.1);
}

.search-result-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

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

.search-result-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============ 404页面 ============ */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .error-code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

.error-page h1 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ============ 合规页面 ============ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============ 动画 ============ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* 蒸汽效果 */
  @keyframes steam {
    0% { transform: translateY(0) scaleX(1); opacity: 0.4; }
    50% { transform: translateY(-15px) scaleX(1.2); opacity: 0.2; }
    100% { transform: translateY(-30px) scaleX(0.8); opacity: 0; }
  }

  .steam-effect::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: steam 2s ease-in-out infinite;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 767px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero-section {
    min-height: 60vh;
    padding: 3rem 1rem;
  }

  .app-section {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .challenge-banner {
    padding: 2rem 1.5rem;
  }

  .challenge-banner::after {
    display: none;
  }
}

/* ============ 筛选栏 ============ */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(244, 162, 97, 0.3);
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============ 联系表单 ============ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(244, 162, 97, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--card);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
