/* 页面级布局：首页首屏（design-final 原样落地）、承诺区、流程区、首页新增板块、内页、用户中心、错误页。颜色全部来自 tokens.css。 */

/* =====================================================================
   首页 · 首屏：舞台是 960 × 320 的固定坐标系（标签列 120–256、卡片 300–596、小纸人 600 起），窄屏整体缩放（hero.js）
   ===================================================================== */
.hero { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 0 var(--s-2); }
/* 整体缩放不用 zoom（Chrome 与 Safari 对 zoom 的排版处理不同）：--z 由 hero.js 设置，布局宽度放大 1/z 倍再按 z 缩回，底部用负外边距收掉多出的高度 */
.comp { --z: 1; position: relative; flex: none; width: calc(100% / var(--z)); display: flex; flex-direction: column; align-items: center;
  transform: scale(var(--z)); transform-origin: 50% 0; }
.hero .eyebrow { position: relative; z-index: 2; }

.stage { --zs: 1; position: relative; z-index: 1; width: 960px; height: 320px; margin-top: var(--s-2); flex: none; pointer-events: none;
  transform: scale(var(--zs)); transform-origin: 50% 0; }
/* 插画先透明，hero.js 就绪（停在“乱”的第 0 帧）后淡入，避免先闪一下排好的样子；没有 JS 时直接显示排好的静帧。
   万一脚本没跑起来，3 秒后也会自己淡入（后备动画名不同，才能在就绪时重新计时）。 */
.js .stage { opacity: 0; animation: stage-in-late .4s ease 3s forwards; }
.js[data-ready] .stage { animation: stage-in .45s ease forwards; }
@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stage-in-late { from { opacity: 0; } to { opacity: 1; } }
.leads { position: absolute; z-index: 2; left: 0; top: 0; width: 960px; height: 320px; overflow: visible; }
.leads path { fill: none; stroke-width: 1.25; stroke-linecap: round; }
.leads .dash { stroke: var(--lead-off); stroke-dasharray: 2 3.5; }
.leads .solid { stroke: var(--lead-on); }
.leads .dot { fill: var(--lead-on); stroke: var(--surface); stroke-width: 1; }
.leads .ring { fill: var(--surface); stroke: var(--lead-off); stroke-width: 1.25; }

.stage .tags { position: absolute; left: 0; top: 0; width: 256px; height: 320px; }
/* 首屏的标签：--on（0→1）由 hero.js 推进，颜色在这里由 --on 混出来（没有 JS 时显示点亮后的样子） */
.stage .tag { --on: 1; position: absolute; right: 0; height: var(--tag-h); margin-top: calc(var(--tag-h) / -2); padding: 0 var(--s-1h) 0 calc((var(--tag-h) - var(--ck)) / 2); border-radius: var(--r-pill); display: flex; align-items: center; gap: var(--s-1);
  font-size: var(--fs-1); font-weight: 500; white-space: nowrap; transform-origin: 100% 50%;
  color: var(--ink); background: var(--surface); box-shadow: var(--sh-1); }
.js .stage .tag { --on: 0;
  color: color-mix(in srgb, var(--ink) calc(var(--on) * 100%), var(--faint));
  background: color-mix(in srgb, var(--surface) calc(var(--on) * 100%), var(--tag-bg));
  box-shadow: 0 0 0 1px var(--tag-edge), 1px 3px 8px -4px color-mix(in srgb, var(--contact-1) calc(var(--on) * 230%), transparent);
  transform: scale(var(--pop, 1)); }
.stage .tag .ck { --on: inherit; }
/* 六个标签右对齐、等距 46px（标签 30 + 间隙 16）；落点分别落在排好后的 目录 / 标题 / 一级标题 / 第一段 / 第二段 / 页码 这几行 */
.stage .tag:nth-child(1) { top: 77px; } .stage .tag:nth-child(2) { top: 123px; } .stage .tag:nth-child(3) { top: 169px; }
.stage .tag:nth-child(4) { top: 215px; } .stage .tag:nth-child(5) { top: 261px; } .stage .tag:nth-child(6) { top: 307px; }

.card-box { position: absolute; left: 300px; top: 0; width: 296px; height: 320px; }
/* 卡片和小纸人站在同一个“地面”（舞台 y ≈ 318）上：卡片底下一片柔和的接触影，偏右（光从左上方来），和凳子的投影同一组颜色。
   接触影不跟着卡片动（卡片摆正、换下一份时地面不动），所以不影响动画 */
.card-box .ground { position: absolute; left: 4%; right: -6%; top: calc(100% - 12px); height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--contact-1), var(--contact-2) 62%, var(--contact-3)); }
/* 纸张：右下一道极细的暗边 = 纸的厚度；影子同 --sh-3（偏右下、暖棕） */
.paper { position: absolute; inset: 0; background: var(--surface); border-radius: var(--r-md); box-shadow: 1px 1.5px 0 var(--paper-edge), var(--sh-3);
  transform-origin: 50% 85%; will-change: transform, opacity; overflow: hidden; }
:is(.paper, .sheet) .bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line-soft); }
:is(.paper, .sheet) .file { width: 11px; height: 14px; border-radius: 2px; box-shadow: inset 0 0 0 1.25px var(--doc-icon); position: relative; flex: none; }
:is(.paper, .sheet) .file::after { content: ""; position: absolute; left: 2.5px; right: 2.5px; top: 4.5px; height: 1.25px; background: var(--doc-icon); box-shadow: 0 2.5px 0 var(--doc-icon); }
:is(.paper, .sheet) .fn { font-size: var(--fs-1); color: var(--text); font-weight: 500; letter-spacing: .01em; }
:is(.paper, .sheet) .st { margin-left: auto; font-size: var(--fs-0); font-weight: 500; height: 22px; padding: 0 9px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2); color: var(--doc-meta); }
:is(.paper, .sheet) .st.ok { background: var(--ink); color: var(--on-ink); }
/* 对比纸页的顶栏跟着放大（首屏卡片的顶栏不动） */
.sheet .bar { height: calc(36 * var(--u)); gap: calc(8 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(16 * var(--u)); }
.sheet .fn { font-size: calc(13 * var(--u)); }
.sheet .st { height: calc(22 * var(--u)); padding: 0 calc(9 * var(--u)); font-size: calc(12 * var(--u)); }
.sheet .file { width: calc(11 * var(--u)); height: calc(14 * var(--u)); }
.paper .doc { position: absolute; left: 24px; right: 24px; top: 52px; color: var(--doc-ink); }
.doc .toc { overflow: hidden; height: 0; opacity: 0; }
.doc .toc .r { display: flex; align-items: baseline; font: 400 12px/18px var(--font-doc); color: var(--doc-soft); }
:is(.doc .toc, .sheet .s-toc) .r i { flex: 1; margin: 0 6px; height: 1px; background-image: radial-gradient(circle, var(--doc-dot) .7px, transparent .95px); background-size: 4px 2px; background-repeat: repeat-x; background-position: right bottom; }
.doc .toc .r .n { width: 1.2em; text-align: right; font-variant-numeric: tabular-nums; }
.doc .t { font: 600 17px/24px var(--font-display); text-align: center; margin-bottom: 10px; }
.doc .h { margin: 0 0 4px; line-height: 20px; white-space: nowrap; font: 600 13.5px/20px var(--font-display); }
.doc p { font: 400 12px/1.75 var(--font-doc); color: var(--doc-text); margin-bottom: 10px; text-indent: 2em; letter-spacing: .02em; }
.paper .w { position: absolute; left: 16px; right: 16px; border-radius: 6px; background: var(--wash); opacity: 0; pointer-events: none; }
.paper .pnum { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font: 400 11px/1 var(--font-doc); color: var(--doc-meta); letter-spacing: .2em; opacity: 0; }
/* 没有 JS（或 JS 还没接管）时：直接显示排好的样子 */
html:not(.js) .doc .toc { height: auto; opacity: 1; margin-bottom: 14px; }
html:not(.js) .paper .pnum { opacity: 1; }

/* 小纸人：凳子离卡片留出 ~40px 呼吸间距；凳子的投影和卡片的接触影落在同一条地面上（舞台 y ≈ 318），都偏右下（同一左上光源） */
.mascot { position: absolute; left: 604px; top: 30px; width: var(--m-xl); will-change: transform; transform-origin: 40% 92%; }
.mascot picture, .mascot img { display: block; position: relative; width: 100%; height: auto; }
.mascot .blink { position: absolute; left: 20%; top: 15.3605%; width: 35.9259%; opacity: 0; }   /* 只是眼睛那一块（tools/make_images.py 输出的位置） */
.mascot .contact { position: absolute; left: 20%; right: 18%; bottom: 4%; height: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--contact-1), var(--contact-2) 60%, var(--contact-3)); transform: translateX(10px); }

