/* ==========================================================================
   main.css · 向日葵专注 SunFocus 官网全站样式
   依赖：tokens.css（必须先加载）
   规范：docs/design-spec.md（色值/字号/间距/圆角/阴影/动效全部引用 var(--*)）
   ⚠ 本文件不得出现十六进制色值字面量（唯一例外：rgba 投影已收在 --sh-* 令牌）。
   ⚠ 媒体查询只用：min-width 768 / 1024 / 1440 与 max-width 767 / 375。
   ========================================================================== */

/* ==========================================================================
   1. 基础重置
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;          /* 锚点平滑滚动（无 JS 也生效） */
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;               /* 兜底：任何情况都不出现横向滚动条 */
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

summary { cursor: pointer; }

/* 全站唯一条焦点样式（design-spec §7 / §11.2） */
:focus-visible {
  outline: var(--bw-focus) solid var(--c-focus);
  outline-offset: 3px;
  border-radius: inherit;
}

::selection {
  background: var(--c-select-bg);
  color: var(--c-select-fg);
}

/* ==========================================================================
   2. 工具类
   ========================================================================== */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: 100%;
  max-width: var(--w-shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: var(--icon-size);
  height: var(--icon-size);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm {
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  stroke-width: 1.8;
}
.icon--lg { width: var(--sp-6); height: var(--sp-6); }

/* 平板档字号（design-spec §8 断点策略表要求 768–1023 为 H1 44 / H2 32 / H3 22，
   而令牌表只给了移动与桌面两档；此处只用规范允许的 min-width 断点补齐，不新增断点） */
@media (min-width: 768px) {
  :root {
    --fs-h1: 44px;
    --fs-h2: 32px;
    --fs-h3: 22px;
  }
}
@media (min-width: 1024px) {
  :root {
    --fs-h1: 56px;
    --fs-h2: 40px;
    --fs-h3: 24px;
  }
}

/* 跳到主内容（键盘用户第一个焦点）
   离屏方式用 translateY，而不是 position:absolute + 负 left：
   物理属性 left:-9999px 在 LTR 下不会造成横向滚动（左向溢出不可达），
   但在 RTL 下它落在**行内末（inline-end）**方向，而行内末方向的溢出是**可滚动**的，
   会真的生成横向滚动条。
   改成纵向位移后，left 恒为 var(--sp-2) —— 横向在任何书写模式、任何时刻都落在视口内；
   且块首（block-start）方向的溢出按 CSS Overflow 规范不计入可滚动区域。 */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--sp-2);
  z-index: var(--z-skip-link);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(var(--sp-2));
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--c-brand-strong);
  color: var(--c-surface);
  font-size: var(--fs-btn);
  font-weight: var(--fw-semibold);
  box-shadow: var(--sh-inset-hi), var(--sh-brand);
}

/* ==========================================================================
   3. 版式区块骨架
   ========================================================================== */
.sec { padding-block: var(--sec-y); }
.sec--lg { padding-block: var(--sec-y-lg); }

.sec__head {
  max-width: var(--w-text);
  margin-inline: auto;
  text-align: center;
}
.sec__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-h2);
  color: var(--c-text);
  max-width: 100%;
}
.sec__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--c-text-muted);
}
.sec__head--wide { max-width: var(--w-text-narrow); }

/* 锚点落点预留吸顶高度 */
main > section[id],
footer[id] { scroll-margin-top: var(--scroll-margin); }

/* ==========================================================================
   4. 按钮 / 文字链
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border-radius: var(--r-pill);
  font-size: var(--fs-btn);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-btn);
  line-height: var(--lh-btn);
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease-inout),
              color var(--dur-fast) var(--ease-inout),
              border-color var(--dur-fast) var(--ease-inout),
              box-shadow var(--dur-fast) var(--ease-inout),
              transform var(--t-hover) var(--ease-out);
}

/* 主按钮：实底、无渐变（白字/亮黄对比度不足，见 design-spec 原则 2） */
.btn--primary {
  background: var(--c-brand-strong);
  color: var(--c-surface);
  box-shadow: var(--sh-inset-hi), var(--sh-brand);
}
.btn--primary:hover {
  background: var(--c-brand-hover);
  box-shadow: var(--sh-inset-hi), var(--sh-brand-hover);
  transform: translateY(-2px);
}
.btn--primary:active {
  background: var(--c-brand-active);
  box-shadow: var(--sh-inset-hi), var(--sh-sm);
  transform: translateY(0);
}

