@charset "UTF-8";
/* ============================================================================
   芽米 Yami · 官网设计系统
   「新芽与米」—— 暖米白底 + 品牌蓝，圆润亲和，面向初中生家长

   单文件样式表。零构建、零外部依赖、零网络请求。
   所有设计变量集中在 :root，改主题只需改这一处。

   目录
     01 设计变量
     02 重置与基础
     03 排版
     04 布局原语
     05 按钮 / 标签 / 徽章
     06 页头与导航
     07 页脚
     08 首屏
     09 手机截图框
     10 四步闭环
     11 图文分栏
     12 举证引用块
     13 对比表
     14 信任卡片
     15 手风琴
     16 表单
     17 转化条
     18 工具类与入场动画
     19 响应式
   ========================================================================= */

/* ---------------------------------------------------------------- 01 设计变量 */

:root {
  /* 表面 —— 极简留白：纯白为主 + 极浅冷灰分区
     （参考 Brilliant / Apple 开发者专区的设计哲学：靠留白与排版分层，不靠色块） */
  --paper: #FFFFFF;        /* 页面底 —— 纯白，大面积留白 */
  --paper-2: #F6F7FA;      /* 分区底 —— 极浅冷灰 */
  --paper-3: #EDF0F5;      /* 更深一档：图示底、占位框 */
  --card: #FFFFFF;         /* 卡片表面（靠描边和阴影与页面区分） */
  --line: rgba(11, 18, 32, .07);
  --line-2: rgba(11, 18, 32, .13);

  /* 文字 —— 冷调中性（科技感）
     色值已按 WCAG 相对亮度公式实测，全部满足 AA 正文 4.5:1。
     改任何一个都要复算 —— 详见 design-system.html 的实测对比度表。 */
  --ink: #0B1220;          /* 主文字 —— 近黑冷调 */
  --ink-2: #475467;        /* 次要文字 —— on white 7.69:1 */
  --ink-3: #667085;        /* 辅助文字 —— on white 4.97:1、on paper-2 4.68:1
                              （下限就是这一档，不要再调浅） */

  /* 品牌 —— 主色取自品牌 logo 的蓝（logo 底板与 App 主行动色同为蓝）
     每个色值均按 WCAG 2.1 相对亮度公式实测，见 design-system.html 的对比度表。 */
  --brand: #1259DC;        /* 品牌主蓝 —— CTA / 链接 / 强调
                              白字 on 此色 6.02:1 ✓；作文字 on 纯白同样 6.02:1 ✓ */
  --brand-hi: #0E45A8;     /* hover / 激活 —— 比主色更深，白字 8.62:1 ✓ */
  --brand-dim: rgba(18, 89, 220, .08);
  --brand-line: rgba(18, 89, 220, .24);
  --brand-deep: #0B2E73;   /* 深蓝 —— 整幅色块底（.cta-band / .section--brand）；白字 12.71:1 ✓ */

  /* 芽苗绿 —— 取自 logo 的芽苗，只用于「正面 / 成功」语义，不再作主色 */
  --leaf: #26794A;         /* on white 5.55:1 ✓ */
  --leaf-dim: rgba(38, 121, 74, .08);
  --leaf-line: rgba(38, 121, 74, .24);

  --amber: #E8A93C;        /* 暖橙 —— 点缀（对应 logo 里的黄色光点） */
  --amber-dim: rgba(232, 169, 60, .12);
  --amber-line: rgba(232, 169, 60, .30);

  /* 状态（与产品界面的掌握度四色呼应，仅用于图示） */
  --lv-1: #34C759;
  --lv-2: #FFCC00;
  --lv-3: #FF9500;
  --lv-4: #FF3B30;

  /* 字体 —— 全部系统字体，不引入外部字体 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
               "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system,
               "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas,
               ui-monospace, monospace;

  /* 字阶 —— 层级拉开、字距收紧（大标题是主要的分层手段） */
  --fs-display: clamp(38px, 6vw, 72px);
  --fs-h1: clamp(30px, 4.2vw, 50px);
  --fs-h2: clamp(24px, 3.2vw, 36px);
  --fs-h3: 21px;
  --fs-h4: 18px;
  --fs-lead: 19px;
  --fs-body: 16.5px;
  --fs-sm: 14.5px;
  --fs-xs: 13px;
  --fs-eyebrow: 13px;

  /* 间距基数 4px */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --section-y: clamp(80px, 10vw, 160px);   /* 区块留白加大 */
  --container: 1160px;
  --narrow: 760px;
  --gutter: clamp(20px, 4vw, 40px);

  /* 圆角 —— 收紧，去掉拟人化的圆润感 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* 阴影 —— 干净、低存在感；靠描边而非投影分层 */
  --shadow-1: 0 1px 2px rgba(11, 18, 32, .05);
  --shadow-2: 0 4px 16px rgba(11, 18, 32, .07);
  --shadow-3: 0 16px 40px rgba(11, 18, 32, .12);

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 160ms;
  --t-enter: 520ms;

  --header-h: 72px;
}

