/* 首屏：保持批准稿的间距、顺序和设备坐标。 */
.hero {
  min-height: calc(100vh - var(--nav-h) - 28px);
  min-height: calc(100svh - var(--nav-h) - 28px);
  display: grid;
  align-content: center;
  padding-block: 28px 24px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
.hero-copy { min-width: 0; padding-inline: max(24px, var(--gutter) / 2); text-align: center; }
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--size-h1);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--text);
}
.hero-title-dot {
  display: inline-block;
  margin-inline: .22em;
  color: var(--text-faint);
  font-weight: var(--weight-bold);
}
.hero-lede {
  max-width: 820px;
  margin: 14px auto 0;
  font-size: var(--size-lede);
  line-height: 1.65;
  color: var(--text-muted);
}
.hero-lede strong { color: var(--text); font-weight: var(--weight-semibold); }
.hero .cta-row { justify-content: center; margin-top: 26px; }
.hero .btn { line-height: 1.6; padding-block: 0; }
.hero .btn-solid { background: var(--accent); color: var(--on-accent); }
.hero .btn-solid:hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.hero .btn-line { background: var(--bg); color: var(--accent-dark); }
.hero .btn-line:hover { background: var(--accent-soft); color: var(--accent-dark); }
.os-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.os-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--size-os);
  text-decoration: none;
  transition: color var(--motion-short), border-color var(--motion-short);
}
.os-row a:hover { color: var(--accent); border-color: var(--accent); }
.os-row svg { width: 14px; height: 14px; }
.factband { margin-top: 24px; border-block: 1px solid var(--border); }
.factband-in {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 11px 24px;
  color: var(--text-muted);
  font: var(--size-fact)/18px var(--font-mono);
  letter-spacing: .01em;
  text-align: center;
}
.factband-sep { flex: 0 0 1px; height: 12px; background: var(--device-stroke); color: var(--text); }

.stage-wrap {
  --s: 1;
  container-type: inline-size;
  min-width: 0;
  margin-top: 30px;
}
.stage-fit { position: relative; height: calc(var(--stage-h) * var(--s)); }
.stage {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--stage-w);
  height: var(--stage-h);
  margin-left: calc(var(--stage-w) / -2);
  transform: scale(var(--s));
  transform-origin: 50% 0;
}
.lid {
  position: absolute;
  z-index: 1;
  left: 220px;
  top: 0;
  width: 680px;
  height: 404px;
  padding: 11px;
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--device-stroke);
  border-radius: var(--r-md) var(--r-md) var(--r-zero) var(--r-zero);
  box-shadow: var(--shadow-device);
}
.lid-cam {
  position: absolute;
  top: 3.5px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: var(--r-round);
  background: var(--device-stroke);
  color: var(--text);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: var(--r-xs);
  background: linear-gradient(180deg, var(--screen-top), var(--screen-bottom));
  color: var(--text);
  overflow: hidden;
}
.laptop-base {
  position: absolute;
  z-index: 2;
  left: 180px;
  top: 403px;
  width: 760px;
  height: 15px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  color: var(--text);
  border: 1.5px solid var(--device-stroke);
  border-radius: var(--r-laptop-base);
  box-shadow: var(--shadow-base);
}
.laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 5px;
  margin-left: -60px;
  border-radius: var(--r-notch);
  background: var(--device-notch);
  color: var(--text);
}
.cwin {
  position: absolute;
  left: 46px;
  top: 30px;
  width: 563px;
  height: 320px;
  display: grid;
  grid-template-rows: 30px 1fr;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-win);
  overflow: hidden;
}
.cwin-bar, .pane-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 12px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.cwin-bar i, .pane-bar i {
  flex: 0 0 9px;
  height: 9px;
  border-radius: var(--r-round);
  background: var(--win-dot);
  color: var(--text);
}
.cwin-title {
  position: absolute;
  inset-inline: 0;
  text-align: center;
  font-size: var(--size-ui-11);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.cwin-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 0; }