/* 地上的道具（最多 2 个，静止）：左边地上一叠待排的纸，卡片脚下一把尺子（转平一些，像放在地上）。底下各有一片偏右的接触影 */
.prop { position: absolute; }
.prop img { position: relative; width: 100%; filter: drop-shadow(2px 3px 2px var(--prop-sh)); }
.prop .contact { position: absolute; left: 8%; right: -10%; bottom: -5px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--contact-1), var(--contact-2) 62%, var(--contact-3)); }
#p-stack { left: 20px; top: 240px; width: 96px; }
#p-ruler { left: 306px; top: 300px; width: 112px; transform: rotate(14deg); }
#p-ruler .contact { left: 4%; right: -2%; bottom: 14px; height: 18px; transform: rotate(-14deg); }
/* 宽屏（≥ 1101）：舞台改成 896 × 320，横向拉开——标签列到卡片的距离 44 → 62，卡片到小纸人 8 → 24；
   纸叠放到最左、尺子放到小纸人脚边最右，左右两边的视觉重心各有一样东西压住，整幅画的中心正好在标题的中轴线上。≥ 1280 时 hero.js 再把整幅插画放大（--zs，最大 1.25） */
@media (min-width: 1101px) {
  .stage, .leads { width: 896px; }
  .stage .tags { width: 244px; }
  .card-box { left: 306px; }
  .mascot { left: 626px; }
  #p-stack { left: 0; top: 254px; width: 116px; }
  #p-ruler { left: 776px; top: 294px; }
}
/* ≥ 1280：先按 hero.js 同一套公式把“插画放大后多出来的高度”预留好（放大系数 = 外框宽 × 0.72 ÷ 896，最大 1.25；高度放不下时少放大），
   文字一出现就在最终位置，脚本只做微调，首屏不跳。公式：多出的高 = 320 × (放大系数 − 1) = 0.2571 × 外框宽 − 320，上限 80；
   高度上限 = (可见高 − 112) ÷ 0.94 − 722（722 = 插画不放大时整块内容的高）。改了首屏文字块或舞台尺寸后用 tools/width_check.py 的 CLS 检查复核 */
@media (min-width: 1280px) {
  .js .stage { margin-bottom: max(0px, min(clamp(0px, calc(.2571 * min(100vw - 24px, 1480px) - 320px), 80px), calc(106.38svh - 841px))); }
}