/* ------------------------------------------------------------ 02 重置与基础 */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* 吸顶页头会遮住锚点目标 */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.015em;   /* 大字号需要负字距，见下方 .t-* 的分级 */
  text-wrap: balance;        /* 标题不出现孤字换行 */
}
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; border: 0; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.4em; }
li { margin-bottom: var(--s-2); }

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--brand-hi); }

strong, b { color: var(--ink); font-weight: 700; }

/* ⚠️ 深色区块里的 <b> 必须翻白。
   上面那条 `color: var(--ink)` 是**独立声明**，会覆盖父级的继承 ——
   所以 `.note` 即使自己写了浅色文字，里面的 <b> 仍然是近黑 #0B1220。
   压在 --brand-deep（#0B2E73）上实测对比度约 1.1:1，**等于读不出来**。
   （2026-10-12 由一轮内容核对发现；当时只修了碰到的那两处，这里是根治。） */
.section--brand strong, .section--brand b,
.cta-band strong, .cta-band b { color: #fff; }

/* hero 那条琥珀提示是**浅底深字**，所以那里的 <b> 反倒要压深，不能跟着翻白。 */
.hero__note strong, .hero__note b { color: #6B4A0C; }
em { font-style: normal; color: var(--brand); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-12) 0; }

.num, time, .metric, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--brand-dim); color: var(--brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 999;
  padding: var(--s-3) var(--s-6);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

code, kbd {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .1em .4em;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--brand);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 03 排版 */

/* 字距随字号变化 —— 大字号收紧、小字号略放松（Apple 排版规则）。
   行高与字号反向：大标题紧、正文松。一个固定 letter-spacing 一定在某处是错的。 */
.t-display {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-optical-sizing: auto;
  text-wrap: balance;
  color: var(--ink);
}
.t-h1 {
  font-size: var(--fs-h1);
  line-height: 1.14;
  letter-spacing: -.026em;
  font-optical-sizing: auto;
  text-wrap: balance;
  color: var(--ink);
}
.t-h2 {
  font-size: var(--fs-h2);
  line-height: 1.22;
  letter-spacing: -.021em;
  font-optical-sizing: auto;
  text-wrap: balance;
  color: var(--ink);
}
.t-h3 { font-size: var(--fs-h3); line-height: 1.34; letter-spacing: -.014em; color: var(--ink); }
.t-h4 { font-size: var(--fs-h4); line-height: 1.45; letter-spacing: -.006em; color: var(--ink); }
.t-lead { font-size: var(--fs-lead); line-height: 1.72; color: var(--ink-2); }
.t-sm { font-size: var(--fs-sm); line-height: 1.68; letter-spacing: .004em; color: var(--ink-3); }

.t-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-dim);
  color: var(--brand);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
}
.t-eyebrow--amber { background: var(--amber-dim); color: #9A6B12; }

.t-accent { color: var(--brand); }
.t-hi { color: var(--ink); }
.t-lo { color: var(--ink-3); }
.t-center { text-align: center; }

.measure { max-width: 68ch; }
.measure-tight { max-width: 52ch; }

/* ------------------------------------------------------------ 04 布局原语 */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.section--muted { background: var(--paper-2); }
.section--white { background: var(--card); }
.section--brand { background: var(--brand-deep); color: rgba(255,255,255,.82); }
.section--brand h1, .section--brand h2, .section--brand h3, .section--brand h4 { color: #fff; }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-8); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* -------------------------------------------------- 05 按钮 / 标签 / 徽章 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(18, 89, 220, .28);
}
.btn--primary:hover {
  background: var(--brand-hi);
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 89, 220, .34);
}

