/* ==========================================================================
   TARUNMO — Brand Site Design System
   Fuzhou Aiwubaishang Co., Ltd
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — bamboo & JunCao (菌草) inspired */
  --green-900: #1B3A2B;
  --green-800: #24503A;
  --green-700: #2F6B4C;
  --green-600: #3D8560;
  --green-400: #6BAF87;
  --green-200: #B8DCC6;
  --green-50:  #EDF6F1;

  --bamboo-900: #6B4A22;
  --bamboo-700: #9A6B33;
  --bamboo-500: #C08B4E;
  --bamboo-300: #DEBB8A;
  --bamboo-100: #F2E4CE;
  --bamboo-50: #FBF6EE;

  --sand-50:  #FCFAF6;
  --sand-100: #F6F1E8;
  --sand-200: #EAE2D4;

  --ink-900: #1A1D1B;
  --ink-700: #3A403C;
  --ink-500: #626A65;
  --ink-400: #8A918C;

  --line: #E2DCCE;
  --line-soft: #EFE9DD;

  /* Semantic */
  --bg: var(--sand-50);
  --surface: #FFFFFF;
  --text: var(--ink-900);
  --text-soft: var(--ink-500);
  --brand: var(--green-800);
  --brand-accent: var(--bamboo-700);

  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Georgia", "Times New Roman", "Songti SC", serif;

  /* Space */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radius & shadow */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --sh-sm: 0 1px 2px rgba(27, 58, 43, .06);
  --sh-md: 0 4px 16px rgba(27, 58, 43, .08);
  --sh-lg: 0 16px 48px rgba(27, 58, 43, .12);

  --maxw: 1200px;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--green-900);
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; }

p { color: var(--text-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bamboo-700);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--bamboo-500);
}

.lead { font-size: 1.12rem; line-height: 1.75; }
.muted { color: var(--text-soft); }
.text-center { text-align: center; }
.balance { text-wrap: balance; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--sp-5), var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--sp-5), 800px); margin-inline: auto; }

.section { padding-block: var(--sp-9); }
.section-sm { padding-block: var(--sp-8); }
.section-tight { padding-block: var(--sp-7); }

.section-head { max-width: 680px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-block: var(--sp-3) var(--sp-4); }

.bg-sand { background: var(--sand-100); }
.bg-green { background: var(--green-800); color: var(--sand-100); }
.bg-green h2, .bg-green h3 { color: var(--sand-50); }
.bg-green p { color: rgba(246, 241, 232, .78); }
.bg-white { background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .22s cubic-bezier(.34,1.3,.64,1),
              box-shadow .22s ease, background-color .22s ease, color .22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green-800); color: var(--sand-50); box-shadow: var(--sh-md); }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--sh-lg); }