/* 文案：卡片 → 标题 40，标题 → 说明 16，说明 → 按钮 24，按钮 → 时间承诺 16 */
.copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; align-self: stretch; text-align: center; margin-top: var(--s-5); padding: 0 var(--s-3); }
/* 标题用 <br> 分成两行，每行不再自动折行：以前靠“内容宽度”撑开，Safari 里算出的宽度比实际排版窄一点点，每行就被折成两段 */
.copy h1 { font-weight: 600; font-size: var(--fs-9); line-height: var(--lh-display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
/* 副标题按词组换行（每个词组 .ph 不拆开），再用 balance 让两行长短接近 */
.copy .sub { margin-top: var(--s-2); max-width: 27em; font-size: var(--fs-3); line-height: var(--lh-body); color: var(--text); letter-spacing: .01em; text-wrap: balance; }

.copy .cta { margin-top: var(--s-3); display: flex; gap: var(--s-2); }
/* 承诺条（价格 | 售后 | 时效）：按钮下面一条安静的文字，细竖线分隔。价格那一项是首屏的橙色重点：淡橙胶囊 + 16px 墨色 600；其余两项 15px 次级灰 + 线条图标。
   系统字体（价格、小时是动态数字） */
.pledge { margin-top: var(--s-2); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: var(--s-1);
  font-size: var(--fs-2b); line-height: 22px; color: var(--muted); }
.pledge li { display: inline-flex; align-items: center; gap: var(--s-1); white-space: nowrap; }
.pledge li + li::before { content: ""; width: 1px; height: 12px; margin: 0 var(--s-1h); background: var(--line-strong); }
.pledge .ic { color: var(--muted); }
.pledge b { display: inline-flex; align-items: center; height: 30px; padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--accent-soft);
  font-size: var(--fs-3); font-weight: 600; color: var(--ink); }

/* =====================================================================
   首屏点缀（只在 ≥ 1100 宽出现；平板、手机完全不显示）：
   ① 版心线——四角印刷裁切角标 + 导航正下方的标尺刻度（极淡的线，--decor-line / --decor-line-3，纯 CSS 画的）；
   ② 两侧的黏土文具——左下一支铅笔、右下一本便签（和插画里的纸叠、尺子是同一套渲染图）。
   两样都是安静的背景层：aria-hidden，不接收点击，没有动画，“减少动态”下也一样静止。
   版心 = 导航下方那一块（点缀层从 --header-h 开始），所以角标、刻度都不压导航。
   ===================================================================== */
.pagemark, .props { display: none; }
@media (min-width: 1100px) {
  .pagemark { display: block; position: absolute; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 0; pointer-events: none; }
  /* 四角裁切角标：两条 1px 细短线，拐角朝版心的外角 */
  .pm-mark { position: absolute; width: 18px; height: 18px; }
  .pm-mark::before, .pm-mark::after { content: ""; position: absolute; background: var(--decor-line); }
  .pm-mark::before { left: 0; top: 0; width: 100%; height: 1px; }
  .pm-mark::after { left: 0; top: 0; width: 1px; height: 100%; }
  .pm-tl { left: 20px; top: 20px; }
  .pm-tr { right: 20px; top: 20px; }
  .pm-tr::after { left: auto; right: 0; }
  .pm-bl { left: 20px; bottom: 20px; }
  .pm-bl::before { top: auto; bottom: 0; }
  .pm-br { right: 20px; bottom: 20px; }
  .pm-br::before { top: auto; bottom: 0; }
  .pm-br::after { left: auto; right: 0; }
  /* 标尺刻度：每 10px 一个 3px 短刻度，每 50px 一个 7px 长刻度（长的落在短的同一条位置上），两端渐隐。
     刻度颜色比别的点缀线深一档（短刻度 --decor-line、长刻度 --decor-line-3），这样能看出是一把尺子，但仍然很淡。
     左右各一段（各占外框宽的 36%）、左右对称：中间留给居中的“智能排版 | 先报价，后付款”——
     窄一点的桌面上那行字紧贴导航，整条通着画会压到它 */
  .pm-rule { position: absolute; top: 0; width: 36%; height: 7px;
    background-image: repeating-linear-gradient(to right, var(--decor-line) 0 1px, transparent 1px 10px),
      repeating-linear-gradient(to right, var(--decor-line-3) 0 1px, transparent 1px 50px);
    background-size: 100% 3px, 100% 7px; background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent, var(--ink) 25%, var(--ink) 75%, transparent);
    mask-image: linear-gradient(to right, transparent, var(--ink) 25%, var(--ink) 75%, transparent); }
  .pm-rl { left: 0; background-position: left top; }
  .pm-rr { right: 0; background-position: right top; }
  /* 两侧的黏土文具（贴在 .comp 里，和插画、文字块同一个坐标系；.comp 有 transform，z-index: -1 只压到这一层下面，
     任何时候都在标题、插画的下面）：第二十二轮从左上、右上挪到了下半部分——上半部分已经有标签组和小纸人，
     下面标题、按钮两侧反而空着。左下一支铅笔（躺在标题和按钮左侧，渲染图本身斜 -9°，再转 -3°，合起来约 -12°）、右下一本淡杏色便签（按钮和承诺条右侧，斜 6°）；
     最终轮：两件上下错开——原来铅笔和便签的上沿几乎一样高，左右太对称；铅笔往上提 25 / 45px，上沿比便签高约 45px。
     左上、右上两个角只留裁切角标。用 bottom 量（.comp 的底 = 承诺条的底），文字块怎么变高，道具都跟着标题、按钮走。
     左右对称：离外框边 max(固定值, 50% − 560px)——宽屏上往里收到标题两侧那片空白的中间，不缩在边上；
     固定值 50px / 68px = 外框边 ≥ 40px（1100–1279）/ ≥ 64px（≥ 1280）再加上转角多出来的几像素，由 tools/decor_check.py 量。
     用的是和小纸人、纸叠、尺子同一个摄影棚渲出来的图，所以光、材质、投影方向完全一致；
     影子也沿用地上道具那一套：图片本身一道偏右下的投影（.prop img）+ 底下一片偏右的接触影（.contact）。静止，不参与首屏那 7 秒循环 */
  .props { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  .props .pp-pencil { left: max(50px, calc(50% - 560px)); bottom: 135px; width: 160px; transform: rotate(-3deg); }
  .props .pp-pencil .contact { left: 12%; right: 4%; bottom: 0; height: 9px; }
  .props .pp-notes { right: max(50px, calc(50% - 560px)); bottom: 34px; width: 110px; transform: rotate(6deg); }
  .props .pp-notes .contact { left: 6%; right: -6%; bottom: 2px; height: 13px; }
}
@media (min-width: 1280px) {
  .props .pp-pencil { left: max(68px, calc(50% - 560px)); bottom: 165px; width: 192px; }
  .props .pp-notes { right: max(68px, calc(50% - 560px)); bottom: 62px; width: 126px; }
}
/* 页边序号（≥ 1440 才出现，那时页面左边距有 160px）：首页每个区块在左侧页边距里放一个很小的序号 + 区块名，
   顶部和区块小标签对齐，横排右对齐靠着内容列。次级棕 + 低透明度，和标题隔着 24px，不参与读屏 */
.sec-no { display: none; }
@media (min-width: 1440px) {
  .sec-no { display: block; position: absolute; top: 0; right: calc(100% + var(--s-3)); white-space: nowrap; pointer-events: none;
    font-size: var(--fs-1); font-weight: 500; line-height: var(--lh-head); letter-spacing: .1em; color: var(--muted); opacity: .55; }
  .sec-no b { font-weight: 500; color: inherit; }
}

/* =====================================================================
   排版前后对比（_samples.html；首页首屏之后 + 案例页）。纸页是“画”：字号、行高按首屏卡片那套写死的像素。
   桌面：[排版前] → [排版后] —— 标注；排版后那页和标注列用同一套网格行（subgrid），标注、连线、纸页边上的编号点永远在同一行。
   ===================================================================== */
.samples-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line-soft); }
.samples-note { margin-left: auto; font-size: var(--fs-1); color: var(--muted); }
/* 分段按钮（分页标签、排版前 / 排版后）：浅底槽 + 选中的那一格浮起 */
.js .seg { display: inline-flex; gap: var(--s-h); padding: var(--s-h); border-radius: var(--r-pill); background: var(--surface-2); }
.seg-btn { position: relative; height: 36px; padding: 0 var(--s-2); border-radius: var(--r-pill); font-size: var(--fs-2); font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease); }
.seg-btn:hover { color: var(--ink); }
.seg-btn:active { transform: scale(.97); }
.seg-btn[aria-selected="true"], .seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

.samples-stage { padding: var(--s-6) var(--s-5) var(--s-8); background: var(--surface-2); }
.sample + .sample { margin-top: var(--s-8); }
.sample[hidden] { display: none; }
.js [data-samples]:not([data-ready]) .sample ~ .sample { display: none; }   /* 脚本接管前只露第一份，不闪 */
.sample-name { margin-bottom: var(--s-3); font-size: var(--fs-4); text-align: center; }   /* 没有 JS 时每份的名字（有 JS 时由分页标签代替，只给读屏软件） */
.js .sample-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sample-view, .js .sample-view { display: none; }

/* 网格：12 行（10 行内容 + 1 行弹性空白 + 最后一行页码），纸页至少 A4 比例的高度 */
.pair { --gap-a: var(--s-6); --gap-b: var(--s-5); display: grid; justify-content: center; align-items: start;
  grid-template-columns: var(--sheet-w) var(--gap-a) var(--sheet-w) var(--gap-b) max-content; grid-template-rows: repeat(10, auto) 1fr auto; min-height: var(--sheet-h); }
