/* ===== 基础与变量 ===== */
:root {
  --brand: #2f7d3a;
  --brand-dark: #1d5a2a;
  --accent: #7cb342;
  --ink: #1f2d24;
  --muted: #5f7268;
  --bg: #ffffff;
  --bg-alt: #f3f8f1;
  --line: #e3efe2;
  --radius: 16px;
  --radius-sm: 10px;
  --grad: linear-gradient(135deg, #2f7d3a 0%, #7cb342 100%);
  --shadow: 0 14px 40px rgba(47,125,58,.10);
  --shadow-lg: 0 24px 60px rgba(47,125,58,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans SC", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

/* 锚点不被吸顶导航遮挡 */
section[id] { scroll-margin-top: 80px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: all .25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(47,125,58,.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(47,125,58,.34); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--brand); border-color: rgba(47,125,58,.35); }
.btn-ghost:hover { background: #fff; border-color: var(--brand); transform: translateY(-2px); }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,50,30,.08); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; cursor: pointer; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(47,125,58,.35);
}
.logo-text { font-size: 19px; color: var(--brand-dark); letter-spacing: .2px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: #eaf2e6; border-radius: 999px; padding: 3px; }
.lang-btn {
  background: transparent; border: none; padding: 6px 12px; border-radius: 999px;
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .2s var(--ease);
}
.lang-btn.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.lang-btn:hover:not(.active) { color: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }

/* ===== 首屏 ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 80% -12%, rgba(124,179,66,.22), transparent 60%),
    radial-gradient(820px 460px at 10% 8%, rgba(47,125,58,.18), transparent 60%),
    linear-gradient(180deg, #eef6ea 0%, #ffffff 78%);
  padding: 86px 0 72px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
}
.hero::before { width: 360px; height: 360px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(124,179,66,.5), transparent 70%); }
.hero::after { width: 320px; height: 320px; left: -90px; bottom: -140px; background: radial-gradient(circle, rgba(47,125,58,.42), transparent 70%); }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center;
}
.hero-copy { position: relative; z-index: 1; text-align: left; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.14; letter-spacing: -.6px; font-weight: 800;
  background: linear-gradient(120deg, #1d5a2a 12%, #2f7d3a 52%, #7cb342 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin: 18px 0 30px; color: var(--muted); font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-stats div {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(6px); border-radius: 16px; padding: 18px 26px; min-width: 120px;
  box-shadow: 0 10px 30px rgba(47,125,58,.08);
}
.hero-stats strong {
  font-size: 30px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats span { color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; z-index: 1; }
.hero-visual img {
  width: 100%; height: auto; display: block; border-radius: 22px;
  box-shadow: 0 30px 70px rgba(47,125,58,.22); border: 1px solid rgba(255,255,255,.6);
}
.hero-visual::after {
  content: ""; position: absolute; inset: 12px -12px -12px 12px; border-radius: 22px;
  background: var(--grad); opacity: .18; z-index: -1;
}

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  position: relative; text-align: center; font-size: 32px; font-weight: 800; color: var(--brand-dark);
  margin-bottom: 14px; padding-bottom: 14px;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 4px; background: var(--grad);
}
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 40px; font-size: 16px; }

/* ===== 商品卡片 ===== */
.product-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.product-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card:hover::before { transform: scaleX(1); }
.product-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,125,58,.12), rgba(124,179,66,.16));
  font-size: 34px; margin-bottom: 16px;
}
.product-card h3 { color: var(--brand-dark); margin-bottom: 8px; font-size: 21px; }
.product-card p { color: var(--muted); font-size: 15px; }
.product-card ul { margin: 16px 0 0; padding-left: 18px; color: var(--ink); font-size: 14px; }
.product-card li { margin: 6px 0; }

/* ===== 产品图库 ===== */
.gallery-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gallery-item {
  position: relative; overflow: hidden; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: relative; padding: 15px 16px; text-align: center; font-size: 15px; font-weight: 600; color: var(--brand-dark);
  background: #fff;
}
.gallery-item figcaption::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; border-radius: 3px; background: var(--grad);
}

/* ===== 优势 ===== */
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature {
  position: relative; background: #fff; border-radius: var(--radius); padding: 28px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature h4 { color: var(--brand-dark); margin-bottom: 10px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.feature h4::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: var(--grad); box-shadow: 0 4px 10px rgba(47,125,58,.3);
}
.feature p { color: var(--muted); font-size: 14px; }

/* ===== 联系 ===== */
.contact-wrap { display: grid; gap: 36px; grid-template-columns: 1.15fr 1fr; align-items: start; }
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.contact-form input, .contact-form textarea {
  padding: 13px 16px; border: 1px solid #cfe0cc; border-radius: var(--radius-sm);
  font: inherit; width: 100%; resize: vertical; background: #fbfdfb; transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(47,125,58,.12);
}
.contact-form .btn { margin-top: 4px; }
.contact-info { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.contact-info p { margin: 10px 0; color: var(--ink); font-size: 15px; }
.contact-info strong { color: var(--brand-dark); }

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(180deg, #16401f, #0d2a16); color: #cfe0cc;
  padding: 34px 0; text-align: center; font-size: 14px;
}
.site-footer .footer-note { color: #8fae8e; margin-top: 8px; font-size: 13px; }

/* ===== 滚动渐入动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stats div { align-items: center; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(20,50,30,.10); padding: 8px 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 6%; font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .header-actions { gap: 10px; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .gallery-item img { height: 220px; }
  .hero-stats div { min-width: 100px; padding: 14px 20px; }
  .lang-btn { padding: 5px 10px; font-size: 12px; }
}