.btn--ghost {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--quiet { background: transparent; color: var(--brand); padding-inline: 4px; }
.btn--quiet::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform var(--t-fast) var(--ease); }
.btn--quiet:hover { color: var(--brand); }
.btn--quiet:hover::after { transform: translateX(3px); }

.btn--lg { padding: 18px 38px; font-size: 18px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--brand-dim);
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--amber { background: var(--amber-dim); color: #9A6B12; }
.tag--mute { background: var(--paper-2); color: var(--ink-3); }
.tag--white { background: rgba(255,255,255,.16); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: var(--shadow-1);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.5;
}

/* -------------------------------------------------------- 06 页头与导航 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* 半透明材质：内容从下方滚过，靠模糊分层而不是色块 */
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  /* 滚动边缘渐隐：未滚动时完全无缝，滚动后才浮起 */
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0), 0 8px 24px rgba(11, 18, 32, 0);
  transition: box-shadow 260ms var(--ease), background 260ms var(--ease);
}
.site-header.is-condensed {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(11, 18, 32, .06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: var(--header-h);
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

/* 品牌标记 —— 只放 logo 图形，**不加任何外框**。

   这里原来是一个品牌蓝圆角方块（底色 + 圆角 + 投影 + 裁切），logo 铺在里面。
   现在这些全部去掉：logo 直接显示，是什么样就是什么样。

   ⚠️ 因此 logo 图**必须是透明底**的。
      如果图里自带底色（例如直接拿应用图标 —— 它自带蓝色圆角底板），
      那个底板本身就是「方框」，**不是 CSS 能去掉的**，要换成抠好的图：
        python tools/make-transparent.py 原图.png -o assets/logo.png --mode plate --crop-words --trim --size 256

   ⚠️ --logo-zoom 只在「图里有留白需要裁掉」时才大于 100%。
      透明底的纯角色图用 100%（默认值）。

   ⚠️ 标记里的「芽」字占位被隐藏了（font-size: 0）——
      因为 logo 是透明底的，不隐藏的话那个字会从透明处透出来。
      文件真的缺失时，main.js 会加 .no-logo 回退成蓝色方块 + 文字，见下方规则。 */
.brand__mark {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0;            /* 隐藏「Y」占位文字 —— 只有 logo 加载失败时才需要它 */
  color: transparent;
}

/* ⚠️ 这里刻意用 <img>，不用 CSS 背景图。
   原因：logo 文件的实际格式可能和扩展名不一致（例如 WebP 内容配了 .png 名字）。
   **CSS 背景图对这种不一致比 <img> 严格得多** —— 同一个文件在地址栏能打开、
   在 <img> 里能显示，当背景图却是空的。
   换成 <img> 后不依赖格式嗅探的宽容度，而且加载失败有原生 error 事件可用。 */
.brand__mark-img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}

/* logo 加载失败时的回退 —— 由 main.js 给 <html> 加 .no-logo。
   没有这段的话，文件缺失时页头会空一块、品牌链接完全看不见。 */
.no-logo .brand__mark {
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  border-radius: 16px;
  overflow: hidden;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(18, 89, 220, .3);
}
.no-logo .brand__mark-img { display: none; }
/* 品牌文字块 —— 页头与页脚都**不再显示**，品牌只靠 logo 图形表达。
   ⚠️ 但必须保留给读屏软件：.brand__mark 是 aria-hidden 的，
      如果把这里改成 display:none，`.brand` 这个链接就没有可访问名称了。
      所以用视觉隐藏（sr-only），不是删除。 */
.brand__text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.brand__name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.brand__desc { font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; }

/* 主导航 */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav__item { margin: 0; }
.nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--brand); background: var(--brand-dim); }
.nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-dim); }