.btn-accent { background: var(--bamboo-700); color: #fff; box-shadow: var(--sh-md); }
.btn-accent:hover { background: var(--bamboo-500); box-shadow: var(--sh-lg); }

.btn-ghost { border: 1.5px solid var(--line); color: var(--green-900); background: transparent; }
.btn-ghost:hover { border-color: var(--green-700); background: var(--green-50); }

.btn-light { background: var(--sand-50); color: var(--green-900); }
.btn-light:hover { background: #fff; }

.btn-outline-light { border: 1.5px solid rgba(246,241,232,.34); color: var(--sand-50); }
.btn-outline-light:hover { border-color: var(--sand-50); background: rgba(246,241,232,.1); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 250, 246, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.header.scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: var(--sh-sm);
}
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--sp-5);
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  display: grid; place-items: center; color: var(--bamboo-300);
  box-shadow: var(--sh-sm);
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-text {
  font-family: var(--font-display); font-size: 1.24rem;
  letter-spacing: .1em; color: var(--green-900);
}
.logo-text small {
  display: block; font-family: var(--font-sans); font-size: .54rem;
  letter-spacing: .22em; color: var(--bamboo-700); margin-top: -3px;
}

.nav { margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: var(--sp-5);
  list-style: none; padding: 0;
}
.nav-list a {
  position: relative; font-size: .91rem; font-weight: 500;
  color: var(--ink-700); padding-block: 6px;
  transition: color .2s ease;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--green-700);
  transition: width .26s ease;
}
.nav-list a:hover { color: var(--green-800); }
.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }
.nav-list a.active { color: var(--green-800); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Language switch */
.lang-switch {
  display: flex; align-items: center;
  background: var(--sand-100); border: 1px solid var(--line-soft);
  border-radius: var(--r-full); padding: 3px;
}
.lang-switch button {
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: .78rem; font-weight: 600; color: var(--ink-500);
  transition: background-color .2s ease, color .2s ease;
}
.lang-switch button.on {
  background: var(--green-800); color: var(--sand-50);
}

/* Burger */
.burger {
  display: none; width: 42px; height: 42px;
  border-radius: 10px; place-items: center;
}
.burger span {
  display: block; width: 18px; height: 1.6px; background: var(--green-900);
  border-radius: 2px; transition: transform .3s ease, opacity .2s ease;
}
.burger span + span { margin-top: 4.5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--sp-10) var(--sp-9);
  overflow: hidden;
  background:
    radial-gradient(1000px 480px at 78% 8%, var(--green-50) 0%, transparent 62%),
    radial-gradient(760px 420px at 8% 92%, var(--bamboo-50) 0%, transparent 60%),
    var(--sand-50);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: var(--sp-8); align-items: center;
}
.hero h1 { margin-block: var(--sp-4) var(--sp-5); }
.hero .lead { max-width: 52ch; font-size: 1.14rem; }
.hero-actions { margin-top: var(--sp-6); }

