/* ============ 基础变量 ============ */
:root {
  --green-900: #11301f;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-100: #e8f1e4;
  --green-50: #f2f8f2;
  --orange: #e07a3f;
  --orange-dark: #c9652f;
  --sand: #e9c46a;
  --cream: #faf8f3;
  --white: #ffffff;
  --ink: #1a2e24;
  --ink-soft: #4a5a50;
  --muted: #7c8a80;
  --line: #e7e9e3;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(27, 67, 50, .06);
  --shadow-md: 0 12px 40px rgba(27, 67, 50, .1);
  --shadow-lg: 0 24px 60px rgba(27, 67, 50, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink); font-weight: 800; letter-spacing: -.5px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn span { transition: transform .25s ease; }
.btn:hover span { transform: translateX(4px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green-700); color: var(--white); box-shadow: 0 8px 24px rgba(45, 106, 79, .28); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45, 106, 79, .36); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-700); color: var(--green-700); transform: translateY(-2px); }

.btn-light { background: var(--white); color: var(--green-800); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }

/* ============ 公告条 ============ */
.announcement {
  background: var(--green-900);
  color: #d8e9dc;
  text-align: center;
  font-size: 13px;
  padding: 9px 16px;
  letter-spacing: .3px;
}
.announcement a { color: var(--sand); font-weight: 700; margin-left: 8px; }
.announcement a span { display: inline-block; transition: transform .2s; }
.announcement a:hover span { transform: translateX(3px); }

/* ============ 导航栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-800); }
.brand-mark { width: 34px; height: 34px; color: var(--green-700); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green-700); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-800); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ============ Hero ============ */
.hero { background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%); padding: 70px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green-700); font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(224, 122, 63, .16); }

.hero h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 1.12; margin: 20px 0 22px; letter-spacing: -1.5px; }
.hero h1 .accent { color: var(--green-700); position: relative; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(233, 196, 106, .55); z-index: -1; border-radius: 6px;
}
.hero-desc { font-size: 17px; color: var(--ink-soft); max-width: 500px; line-height: 1.85; }

.hero-buttons { display: flex; gap: 14px; margin: 34px 0 42px; flex-wrap: wrap; }

.hero-meta { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--white); border: 3px solid var(--white);
  margin-left: -12px; background: var(--green-600);
}
.avatars span:first-child { margin-left: 0; background: var(--orange); }
.avatars span:last-child { background: var(--sand); color: var(--ink); }
.hero-meta-text .stars { color: var(--sand); font-size: 15px; letter-spacing: 2px; }
.hero-meta-text p { font-size: 13px; color: var(--muted); }
.hero-meta-text strong { color: var(--ink); }

.hero-art { position: relative; }
.hero-art > svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(27, 67, 50, .18)); border-radius: 28px; }
.glass-card { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow-md); }
.hero-badge {
  position: absolute; left: -18px; bottom: 36px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 14px;
}
.badge-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.badge-icon svg { width: 24px; height: 24px; }
.hero-badge strong { display: block; font-size: 15px; color: var(--ink); }
.hero-badge span { font-size: 12px; color: var(--muted); }