.header__actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.header__actions .btn { padding: 11px 22px; font-size: 15.5px; }

/* 汉堡 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; left: 0; margin: 0; top: -6px; }
.nav-toggle span::after  { content: ""; left: 0; margin: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* 移动抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  padding: var(--s-6) var(--gutter) var(--s-12);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 260ms var(--ease), visibility 260ms;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-8); }
.drawer__close {
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.drawer__list { list-style: none; margin: 0 0 var(--s-8); padding: 0; }
.drawer__list li { margin: 0; border-bottom: 1px solid var(--line); }
.drawer__list a { display: block; padding: var(--s-4) 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.drawer__list a[aria-current="page"] { color: var(--brand); }

/* ---------------------------------------------------------------- 07 页脚 */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 80px);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-10) var(--s-8);
}
.footer__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .1em;
  margin-bottom: var(--s-4);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: var(--s-2); }
.footer__list a { color: var(--ink-2); }
.footer__list a:hover { color: var(--brand); }

.footer__bottom {
  margin-top: var(--s-12);
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.footer__bottom a { color: var(--ink-3); }
.footer__bottom a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- 08 首屏 */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px) clamp(48px, 6vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -240px; right: -180px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-dim), transparent 72%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title { margin-block: var(--s-5) var(--s-5); }
.hero__lead { max-width: 46ch; margin-bottom: var(--s-8); color: var(--ink-2); }
.hero__note {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  font-size: var(--fs-sm);
  color: #8A5E10;
  max-width: 46ch;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.hero__visual { position: relative; }

/* 页面级页头（内页） */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.page-head__inner { position: relative; max-width: 72ch; }
.page-head__title { margin-block: var(--s-4) var(--s-4); }

/* 面包屑 —— 规范写法是 nav > ol > li，末项带 aria-current="page"。
   同时兼容 nav > p 的简写形式，避免任一种写法失去样式。 */
.breadcrumb { margin-bottom: var(--s-5); font-size: var(--fs-sm); color: var(--ink-3); }
.breadcrumb p { margin: 0; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.breadcrumb li + li::before { content: "›"; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

/* ---------------------------------------------------------- 09 手机截图框 */

/* 截图是整页长图（1040 宽），手机在中上部，下方有大片空白。
   用固定宽高比 + overflow 裁掉下方空白，只保留手机。
   若截图实际留白不同，调 --shot-h 即可（单位：图中的像素高度）。 */
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #ECECEF;
  border: 1px solid var(--line);
  aspect-ratio: 1040 / var(--shot-h, 2900);
}
.shot img { display: block; width: 100%; }

/* 多图横排 */
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  align-items: start;
}
.shot-row--4 { grid-template-columns: repeat(4, 1fr); }

/* 截图缺失时的占位（未复制截图前不会显示裂图，也不会撑出超长空白） */
.shot--ph {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  border: 1px dashed var(--line-2);
}
.shot--ph::after {
  content: attr(data-label);
  padding: var(--s-6);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}

/* 吉祥物 —— 把 assets/mascot.png（建议透明底、正方形）放进去即可显示。
   main.js 检测到加载失败时会把图位换成说明文字，不会裂图。 */
.mascot {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}
.mascot img { width: 100%; height: auto; display: block; }
.mascot--ph {
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xl);
  background: var(--paper-2);
}
.mascot--ph::after {
  content: attr(data-label);
  padding: var(--s-6);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}

/* ------------------------------------------------------------ 10 四步闭环 */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s-5);
  padding-bottom: var(--s-8);
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--brand-line);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-1);
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px; top: 60px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-line), transparent);
}
.steps__title { margin-bottom: var(--s-2); }
.steps__body { color: var(--ink-2); }

/* 横向流程条 */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}
.flow > li {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  counter-increment: flow;
  margin: 0;
}
.flow > li::before {
  content: "0" counter(flow);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .1em;
  margin-bottom: var(--s-3);
}
.flow__title { margin-bottom: var(--s-2); }