.cside {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 12px 8px;
  list-style: none;
  background: var(--bg-panel);
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.cside li {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: var(--size-ui-12);
}
.cside .is-on { background: var(--accent-soft); color: var(--accent-dark); font-weight: var(--weight-semibold); }
.cmain { display: flex; flex-direction: column; padding: 16px 18px 0; min-width: 0; }
.cmain-head { display: flex; align-items: center; justify-content: space-between; height: 28px; }
.cmain-title { font: var(--weight-brand) var(--size-small)/1.6 var(--font-display); }
.seg {
  display: inline-flex;
  height: 28px;
  padding: 2px;
  border-radius: var(--r-seg);
  background: var(--bg-panel-2);
  color: var(--text-muted);
}
.seg span {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--r-seg-item);
  font-size: var(--size-ui-115);
}
.seg .is-on { background: var(--bg); color: var(--accent-dark); font-weight: var(--weight-semibold); box-shadow: var(--shadow-chip); }
.rules-label { height: 16px; margin-top: 14px; font-size: var(--size-ui-105); line-height: 16px; letter-spacing: .04em; color: var(--text-muted); }
.rules { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.rules li {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  font: var(--size-ui-115)/1.6 var(--font-mono);
  white-space: nowrap;
}
.r-type { color: var(--text-muted); }
.r-comma { color: var(--text-faint); }
.r-policy { font-weight: var(--weight-semibold); }
.cstatus { display: flex; align-items: center; gap: 16px; height: 26px; margin-top: 8px; font-size: var(--size-ui-105); color: var(--text-muted); }
.cstatus span { display: inline-flex; align-items: center; gap: 6px; }
.cstatus i { flex: 0 0 6px; height: 6px; border-radius: var(--r-round); background: var(--toggle-off); color: var(--text); }
.cstatus i.is-on { background: var(--accent); color: var(--text); }
.cstatus b { font-family: var(--font-mono); font-weight: var(--weight-medium); color: var(--text); }

.note { position: absolute; z-index: 3; left: 842px; display: flex; align-items: center; height: 20px; }
.note-a { top: 92px; }
.note-b { top: 228px; }
.note-c { top: 334px; }
.note::before {
  content: "";
  flex: 0 0 5px;
  height: 5px;
  margin-right: -1px;
  border: 1px solid var(--lead);
  border-radius: var(--r-round);
  background: var(--bg);
  color: var(--text);
}
.note-line { flex: 0 0 100px; height: 1px; background: var(--lead); color: var(--text); }
.note-dot, .status-dot {
  display: inline-block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: var(--r-round);
  background: var(--accent);
  color: var(--text);
}
.note-dot { margin-right: 10px; }
.note-text { font-size: var(--size-ui-13); color: var(--text-muted); white-space: nowrap; }
.note-no { margin-right: 5px; color: var(--text); font-weight: var(--weight-semibold); }

.phone {
  position: absolute;
  z-index: 4;
  left: 118px;
  top: 114px;
  width: 154px;
  height: 314px;
  padding: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--device-stroke);
  border-radius: var(--r-phone);
  box-shadow: var(--shadow-device);
}
.phone-screen { position: relative; height: 100%; border-radius: var(--r-phone-screen); background: var(--bg-panel); color: var(--text); overflow: hidden; }
.phone-island {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 44px;
  height: 12px;
  margin-left: -22px;
  border-radius: var(--r-sm);
  background: var(--text);
  color: var(--bg);
}
.phone-status { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 14px 0 17px; font-size: var(--size-ui-10); font-weight: var(--weight-semibold); }
.phone-icons { display: inline-flex; align-items: center; gap: 3px; }
.phone-icons svg { height: 7px; width: auto; }
.phone-title { padding: 8px 13px; font: var(--weight-display) var(--size-lede)/1.2 var(--font-display); letter-spacing: -.01em; }
.phone-label { padding: 0 14px 4px; font-size: var(--size-ui-xs); letter-spacing: .05em; color: var(--text-muted); }
.phone-card { margin: 0 8px 10px; padding: 0; list-style: none; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-md); }
.phone-card li { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 30px; padding: 0 9px; font-size: var(--size-ui-105); white-space: nowrap; }
.phone-card li + li { border-top: 1px solid var(--border); }
.phone-val { font-family: var(--font-mono); font-size: var(--size-ui-10); color: var(--text-muted); }
.tg { position: relative; width: 26px; height: 16px; border-radius: var(--r-md); background: var(--toggle-off); color: var(--text); flex: none; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: var(--r-round); background: var(--bg); color: var(--text); box-shadow: var(--shadow-knob); }
.tg.is-on { background: var(--accent); color: var(--text); }
.tg.is-on::after { left: 12px; }
.phone-home { position: absolute; bottom: 7px; left: 50%; width: 50px; height: 3.5px; margin-left: -25px; border-radius: var(--r-home); background: var(--text); color: var(--bg); }