.btn--secondary {
  background: var(--c-surface);
  color: var(--c-brand-strong);
  border: var(--bw-strong) solid var(--c-border-strong);
  box-shadow: var(--sh-xs);
}
.btn--secondary:hover {
  background: var(--c-brand-soft);
  color: var(--c-brand-hover);
  border-color: var(--c-brand-strong);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.btn--secondary:active {
  background: var(--c-brand-soft);
  color: var(--c-brand-active);
  border-color: var(--c-brand-active);
  transform: translateY(0);
}

.btn--sm {
  min-height: var(--btn-h-sm);
  padding-inline: var(--btn-px-sm);
  font-size: 15px;
}

.btn--block { width: 100%; }

@media (min-width: 1024px) {
  .btn--primary,
  .btn--secondary { min-width: var(--btn-min-w); }
}

/* 文字链 */
.link {
  color: var(--c-brand-strong);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-decoration-thickness: var(--bw-underline);
  text-decoration-color: rgba(194, 65, 12, .28);
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease-inout),
              text-decoration-color var(--dur-fast) var(--ease-inout);
}
.link:hover {
  color: var(--c-brand-hover);
  text-decoration-color: var(--c-brand-strong);
}
.link__arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.link:hover .link__arrow { transform: translateX(3px); }

/* 正文内行内链接：细下划线，不打断阅读节奏 */
.link--inline {
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(194, 65, 12, .45);
  text-underline-offset: 3px;
}

/* ==========================================================================
   5. 卡片
   ========================================================================== */
.card {
  background: var(--c-surface);
  border: var(--bw-hairline) solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  box-shadow: var(--sh-sm);
}
.card--warm { background: var(--c-brand-soft); border-color: var(--c-brand-line); }
.card--neutral { background: var(--c-surface); border-color: var(--c-border); }
.card--green { background: var(--c-accent-soft); border-color: var(--c-accent-line); }
.card--dark {
  background: var(--c-surface-dark);
  border-color: transparent;
  color: var(--c-text-inverse);
}

.card__title {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.card__body {
  margin-top: var(--sp-2);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}

/* 卡片内的「展开细看」（原生 details，无需 JS 也可用） */
.card-more { margin-top: var(--sp-4); }
.card-more > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--btn-h-sm);
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  color: var(--c-brand-ink);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  background: var(--c-bg);
  list-style: none;
  transition: background-color var(--dur-fast) var(--ease-inout),
              color var(--dur-fast) var(--ease-inout);
}
.card-more > summary::-webkit-details-marker { display: none; }
.card-more > summary:hover { background: var(--c-surface); color: var(--c-brand-strong); }
.card-more__chevron { transition: transform var(--dur-base) var(--ease-out); }
.card-more[open] > summary .card-more__chevron { transform: rotate(180deg); }
.card-more__label--close { display: none; }
.card-more[open] .card-more__label--open { display: none; }
.card-more[open] .card-more__label--close { display: inline; }
.card-more__panel {
  margin-top: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--c-bg);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--c-text-muted);
}

/* ==========================================================================
   6. 滚动淡入（基础态必须可见；JS 未执行则永不隐藏）
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.is-hidden {
  opacity: 0;
  transform: translateY(var(--reveal-lift));
}
.reveal--card.is-hidden { transform: translateY(var(--reveal-lift-card)); }

/* ==========================================================================
   7. 吸顶导航 #nav
   ========================================================================== */
#nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h-mobile);
  background: rgba(255, 251, 242, .92);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-inout);
}
#nav.is-scrolled { border-bottom-color: var(--c-border); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--nav-h-mobile);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--btn-h-sm);
  margin-right: auto;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}
.nav__brand-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  box-shadow: var(--sh-xs);
}

.nav__links,
.nav__cta { display: none; }