/* ---------------------------------------------------------- 11 图文分栏 */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split--top { align-items: start; }
.split__title { margin-block: var(--s-4) var(--s-4); }

.card {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.card--link { display: block; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.card--flat { box-shadow: none; }
.card__title { margin-bottom: var(--s-3); }
.card__body { color: var(--ink-2); font-size: var(--fs-body); }

.icon-dot {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--brand-dim);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: var(--s-4);
}
.icon-dot--amber { background: var(--amber-dim); color: #9A6B12; }

/* 勾选列表 */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding-left: var(--s-8);
  margin-bottom: var(--s-3);
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* 反向列表（我们不做什么） */
.nopes { list-style: none; margin: 0; padding: 0; }
.nopes li {
  position: relative;
  padding-left: var(--s-8);
  margin-bottom: var(--s-3);
  color: var(--ink-2);
}
.nopes li::before {
  content: "";
  position: absolute;
  left: 4px; top: .78em;
  width: 12px; height: 2px;
  background: var(--ink-3);
}

/* -------------------------------------------------------- 12 举证引用块 */

/* 直接引用产品界面上的真实句子 —— 比任何营销话术都有力 */
.quote {
  position: relative;
  padding: var(--s-6) var(--s-6) var(--s-6) var(--s-8);
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-1);
}
.quote__text {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.quote__src {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.quote--amber { border-left-color: var(--amber); }

/* 大号主张 */
.claim {
  padding: var(--s-8);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.claim__text {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.6;
  font-weight: 700;
  color: var(--ink);
  max-width: 34ch;
  margin-inline: auto;
}

/* 提示条 */
.note {
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.note--amber { background: var(--amber-dim); border-color: var(--amber-line); color: #8A5E10; }
.note--green { background: var(--leaf-dim); border-color: var(--leaf-line); color: var(--leaf); }

/* ---------------------------------------------------------------- 13 对比表 */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-body);
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.compare th, .compare td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  background: var(--paper-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-3);
}
.compare thead th.us { background: var(--brand-dim); color: var(--brand); }
.compare tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 30%;
}
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.us { background: rgba(18, 89, 220, .05); color: var(--ink); font-weight: 600; }
.compare td.no { color: var(--ink-3); }

/* ------------------------------------------------------------ 14 信任卡片 */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.trust__item {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-1);
}
.trust__item--amber { border-top-color: var(--amber); }
.trust__item--green { border-top-color: var(--leaf); }

/* 隐私要点 */
.privacy-point {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.privacy-point:last-child { border-bottom: 0; }
.privacy-point__no {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-dim);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* -------------------------------------------------------------- 15 手风琴 */

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--fs-h4);
  font-weight: 700;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-dim);
  color: var(--brand);
  font-size: 19px;
  font-weight: 400;
  display: grid;
  place-items: center;
  transition: transform var(--t-fast) var(--ease);
}
.accordion details[open] summary::after { content: "−"; }
.accordion__body { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 72ch; }

/* ---------------------------------------------------------------- 16 表单 */

.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--card);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #A9B3AD; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-dim);
}
.field select { appearance: none; cursor: pointer; }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }

.form__card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