.sheet { position: relative; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-3); color: var(--doc-ink); text-align: left; }
.sheet.is-before { grid-column: 1; grid-row: 1 / -1; align-self: stretch; contain: size; overflow: hidden; }   /* 高度跟着排版后那页 */
.sheet.is-after { grid-column: 3; grid-row: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 0; grid-template-rows: subgrid; counter-reset: pin; }
.sheet.is-after > :not(.pin) { grid-column: 1; margin-inline: calc(24 * var(--u)); }
.sheet.is-after > .bar { margin-inline: 0; }
.sheet.is-after > .bar + * { margin-top: calc(16 * var(--u)); }
.sheet.is-after > .bar + .s-name { margin-top: calc(20 * var(--u)); }
.pair-arrow { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); }

/* 排版后：首屏卡片那套（黑体标题 + 宋体正文、首行缩进 2 字、行距 1.75） */
.sheet .s-toc { margin-bottom: calc(14 * var(--u)); }
.sheet .s-toc .r { display: flex; align-items: baseline; font: 400 calc(12 * var(--u))/calc(18 * var(--u)) var(--font-doc); color: var(--doc-soft); }
.sheet .s-toc .r span:last-child { width: 1.2em; text-align: right; font-variant-numeric: tabular-nums; }
.sheet .s-t { margin-bottom: calc(8 * var(--u)); font: 600 calc(17 * var(--u))/calc(24 * var(--u)) var(--font-display); text-align: center; }
.sheet .s-spaced { letter-spacing: .3em; margin-top: calc(4 * var(--u)); margin-bottom: calc(12 * var(--u)); }
.sheet .s-h { margin: calc(4 * var(--u)) 0 calc(2 * var(--u)); font: 600 calc(13.5 * var(--u))/calc(20 * var(--u)) var(--font-display); white-space: nowrap; }
.sheet p { margin: calc(4 * var(--u)) 0; font: 400 calc(12 * var(--u))/1.75 var(--font-doc); color: var(--doc-text); text-indent: 2em; letter-spacing: .02em; text-align: justify; }
.sheet .s-pnum { padding: calc(12 * var(--u)) 0 calc(14 * var(--u)); font: 400 calc(11 * var(--u))/1 var(--font-doc); color: var(--doc-meta); text-align: center; letter-spacing: .2em; grid-row: -2 / -1; }
.sheet .s-name { font: 600 calc(20 * var(--u))/calc(28 * var(--u)) var(--font-display); text-align: center; letter-spacing: .3em; }
.sheet .s-contact { margin: calc(2 * var(--u)) 0 calc(12 * var(--u)); font: 400 calc(11 * var(--u))/calc(18 * var(--u)) var(--font-doc); color: var(--doc-meta); text-align: center; letter-spacing: .02em; }
.sheet .s-sec { margin: calc(6 * var(--u)) 0; padding-bottom: calc(3 * var(--u)); border-bottom: 1px solid var(--line); font: 600 calc(13 * var(--u))/calc(20 * var(--u)) var(--font-display); letter-spacing: .08em; }
.sheet p.s-line { text-indent: 0; }
.sheet .s-row { display: flex; justify-content: space-between; gap: calc(8 * var(--u)); font: 400 calc(12 * var(--u))/calc(21 * var(--u)) var(--font-doc); color: var(--doc-text); }
.sheet .s-date { color: var(--doc-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet .s-list { margin-bottom: calc(4 * var(--u)); }
.sheet .s-list li { position: relative; padding-left: calc(12 * var(--u)); font: 400 calc(12 * var(--u))/calc(21 * var(--u)) var(--font-doc); color: var(--doc-text); }
.sheet .s-list li::before { content: ""; position: absolute; left: calc(2 * var(--u)); top: calc(9 * var(--u)); width: 4px; height: 4px; border-radius: 50%; background: var(--doc-soft); }
.sheet .s-parties { margin-bottom: calc(4 * var(--u)); font: 400 calc(12 * var(--u))/calc(21 * var(--u)) var(--font-doc); color: var(--doc-text); }
.sheet .bl { display: inline-block; width: 6em; height: 1em; vertical-align: calc(-3 * var(--u)); border-bottom: 1px solid var(--doc-soft); }
.sheet .bl.s { width: 2.5em; }
.sheet .bl.xs { width: 1.5em; }
.sheet .s-sign { display: grid; grid-template-columns: 1fr 1fr; margin-top: calc(8 * var(--u)); font: 400 calc(12 * var(--u))/calc(24 * var(--u)) var(--font-doc); color: var(--doc-text); }
/* 纸页右边沿上的连线端点：和右边的标注同一行（同一个 grid-row），细线从标注一直画到这里（像首屏标签的连线端点）。
   手机上没有连线，端点换成带编号的小圆，和下面的标注编号对应 */
.sheet .pin { grid-column: 2; align-self: center; justify-self: center; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--lead-on);
  box-shadow: 0 0 0 1.5px var(--surface); font: 600 10px/16px var(--font-ui); font-style: normal; text-align: center; counter-increment: pin; }

/* 排版前：常见的乱——宋体 / 黑体 / 楷体混用，编号、缩进、行距、段距、字距各不相同，目录手敲、页码乱放（系统字体，不进子集）。
   纸页和排版后那页等高：内容按“段距忽大忽小”的真实样子铺开，页码压到纸页底部，整页自然填满、不留下半截空白 */
.sheet.is-before { display: flex; flex-direction: column; }
.sheet .m-body { flex: 1; display: flex; flex-direction: column; padding: calc(16 * var(--u)) calc(22 * var(--u)) calc(14 * var(--u)) calc(24 * var(--u)); }
.sheet .m-body .m-g1 { margin-top: calc(10 * var(--u)); }
.sheet .m-body .m-g2 { margin-top: calc(16 * var(--u)); }
.sheet .m-body .m-g3 { margin-top: calc(24 * var(--u)); }
.sheet .m-body .m-toc p { margin: 0; font-size: calc(11.5 * var(--u)); line-height: 1.7; color: var(--doc-soft); text-indent: 0; letter-spacing: 0; }
.sheet .m-body .m-pnum { margin-top: auto; padding-top: calc(12 * var(--u)); font-size: calc(11 * var(--u)); line-height: 1; color: var(--doc-meta); }
.sheet .m-body .m-right { text-align: right; }
.sheet .m-serif { font-family: var(--font-doc-sys); }
.sheet .m-sans { font-family: var(--font-ui); }
.sheet .m-kai { font-family: var(--font-kai); }
.sheet .m-t { margin-bottom: calc(6 * var(--u)); font-size: calc(18 * var(--u)); font-weight: 600; line-height: calc(26 * var(--u)); letter-spacing: .08em; }
.sheet .m-name { font-size: calc(22 * var(--u)); font-weight: 600; line-height: calc(30 * var(--u)); }
.sheet .m-h { margin-top: calc(6 * var(--u)); font-size: calc(14.5 * var(--u)); font-weight: 600; line-height: calc(22 * var(--u)); }
.sheet .m-h.m-kai { font-weight: 400; font-size: calc(13.5 * var(--u)); }
.sheet .m-body p { margin: calc(2 * var(--u)) 0 calc(4 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: 1.5; color: var(--doc-text); text-indent: 0; letter-spacing: 0; text-align: left; }
.sheet .m-body p.m-kai { font-size: calc(12 * var(--u)); }
.sheet .m-body .m-tight { line-height: 1.3; }
.sheet .m-body .m-loose { line-height: 2.1; }
.sheet .m-body .m-ind4 { text-indent: 4em; }
.sheet .m-body .m-ind1 { text-indent: 1em; }
.sheet .m-body .m-in { margin-left: calc(8 * var(--u)); }
.sheet .m-body .m-wide { letter-spacing: .08em; }
.sheet .m-body .m-xs { font-size: calc(11 * var(--u)); }
.sheet .m-body .m-sm { font-size: calc(13 * var(--u)); }
.sheet .m-body .m-lg { font-size: calc(16 * var(--u)); }
.sheet .m-ul { text-decoration: underline; text-underline-offset: 3px; }
.sheet .m-spaced { letter-spacing: .02em; }

/* 标注：编号圆点（墨色实心 + 白字，全站同一尺寸 --dot）+ 一句话；细线从编号圆点左边画到纸页边上的端点 */
.marks { grid-column: 5; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; counter-reset: mk; }
.marks li { position: relative; align-self: center; justify-self: start; display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--dot);
  font-size: var(--fs-1); font-weight: 500; color: var(--ink); white-space: nowrap; counter-increment: mk; }
.marks li::after { content: counter(mk); order: -1; flex: none; width: var(--dot); height: var(--dot); border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink); font-size: var(--fs-0); font-weight: 600; line-height: 1; }
.marks li::before { content: ""; position: absolute; right: 100%; top: 50%; width: var(--gap-b); border-top: 1px solid var(--lead-on); }
.at-2 { grid-row: 2; } .at-3 { grid-row: 3; } .at-4 { grid-row: 4; } .at-5 { grid-row: 5; } .at-6 { grid-row: 6; } .at-7 { grid-row: 7; }
.at-8 { grid-row: 8; } .at-9 { grid-row: 9; } .at-10 { grid-row: 10; } .at-12 { grid-row: 12; }