/* 汉堡按钮（44×44，触控达标） */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--btn-h-sm);
  height: var(--btn-h-sm);
  border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease-inout);
}
.nav__toggle:hover { background: var(--c-brand-soft); }
.nav__toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--c-text);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端抽屉（顶部下滑全宽面板） */
.nav-drawer {
  position: fixed;
  inset: var(--nav-h-mobile) 0 auto 0;
  z-index: var(--z-drawer);
  max-height: calc(100vh - var(--nav-h-mobile));
  overflow-y: auto;
  background: var(--c-surface);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--sh-lg);
  padding-bottom: var(--sp-4);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
}
.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.nav-drawer__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-inline: var(--pad-x);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  border-bottom: var(--bw-hairline) solid var(--c-border);
}
.nav-drawer__link:hover { background: var(--c-brand-soft); color: var(--c-brand-strong); }
.nav-drawer__cta { margin: var(--sp-4) var(--pad-x) 0; }
.nav-drawer__cta .btn { width: 100%; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: var(--c-scrim);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
}
.nav-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (min-width: 768px) {
  #nav { height: var(--nav-h); }
  .nav__inner { height: var(--nav-h); }
  .nav__brand-icon { width: 32px; height: 32px; }
  .nav__brand { font-size: 17px; }
  .nav__toggle { display: none; }
  .nav-drawer,
  .nav-scrim { display: none; }

  .nav__links {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
  }
  .nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--btn-h-sm);
    padding-inline: var(--sp-1);
    font-size: 14px;
    font-weight: var(--fw-medium);
    color: var(--c-text-muted);
    transition: color var(--dur-fast) var(--ease-inout);
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    border-radius: var(--r-pill);
    background: var(--c-brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-fast) var(--ease-inout);
  }
  .nav__link:hover { color: var(--c-brand-strong); }
  .nav__link:hover::after { transform: scaleX(1); }
  .nav__link.is-current { color: var(--c-brand-strong); }
  .nav__link.is-current::after { transform: scaleX(1); }

  .nav__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .nav__links { gap: 28px; }
  .nav__link { font-size: 15px; }
}

/* ==========================================================================
   8. 移动端底部常驻 CTA 条
   ========================================================================== */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile-cta);
  padding: 10px var(--pad-x-mobile) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 251, 242, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: var(--bw-hairline) solid var(--c-border);
  transform: translateY(120%);
  transition: transform var(--dur-base) var(--ease-out);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { width: 100%; }

@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* ==========================================================================
   9. 首屏 #hero
   ========================================================================== */
#hero {
  background: linear-gradient(180deg, var(--c-sun-soft) 0%, var(--c-bg) 100%);
  padding-block: var(--sec-y-hero-mobile);
}
.hero__grid {
  display: grid;
  gap: var(--sp-7);
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  line-height: 1.4;
  color: var(--c-brand-ink);
}
.hero__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-h1);
  color: var(--c-text);
  max-width: 760px;
  text-wrap: balance;          /* 21 字 H1 在桌面为多行，平衡断行避免孤字 */
}
.hero__lead {
  margin-top: var(--sp-5);
  max-width: 560px;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--c-text-muted);
}
.hero__actions {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero__more {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-6);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--c-brand-ink);
  background: var(--c-surface);
  border: var(--bw-hairline) solid var(--c-border);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-hover) var(--ease-out), color var(--dur-fast) var(--ease-inout);
}
.hero__scroll:hover { transform: translateY(2px); color: var(--c-brand-strong); }

.hero__visual { display: flex; justify-content: center; }
.phone-wrap { position: relative; width: 200px; }
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  padding: var(--phone-bezel);
  border-radius: var(--r-2xl);
  background: var(--c-text);
  box-shadow: var(--sh-lg);
}
.phone__screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--r-2xl) - 10px);
  background: var(--c-accent-soft);
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.phone-wrap__icon {
  position: absolute;
  left: -8px;
  bottom: var(--sp-4);
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  transform: rotate(-8deg);
}