/* ---------------------------------------------------------------- 17 转化条 */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--brand-deep);
  color: rgba(255, 255, 255, .84);
}
.cta-band::before {
  content: "";
  position: absolute;
  bottom: -260px; left: -140px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 89, 220, .5), transparent 72%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: var(--s-10);
  align-items: center;
  padding-block: clamp(48px, 6vw, 80px);
}
.cta-band h2 { color: #fff; }
.cta-band .t-lead { color: rgba(255, 255, 255, .8); }
.cta-band .t-eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-end; }
.cta-band .btn--primary { background: #fff; color: var(--brand-deep); box-shadow: none; }
.cta-band .btn--primary:hover { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-band .btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; box-shadow: none; }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ------------------------------------------- 18 工具类与入场动画 */

.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;
}
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-10 { margin-top: var(--s-10); }
.mt-12 { margin-top: var(--s-12); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }
.mb-10 { margin-bottom: var(--s-10); }
.mb-12 { margin-bottom: var(--s-12); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.text-center { text-align: center; }
.hide { display: none !important; }

/* 区块标题 */
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__title { margin-block: var(--s-4) var(--s-4); }
.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-bar .section-head { margin-bottom: 0; }

/* 滚动入场 —— 仅在 JS 可用时启用，避免无 JS 时内容不可见 */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- 19 响应式 */

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header__actions .btn { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero__visual { max-width: 460px; margin-inline: auto; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--s-8); }
  .split--reverse .split__media { order: 0; }
  .form__row { grid-template-columns: 1fr; }
  .shot-row, .shot-row--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { flex: 1 1 auto; }
  .compare tbody th { width: 36%; }
  .compare th, .compare td { padding: var(--s-3) var(--s-4); font-size: 15.5px; }
}

@media (max-width: 520px) {
  :root {
    --gutter: 18px;
    --fs-display: clamp(28px, 8.6vw, 36px);
    --fs-h1: clamp(24px, 7vw, 30px);
    --fs-h2: clamp(21px, 6vw, 26px);
    --fs-lead: 17px;
    --fs-body: 16px;
  }
  .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .shot-row, .shot-row--4 { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .steps > li { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); }
  .steps > li::before { width: 44px; height: 44px; font-size: 16px; }
  .steps > li:not(:last-child)::after { left: 21px; top: 48px; }
  .quote__text { font-size: 17px; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
}

/* ------------------------------------------- 19b FAQ 搜索

   纯前端过滤。**不发任何请求，也不记录搜了什么** ——
   官网上的一个搜索框没有理由知道家长在担心什么。

   目的是让家长不必一条条点开 accordion 去翻。 */

.faq-search { max-width: 44rem; }

.faq-search__label {
  display: block;
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.faq-search__box { position: relative; display: flex; align-items: center; }

.faq-search__icon {
  position: absolute;
  left: 17px;
  width: 18px; height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}

.faq-search__input {
  width: 100%;
  padding: 15px 48px 15px 47px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.faq-search__input::placeholder { color: var(--ink-3); }
.faq-search__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-dim);
}
/* 去掉浏览器自带的搜索清除按钮 —— 我们有自己的那个 */
.faq-search__input::-webkit-search-cancel-button,
.faq-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.faq-search__clear {
  position: absolute;
  right: 10px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 21px; line-height: 1;
  color: var(--ink-3);
  background: transparent;
  border: 0; border-radius: var(--r-pill);
  cursor: pointer;
}
.faq-search__clear:hover { background: var(--paper-2); color: var(--ink); }

.faq-search__hint {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.68;
  color: var(--ink-3);
}
.faq-search__count {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand);
}
.faq-search__count:empty { display: none; }

/* 命中的关键词高亮 */
.faq-search mark {
  padding: 1px 2px;
  border-radius: 3px;
  background: var(--amber-dim);
  color: inherit;
}

/* 搜索时被过滤掉的条目 */
.faq-hidden { display: none !important; }

/* 一条都没命中时的提示 */
.faq-empty {
  max-width: 44rem;
  margin-top: var(--s-8);
  padding: var(--s-8);
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}

/* ------------------------------------------- 20 打印 / 导出 PDF

   两条路共用这一套：浏览器 Ctrl+P，以及无头 Chrome 的 --print-to-pdf。
   目标不是「能打印」，而是「导出的 PDF 可以独立阅读」——
   它脱离了网站的导航与上下文，所以交互外壳要全部去掉、内容要全部可见。 */

@page {
  size: A4;
  margin: 16mm 14mm 18mm;
}

