/* ==========================================================================
   恒燊中医 HENGSHEN TCM — 设计系统
   浅色 · 暖白纸感 · 青绿 + 暖金 · 宋体标题 + 黑体正文
   注意：背景「中药生长动画」的样式在 css/herb.css（已作用域隔离），
        本文件在其之后加载，因此可以覆盖动画容器自身的样式。
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* 纸感底色 */
  --paper:      #fbfaf6;
  --paper-2:    #f3f0e7;
  --card:       #ffffff;

  /* 墨色文字 */
  --ink:        #16241e;
  --ink-2:      #5a6b62;
  --ink-3:      #8a968d;

  --line:       #e2ded1;
  --line-2:     #eeeae0;

  /* 青绿主色（草本） */
  --brand:      #1e6b4f;
  --brand-2:    #2e8b66;
  --brand-soft: #e8f1ec;
  --brand-line: #cfe3d8;

  /* 暖金强调 */
  --gold:       #b8892b;
  --gold-soft:  #f7efdc;
  --gold-line:  #ecd9ad;

  /* 排版 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
               "Noto Sans SC", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC",
                "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

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

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-full: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 700ms;
  --dur-fast: 300ms;

  --shadow-sm: 0 2px 10px rgba(22, 36, 30, 0.05);
  --shadow-md: 0 12px 34px rgba(22, 36, 30, 0.08);
  --shadow-lg: 0 26px 60px rgba(22, 36, 30, 0.10);

  --container: 1200px;
  --nav-h: 76px;
}

/* ---------- 2. Reset（自己的，不依赖动画那套全局重置） ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: #cfcabb; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b9b3a2; }

/* ---------- 3. 背景：中药生长动画层 ---------- */
.herb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}
/* 动画容器本身：原站靠 body 规则提供 flex/底部对齐/透视，
   作用域隔离时 body 规则被丢弃，这里补回来（否则花不会贴着底部生长） */
.herb-bg .herb-animation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1000px;
  overflow: hidden;
}
/* 垂直渐变遮罩：顶部实（保证文字对比度）、底部透（把花留出来）
   替代原站平铺的 rgba(255,255,255,.5) */
.herb-bg__veil {
  position: absolute;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    rgba(251, 250, 246, 0.92) 22%,
    rgba(251, 250, 246, 0.55) 46%,
    rgba(251, 250, 246, 0.12) 72%,
    rgba(251, 250, 246, 0) 100%);
}
/* 页面内容压在动画之上 */
.page { position: relative; z-index: 1; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section--paper { background: rgba(251, 250, 246, 0.94); border-top: 1px solid var(--line-2); }
.section--solid { background: var(--paper); border-top: 1px solid var(--line-2); }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line-2); }

/* ---------- 5. Typography ---------- */
h1, .h1 { font-size: clamp(2rem, 5.2vw, 3.9rem); line-height: 1.16; font-weight: 400; letter-spacing: -0.01em; font-family: var(--font-serif); }
h2, .h2 { font-size: clamp(1.7rem, 3.8vw, 2.9rem); line-height: 1.24; font-weight: 400; letter-spacing: 0; font-family: var(--font-serif); }
h3, .h3 { font-size: clamp(1.08rem, 1.9vw, 1.32rem); line-height: 1.45; font-weight: 600; }
.lead { font-size: clamp(1rem, 1.35vw, 1.1rem); color: var(--ink-2); line-height: 1.95; }
.muted { color: var(--ink-2); }
.muted-3 { color: var(--ink-3); }

/* 拉丁文小标（对应原站 INHERITANCE WITHOUT STAGNATION 那类） */
.latin {
  display: block;
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-full);
  padding: 7px 16px;
  margin-bottom: 22px;
}
.eyebrow .icon { width: 15px; height: 15px; }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { margin-top: 20px; max-width: 56ch; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 6. 图标 ---------- */
.icon {
  width: 1em; height: 1em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.135em;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 7. Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; cursor: pointer;
  border-radius: var(--r-full); padding: 14px 30px;
  font-size: 15px; font-weight: 600; line-height: 1;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(30, 107, 79, 0.22); }
.btn--primary:hover { background: var(--brand-2); box-shadow: 0 14px 34px rgba(30, 107, 79, 0.28); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,0.7); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn__icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.2); flex: 0 0 auto; }
.btn__icon .icon { width: 13px; height: 13px; stroke-width: 2; }
.link-more { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--brand); }
.link-more .icon { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.link-more:hover .icon { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2);
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 7px 15px;
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--brand-line); color: var(--brand); background: #fff; }
.chip .icon { width: 14px; height: 14px; color: var(--brand); }
.tag {
  font-size: 12px; color: var(--brand);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 6px; padding: 4px 10px;
}