/* =====================================================================
   首页 · 承诺区 / 流程区（design-final 原样）
   ===================================================================== */
.promise, .route { padding-top: var(--s-12); }
/* 隔区换底（最终轮）：排版前后对比、价格这两个区块各铺一条通栏的浅色带（--surface-2，比页面底亮一档），带子里上下留白一样（96 / 手机 64）；
   带子和上一个区块之间留 64 / 48。用一圈很大的同色阴影铺满整行、clip-path 只裁上下——不加额外的标签，也不会出现横向滚动条 */
.band { margin-top: var(--s-8); padding-block: var(--s-12); background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); }

.path { position: relative; margin-top: var(--s-8); height: 248px; }
.path-svg { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 200px; overflow: visible; }
.path-svg .orbit { fill: none; stroke: var(--orbit); stroke-width: 1; }
.path-svg .orbit.dash { stroke-dasharray: 3 5; }
.path-svg .rail { fill: none; stroke: var(--rail); stroke-width: 1.25; stroke-dasharray: 2 4; }
.path-svg .run { fill: none; stroke: var(--run); stroke-width: 1.5; stroke-linecap: round; }
.path-svg .node { fill: var(--surface); stroke: var(--node-line); stroke-width: 1.25; }
.path-svg .node.on { stroke: var(--ink); }
.path-svg .end { fill: var(--path-end); }
.steps { position: absolute; inset: 0; pointer-events: none; }
.steps li { position: absolute; top: 0; height: 100%; padding-top: 176px; transform: translateX(-50%); width: min(224px, 20% + 72px); text-align: center; display: flex; flex-direction: column; align-items: center; }
/* 没有 JS 时：五步等分横排（JS 接管后按路径摆位） */
html:not(.js) .steps { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
html:not(.js) .steps li { position: relative; transform: none; width: auto; padding-top: 72px; }
.steps .no { position: absolute; left: 50%; top: var(--y, 100px); width: var(--dot); height: var(--dot); margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 600 var(--fs-0)/1 var(--font-ui); font-style: normal; color: var(--muted); transition: color .3s, background-color .3s; }
html:not(.js) .steps .no { top: 30px; background: var(--ink); color: var(--on-ink); }
.steps li.on .no { color: var(--on-ink); background: var(--ink); }
.steps b { font-size: var(--fs-4); font-weight: 600; color: var(--ink); line-height: 1.3; }
.steps span { margin-top: 6px; font-size: var(--fs-2); line-height: 1.6; color: var(--muted); text-wrap: balance; }
.steps li.hub .no { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--surface) !important; box-shadow: var(--sh-2); color: transparent; }
.steps li.hub .no .logo { width: 32px; height: 32px; }
.steps li.hub .no em { position: absolute; right: -4px; top: -4px; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.25px var(--node-line);
  font: 600 var(--fs-0)/var(--dot) var(--font-ui); font-style: normal; color: var(--muted); text-align: center; transition: color .3s, background-color .3s, box-shadow .3s; }
.steps li.hub.on .no em { background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 2px var(--surface); }

/* =====================================================================
   首页 · 新增板块（同一套语言）：服务范围、价格入口、常见问题、结尾行动区
   ===================================================================== */
/* 区块标题：全首页统一一种——小标签 + 两行大标题（40px / 600）+ 正下方一句说明，三样都居中（说明最宽约 36 个字）。
   （最终轮：流程区原来是唯一一个“标题在左、说明在右”的区块，改成和其他区块一样居中；下面的路径图不动） */
.sec-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: var(--s-5); }
.sec-head .kicker { margin-bottom: var(--s-1h); }
.sec-head h2 { font-size: var(--fs-7); font-weight: 600; line-height: var(--lh-display); letter-spacing: -0.03em; }
.sec-head .lede { margin: var(--s-2) auto 0; max-width: 36em; font-size: var(--fs-3); line-height: var(--lh-body); color: var(--text); text-wrap: balance; }
.route .sec-head { margin-bottom: 0; }


.kinds { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }
.kinds li { padding: var(--s-3) var(--s-5); background: var(--surface-2); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: var(--s-h) var(--s-2); }
.kinds li > b, .kinds li > span { grid-column: 2; }
/* 最终轮：9 格的悬停 / 按下——底色往交互色挪一档（--press），180ms；手机上点一下有按下反馈（:active）。
   只在能悬停的设备上给 :hover，手机点过之后不会一直停在悬停色 */
.kinds li { transition: background-color var(--dur-ui) var(--ease); }
.kinds li:active { background: var(--press); }
@media (hover: hover) { .kinds li:hover { background: var(--press); } }
.kinds .kd { grid-row: 1 / span 2; color: var(--ink); }   /* 线条图标 24px（_macros.html icon('doc-…', size=24)） */
.kinds li:nth-child(3n) { border-right: 0; }
.kinds b { font-size: var(--fs-4); font-weight: 600; color: var(--ink); }
.kinds span { font-size: var(--fs-2); color: var(--muted); line-height: var(--lh-body); }
.kinds span .ph { font-size: inherit; color: inherit; }
.kinds li > span { text-wrap: balance; }