@media print {
  /* ① 去掉全部交互外壳 —— PDF 里点不了，留着只是噪音 */
  .site-header, .drawer, .skip-link, .cta-band,
  .site-footer, .btn, .btn-row, .nav-toggle, .header__actions { display: none !important; }

  /* FAQ 搜索框不打印。
     ⚠️ 同时必须把被过滤掉的条目**还原成可见** ——
        否则家长搜完直接 Ctrl+P，上一轮的搜索条件会静默地吃掉一部分问答，
        而 PDF 里又没有搜索框，看的人根本不知道少了内容。 */
  .faq-search, .faq-empty { display: none !important; }
  details.faq-hidden { display: block !important; }
  .faq-search mark { background: transparent !important; padding: 0 !important; }

  /* ② 强制显示全部内容。
     .reveal 依赖 IntersectionObserver 加 .is-in；打印时页面没有被滚动过，
     未进入视口的元素仍停在 opacity:0 / translateY —— 不强制的话整段会空白。
     这是导出 PDF 最容易踩、也最不显眼的一个坑。 */
  .reveal, .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js .figure--animate .trace-line { stroke-dashoffset: 0 !important; }
  .js .figure--animate .trace-dot,
  .js .figure--animate .step-pulse { opacity: 1 !important; transform: none !important; }

  /* ③ <details> 折叠内容默认不渲染。
     main.js 的 beforeprint 会直接设 open；这里是 CSS 兜底，
     万一脚本没跑到（例如禁用了 JS），答案也不能丢。 */
  details > *:not(summary) { display: block !important; }

  /* ④ 底色与品牌色要照打，否则矢量图、色块、掌握度四色会全部变白 */
  html, body { background: #FFFFFF !important; }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ⑤ 布局：PDF 不需要 160px 的区块留白，也不该有横向滚动 */
  .section { padding-block: 12mm !important; }
  .section--tight { padding-block: 7mm !important; }
  .section--flush-top { padding-top: 0 !important; }
  .section--flush-bottom { padding-bottom: 0 !important; }
  .container, .container-narrow { max-width: none !important; padding-inline: 0 !important; }
  .split { display: block !important; }
  .split__media { margin-top: 7mm !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 6mm !important; }
  .page-head { padding-block: 6mm 8mm !important; }
  .hero { padding-block: 6mm 8mm !important; }
  [id] { scroll-margin-top: 0 !important; }

  /* ⑥ 分页控制：标题不落单、卡片与图解不跨页 */
  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .card, .figure, .note, .quote, .shot, .metric,
  .steps > li, .flow > li, .accordion, .accordion details, .table-wrap, table, tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* 图解很长时允许跨页，否则会被整体推到下一页留出大片空白 */
  .figure--long { break-inside: auto; page-break-inside: auto; }

  /* ⑦ 链接在纸上点不动，把地址显出来（全站只有相对链接，所以这条基本用不上；
        留在这里是为了将来加了外链时自动生效） */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .85em;
    color: var(--ink-3);
    word-break: break-all;
  }

  /* ⑧ 动效一律不动 —— 打印时任何动画都等于内容缺失 */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------- 18b 问题引导 Q&A

   参考 Brilliant 的排版节奏：先抛出一个具体的问题，再给答案和图解。
   问题用左侧粗描边 + 大字号拉开层级 —— 不靠色块，靠排版。 */

.qa { display: grid; gap: var(--s-16); }
.qa__item { display: grid; gap: var(--s-5); max-width: 62rem; }

.qa__q {
  margin: 0;
  padding-left: var(--s-6);
  border-left: 3px solid var(--brand);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.014em;
  color: var(--ink);
  text-wrap: balance;
}

.qa__a { color: var(--ink-2); }
.qa__a > p { margin-bottom: var(--s-4); }
.qa__a > p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .qa { gap: var(--s-12); }
  .qa__q { padding-left: var(--s-4); font-size: 19px; }
}

/* 问题清单 —— 连续追问，用一条左描边统起来。
   与 .qa 的区别：.qa 是「一问一答」（问题 + 答案 + 图解），
   .qlist 是「一串追问」，没有答案，用来把家长心里的话连着说完。 */