/* 测评长条 */
.strip { background: var(--bg-panel); color: var(--text); padding-block: 150px 160px; }
.strip--reverse { background: var(--bg); color: var(--text); }
.strip-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 8vw, 96px);
  max-width: var(--stage-w);
  margin-inline: auto;
  padding-inline: max(24px, var(--gutter) / 2);
}
.strip--reverse .strip-copy { grid-column: 1; grid-row: 1; }
.strip--reverse .strip-art { grid-column: 2; grid-row: 1; }
.pane {
  max-width: 480px;
  margin-inline-start: auto;
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--device-stroke);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-device);
  overflow: hidden;
}
.pane-bar { height: 32px; padding-inline: 13px; }
.pane-body { padding: 22px 22px 14px; }
.pane-body pre { margin-bottom: 8px; }
.pane-head { margin-bottom: 14px; font: var(--weight-brand) var(--size-nav)/1.6 var(--font-display); }
.opts { margin: 0; padding: 0; list-style: none; }
.opt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 54px;
  margin-bottom: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.opt.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.opt-radio { position: relative; width: 15px; height: 15px; border: 1.5px solid var(--device-stroke); border-radius: var(--r-round); background: var(--bg); color: var(--text); flex: none; }
.opt.is-on .opt-radio { border-color: var(--accent); }
.opt.is-on .opt-radio::after { content: ""; position: absolute; inset: 2.5px; border-radius: var(--r-round); background: var(--accent); color: var(--text); }
.opt-name { font-size: var(--size-os); font-weight: var(--weight-semibold); }
.opt-desc { font-size: var(--size-ui-12); color: var(--ink-muted); }
.opt-key { margin-inline-start: auto; font: var(--size-ui-115)/1.6 var(--font-mono); color: var(--ink-muted); }
.strip-copy h2 { margin-bottom: 22px; font-size: var(--size-strip); }
.strip--first .strip-copy h2 { font-size: var(--size-strip-first); }
.strip-copy p { max-width: 520px; margin: 0; line-height: 1.85; color: var(--ink-muted); }
.points { max-width: 520px; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.points li { display: flex; align-items: center; gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--border); font-size: var(--size-point); }
.points li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: var(--r-round); background: var(--accent); color: var(--text); }