@media (min-width: 768px) {
  .hero__actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .hero__grid { gap: var(--sp-8); }
  .hero__content { max-width: var(--w-text-narrow); margin-inline: auto; text-align: center; }
  .hero__title { margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__eyebrow { margin-inline: auto; }
  .phone-wrap { width: 260px; }
  .phone-wrap__icon { left: -16px; bottom: var(--sp-6); width: 56px; height: 56px; }
}

@media (min-width: 1024px) {
  #hero { min-height: min(88vh, 820px); display: flex; align-items: center; }
  #hero .shell { width: 100%; }
  /* 文案列 2fr / 视觉列 1fr：
     原 6+6 会让 544px 的文字列装不下 21 字 H1 的后半句（13 字 × 56px ≈ 721px），
     被迫在「训|练」中间断行；同时右列 544px 里只放得下 324px 的手机样机，两侧各空 110px。
     改成 2:1 后文案列 ≈736px（H1 恰好两行、断在逗号后），样机列 ≈368px 仍容得下样机。 */
  .hero__grid {
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: var(--sp-7);
  }
  .hero__content { max-width: none; margin-inline: 0; text-align: left; }
  .hero__title { margin-inline: 0; }
  .hero__lead { margin-inline: 0; }
  .hero__eyebrow { margin-inline: 0; }
  .hero__actions { justify-content: start; }
  .phone-wrap { width: var(--phone-w); }
  .phone-wrap__icon { left: -24px; bottom: var(--sp-7); width: 64px; height: 64px; }
}

/* 1024–1199：改单栏居中。
   成因：此区间 shell 还没封顶到 1200px（`--w-shell:1200px` 是含 padding 的 border-box），
   双栏 2fr 1fr 下文案列实测只有 604px（1024 档）/ 669px（1100 档），
   H1 在 1024 档因此退化成 3 行、在「训|练」中间断行。单栏后 H1 元素实测 760px
   （受自身 max-width 760px 约束），恰好两行、断在逗号后。
   注：反测「强制恢复 2fr 1fr」逐档扫描（1024–1034 逐 1px），实测文案列 ≤ 609px 时 H1
   退化为 3 行拆词，坏区间为 1024–1029 六档（列宽 604–609px），临界点落在 1029/1030 之间，
   1030px（列宽 610px）起即干净 2 行。取 1024–1199 全段单栏是稳妥取值，
   并非最小必要区间。判断依据请用实测行数，不要用「13 字 × 56px ≈ 721px」这类估算式——
   它把 H1 当成不可断整体，而 text-wrap: balance 会自动找平衡点，603px 的列也能排出干净 2 行。
   另注意扫描断点附近务必逐 1px 测：列宽每差 1px 都可能跨过临界点，抽样容易漏档。 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { max-width: 800px; margin-inline: auto; text-align: center; }
  .hero__title, .hero__lead, .hero__eyebrow { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

/* ==========================================================================
   10. 信任条 #trust
   ========================================================================== */
#trust {
  background: var(--c-surface-warm);
  border-block: var(--bw-hairline) solid var(--c-border);
  padding-block: 20px;
}
.trust__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3) var(--sp-5);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  color: var(--c-text-muted);
}
.trust__item .icon { color: var(--c-brand-strong); }
.trust__item--wide { grid-column: 1 / -1; }
.trust__sep { display: none; }

@media (min-width: 768px) {
  #trust { padding-block: var(--sp-5); }
  .trust__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3) var(--sp-5);
  }
  .trust__item--wide { grid-column: auto; }
  .trust__sep {
    display: block;
    width: 1px;
    height: var(--sp-4);
    background: var(--c-border);
  }
}

@media (min-width: 1024px) {
  .trust__list { gap: var(--sp-3) var(--sp-6); }
}

/* ==========================================================================
   11. 痛点 #pain
   ========================================================================== */
.pain__list {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  max-width: var(--w-prose);
  margin-inline: auto;
}
.pain__quote {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.pain__note {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: var(--bw-hairline) solid var(--c-border);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.pain__note-label {
  font-weight: var(--fw-semibold);
  color: var(--c-brand-ink);
}
.pain__closing {
  margin-top: var(--sp-7);
  text-align: center;
  font-size: var(--fs-lead);
  font-weight: var(--fw-semibold);
  color: var(--c-brand-ink);
}

@media (min-width: 768px) {
  .pain__list { gap: var(--sp-5); }
}
@media (min-width: 1024px) {
  .pain__list { gap: var(--sp-6); }
}

/* ==========================================================================
   12. 产品是什么 #what
   ========================================================================== */
#what { background: var(--c-surface); }
.what__def {
  max-width: 760px;
  margin: var(--sp-5) auto 0;
  text-align: center;
  font-size: var(--fs-lead-lg);
  line-height: var(--lh-lead);
  color: var(--c-text);
}
.what__def strong { font-weight: var(--fw-bold); }

.what__statement {
  position: relative;
  max-width: 760px;
  margin: var(--sp-6) auto 0;
  padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-7);
  border-radius: var(--r-lg);
  background: var(--c-brand-soft);
  border: var(--bw-hairline) solid var(--c-border);
  font-size: 17px;
  line-height: var(--lh-lead);
  font-weight: var(--fw-medium);
  color: var(--c-text);
}
.what__statement::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--sp-5);
  bottom: var(--sp-5);
  width: 4px;
  border-radius: var(--r-pill);
  background: var(--c-brand);
}
.what__statement-lead { font-weight: var(--fw-bold); }