/* ============ 数据统计 ============ */
.stats { background: var(--green-800); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 44px 16px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 44px; font-weight: 800; letter-spacing: -1px; color: var(--sand); line-height: 1; }
.stat-num span { font-size: 22px; margin-left: 2px; }
.stat p { font-size: 14px; color: #cfe0d4; margin-top: 10px; }

/* ============ 通用区块 ============ */
.section { padding: 100px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 50px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.section-head h2 { font-size: clamp(30px, 3.5vw, 44px); margin-top: 16px; letter-spacing: -1px; }
.section-head-desc { max-width: 440px; color: var(--ink-soft); font-size: 16px; }

/* ============ 产品 ============ */
.products { background: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card.featured { box-shadow: var(--shadow-md); border-color: transparent; }
.product-img { position: relative; aspect-ratio: 1.45; overflow: hidden; }
.product-img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img svg { transform: scale(1.06); }
.tag { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 800; color: var(--white); }
.tag-hot { background: var(--orange); }
.tag-new { background: var(--green-700); }
.product-body { padding: 22px 20px 24px; }
.product-body h3 { font-size: 18px; margin-bottom: 8px; }
.product-body p { font-size: 13.5px; color: var(--muted); line-height: 1.7; min-height: 68px; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-size: 19px; font-weight: 800; color: var(--green-800); }
.product-foot a { font-size: 13px; font-weight: 700; color: var(--green-700); }
.product-foot a span { display: inline-block; transition: transform .2s; }
.product-foot a:hover span { transform: translateX(3px); }

/* ============ 关于我们 ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-art { position: relative; }
.about-art > svg { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-float { position: absolute; right: -18px; bottom: 30px; padding: 18px 24px; border-radius: 14px; text-align: center; }
.about-float strong { display: block; font-size: 26px; color: var(--green-700); }
.about-float span { font-size: 12px; color: var(--muted); }
.about-copy h2 { font-size: clamp(30px, 3.5vw, 42px); margin: 16px 0 22px; }
.about-copy > p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; }
.check-list { margin: 26px 0 32px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; padding: 7px 0; }
.check-list span { width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }

/* ============ 特色 ============ */
.features { background: var(--green-50); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { background: var(--white); padding: 34px 26px; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.feature-icon svg { width: 28px; height: 28px; }
.icon-green { background: var(--green-100); color: var(--green-700); }
.icon-orange { background: #fbe8dc; color: var(--orange); }
.icon-sand { background: #fbf2d8; color: #b8902f; }
.icon-blue { background: #e1eef1; color: #3a7d8c; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ============ 场景 ============ */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene-card { position: relative; aspect-ratio: 1.15; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s ease; }
.scene-card:hover { transform: scale(1.02); }
.scene-1 { background: linear-gradient(135deg, #4a7c63, #1b4332); }
.scene-2 { background: linear-gradient(135deg, #7fa8b8, #3a6b7d); }
.scene-3 { background: linear-gradient(135deg, #e0a866, #c96f3f); }
.scene-card::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 22px 22px;
}
.scene-card::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 70%;
  background: rgba(0, 0, 0, .18); border-radius: 50% 50% 0 0;
}
.scene-overlay { position: absolute; z-index: 2; left: 28px; bottom: 28px; color: var(--white); }
.scene-overlay span { font-size: 24px; font-weight: 800; }
.scene-overlay p { font-size: 14px; opacity: .9; margin-top: 4px; }

/* ============ 评价 ============ */
.testimonials { background: var(--cream); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin: 0; }
.testimonial-card .stars { color: var(--sand); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card > p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; min-height: 108px; }
.testimonial-card footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.testimonial-card footer strong { display: block; font-size: 14px; }
.testimonial-card footer span { font-size: 12px; color: var(--muted); }

/* ============ CTA ============ */
.cta { background: var(--green-800); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 70px 0; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); }
.cta p { color: #cfe0d4; max-width: 560px; margin-top: 12px; font-size: 15px; }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-copy h2 { font-size: clamp(30px, 3.5vw, 42px); margin: 16px 0 20px; }
.contact-copy > p { color: var(--ink-soft); font-size: 15.5px; max-width: 460px; }
.contact-info { margin-top: 34px; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-size: 14px; }
.contact-item span { font-size: 14px; color: var(--muted); }

.contact-form { background: var(--green-50); padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: var(--font); background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(64, 145, 108, .15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #aab5ac; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-note.success { color: var(--green-700); font-weight: 700; }
.form-note.error { color: var(--orange-dark); font-weight: 700; }

/* ============ 页脚 ============ */
.site-footer { background: var(--green-900); color: #cbdcd0; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 50px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-mark { color: var(--sand); }
.footer-brand p { font-size: 14px; margin-top: 18px; line-height: 1.9; color: #a9c0b0; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: #a9c0b0; transition: color .2s; }
.footer-col a:hover { color: var(--sand); }
.footer-col p { font-size: 13px; color: #a9c0b0; }
.socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.socials a { border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 6px 12px; font-size: 12px; }
.socials a:hover { background: rgba(255, 255, 255, .1); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12.5px; color: #8fa894; }

/* ============ 回到顶部 ============ */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--green-700); color: var(--white); font-size: 20px; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-800); transform: translateY(-3px); }

/* ============ 滚动动画 ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .contact-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 14px 6%; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 70px; }
  .hero-art { order: -1; }
  .hero-badge { left: 10px; }
  .about-float { right: 10px; }
  .section { padding: 70px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .section-head.center { align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .scene-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; padding: 54px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
  .product-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .stat-num { font-size: 36px; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