.qlist {
  margin: 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-6);
  border-left: 3px solid var(--brand);
  list-style: none;
}
.qlist > li {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: -.006em;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.qlist > li:last-child { margin-bottom: 0; }
.qlist--quiet > li { font-weight: 400; color: var(--ink-2); }

@media (max-width: 640px) {
  .qlist { padding-left: var(--s-4); }
  .qlist > li { font-size: 17px; }
}

/* ------------------------------------------- 19 矢量图解 Vector figures

   参考 Brilliant 的做法：讲不清的机制交给矢量图，而不是继续堆文字。
   全部内联 SVG —— 零外部依赖、随主题变色、缩放不糊、可被打印。
   动效只用 stroke-dashoffset 与 opacity（合成器友好），并尊重系统减弱动效设置。 */

.figure { margin: 0; }

.figure__frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-1);
}
.figure__frame--plain { background: transparent; border: 0; box-shadow: none; padding: 0; }

.figure svg { width: 100%; height: auto; display: block; overflow: visible; }

.figure__caption {
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  line-height: 1.68;
  letter-spacing: .004em;
  color: var(--ink-3);
}
.figure__caption b { color: var(--ink-2); }

/* SVG 内文字统一走系统字体，不在 SVG 里另写 font-family */
.figure text { font-family: var(--font-sans); }

/* 一排三张插图 —— 和 .shot-row 同构，但装的是矢量示意图而不是截图。
   截图后期才补，先用示意图填上；两者可以共存，也可以整体替换。 */
.figure-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  align-items: start;
}
@media (max-width: 900px) {
  .figure-row { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
}

/* 轨迹线：进入视口时从左往右画出来。
   元素同时带 .reveal，main.js 会加 .is-in —— 不额外增加观察器。 */
.js .figure--animate .trace-line {
  stroke-dasharray: var(--trace-len, 1200);
  stroke-dashoffset: var(--trace-len, 1200);
  transition: stroke-dashoffset 1100ms cubic-bezier(.22, .61, .36, 1);
}
.js .figure--animate.is-in .trace-line { stroke-dashoffset: 0; }

.js .figure--animate .trace-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.5);
  transition: opacity 300ms var(--ease), transform 460ms cubic-bezier(.22, .61, .36, 1);
}
.js .figure--animate.is-in .trace-dot { opacity: 1; transform: scale(1); }

/* 逐点延迟：让轨迹像被"走"出来，而不是一起弹出 */
.js .figure--animate.is-in .trace-dot:nth-of-type(1) { transition-delay: 200ms; }
.js .figure--animate.is-in .trace-dot:nth-of-type(2) { transition-delay: 440ms; }
.js .figure--animate.is-in .trace-dot:nth-of-type(3) { transition-delay: 680ms; }
.js .figure--animate.is-in .trace-dot:nth-of-type(4) { transition-delay: 920ms; }
.js .figure--animate.is-in .trace-dot:nth-of-type(5) { transition-delay: 1160ms; }

/* 环节高亮：诊断图里被点亮的那一步 */
.js .figure--animate .step-pulse {
  opacity: 0;
  transition: opacity 500ms var(--ease) 900ms;
}
.js .figure--animate.is-in .step-pulse { opacity: 1; }

/* 尊重系统减弱动效设置 —— 减弱不等于没有反馈，改为短交叉淡入 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .figure--animate .trace-line { stroke-dashoffset: 0 !important; }
  .js .figure--animate .trace-dot,
  .js .figure--animate .step-pulse { opacity: 1 !important; transform: none !important; }
}

/* 半透明材质在"减少透明度"下改为不透明，否则正文可读性会塌掉 */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 1px 0 var(--line);
  }
  .drawer { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .drawer__scrim { background: rgba(11, 18, 32, .92); }
}

/* 高对比需求：描边加实、阴影去掉（阴影在高对比下只会糊成一团） */
@media (prefers-contrast: more) {
  :root {
    --line: rgba(11, 18, 32, .28);
    --line-2: rgba(11, 18, 32, .45);
    --ink-3: #475467;
  }
  .card, .figure__frame, .shot { box-shadow: none; border-color: var(--line-2); }
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line-2); }
  .legend {
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: var(--line-2) !important;
  }
}

/* 窄屏：图解的内边距收一收，避免图被压得太小 */
@media (max-width: 640px) {
  .figure__frame { padding: var(--s-5); }
}