.what__grid {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  align-items: center;
}
.what__visual {
  order: -1;
  display: flex;
  justify-content: center;
}
.what__visual img {
  width: 200px;
  height: auto;
}
.what__point-title {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-brand-ink);
}
.what__point-body {
  margin-top: var(--sp-3);
  font-size: 15px;
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.what__point--full { margin-top: var(--sp-6); text-align: center; }
.what__point--full .what__point-body { max-width: 760px; margin-inline: auto; }

@media (min-width: 768px) {
  .what__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
  .what__visual img { width: 220px; }
}
@media (min-width: 1024px) {
  .what__grid {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--sp-7);
  }
  .what__visual { order: 0; }
  .what__visual img { width: 260px; }
  .what__point--kid { text-align: right; }
  .what__point--full { margin-top: var(--sp-7); }
}

/* ==========================================================================
   13. 怎么用 #how
   ========================================================================== */
.how__steps {
  position: relative;
  margin-top: var(--sp-7);
  padding-left: 56px;
}
.how__steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: var(--sp-4);
  bottom: var(--sp-4);
  width: 2px;
  background: var(--c-accent);
}
.step { position: relative; }
.step + .step { margin-top: var(--sp-7); }
.step__node {
  position: absolute;
  left: -56px;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-6);
  height: var(--sp-6);
  border-radius: var(--r-pill);
  background: var(--c-accent-strong);
  color: var(--c-surface);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
}
.step__body { display: grid; gap: var(--sp-4); }
.step__figure { display: flex; flex-direction: column; gap: var(--sp-2); }
.step__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--c-surface-sunken);
  border: var(--bw-hairline) solid var(--c-border);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.step__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* 竖版真机截图：整图直用、不裁切，保留真实状态栏与底部标签栏。
   不加灰底外框——0.46 的竖图放进 360px 宽的框里会左右留大片空白，
   看起来像「图没加载出来」；直接让截图自身带圆角与投影，像一张设备截图。 */
.step__media--portrait {
  height: 420px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.step__media--portrait img {
  height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: var(--r-md);
  border: var(--bw-hairline) solid var(--c-border);
  box-shadow: var(--sh-md);
}
/* 横版真机截图（打盹屏）：整图直用，图片本身即画面 */
.step__media--landscape { padding: 0; }
.step__media--landscape img { width: 100%; max-height: none; }

.step__caption {
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  color: var(--c-text-subtle);
}
.step__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.step__text {
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.step__micro {
  margin-top: var(--sp-3);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--c-text-subtle);
}

.how__note {
  max-width: var(--w-text);
  margin: var(--sp-8) auto 0;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-brand-soft);
  border: var(--bw-hairline) solid var(--c-border);
}
.how__note-title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.how__note p {
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}

@media (min-width: 768px) {
  .step__body { grid-template-columns: 280px minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
  .step__media--portrait { height: 400px; }
  .step + .step { margin-top: var(--sp-8); }
}
@media (min-width: 1024px) {
  .step__body { grid-template-columns: 360px minmax(0, 1fr); gap: var(--sp-7); }
}

/* ==========================================================================
   14. 功能亮点 #features
   ========================================================================== */
#features { background: var(--c-surface); }
.feature-cols {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}
.feature-col {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
}
.feature-col--kid { background: var(--c-brand-tint); }
.feature-col--parent { background: var(--c-surface-neutral); }
.feature-col__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.feature-col__note {
  margin-top: var(--sp-2);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--c-text-muted);
}
.feature-col__list {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
.card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.card__icon { color: var(--c-brand-ink); }
.card--neutral .card__icon { color: var(--c-accent-ink); }
.card__media {
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface-sunken);
}
.card__media img { width: 100%; height: 100%; object-fit: contain; }
/* 横版真机截图缩略：整图直用，图片本身即画面 */
.card__media--land { height: auto; padding: 0; }
.card__media--land img { height: auto; }
.card__media--coin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: var(--c-brand-soft);
}
.card__media--coin img { width: 96px; height: 96px; }

@media (min-width: 768px) {
  .feature-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
}
@media (min-width: 1024px) {
  .feature-cols { gap: var(--sp-6); }
}

/* ==========================================================================
   15. 花园 #garden
   ========================================================================== */
#garden { background: var(--c-accent-soft); }