.scope-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-5); }
.scope-foot .tags-row { flex: 1; }
.scope-foot .board-note { flex: none; }

.price-board { display: grid; grid-template-columns: 1fr 1.4fr; }
.price-side { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.price-side .btn-row { margin-top: auto; padding-top: var(--s-2); }
.rules { display: grid; gap: var(--s-1); }
.rules li { display: flex; align-items: flex-start; gap: var(--s-1); font-size: var(--fs-2b); color: var(--text); }
.rules .ck { margin-top: calc((1.75em - var(--ck)) / 2); }
.price-main { background: var(--surface-2); border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.price-main .tiers { flex: 1; grid-template-columns: repeat(2, 1fr); }
.price-main .tier:nth-child(2n) { border-right: 0; }
.price-main .tier { border-top: 0; border-bottom: 1px solid var(--line-soft); }
.price-from { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-1h) var(--s-2) var(--s-1h) var(--s-3); border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--ink); text-decoration: none;
  transition: background-color var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease); }   /* 价格区的橙色重点：淡橙胶囊 + 墨色字（和首屏价格胶囊同一种） */
.price-from b { font-size: var(--fs-5); font-weight: 600; letter-spacing: -0.01em; }
.price-from .ic { color: var(--ink); transition: transform var(--dur-ui) var(--ease); }
.price-from:hover .ic { transform: translateX(2px); }
.price-from:active { transform: scale(.98); }
.price-quote { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--s-1); padding: var(--s-4) var(--s-5); }
.price-quote b { font-size: var(--fs-6); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.price-main .board-note { padding: var(--s-2) var(--s-5); }


/* 结尾行动区：居中构图——小纸人（160 档）坐在标题上方，下面依次是小标签、两行标题、一句说明、按钮 */
.finale { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s-5) var(--s-8) var(--s-8);
  background: var(--page); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--frame-line); overflow: hidden; }
.finale-art { width: calc(var(--m-lg) * var(--k, 1)); position: relative; margin-bottom: var(--s-2); }
.finale-art .contact { position: absolute; left: 20%; right: 18%; bottom: 4%; height: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--contact-1), var(--contact-2) 60%, var(--contact-3)); transform: translateX(8px); }
.finale-art picture { position: relative; }
.finale .kicker { margin-bottom: var(--s-1h); }
.finale h2 { font-size: var(--fs-7); line-height: var(--lh-display); letter-spacing: -0.03em; }
.finale p.fd-body { margin-top: var(--s-2); color: var(--text); }
.finale .btn-row { margin-top: var(--s-4); }

/* =====================================================================
   内页
   ===================================================================== */
.page { padding-top: var(--s-6); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-3); align-items: start; }
.page-grid > aside { display: grid; gap: var(--s-3); }
.page-grid > div { display: grid; gap: var(--s-3); min-width: 0; }
.prose-grid { display: grid; grid-template-columns: 220px minmax(0, calc(36em + 2 * var(--s-5))); justify-content: center; gap: var(--s-3); align-items: start; }
.prose-grid .toc-board { position: sticky; top: var(--s-3); }

/* 价格页 */
.scope-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-1h) var(--s-3); }
.scope-list li { display: flex; align-items: flex-start; gap: var(--s-1); font-size: var(--fs-2b); color: var(--text); }
.scope-list .ck { margin-top: calc((1.75em - var(--ck)) / 2); }
.scope-list-1 { grid-template-columns: 1fr; }

/* 流程页：竖排大步骤 */
.flow-list { display: grid; gap: 0; counter-reset: fl; }
.flow-list li { position: relative; display: grid; grid-template-columns: var(--dot) 1fr; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line-soft); counter-increment: fl; }
.flow-list li:first-child { border-top: 0; }
.flow-list .no { width: var(--dot); height: var(--dot); margin-top: var(--s-h); border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: var(--fs-0); font-style: normal; line-height: 1; }
.flow-list .no::before { content: counter(fl); }
.flow-list b { display: block; font-size: var(--fs-4); color: var(--ink); }
.flow-list p { margin-top: var(--s-h); font-size: var(--fs-2b); color: var(--text); }

/* 联系页 */
.contact-qr { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); }

/* 认证页 */
.auth { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.auth-side { position: relative; padding: var(--s-4) var(--s-5); background: var(--surface-2); border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-3); }   /* 黏土小纸人只放首屏、对比、结尾、空状态等处，登录 / 注册页不放 */
.auth-side .tags-row { flex-direction: column; align-items: flex-start; }
.auth form { padding: var(--s-4) var(--s-5); }
.auth-alt { font-size: var(--fs-2); color: var(--muted); margin-top: var(--s-2); }

/* 下单向导 */
.wizard-head { padding: var(--s-4) var(--s-5) var(--s-3); border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.wizard-nav { --n: 4; }
.wizard-step { padding: var(--s-4) var(--s-5); }
.wizard-errors { padding: var(--s-4) var(--s-5) 0; }
.wizard-errors .form-alert { margin-bottom: 0; }
.js .wizard-step { display: none; }
.js .wizard-step.is-current { display: block; }
html:not(.js) .wizard-step + .wizard-step { border-top: 1px solid var(--line-soft); }
.wizard-actions { display: flex; justify-content: space-between; gap: var(--s-1); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line-soft); }
html:not(.js) .wizard-actions [data-next], html:not(.js) .wizard-actions [data-prev] { display: none; }
.estimate-box { display: grid; gap: var(--s-1); }

/* 订单详情 */
.order-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-1) var(--s-2); margin-top: var(--s-2); }
.eta { display: inline-flex; align-items: center; gap: var(--s-h); min-height: 26px; font-size: var(--fs-2); color: var(--ink); font-weight: 500; }   /* 预计交付：时钟图标 + 一行字（不再套胶囊，徽章只留三种） */
.eta .ic { color: var(--muted); }
.eta-muted { color: var(--muted); font-weight: 400; }
.progress-board .board-body { padding-top: var(--s-4); padding-bottom: var(--s-4); }
.progress-note { margin-top: var(--s-3); text-align: center; font-size: var(--fs-2); color: var(--muted); }
.price-kv { display: grid; grid-template-columns: repeat(3, 1fr); }
.price-kv div { padding: var(--s-3) var(--s-5); border-right: 1px solid var(--line-soft); }
.price-kv div:last-child { border-right: 0; }
.price-kv dt { font-size: var(--fs-1); color: var(--muted); }
.price-kv dd { margin-top: var(--s-h); font-size: var(--fs-4); font-weight: 600; color: var(--ink); }
.price-kv dd.is-big { font-size: var(--fs-6); letter-spacing: -0.02em; }
.pay-amount { font-size: var(--fs-6); color: var(--ink); }
.success { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-5); }
.success .mini-mascot { width: calc(var(--m-sm) * var(--k, 1)); }
.track-art { width: calc(var(--m-sm) * var(--k, 1)); margin: 0 auto var(--s-2); }   /* 查单页：小纸人（80 档）在表单上方 */
.success h2 { font-size: var(--fs-5); }
.success p { margin-top: var(--s-h); font-size: var(--fs-2); color: var(--text); }

