/* ============================================
   法国啄木鸟 - 青少年自然教育与户外生态营地
   独有配色方案与布局系统
   ============================================ */

/* CSS 变量定义 */
:root {
  --color-primary: #FF9800;
  --color-primary-dark: #F57C00;
  --color-secondary: #8BC34A;
  --color-secondary-dark: #689F38;
  --color-bg: #FFFDE7;
  --color-card: #FFFFFF;
  --color-text: #5D4037;
  --color-text-light: #8D6E63;
  --color-accent: #FF5722;
  --color-info: #03A9F4;
  --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(93, 64, 55, 0.08);
  --shadow-md: 0 4px 16px rgba(93, 64, 55, 0.12);
  --shadow-lg: 0 8px 32px rgba(93, 64, 55, 0.16);
  --max-width: 1200px;
  --header-height: 72px;
}

/* 全局重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   头部导航
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 253, 231, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   波浪形分割线
   ============================================ */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.wave-divider--top {
  transform: rotate(180deg);
}

/* ============================================
   首屏 Hero
   ============================================ */
.hero-section {
  margin-top: var(--header-height);
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF8E1 0%, #F1F8E9 100%);
}

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

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-content h1 span {
  color: var(--color-primary);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-badge {
  background: var(--color-card);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-secondary-dark);
  border: 1px solid var(--color-secondary);
  font-weight: 500;
}

/* 云朵飘动动效 */
.cloud {
  position: absolute;
  opacity: 0.6;
  animation: cloudFloat 20s linear infinite;
}

.cloud:nth-child(2) {
  animation-duration: 25s;
  animation-delay: -5s;
  top: 20%;
}

.cloud:nth-child(3) {
  animation-duration: 30s;
  animation-delay: -10s;
  top: 60%;
}

@keyframes cloudFloat {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

/* ============================================
   按钮系统
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
  color: #fff;
}

/* 果冻弹态动效 */
.btn-jelly:hover {
  animation: jellyBounce 0.6s ease;
}

@keyframes jellyBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.1, 0.9); }
  50% { transform: scale(0.95, 1.05); }
  70% { transform: scale(1.03, 0.97); }
  100% { transform: scale(1); }
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}

.btn-secondary:hover {
  transform: scale(1.05);
  color: #fff;
}

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

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

/* ============================================
   内容区块
   ============================================ */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .section-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

/* ============================================
   卡片系统
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

/* 悬停时插画元素跳动 */
.card:hover .card-icon {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.card-body p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 6px;
}

.tag-weekend {
  background: #FFF3E0;
  color: #E65100;
}

.tag-summer {
  background: #E8F5E9;
  color: #2E7D32;
}

.tag-age {
  background: #E3F2FD;
  color: #1565C0;
}

/* ============================================
   导师卡片
   ============================================ */
.guide-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.guide-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--color-secondary);
}

.guide-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.guide-card .guide-title {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.guide-cert {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.guide-cert span {
  background: #F1F8E9;
  color: var(--color-secondary-dark);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* ============================================
   活动日历
   ============================================ */
.calendar-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* ============================================
   精彩瞬间画廊
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(93, 64, 55, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay p {
  color: #fff;
  font-size: 0.9rem;
}

/* ============================================
   安全保障
   ============================================ */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.safety-item {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-secondary);
}

.safety-item .safety-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.safety-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

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

/* ============================================
   页脚
   ============================================ */
.site-footer {
  background: #3E2723;
  color: #D7CCC8;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.footer-col a {
  display: block;
  color: #BCAAA4;
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #4E342E;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8D6E63;
}

.footer-bottom a {
  color: #BCAAA4;
  margin: 0 8px;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
  padding: 16px 0;
  margin-top: var(--header-height);
  font-size: 0.9rem;
}

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

.breadcrumb span {
  color: var(--color-text-light);
  margin: 0 8px;
}

/* ============================================
   详情页
   ============================================ */
.detail-hero {
  margin-top: var(--header-height);
  height: 400px;
  position: relative;
  overflow: hidden;
}

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

.detail-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62, 39, 35, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.detail-hero .hero-overlay h1 {
  color: #fff;
  font-size: 2.2rem;
  max-width: 800px;
}

.detail-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 20px;
}

.detail-content h2 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--color-primary);
}

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

.detail-content ul,
.detail-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.detail-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* 信息表格 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #EFEBE9;
}

.info-table th {
  background: #FFF3E0;
  color: var(--color-text);
  font-weight: 600;
  width: 140px;
}

.info-table td {
  background: var(--color-card);
}

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

.faq-item {
  background: var(--color-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

.faq-answer {
  padding: 0 24px 18px;
  color: var(--color-text-light);
  display: none;
}

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

/* ============================================
   搜索页
   ============================================ */
.search-box {
  max-width: 600px;
  margin: 40px auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 60px;
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.search-box input:focus {
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.2);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

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

.search-result-item {
  padding: 20px 0;
  border-bottom: 1px solid #EFEBE9;
}

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

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

/* ============================================
   404 页面
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.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: 30px;
}

/* ============================================
   APP下载页
   ============================================ */
.app-hero {
  margin-top: var(--header-height);
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #FFF8E1, #F1F8E9);
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 50px 0;
}

.app-feature-item {
  background: var(--color-card);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.app-feature-item .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* ============================================
   响应式断点
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

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

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

  .detail-hero {
    height: 260px;
  }

  .detail-hero .hero-overlay h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .card-grid {
    gap: 16px;
  }
}

/* ============================================
   集章册组件
   ============================================ */
.badge-collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.badge-item {
  text-align: center;
  padding: 16px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.badge-item .badge-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  background: #FFF3E0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.badge-item p {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ============================================
   页面内容区通用样式
   ============================================ */
.page-hero {
  margin-top: var(--header-height);
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #FFF8E1 0%, #F1F8E9 100%);
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* 列表页布局 */
.list-section {
  padding: 60px 0;
}

/* 相关链接 */
.related-links {
  margin-top: 50px;
  padding: 30px;
  background: #FFF8E1;
  border-radius: var(--radius-md);
}

.related-links h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.related-links a {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
}

/* 合规页面 */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 20px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
  color: var(--color-text);
}

.legal-content p {
  margin-bottom: 14px;
  line-height: 1.9;
  color: var(--color-text-light);
}