.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  max-width: 760px;
  margin: var(--sp-7) auto 0;
}
.stages::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 60px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg,
      var(--c-accent) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stage__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  border-radius: var(--r-md);
}
.stage__media img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.stage--end .stage__media {
  background: var(--c-accent-soft);
  box-shadow: var(--sh-xs);
}
.stage__name {
  margin-top: var(--sp-3);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.stage__note {
  margin-top: var(--sp-1);
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  color: var(--c-text-muted);
}

.plants {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
/* grid item 默认 min-width:auto，会被 .plant-thumbs 内部 8 枚缩略图的 min-content 撑破，
   导致整页横向溢出。置 0 后，缩略图在 overflow-x:auto 容器内正常裁切 + 横滑。 */
.plant-side {
  min-width: 0;
}
.plant-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--garden-figure-h-mobile);
  padding: var(--sp-5);
  border-radius: var(--r-2xl);
  background: var(--c-accent-soft);
  border: var(--bw-hairline) solid var(--c-accent-line);
  overflow: hidden;
}
.plant-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity var(--dur-base) var(--ease-inout),
              transform var(--dur-base) var(--ease-out);
}
.plant-figure img.is-swapping {
  opacity: 0;
  transform: scale(.97);
}
.plant-figure img.is-entering {
  opacity: 0;
  transform: scale(.98);
}

.plant-thumbs {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--pad-x);
  margin-inline: calc(var(--pad-x) * -1);
  padding-bottom: var(--sp-2);
  scrollbar-width: none;
}
.plant-thumbs::-webkit-scrollbar { display: none; }
.plant-thumb {
  flex: 0 0 auto;
  width: var(--thumb-size-mobile);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  border: var(--bw-hairline) solid var(--c-border);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur-fast) var(--ease-inout),
              background-color var(--dur-fast) var(--ease-inout),
              box-shadow var(--dur-fast) var(--ease-inout),
              transform var(--dur-base) var(--ease-out);
}
.plant-thumb__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.plant-thumb__box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.plant-thumb__name {
  margin-top: 6px;
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  white-space: nowrap;
}
.plant-thumb:hover {
  background: var(--c-brand-tint);
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-sm);
  transform: scale(1.04);
}
/* 选中态：边框 + 文字双重编码（不单靠颜色） */
.plant-thumb[aria-pressed="true"] {
  background: var(--c-brand-soft);
  border: 2px solid var(--c-brand-strong);
  box-shadow: var(--sh-sm);
}
.plant-thumb[aria-pressed="true"] .plant-thumb__name {
  color: var(--c-brand-strong);
  font-weight: var(--fw-bold);
}

.plant-info {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: var(--bw-hairline) solid var(--c-border);
}
.plant-info__name {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-brand-strong);
}
.plant-info__desc {
  margin-top: var(--sp-2);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.garden__footnote {
  margin-top: var(--sp-6);
  text-align: center;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--c-text-subtle);
}

@media (min-width: 768px) {
  .plant-figure { height: var(--garden-figure-h-tablet); }
  .plant-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-4);
    overflow: visible;
    padding-inline: 0;
    margin-inline: 0;
    scroll-snap-type: none;
  }
  .plant-thumb { width: auto; }
}
@media (min-width: 1024px) {
  .plants { grid-template-columns: 5fr 7fr; gap: var(--sp-7); align-items: start; }
  .plant-figure { height: var(--garden-figure-h); padding: var(--sp-5); }
  .plant-info { margin-top: var(--sp-5); padding: var(--sp-5) var(--sp-5); }
}

/* ==========================================================================
   16. 隐私 #privacy
   ========================================================================== */
.facts {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.fact__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.fact__icon { color: var(--c-accent-ink); }
.fact__title {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.fact__body {
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.privacy__foot {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.privacy__hint {
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  color: var(--c-text-muted);
}

@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); max-width: 900px; margin-inline: auto; margin-top: var(--sp-7); }
  .privacy__foot {
    grid-template-columns: 1fr auto;
    align-items: center;
    max-width: 900px;
    margin-inline: auto;
  }
}
@media (min-width: 1024px) {
  .facts { gap: var(--sp-6); }
}

/* ==========================================================================
   17. 常见问题 #faq
   ========================================================================== */
#faq { background: var(--c-surface); }
.faq__list {
  max-width: var(--w-faq);
  margin: var(--sp-7) auto 0;
  display: grid;
  gap: var(--sp-3);
}
.faq__item {
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: var(--bw-hairline) solid var(--c-border);
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) var(--ease-inout),
              background-color var(--dur-fast) var(--ease-inout);
}
.faq__item:hover { background: var(--c-brand-tint); border-color: var(--c-border-strong); box-shadow: var(--sh-sm); }
.faq__item[open] { border-color: var(--c-border-strong); box-shadow: var(--sh-md); background: var(--c-surface); }