/* 查阅、下载与文章 */
.tablist, [role="tablist"], .toc-tabs {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  color: var(--text);
}
[role="tab"], .toc-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid var(--bg-panel);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-small);
  text-decoration: none;
  overflow-wrap: anywhere;
}
[role="tab"]:is(:hover, [aria-selected="true"]), .toc-tabs a:hover {
  background: var(--bg);
  color: var(--ink-link);
  border-color: var(--border);
}
[role="tab"][aria-selected="true"] { box-shadow: var(--shadow-chip); font-weight: var(--weight-semibold); border-bottom-color: var(--accent); }
[role="tabpanel"] { min-width: 0; margin-block-start: 20px; }
.toc-tabs--sticky { position: sticky; top: 0; z-index: 4; }
.toc-content :target { scroll-margin-top: 104px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  min-height: 44px;
  padding-block: 14px;
  cursor: pointer;
  font-weight: var(--weight-semibold);
}
.faq-item summary::marker { color: var(--ink-link); }
.faq-answer { padding-block: 0 16px; color: var(--ink-muted); }
.term-card { border-inline-start: 3px solid var(--device-stroke); }
.client-card { display: grid; gap: 16px; }
.client-card > * { min-width: 0; }
.client-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.client-head h3 { margin: 0; }
.app-logo { width: 56px; height: 56px; flex-shrink: 0; }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.client-version, .post-meta { color: var(--ink-muted); font: var(--size-small)/1.6 var(--font-mono); }
[data-version]:empty { display: none; }
.post-card { display: grid; align-content: start; gap: 10px; }
.post-card h3, .post-card p { margin: 0; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-ui-12);
  overflow-wrap: anywhere;
}
.badge--lead { background: var(--accent-soft); color: var(--ink-link); border-color: var(--accent); }
.badge--pick { background: var(--bg); color: var(--ink-link); border-color: var(--device-stroke); }
.badge--archive { background: var(--bg-panel-2); color: var(--text); }
.badge--archive .status-dot { background: var(--warn); color: var(--text); }
.callout {
  margin: 1.25em 0;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
  overflow-wrap: anywhere;
}
.table-wrap, .prose table, .article-body table, .doc-body table {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.table-wrap { border: 1px solid var(--border); border-radius: var(--r-md); }
.prose table, .article-body table, .doc-body table { display: block; }
:is(.prose, .article-body, .doc-body) .table-wrap table { display: table; }
.data-table, .prose table, .article-body table, .doc-body table { width: 100%; border-collapse: collapse; text-align: start; }
:is(.data-table, .prose table, .article-body table, .doc-body table) :is(th, td) {
  min-width: 7em;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
:is(.data-table, .prose table, .article-body table, .doc-body table) th { background: var(--bg-panel); color: var(--text); }
:is(.data-table, .prose table, .article-body table, .doc-body table) td code { overflow-wrap: anywhere; }
.data-table caption { padding: 10px 14px; text-align: start; font-weight: var(--weight-semibold); }
.article-download { display: grid; justify-items: start; gap: 8px; border-inline-start: 3px solid var(--accent); }
.article-download > * { min-width: 0; margin: 0; }
.dl-fab {
  position: fixed;
  z-index: 6;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  background: var(--bg);
  color: var(--ink-link);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-win);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.dl-fab:hover { background: var(--accent-soft); color: var(--ink-link); }
.dl-fab svg { width: 17px; height: 17px; }

/* 静态预览色板 */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.swatch { font: var(--size-ui-12)/1.5 var(--font-mono); overflow-wrap: anywhere; }
.swatch::before { content: ""; display: block; height: 46px; margin-bottom: 6px; background: var(--sample); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm); }
.sw-bg { --sample: var(--bg); }
.sw-panel { --sample: var(--bg-panel); }
.sw-panel2 { --sample: var(--bg-panel-2); }
.sw-border { --sample: var(--border); }
.sw-accent { --sample: var(--accent); }
.sw-dark { --sample: var(--accent-dark); }
.sw-soft { --sample: var(--accent-soft); }
.sw-link { --sample: var(--ink-link); }
.sw-text { --sample: var(--text); }
.sw-muted { --sample: var(--text-muted); }
.sw-ink-muted { --sample: var(--ink-muted); }
.sw-faint { --sample: var(--text-faint); }
.sw-success { --sample: var(--success); }
.sw-warn { --sample: var(--warn); }
.sw-error { --sample: var(--error); }
.sw-on { --sample: var(--on-accent); }
.sw-device { --sample: var(--device-stroke); }
.sw-notch { --sample: var(--device-notch); }
.sw-top { --sample: var(--screen-top); }
.sw-bottom { --sample: var(--screen-bottom); }
.sw-lead { --sample: var(--lead); }
.sw-toggle { --sample: var(--toggle-off); }
.sw-dot { --sample: var(--win-dot); }
.sw-veil { --sample: var(--veil); }
.preview-block + .preview-block { margin-top: 56px; }

@media (max-width: 1200px) { .stage-wrap { --s: .82; } }
@media (max-width: 980px) {
  .stage-wrap { --s: .68; }
  .strip-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .strip--reverse :is(.strip-art, .strip-copy) { grid-column: auto; grid-row: auto; }
  .pane { margin-inline: auto; }
}
@media (max-width: 820px) {
  .note { display: none; }
  .stage { margin-left: -529px; }
  .stage-wrap { --s: .72; }
  @supports (width: 1cqw) { .stage-fit { --s: min(.72, calc((100cqw - 24px) / 822px)); } }
}
@media (max-width: 768px) { .hero-title { font-size: var(--size-h1-small); } }
@media (max-width: 640px) {
  .toc-tabs--sticky { position: static; }
  .toc-content :target { scroll-margin-top: 24px; }
}
@media (max-width: 600px) {
  .hero { padding-block: 24px 28px; }
  .hero-title-dot { display: none; }
  .hero-title-sub { display: block; }
  .hero-lede { font-size: var(--size-nav); }
  .os-row { gap: 8px; }
  .factband-sep { display: none; }
  .factband-in { gap: 5px 12px; font-size: var(--size-fact-small); }
  .stage-wrap { --s: .5; }
  .stage-fit { --s: var(--mobile-stage, .5); }
  @supports (width: 1cqw) { .stage-fit { --s: min(.5, calc((100cqw - 24px) / 822px)); } }
  .strip { padding-block: 96px 104px; }
}
@media (max-width: 440px) {
  .stage-fit { --mobile-stage: .34; }
  .hero-copy { padding-inline: var(--gutter); }
  .os-row a { padding-inline: 9px; }
  .factband-in { padding-inline: var(--gutter); }
  .pane-body { padding-inline: 14px; }
}