.hero-tag {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 15px 6px 8px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm); font-size: .8rem; color: var(--ink-700);
}
.hero-tag b { color: var(--green-800); font-weight: 600; }
.hero-tag .dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
}
.hero-tag .dot svg { width: 12px; height: 12px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-lg);
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(27,58,43,.34) 100%);
}
.hero-badge {
  position: absolute; left: var(--sp-5); right: var(--sp-5); bottom: var(--sp-5);
  z-index: 2; color: #fff;
}
.hero-badge .k {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bamboo-300); font-weight: 600;
}
.hero-badge h3 { color: #fff; margin-top: 6px; font-size: 1.24rem; }

.hero-float {
  position: absolute; z-index: 3;
  background: var(--surface); border-radius: var(--r-md);
  padding: 13px 17px; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 11px;
  animation: float 6s ease-in-out infinite;
}
.hero-float.a { top: 9%; left: -26px; }
.hero-float.b { bottom: 21%; right: -22px; animation-delay: -3s; }
.hero-float .ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); flex-shrink: 0;
}
.hero-float .ic svg { width: 17px; height: 17px; }
.hero-float .tx b { display: block; font-size: .85rem; color: var(--green-900); line-height: 1.3; }
.hero-float .tx span { font-size: .74rem; color: var(--ink-400); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Marquee strip */
.strip {
  background: var(--green-900); color: var(--sand-100);
  padding-block: var(--sp-4); overflow: hidden;
}
.strip-track {
  display: flex; gap: var(--sp-7); align-items: center;
  white-space: nowrap; animation: marquee 34s linear infinite;
  font-size: .84rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(246,241,232,.72); font-weight: 500;
}
.strip-track span { display: flex; align-items: center; gap: var(--sp-7); }
.strip-track span::after { content: "◆"; color: var(--bamboo-500); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip:hover .strip-track { animation-play-state: paused; }

/* ---------- Value props ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.value {
  padding: var(--sp-6) var(--sp-5);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--green-200); }
.value .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: var(--sp-4);
}
.value .ic svg { width: 22px; height: 22px; }
.value h4 { margin-bottom: 6px; color: var(--green-900); }
.value p { font-size: .9rem; line-height: 1.65; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: var(--sp-6); }

.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .32s cubic-bezier(.34,1.2,.64,1), box-shadow .32s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.product-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(150deg, var(--sand-100), var(--bamboo-50));
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product:hover .product-media img { transform: scale(1.05); }

.tag {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2;
  padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(252,250,246,.94); backdrop-filter: blur(6px);
  font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-800);
}
.tag.amber { color: var(--bamboo-900); }

.product-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bamboo-700); font-weight: 600; }
.product-body h3 { margin-block: 8px 10px; font-size: 1.22rem; }
.product-body p { font-size: .91rem; line-height: 1.68; flex: 1; }

.spec-list { list-style: none; padding: 0; margin-top: var(--sp-4); display: grid; gap: 7px; }
.spec-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .85rem; color: var(--ink-700);
}
.spec-list li::before {
  content: ""; flex-shrink: 0; width: 5px; height: 5px; margin-top: 8px;
  border-radius: 50%; background: var(--green-400);
}

.product-foot {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.asin { font-size: .73rem; color: var(--ink-400); font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------- Category grid ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: var(--sp-4); }
.cat {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); aspect-ratio: 3 / 4;
  background: var(--green-800);
}
.cat img { width: 100%; height: 100%; object-fit: cover; opacity: .58; transition: transform .6s ease, opacity .4s ease; }
.cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(27,58,43,.86) 100%);
}
.cat:hover img { transform: scale(1.07); opacity: .68; }
.cat-body { position: absolute; z-index: 2; left: var(--sp-5); right: var(--sp-5); bottom: var(--sp-5); color: #fff; }
.cat-body .k { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bamboo-300); font-weight: 600; }
.cat-body h3 { color: #fff; margin-top: 5px; font-size: 1.16rem; }
.cat-body .arw { display: inline-block; margin-top: 9px; transition: transform .3s ease; }
.cat:hover .arw { transform: translateX(5px); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); aspect-ratio: 5 / 4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy .eyebrow { margin-bottom: var(--sp-3); }
.split-copy h2 { margin-bottom: var(--sp-4); }
.split-copy p { margin-bottom: var(--sp-4); }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; }
.stat .n {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--bamboo-300); line-height: 1;
}
.stat .l {
  margin-top: 9px; font-size: .84rem; color: rgba(246,241,232,.72);
  letter-spacing: .04em;
}

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); counter-reset: st; }
.step { position: relative; padding-top: var(--sp-6); border-top: 2px solid var(--green-200); }
.step::before {
  counter-increment: st; content: "0" counter(st);
  position: absolute; top: -14px; left: 0;
  background: var(--bg); padding-right: 12px;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--green-700);
}
.bg-sand .step::before { background: var(--sand-100); }
.step h4 { margin-bottom: 8px; color: var(--green-900); }
.step p { font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-7);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  text-align: center;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(222,187,138,.2), transparent 70%);
}
.cta-band::before { width: 340px; height: 340px; top: -140px; right: -90px; }
.cta-band::after { width: 280px; height: 280px; bottom: -130px; left: -70px; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--sand-50); }
.cta-band p { color: rgba(246,241,232,.8); max-width: 56ch; margin: var(--sp-4) auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-6); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--green-900); }
.field .hint { font-size: .78rem; color: var(--ink-400); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .93rem; color: var(--text);
  padding: 12px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(61,133,96,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.form-note {
  padding: var(--sp-4); border-radius: var(--r-md);
  background: var(--green-50); border: 1px solid var(--green-200);
  font-size: .86rem; color: var(--green-900);
}
.form-note b { color: var(--green-800); }

.form-status {
  padding: var(--sp-4); border-radius: var(--r-md);
  background: var(--green-50); border: 1px solid var(--green-400);
  font-size: .9rem; color: var(--green-800); font-weight: 500;
  display: none;
}
.form-status.show { display: block; }

/* ---------- Contact info cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--sp-4); }
.info-card {
  padding: var(--sp-5); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.info-card .ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bamboo-50); color: var(--bamboo-700); margin-bottom: var(--sp-4);
}
.info-card .ic svg { width: 19px; height: 19px; }
.info-card h4 { margin-bottom: 5px; color: var(--green-900); }
.info-card p, .info-card a { font-size: .89rem; color: var(--text-soft); line-height: 1.6; }
.info-card a:hover { color: var(--green-700); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--sp-3); max-width: 800px; }
.faq-item {
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  font-size: .96rem; font-weight: 600; color: var(--green-900);
}
.faq-q .pm { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; background: var(--green-700);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  transition: transform .3s ease, opacity .3s ease;
}
.faq-q .pm::before { width: 14px; height: 1.8px; }
.faq-q .pm::after { width: 1.8px; height: 14px; }
.faq-item.open .pm::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.faq-a > div { padding: 0 var(--sp-5) var(--sp-5); }
.faq-a p { font-size: .91rem; }

/* ---------- Prose (legal pages) ---------- */
.prose h2 { margin-block: var(--sp-7) var(--sp-4); font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-block: var(--sp-5) var(--sp-3); font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; }
.prose p { margin-bottom: var(--sp-4); line-height: 1.78; }
.prose ul { margin: 0 0 var(--sp-4); padding-left: 22px; display: grid; gap: 9px; }
.prose ul li { color: var(--text-soft); line-height: 1.7; }
.prose a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-5); font-size: .89rem; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border: 1px solid var(--line); }
.prose th { background: var(--sand-100); font-weight: 600; color: var(--green-900); }