.faq__q {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 60px;
  padding: 0 var(--sp-4);
  font-size: 17px;
  line-height: 1.4;
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  list-style: none;
  transition: color var(--dur-fast) var(--ease-inout);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__item[open] .faq__q { color: var(--c-brand-strong); }
.faq__index {
  flex: none;
  font-size: var(--fs-micro);
  font-weight: var(--fw-semibold);
  color: var(--c-brand-ink);
  letter-spacing: var(--ls-label);
}
.faq__chevron {
  margin-left: auto;
  flex: none;
  color: var(--c-brand-ink);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a {
  padding: var(--sp-2) var(--sp-4) var(--sp-5);
}
.faq__a p {
  max-width: var(--w-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}

@media (min-width: 768px) {
  .faq__q { min-height: var(--summary-h); padding: 0 var(--sp-5); font-size: 19px; }
  .faq__a { padding: var(--sp-2) var(--sp-5) var(--sp-5); }
}

/* ==========================================================================
   18. 下载 / 预约 #download
   ========================================================================== */
#download { background: var(--c-brand-soft); }
.download__panel {
  max-width: 1000px;
  margin-inline: auto;
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-md);
  text-align: center;
}
.download__text {
  max-width: var(--w-text-narrow);
  margin: var(--sp-4) auto 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.download__actions {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.download__mail {
  margin-top: var(--sp-5);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.email-value {
  font-family: var(--ff-num);
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-btn);
  color: var(--c-text);
  user-select: all;
  -webkit-user-select: all;
}
.email-fallback {
  max-width: 360px;
  margin: var(--sp-4) auto 0;
  text-align: left;
}
.email-fallback__label {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  color: var(--c-text-muted);
}
.email-fallback__value {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--c-surface-sunken);
  border: var(--bw-control) solid var(--c-border-input);
  font-family: var(--ff-num);
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-btn);
  color: var(--c-text);
  cursor: text;
  user-select: all;
  -webkit-user-select: all;
}

.chips {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--chip-h);
  padding: 0 var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--c-surface-sunken);
  border: var(--bw-hairline) dashed var(--c-border-dashed);
  color: var(--c-text-muted);
  font-size: var(--fs-btn);
  font-weight: var(--fw-medium);
  box-shadow: var(--sh-xs);
  transition: background-color var(--dur-fast) var(--ease-inout),
              color var(--dur-fast) var(--ease-inout),
              border-color var(--dur-fast) var(--ease-inout),
              box-shadow var(--dur-fast) var(--ease-inout),
              transform var(--t-hover) var(--ease-out);
}
.chip:hover {
  background: var(--c-border);
  border-color: var(--c-border-input);
  color: var(--c-text);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.chip:active { background: var(--c-surface-press); color: var(--c-text); transform: translateY(0); }
.chip__tag {
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  color: var(--c-text-subtle);
  white-space: nowrap;
}
.download__footnote {
  margin-top: var(--sp-4);
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  color: var(--c-text-subtle);
}

@media (min-width: 768px) {
  .download__panel { padding: var(--sp-8) var(--sp-6); }
  .download__actions {
    grid-template-columns: auto auto;
    justify-content: center;
    gap: var(--sp-4);
  }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
}
@media (min-width: 1024px) {
  .download__panel { padding: var(--sp-8) var(--sp-7); }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   19. 页脚 #footer
   ========================================================================== */
#footer {
  background: var(--c-surface-dark);
  color: var(--c-text-inverse-muted);
  padding-block: var(--sp-7) calc(var(--sp-7) + var(--sp-5));
}
#footer :focus-visible { outline-color: var(--c-focus-inverse); }

.footer__grid { display: grid; gap: var(--sp-6); }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--btn-h-sm);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--c-text-inverse);
}
.footer__brand-icon { width: 28px; height: 28px; border-radius: 6px; }
.footer__tagline {
  margin-top: var(--sp-3);
  max-width: 320px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-inverse-muted);
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-5);
}
.footer__link {
  display: flex;
  align-items: center;
  min-height: var(--btn-h-sm);
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--c-text-inverse-muted);
  transition: color var(--dur-fast) var(--ease-inout);
}
.footer__link:hover { color: var(--c-brand); text-decoration: underline; text-underline-offset: 4px; }
.footer__meta p {
  font-size: var(--fs-micro);
  line-height: 1.9;
  color: var(--c-text-inverse-muted);
}
.footer__divider {
  height: 1px;
  margin-block: var(--sp-6);
  background: rgba(234, 223, 203, .18);
  border: 0;
}
.footer__bottom {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}
.footer__copy {
  font-size: var(--fs-micro);
  line-height: 1.9;
  color: var(--c-text-inverse-muted);
}
.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-h-sm);
  height: var(--btn-h-sm);
  border-radius: var(--r-pill);
  background: rgba(255, 251, 242, .10);
  color: var(--c-text-inverse-muted);
  transition: background-color var(--dur-fast) var(--ease-inout),
              color var(--dur-fast) var(--ease-inout);
}
.to-top:hover { background: rgba(255, 251, 242, .18); color: var(--c-text-inverse); }

