/* ============================================
   最武夷数字农业 官网设计系统
   Design System v1.0
   色彩体系：生态绿(Primary) + 科技蓝(Secondary) + 茶棕(Tertiary)
   字体：Noto Sans SC + Manrope
   风格：微拟态 / 毛玻璃 / 圆角卡片
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Manrope:wght@400;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* ── CSS 变量 ── */
:root {
  /* Primary: 生态绿 */
  --primary: #1a7a4a;
  --primary-light: #22a05e;
  --primary-dark: #0f5233;
  --primary-fixed: #b7f5d0;
  --on-primary: #ffffff;

  /* Secondary: 科技蓝 */
  --secondary: #1565c0;
  --secondary-light: #1976d2;
  --secondary-dark: #0d47a1;
  --on-secondary: #ffffff;

  /* Tertiary: 茶棕/琥珀 */
  --tertiary: #7b5e2a;
  --tertiary-light: #9c7a3c;
  --on-tertiary: #ffffff;

  /* Surface 体系 */
  --background: #f8faf9;
  --surface: #ffffff;
  --surface-container: #f1f5f2;
  --surface-container-low: #f5f8f6;
  --surface-container-high: #e8ede9;
  --on-background: #0d1f14;
  --on-surface: #1a2e1e;
  --on-surface-variant: #4a6352;
  --outline-variant: #d0ddd4;

  /* 深色背景区域 */
  --dark-bg: #0d1f14;
  --dark-surface: #162a1e;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(26, 122, 74, 0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(26, 122, 74, 0.10), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(26, 122, 74, 0.14), 0 4px 16px rgba(0,0,0,0.10);
  --shadow-bloom: 0 20px 60px rgba(26, 122, 74, 0.18);

  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* 字体 */
  --font-body: 'Noto Sans SC', system-ui, sans-serif;
  --font-headline: 'Manrope', 'Noto Sans SC', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 导航栏 ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(26, 122, 74, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 18px;
  font-family: var(--font-headline);
  box-shadow: 0 4px 12px rgba(26, 122, 74, 0.3);
}

.navbar-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.navbar-name span {
  color: var(--primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
}

.navbar-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(26, 122, 74, 0.25);
}

.navbar-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 122, 74, 0.35);
}

.navbar-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.navbar-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── 通用 Section ── */
.section {
  padding: 6rem 2rem;
}

.section-sm {
  padding: 4rem 2rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  max-width: 600px;
  line-height: 1.7;
}

/* ── 卡片 ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(26, 122, 74, 0.06);
}

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

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(26, 122, 74, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 122, 74, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(26, 122, 74, 0.2);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* ── 标签/徽章 ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(26, 122, 74, 0.1);
  color: var(--primary);
}

.badge-white {
  background: rgba(255,255,255,0.9);
  color: var(--on-surface);
  backdrop-filter: blur(8px);
}

/* ── 数据统计 ── */
.stat-number {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--primary-fixed);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
}

/* ── 时间线 ── */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--outline-variant);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
}

.timeline-dot-outline {
  background: white;
  border-color: var(--primary);
}

.timeline-dot-faded {
  background: white;
  border-color: rgba(26, 122, 74, 0.3);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--on-surface);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  margin-top: 6px;
  line-height: 1.6;
}

/* ── 深色区域 ── */
.dark-section {
  background: var(--dark-bg);
  color: white;
}

.dark-section .section-label {
  color: var(--primary-fixed);
}

.dark-section .section-title {
  color: white;
}

/* ── 网格背景 ── */
.tech-grid {
  background-image:
    linear-gradient(rgba(26, 122, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 122, 74, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── 毛玻璃卡片 ── */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
}

/* ── 页脚 ── */
.footer {
  background: var(--dark-bg);
  color: white;
  padding: 5rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-headline);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ── 浮动客服按钮 ── */
.float-support {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 50;
}

.float-support-btn {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 122, 74, 0.35);
  transition: all 0.3s;
}

.float-support-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(26, 122, 74, 0.45);
}

/* ── 移动端响应式 ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .navbar-mobile-toggle {
    display: flex;
  }

  .section {
    padding: 4rem 1.25rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── 移动端菜单 ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--on-surface);
  transition: color 0.2s;
}

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

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--on-surface);
}

/* ── 动画 ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ── 滚动显示动画 ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 产品卡片 ── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(26, 122, 74, 0.06);
}

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

.product-card-img {
  height: 280px;
  overflow: hidden;
  position: relative;
}

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

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

.product-card-body {
  padding: 2rem;
}

/* ── 荣誉墙 ── */
.honor-card {
  background: var(--surface-container-low);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--outline-variant);
  transition: all 0.3s;
}

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

/* ── 新闻卡片 ── */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 122, 74, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.news-card-img {
  height: 200px;
  overflow: hidden;
}

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

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

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* ── 表单 ── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--surface);
  transition: all 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.12);
}

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

/* ── 页面头部横幅 ── */
.page-hero {
  padding-top: 72px;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ── 工具类 ── */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }
.text-muted { color: var(--on-surface-variant); }
.text-white { color: white; }

.bg-primary { background-color: var(--primary); }
.bg-surface { background-color: var(--surface); }
.bg-surface-low { background-color: var(--surface-container-low); }
.bg-dark { background-color: var(--dark-bg); }

.font-headline { font-family: var(--font-headline); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

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

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

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

.p-4 { padding: 2rem; }
.p-6 { padding: 3rem; }
.rounded-full { border-radius: 100px; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.object-cover { object-fit: cover; }
.w-full-h { width: 100%; height: 100%; }