.updated-note {
  display: inline-block; margin-bottom: var(--sp-6); padding: 6px 14px;
  border-radius: var(--r-full); background: var(--sand-100);
  font-size: .8rem; color: var(--ink-500);
}

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(246,241,232,.7); padding-block: var(--sp-8) var(--sp-5); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--sp-6); }
.footer h5 {
  color: var(--sand-50); font-size: .78rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: var(--sp-4); font-weight: 600;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .89rem; transition: color .2s ease; }
.footer ul a:hover { color: var(--bamboo-300); }
.footer-about p { font-size: .89rem; line-height: 1.72; max-width: 40ch; margin-top: var(--sp-4); }
.footer-about .logo-text { color: var(--sand-50); }
.footer-about .logo-mark { background: rgba(246,241,232,.12); }

.social { display: flex; gap: 9px; margin-top: var(--sp-5); }
.social a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(246,241,232,.09); color: var(--sand-100);
  transition: background-color .2s ease, transform .2s ease;
}
.social a:hover { background: var(--bamboo-700); transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; }

.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(246,241,232,.13);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; justify-content: space-between;
  font-size: .81rem;
}
.footer-bottom nav { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--bamboo-300); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-800); color: var(--sand-50);
  display: grid; place-items: center; box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-700); }
.to-top svg { width: 17px; height: 17px; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .68s cubic-bezier(.22,1,.36,1), transform .68s cubic-bezier(.22,1,.36,1);
}
[data-reveal].in { opacity: 1; transform: none; }

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

/* ---------- i18n ---------- */
html[data-lang="zh"] .en-only { display: none !important; }
html[data-lang="en"] .zh-only { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero-visual { max-width: 480px; }
  .hero-float.a { left: -8px; }
  .hero-float.b { right: -8px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split.rev .split-media { order: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .section { padding-block: var(--sp-8); }
  .hero { padding-block: var(--sp-8) var(--sp-7); }

  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--sh-md);
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .26s ease, transform .26s ease, visibility .26s;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line-soft); }
  .nav-list a { display: block; padding: 13px 2px; font-size: .98rem; }
  .nav-list a::after { display: none; }
  .nav .btn { width: 100%; margin-top: var(--sp-5); }
  .burger { display: grid; }
  .nav-actions { margin-left: auto; }

  .values, .steps, .field-row { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: var(--sp-7) var(--sp-5); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-float { display: none; }
  .section-head { margin-bottom: var(--sp-6); }
}

@media (max-width: 420px) {
  .cats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* ---------- Print ---------- */
@media print {
  .header, .to-top, .cta-band, .strip, .footer { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: var(--sp-5); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
}