/* 错误页 */
.error-page { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s-4) var(--s-3) var(--s-8); }
.error-art { width: calc(var(--m-lg) * var(--k, 1)); position: relative; }
.error-art .contact { position: absolute; left: 20%; right: 18%; bottom: 4%; height: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--contact-1), var(--contact-2) 60%, var(--contact-3)); transform: translateX(8px); }
.error-art picture { position: relative; }
.error-page h1 { margin-top: var(--s-3); font-size: var(--fs-7); letter-spacing: -0.03em; }
.error-page p { margin-top: var(--s-2); max-width: 460px; color: var(--text); text-wrap: balance; }   /* 两行长短接近，不让“首页。”单独掉到下一行（最终轮） */
.error-page .btn-row { margin-top: var(--s-4); }

/* =====================================================================
   断点
   ===================================================================== */
/* ---------- 首屏不跳：平板和手机上插画要缩小（hero.js 算缩放、并用负的下外边距收掉多出的占位）。
   在脚本跑起来之前，先用 CSS 按同一套公式把占位高度预留好，文字一出现就在最终位置，脚本只做微调。
   公式：插画占位高 = max(最小缩放 × 原高, min(原高, 按宽度能放下的高, 可见高 − 外框/导航/留白 − 文字块高))；
   --hero-t 是文字块（胶囊 + 标题 + 副标题 + 按钮 + 承诺条）的高度，改了首屏文案后用 tools/audit_ui.py 的首屏检查复核。 ---------- */
@media (min-width: 641px) and (max-width: 1100px) {
  .js .stage { --hero-t: 394px; margin-bottom: max(-160px, min(0px, (100% - 48px) / 3 - 320px, 100svh - 112px - var(--hero-t) - 320px)); }
}
@media (max-width: 1080px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 860px) {
  .price-board, .auth { grid-template-columns: 1fr; }
  .price-main { border-left: 0; border-top: 1px solid var(--line-soft); }
  .auth-side { border-left: 0; border-top: 1px solid var(--line-soft); }
  .page-grid, .prose-grid { grid-template-columns: 1fr; }
  .prose-grid .toc-board { position: static; }
  .kinds { grid-template-columns: 1fr 1fr; }
  .kinds li:nth-child(n) { border-right: 1px solid var(--line-soft); }
  .kinds li:nth-child(2n) { border-right: 0; }
  .kinds li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }   /* 两列时第 9 格占满一行，不留空格子 */
  .finale { padding: var(--s-5) var(--s-5) var(--s-6); }
}

/* ---------- 排版前后对比：平板只放一页（“排版前 / 排版后”在同一位置淡入淡出），标注仍在右边；手机标注排到纸页下面 ---------- */
@media (max-width: 999px) {
  .js .sample-view { display: flex; width: max-content; margin: 0 auto var(--s-4); }
  .pair { grid-template-columns: var(--sheet-w) var(--gap-b) max-content; }
  .pair-arrow { display: none; }
  .sheet.is-before, .sheet.is-after { grid-column: 1; }
  .marks { grid-column: 3; }
  .js .sheet { transition: opacity var(--dur-ui) var(--ease), visibility var(--dur-ui); }
  .js [data-show="after"] .sheet.is-before, .js [data-show="before"] .sheet.is-after { opacity: 0; visibility: hidden; }
  html:not(.js) .sheet.is-before { display: none; }   /* 没有 JS：只显示排版后 */
}