@media (min-width: 768px) {
  #footer { padding-block: var(--sp-8) var(--sp-7); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand-col { grid-column: 1 / -1; }
  .footer__meta-col { grid-column: 1 / -1; }
  .footer__bottom { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 320px 200px minmax(0, 1fr); gap: var(--sp-7); }
  .footer__brand-col { grid-column: auto; }
  .footer__meta-col { grid-column: auto; }
}

/* ==========================================================================
   20. Toast 轻提示
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--toast-bottom);
  z-index: var(--z-toast);
  width: calc(100% - var(--sp-8));
  max-width: var(--toast-max-w);
  min-height: 48px;
  padding: 14px var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-surface-dark);
  color: var(--c-text-inverse);
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--sh-lg);
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
.toast[hidden] { display: none; }
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   21. privacy.html 专用
   ========================================================================== */
#back { scroll-margin-top: var(--scroll-margin); }
.page-back {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 251, 242, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: var(--bw-hairline) solid var(--c-border);
}
.page-back__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--nav-h-mobile);
}
.page-back__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-right: auto;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}
.page-back__brand img { width: 28px; height: 28px; border-radius: var(--r-xs); }

.legal {
  padding-block: var(--sp-7) var(--sp-9);
}
.legal__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-h1);
  color: var(--c-text);
}
.legal__version {
  margin-top: var(--sp-3);
  font-size: var(--fs-caption);
  color: var(--c-text-muted);
}
.legal__intro {
  max-width: var(--w-text);
  margin-top: var(--sp-5);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.legal__intro p + p { margin-top: var(--sp-4); }
.legal__intro strong { color: var(--c-text); font-weight: var(--fw-semibold); }

.toc {
  max-width: var(--w-text);
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-sunken);
  border: var(--bw-hairline) solid var(--c-border);
}
.toc__title {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-3);
}
.toc__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--c-brand-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(138, 75, 15, .45);
  text-underline-offset: 3px;
}
.toc__link:hover { color: var(--c-brand-strong); text-decoration-color: var(--c-brand-strong); }

.legal__section { scroll-margin-top: var(--scroll-margin); }
.legal__section + .legal__section { margin-top: var(--sp-7); }
.legal__h2 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.legal__body {
  max-width: var(--w-text);
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}
.legal__body p + p { margin-top: var(--sp-3); }
.legal__body strong { color: var(--c-text); font-weight: var(--fw-semibold); }
.legal__body code {
  font-family: var(--ff-num);
  font-size: 15px;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--c-surface-sunken);
  color: var(--c-text);
}
.legal__placeholder { color: var(--c-text-subtle); }
.legal__back-bottom {
  margin-top: var(--sp-9);
  padding-top: var(--sp-6);
  border-top: var(--bw-hairline) solid var(--c-border);
}

/* ==========================================================================
   22. prefers-reduced-motion 降级（对应 design-spec §10.3）
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }

  .btn:hover,
  .card:hover,
  .chip:hover,
  .plant-thumb:hover,
  .hero__scroll:hover { transform: none !important; }

  .reveal,
  .reveal.is-hidden {
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-drawer { transform: none !important; }
  .nav-drawer.is-open { transform: none !important; }
  .mobile-cta { transform: none !important; }
  .mobile-cta.is-visible { transform: none !important; }

  .toast {
    transform: translate(-50%, 0) !important;
    transition: opacity 160ms linear !important;
  }

  .plant-figure img.is-swapping,
  .plant-figure img.is-entering { transform: none !important; }
}