/* ---------- 8. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(251, 250, 246, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.nav__logo { display: flex; align-items: baseline; gap: 10px; }
.nav__logo-cn { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; font-family: var(--font-serif); }
.nav__logo-en { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: 14.5px; font-weight: 500; color: var(--ink-2); position: relative; transition: color var(--dur-fast) var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--brand); border-radius: 2px; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.8); cursor: pointer; place-items: center; }
.nav__toggle span { display: block; width: 16px; height: 1.6px; background: var(--ink); position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: var(--ink); }
.nav__toggle span::before { top: -5px; } .nav__toggle span::after { top: 5px; }
.nav__mobile { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99; background: rgba(251,250,246,0.97); border-bottom: 1px solid var(--line); padding: 10px 24px 26px; display: none; }
.nav__mobile.is-open { display: block; }
.nav__mobile a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.nav__mobile a.is-active, .nav__mobile a:hover { color: var(--brand); }

/* ---------- 9. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; padding: clamp(40px, 8vh, 96px) 0; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.82); border: 1px solid var(--brand-line);
  color: var(--brand); border-radius: var(--r-full);
  padding: 8px 18px; font-size: 13.5px; font-weight: 600; margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.hero__badge .icon { width: 15px; height: 15px; }
.hero__title { max-width: 18ch; }
.hero__title .line { display: block; }
.hero__title .line--sub { font-size: 0.72em; color: var(--brand); margin-top: 6px; }
.hero__lead { max-width: 52ch; margin-top: 26px; font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--ink-2); line-height: 1.95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero__meta { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 10px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--brand), transparent); animation: hintPulse 2.2s var(--ease) infinite; }
@keyframes hintPulse { 0% { transform: scaleY(0.2); opacity: .3; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } 100% { transform: scaleY(0.2); opacity: .3; transform-origin: top; } }

/* ---------- 10. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.stat { padding: clamp(24px, 3vw, 34px); border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1; font-weight: 400; color: var(--brand); display: flex; align-items: baseline; gap: 2px; }
.stat__num em { font-style: normal; font-size: 0.55em; color: var(--gold); font-weight: 600; }
.stat__label { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- 11. Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand);
  margin-bottom: 20px;
}
.card__icon .icon { width: 23px; height: 23px; }
.card__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card__desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card--tint { background: var(--paper-2); }
.card--flat { background: rgba(255,255,255,0.86); }
.card--accent { border-color: var(--gold-line); }
.card--accent .card__icon { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }

/* 编号卡（使命/价值观/理念 与 转化步骤） */
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.step__no { font-family: var(--font-serif); font-size: 15px; color: var(--gold); display: block; margin-bottom: 12px; }
.step__title { font-size: 17px; font-weight: 700; margin-bottom: 9px; }
.step__desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

/* ---------- 12. 关于我们 ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.prose p { color: var(--ink-2); line-height: 2; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.pillar { padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.pillar:last-child { border-bottom: 0; }
.pillar__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; margin-bottom: 10px; }
.pillar__label .icon { width: 15px; height: 15px; }
.pillar__text { font-size: 15px; color: var(--ink-2); line-height: 1.95; }
.quote-card { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--r-lg); padding: 26px 28px; }
.quote-card .icon { width: 22px; height: 22px; color: var(--brand); margin-bottom: 12px; }
.quote-card p { font-family: var(--font-serif); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.7; color: var(--ink); }

/* ---------- 13. Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab {
  border: 1px solid var(--line); background: rgba(255,255,255,0.8); color: var(--ink-2);
  border-radius: var(--r-full); padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.tab:hover { border-color: var(--brand-line); color: var(--brand); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
[hidden] { display: none !important; }

/* ---------- 14. 产品卡 ---------- */
.product__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); flex: 0 0 auto; }
.product__icon .icon { width: 22px; height: 22px; }
.product__title { font-size: 17px; font-weight: 700; }
.product__list { margin: 18px 0 20px; display: grid; gap: 9px; }
.product__list li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.product__list .icon { width: 15px; height: 15px; color: var(--brand); }

/* ---------- 15. 转化时间线 ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 39px; height: 1px; background: linear-gradient(90deg, var(--brand-line), var(--gold-line)); z-index: 0; }
.tl { position: relative; z-index: 1; }
.tl__dot { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand-line); color: var(--brand); display: grid; place-items: center; font-family: var(--font-serif); font-size: 16px; margin-bottom: 18px; }
.tl:hover .tl__dot { border-color: var(--brand); background: var(--brand-soft); }
.tl__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tl__desc { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.support { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.network { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 16. 联系 ---------- */
.contact-split { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.info-item:last-child { border-bottom: 0; }
.info-item__icon { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand); }
.info-item__icon .icon { width: 19px; height: 19px; }
.info-item__label { font-size: 13px; color: var(--ink-3); margin-bottom: 3px; }
.info-item__value { font-size: 15px; color: var(--ink); line-height: 1.7; word-break: break-word; }

.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-md); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 15px; font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 128px; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form__note { font-size: 13px; color: var(--ink-3); }
.form__status { font-size: 14px; min-height: 22px; }
.form__status.is-ok { color: var(--brand); }
.form__status.is-err { color: #c0392b; }

/* ---------- 17. CTA 横幅 ---------- */
.cta {
  border-radius: var(--r-xl); border: 1px solid var(--brand-line);
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 58%, var(--gold-soft) 100%);
  padding: clamp(34px, 5vw, 66px); position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(184,137,43,0.16), transparent 68%); }

/* ---------- 18. Footer ---------- */
.footer { background: var(--ink); color: #cbd6d0; padding: 62px 0 30px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__brand { font-family: var(--font-serif); font-size: 21px; color: #fff; margin-bottom: 6px; }
.footer__en { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #7f9188; margin-bottom: 18px; }
.footer__desc { font-size: 14px; line-height: 1.9; color: #a9b7b0; max-width: 34ch; }
.footer__title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer__list li { margin-bottom: 11px; }
.footer__list a, .footer__list span { font-size: 14px; color: #a9b7b0; transition: color var(--dur-fast) var(--ease); }
.footer__list a:hover { color: #fff; }
.footer__list .icon { width: 15px; height: 15px; margin-right: 7px; color: var(--brand-2); }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13px; color: #7f9188; }

/* ---------- 19. 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--4, .support { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .about-split, .contact-split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .container { padding: 0 18px; }
  .grid--2, .grid--3, .grid--4, .support, .timeline { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .stat:last-child { border-bottom: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  /* 移动端把花缩小，避免占满屏 */
  .herb-bg .flowers { transform: scale(0.52); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