/* ---------- 手机：专门的排法（不是把桌面缩小） ---------- */
@media (max-width: 640px) {
  .frame-hero { min-height: 0; }
  .hero { align-items: flex-start; padding: var(--s-1) 0 var(--s-4); }
  .hero .eyebrow { --eb-h: 24px; }

  /* 手机舞台：358 × 276。卡片缩到 0.8 倍居左、去掉目录三行，小纸人坐在卡片右下角前面（有意叠压），六个标签改成卡片下方两行小标签 */
  .stage { width: 358px; height: 276px; margin-top: var(--s-2); }
  .leads { display: none; }
  .card-box { left: 8px; top: 0; height: 264px; transform: scale(.8); transform-origin: 0 0; }
  .paper .doc { right: 48px; }
  .doc .toc, html:not(.js) .doc .toc { display: none; }
  .stage .tags { left: 0; top: auto; bottom: 0; width: 358px; height: auto; display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 6px; }
  .stage .tag, .stage .tag:nth-child(n) { position: relative; top: auto; right: auto; margin: 0; height: 24px; padding: 0 9px 0 5px; gap: 5px; font-size: var(--fs-0); }
  .js .stage .tag { background: color-mix(in srgb, var(--surface) calc(var(--on) * 100%), var(--tag-bg-m)); }
  .stage .tag .ck { width: 14px; height: 14px; }
  .stage .tag[data-id="toc"] { display: none; }   /* 手机上目录三行已隐藏，这个标签也不显示 */
  .mascot { left: 206px; top: 36px; width: var(--m-lg); }
  .js .stage { --hero-t: 348px; --hero-fixed: 108px; --stage-min: -110.4px;
    margin-bottom: max(var(--stage-min), min(0px, (100% - 16px) * .77095 - 276px, 100svh - var(--hero-fixed) - var(--hero-t) - 276px)); }

  .stage .prop { display: none; }   /* 手机：卡片和小纸人叠在一起、标签排在下面，地上没有地方放道具 */

  .copy { margin-top: var(--s-3); padding: 0 var(--s-2); }
  .copy h1 { font-size: var(--fs-6b); line-height: var(--lh-display); letter-spacing: -0.025em; }
  .copy .sub { margin-top: var(--s-2); font-size: var(--fs-2b); line-height: var(--lh-body); }
  .copy .cta { margin-top: var(--s-3); width: 100%; max-width: 358px; gap: var(--s-1); }
  .copy .cta .btn-ghost { flex: none; padding: 0 var(--s-2); }
  .copy .cta .btn-primary { flex: 1; padding: 0 var(--s-2); }
  /* 手机：承诺条分两行——第一行价格，第二行售后 | 时效（第二行开头不画竖线） */
  .pledge { margin-top: var(--s-2); font-size: var(--fs-2); }
  .pledge .pl-price { flex-basis: 100%; justify-content: center; }   /* 价格胶囊单独一行、居中；第二行开头不画竖线 */
  .pledge .pl-price + li::before { display: none; }

  .promise, .route { padding-top: var(--s-8); }
  .band { margin-top: var(--s-6); padding-block: var(--s-8); }
  .sec-head h2 { font-size: var(--fs-6); }
  .sec-head .lede { font-size: var(--fs-2b); }
  .sec-head { gap: var(--s-2); margin-bottom: var(--s-3); }
  .path { margin-top: var(--s-4); height: auto; }
  .path-svg { width: 56px; height: 100%; }
  .steps, html:not(.js) .steps { position: relative; inset: auto; display: flex; flex-direction: column; gap: var(--s-4); padding: 4px 0 0; }
  .steps li, html:not(.js) .steps li { position: relative; left: auto !important; top: auto !important; height: auto; padding-top: 0; transform: none; width: auto; min-height: 44px; padding-left: 72px; text-align: left; align-items: flex-start; }
  .steps .no, html:not(.js) .steps .no { left: 28px; top: 12px; }
  .steps li.hub { padding-top: 8px; min-height: 56px; }
  .steps li.hub .no { top: 26px; width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .steps li.hub .no .logo { width: 24px; height: 24px; }
  .steps li.hub .no em { right: -8px; top: -8px; }
  .steps b { font-size: var(--fs-3); }
  .steps span { margin-top: 2px; font-size: var(--fs-1); }

  .kinds li { padding: var(--s-2) var(--s-3); }
  .kinds b { font-size: var(--fs-3); }
  .kinds span { font-size: var(--fs-1); }
  .scope-foot { padding: var(--s-2) var(--s-3); }
  .price-side { padding: var(--s-3); }
  .price-quote, .price-main .board-note { padding-left: var(--s-3); padding-right: var(--s-3); }
  .finale { padding: var(--s-4) var(--s-3) var(--s-5); }
  .finale h2 { font-size: var(--fs-6); }
  .finale-art { width: calc(var(--m-md) * var(--k, 1)); margin-bottom: var(--s-1); }
  .finale .btn-row { width: 100%; }
  .finale .btn-row .btn { padding: 0 var(--s-2); }   /* 两个按钮一行放得下 */
  .kinds li { column-gap: var(--s-1h); }

  .samples-bar { padding: var(--s-2) var(--s-3); }
  .samples-note { margin-left: 0; }
  .samples-stage { padding: var(--s-3) var(--s-1h) var(--s-5); }
  .pair { grid-template-columns: minmax(0, var(--sheet-w)); grid-template-rows: auto auto; min-height: 0; }
  .sheet.is-before, .sheet.is-after { grid-row: 1; }
  .sheet.is-after { grid-template-rows: repeat(10, auto) 1fr auto; min-height: var(--sheet-h); }
  .marks { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1); margin-top: var(--s-4); }
  .marks li::before { display: none; }
  .sheet.is-after > :not(.pin):not(.bar) { margin-inline: 24px 34px; }   /* 右边多留 10px 给编号圆点，字不压在圆点下面 */
  .sheet .pin { width: var(--dot); height: var(--dot); background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 2px var(--surface); font: 600 var(--fs-0)/var(--dot) var(--font-ui); translate: -16px 0; }   /* 编号圆点收进纸页右边距里，不压在纸边上 */
  .sheet .pin::before { content: counter(pin); }

  .page { padding-top: var(--s-4); }
  .scope-list { grid-template-columns: 1fr; }
  .flow-list li { padding: var(--s-2) var(--s-3); }
  .flow-list b { font-size: var(--fs-3); }
  .flow-list p { font-size: var(--fs-2b); }
  .auth form, .auth-side { padding: var(--s-3); }
  .wizard-head { padding: var(--s-3); }
  .wizard-step { padding: var(--s-3); }
  .wizard-errors { padding: var(--s-3) var(--s-3) 0; }
  .price-kv { grid-template-columns: 1fr; }
  .price-kv div { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: var(--s-2) var(--s-3); }
  .price-kv div:last-child { border-bottom: 0; }
  .success { grid-template-columns: var(--m-sm) 1fr; padding: var(--s-2) var(--s-3); gap: var(--s-2); }
  .success p { font-size: var(--fs-2b); }
  .error-page h1 { font-size: var(--fs-6); }
  .wizard-nav.route-line { grid-template-columns: repeat(4, 1fr); }
  .wizard-nav.route-line li { flex-direction: column; text-align: center; gap: 0; padding: 0 var(--s-h); min-height: 0; }
  .wizard-nav.route-line li::before { display: block; top: calc(var(--dot) / 2); left: -50%; right: 50%; bottom: auto; height: 0; width: auto; border-left: 0; border-top: 1.25px dashed var(--rail); }
  .wizard-nav.route-line li.is-done::before, .wizard-nav.route-line li.is-current::before { border-top: 1.5px solid var(--run); }
  .wizard-nav.route-line li:first-child::before { display: none; }
  .wizard-nav.route-line li::after { display: none; }
  .wizard-nav.route-line b { margin-top: var(--s-1); font-size: var(--fs-1); }
}

/* ---------- 矮屏手机（浏览器工具栏占掉高度后可见高 ≤ 720）：收紧首屏间距，标题和按钮的字不缩 ---------- */
@media (max-width: 640px) and (max-height: 720px) {
  .js .stage { --hero-t: 310px; --hero-fixed: 84px; }
  .frame-hero .nav { height: 52px; }
  .hero { padding: 0 0 var(--s-2); }
  .hero .eyebrow { --eb-h: 24px; }
  .stage { margin-top: var(--s-1); }
  .copy { margin-top: var(--s-2); }
  .copy .sub { margin-top: var(--s-1); }
  .copy .cta { margin-top: var(--s-2); }
  .pledge { margin-top: var(--s-1h); }
}
/* 极矮屏手机（可见高 ≤ 600，如 375×553）：顶部小胶囊让位（站点名在导航里），保证标题、主按钮、承诺条都在首屏 */
@media (max-width: 640px) and (max-height: 600px) {
  .js .stage { --hero-t: 274px; --stage-min: -138px; }
  .hero .eyebrow { display: none; }
  .stage { margin-top: 0; }
}

/* 2026-11-16：首页参考稿，文档类型与核对清单。 */

.kind-chips { margin-top: var(--s-2); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 36em; }
.kind-chips a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface, #fff); color: var(--text); font-size: var(--fs-2); text-decoration: none; }
.kind-chips a:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 640px) {
  .pledge { column-gap: 18px; }
  .pledge li + li::before { display: none; }
}

/* 两行说明保留参考稿的行宽；窄屏按自然阅读顺序重排。 */
.is-home .copy .sub { max-width: 38em; }
.is-home .copy .sub b { color: var(--ink); }
@media (max-width: 640px) {
  .kind-chips { gap: 6px; max-width: 340px; }
  .kind-chips a { min-height: 36px; padding: 0 11px; }
  .is-home .pledge { gap: 8px 16px; }
}

/* 按页计价：三行示例，避免沿用旧四档价格的空格。 */
.page-price-examples { display: flex; flex-direction: column; }
.page-price-examples .tier { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; border-right: 0; padding: 28px 32px; }
.page-price-examples .tier-name, .page-price-examples .tier-range, .page-price-examples .tier-price { margin: 0; }
.page-price-examples .tier-price { min-width: 3em; text-align: right; }
@media (max-width: 640px) {
 .page-price-examples .tier { padding: 20px 16px; gap: 12px; }
 .page-price-examples .tier-price { font-size: 26px; }
}
