:root {
  --green-900: #0f3d2e;
  --green-800: #14553d;
  --green-700: #1a6b4e;
  --green-600: #2a8a66;
  --green-500: #3cb589;
  --green-100: #e6f5ef;
  --green-50: #f4fbf8;
  --sand: #f7f5f0;
  --charcoal: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(15, 61, 46, 0.1);
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); font-weight: 800; font-size: 1.3rem; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  display: grid; place-items: center; font-size: 1rem;
}
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--green-700); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-secondary { background: var(--green-50); color: var(--green-800); border-color: var(--green-600); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }

/* Hero */
.hero { padding: 80px 0 0; background: #fff; }
.hero-grid { display: grid; grid-template-columns: 0.72fr 1.55fr; gap: 40px; align-items: center; }
.hero-content h1 { font-size: 3.2rem; line-height: 1.1; margin: 16px 0; color: var(--green-900); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.78rem; color: var(--green-600); margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--gray-700); max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin: 32px 0; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.tag { background: var(--green-100); color: var(--green-800); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.badge { background: var(--green-800); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
/* Hero media: one clipping frame holds both the fallback image and the video,
   so rounded corners and the shadow are applied once and nothing leaks outside. */
.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;                 /* clips both children to the rounded frame */
  box-shadow: var(--shadow);
  background: var(--green-900);     /* visible only while media loads */
}
.hero-media img,
.hero-media video#heroVideo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;                 /* parent already clips */
  box-shadow: none;                 /* single shadow on the parent */
  display: block;
}
.hero-media video#heroVideo { z-index: 1; background: transparent; transition: opacity .35s ease; }
.floating-card {
  position: absolute; bottom: -20px; left: -20px;
  background: #fff; padding: 16px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.floating-card strong { color: var(--green-800); font-size: 1.1rem; }
.floating-card span { color: var(--gray-500); font-size: 0.85rem; }

.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--green-800); color: #fff; padding: 40px 0; margin-top: 80px;
}
.stats-bar .container { display: contents; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; }
.stat span { font-size: 0.9rem; opacity: 0.85; }

/* Marquee */
.marquee-wrap { background: #fff; padding: 14px 0; overflow: hidden; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.marquee { display: flex; gap: 48px; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee span { font-weight: 600; color: var(--green-700); font-size: 0.9rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: #fff; }
.section h2 { font-size: 2.4rem; margin: 12px 0 16px; color: var(--green-900); max-width: 650px; }
.section-subtitle { color: var(--gray-700); font-size: 1.05rem; max-width: 620px; margin-bottom: 48px; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s;
}
a.product-card { display: block; text-decoration: none; color: inherit; }
.product-card:hover { transform: translateY(-6px); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-body { padding: 22px; }
.product-badge { display: inline-block; background: var(--green-100); color: var(--green-800); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.product-body h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--green-900); }
.product-body p { margin: 0 0 14px; color: var(--gray-700); font-size: 0.92rem; }
.product-features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.product-features li { background: var(--sand); color: var(--gray-700); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; }

/* Health */
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.health-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.health-item { display: flex; gap: 16px; }
.health-item .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.health-item h4 { margin: 0 0 4px; color: var(--green-900); }
.health-item p { margin: 0; color: var(--gray-700); font-size: 0.92rem; }
.health-visual { position: relative; text-align: center; }
.health-visual img { width: 100%; max-width: 420px; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.health-ring {
  position: absolute; top: -20px; right: 20px;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 0.95rem; line-height: 1.2;
  box-shadow: var(--shadow);
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-main { width: 80%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }
.about-sub { position: absolute; bottom: -30px; right: 0; width: 55%; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; aspect-ratio: 4/3; object-fit: cover; }
.about-stat {
  position: absolute; top: 20px; right: 10px;
  background: var(--green-800); color: #fff; padding: 16px 22px; border-radius: var(--radius);
  text-align: center;
}
.about-stat strong { display: block; font-size: 2rem; }
.about-stat span { font-size: 0.8rem; opacity: 0.9; }
.about-content p { color: var(--gray-700); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; }
.service-card h3 { margin: 0 0 8px; color: var(--green-900); }
.service-card p { margin: 0; color: var(--gray-700); font-size: 0.92rem; }

/* Process */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.process-step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 800; }
/* 后台填了 Step Number 时，用后台的编号覆盖自动计数 */
.process-step[data-num]::before { content: attr(data-num); counter-increment: none; }
.process-step h3 { margin: 16px 0 8px; color: var(--green-900); }
.process-step p { margin: 0; color: var(--gray-700); font-size: 0.92rem; }

/* Featured */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-media { position: relative; }
.feature-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.feature-tag { position: absolute; top: 20px; left: 20px; background: var(--green-700); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; }
.feature-label { position: absolute; bottom: 20px; right: 20px; background: #fff; color: var(--green-800); padding: 8px 18px; border-radius: 999px; font-weight: 700; }
.highlights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.highlight-card { display: flex; gap: 12px; }
.highlight-card .icon { font-size: 1.3rem; color: var(--green-600); }
.highlight-card h4 { margin: 0 0 4px; color: var(--green-900); font-size: 1rem; }
.highlight-card p { margin: 0; color: var(--gray-700); font-size: 0.85rem; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stars { color: #f5b041; margin-bottom: 12px; }
.testimonial-card p { color: var(--gray-700); font-size: 0.95rem; margin: 0 0 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; color: var(--green-900); }
.testimonial-author span { font-size: 0.85rem; color: var(--gray-500); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-body { padding: 22px; }
.blog-body .category { color: var(--green-600); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }
.blog-body h3 { margin: 8px 0; color: var(--green-900); font-size: 1.15rem; }
.blog-body p { margin: 0 0 12px; color: var(--gray-700); font-size: 0.9rem; }
.blog-body .meta { font-size: 0.8rem; color: var(--gray-500); }

/* CTA */
.cta { background: var(--green-800); color: #fff; text-align: center; }
.cta h2 { color: #fff; margin: 0 auto 12px; }
.cta p { opacity: 0.9; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { margin-bottom: 14px; color: var(--gray-700); }
.contact-list a { color: var(--green-700); text-decoration: none; }
.contact-form { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--gray-300); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px; border: 1px solid var(--gray-300); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: #fff;
}
.contact-form textarea { resize: vertical; margin-bottom: 16px; }
.form-status { margin: 12px 0 0; font-size: 0.9rem; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: #c0392b; }

/* Footer */
.site-footer { background: var(--green-900); color: #fff; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { opacity: 0.8; max-width: 340px; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; color: #fff; text-decoration: none; font-size: 0.85rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav a { color: rgba(255,255,255,0.8); text-decoration: none; display: block; padding: 6px 0; }
.footer-contact p { opacity: 0.8; margin: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.9rem; opacity: 0.8; }
.footer-bottom a { color: #fff; text-decoration: none; }

/* Mobile */
@media (max-width: 900px) {
  .hero-grid, .health-grid, .about-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.4rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--gray-300); padding: 16px 0; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 12px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .about-sub { position: static; width: 100%; margin-top: 16px; border: none; }
  .about-stat { right: 10px; }
}
@media (max-width: 560px) {
  .stats-bar { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .section h2 { font-size: 1.9rem; }
}
