/* 核验工作台 */
.feature-tabs { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 40px; margin-top: 40px; }
.feature-tabs [role="tablist"] { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature-tabs [role="tab"] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 16px 20px;
  text-align: left;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  background: var(--clear);
  color: var(--text-muted);
}
.feature-tabs [role="tab"]::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 3px; border-radius: var(--r-indicator); background: var(--clear); }
.feature-tabs [role="tab"][aria-selected="true"] { border-color: var(--border); background: var(--bg-panel); color: var(--text); }
.feature-tabs [role="tab"][aria-selected="true"]::before { background: var(--accent); }
.feature-tabs [role="tab"]:hover { color: var(--text); }
.tab-copy { display: grid; gap: 4px; }
.tab-copy b { font: 700 15px/1.4 var(--font-mono); }
.tab-copy small { font: 400 13px/1.5 var(--font-body); }
.tab-detail { padding: 32px; min-width: 0; }
.tab-detail h3 { margin-top: 0; }
.tab-detail p { color: var(--text-muted); line-height: 1.85; }
.tab-detail pre { margin-top: 28px; margin-bottom: 0; }
.tab-detail [role="tabpanel"] { min-width: 0; }

/* 分类锚点导航放在覆盖全部章节的父容器中。 */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel2);
  color: var(--text);
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border-radius: var(--r-btn); color: var(--text-muted); }
.toc a:hover, .toc a[aria-current="location"] { color: var(--text); background: var(--bg-panel); }
.toc--sticky { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 10; }
.toc--static { position: static; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.faq-item summary { position: relative; min-height: 60px; padding: 18px 56px 18px 22px; cursor: pointer; list-style: none; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 16px; right: 22px; font: 500 22px/1.3 var(--font-mono); color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item__body { padding: 20px 22px; color: var(--text-muted); }
.faq-item__body > :last-child { margin-bottom: 0; }
.term-card { padding: 26px; border-left: 3px solid var(--accent); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-slab); }
.term-card dt { font: 700 18px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.term-card dd { margin: 12px 0 0; color: var(--text-muted); line-height: 1.8; }
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--bg-panel2);
  box-shadow: var(--shadow-button);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-button svg { width: 25px; height: 28px; }
.store-button__text { display: grid; gap: 3px; text-align: left; }
.store-button__text small { font: 600 11px/1.2 var(--font-body); }
.store-button__text strong { font: 800 16px/1.3 var(--font-body); }
.store-button:hover { transform: translateY(2px); box-shadow: var(--shadow-button-hover); }
.store-button:active { transform: translateY(3px); }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.fact-pill { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel2); color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.fact-pill strong { color: var(--text); }
.fact-pill--wide { border-radius: var(--r-btn); }
.badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 11px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); font: 600 12px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.badge--verified::before { content: "✓"; color: var(--success); flex-shrink: 0; }
.badge--error { border-color: var(--error); }
.badge--error::before { content: "×"; color: var(--error); flex-shrink: 0; }
.official-shot { width: min(100%, 280px); margin-inline: auto; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot img { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { padding-top: 12px; color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.shot-pair { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 32px; }
.device-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
.device-card__icon { width: 48px; height: 60px; color: var(--text-muted); }
.device-card h3 { margin: 0 0 10px; }
.device-card p { color: var(--text-muted); }
.device-card .text-link { display: inline-flex; min-height: 44px; align-items: center; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.article-card h3 { margin: 0; font-size: 21px; line-height: 1.5; }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.85; }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-muted); font: 500 12px/1.5 var(--font-mono); }
.article-card > .text-link { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; }
.callout { margin: 24px 0; padding: 22px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-btn); background: var(--bg-panel2); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout__label { display: block; margin-bottom: 8px; color: var(--accent); font: 700 12px/1.5 var(--font-mono); letter-spacing: .04em; }
.callout--error { border-left-color: var(--error); }
.callout--error .callout__label { color: var(--text); }
.table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-card); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-weight: 700; }
.data-table td, .prose table td { background: var(--bg-panel2); color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.prose table code, .data-table code { overflow-wrap: anywhere; word-break: normal; }
.dl-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 40px);
  min-height: 56px;
  padding: 12px 18px;
  border: var(--stroke) solid var(--clear);
  border-radius: var(--r-btn);
  background: linear-gradient(var(--bg-panel2), var(--bg-panel2)) padding-box, var(--grad-stroke) border-box;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 700;
}
.dl-fab svg { width: 22px; height: 22px; color: var(--accent); }
.dl-fab:hover { transform: translateY(-2px); }
.article-store-guide { margin-top: 56px; }
.article-store-guide .cta { margin-top: 24px; }
.has-article-fab { padding-bottom: 96px; }

/* 静态检验装置，屏幕内只有抽象几何。 */
.stage { position: relative; margin: 0; width: 100%; aspect-ratio: 720 / 640; isolation: isolate; }
.stage__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.f-panel { fill: var(--bg-panel); }
.f-deep { fill: var(--bg-panel2); }
.f-ink { fill: var(--ink); }
.f-device { fill: var(--device); }
.f-device-hi { fill: var(--device-hi); }
.f-lamp { fill: var(--lamp); }
.f-lamp-shade { fill: var(--lamp-shade); }
.f-lamp-hi { fill: var(--lamp-hi); }
.f-accent { fill: var(--accent); }
.f-warn { fill: var(--warn); }
.f-border { fill: var(--border); }
.f-text { fill: var(--text); }
.f-none { fill: none; }
.ol { stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.ol3 { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ol2 { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.s-hi { stroke: var(--lamp-hi); stroke-width: 2; fill: none; }
.s-border { stroke: var(--border); stroke-width: 3; stroke-linecap: round; fill: none; }
.s-accent { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; fill: none; }
.arm-ink { stroke: var(--ink); stroke-width: 20; stroke-linecap: round; fill: none; }
.arm-body { stroke: var(--lamp); stroke-width: 12; stroke-linecap: round; fill: none; }
.arm-hi { stroke: var(--lamp-hi); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.st-accent { stop-color: var(--accent); }
.st-lamp { stop-color: var(--lamp); }
.st-lamp-hi { stop-color: var(--lamp-hi); }
.st-white { stop-color: var(--text); }
.st-black { stop-color: var(--ink); }
.beam-edge { stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 7; fill: none; }
.mock {
  position: absolute;
  z-index: 2;
  padding: 13px 16px 14px;
  border: var(--stroke) solid var(--clear);
  border-radius: var(--r-card);
  background: linear-gradient(var(--bg-panel2), var(--bg-panel2)) padding-box, var(--grad-stroke) border-box;
  color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 7%, var(--clear)), var(--shadow-slab), var(--shadow-soft);
}
.mock__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px dashed var(--border); font: 600 11px/1.3 var(--font-mono); letter-spacing: .06em; color: var(--text-muted); }
.mock__head b { color: var(--text); font-weight: 700; letter-spacing: .02em; }
.mock__flag { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.mock__flag .dot { width: 6px; height: 6px; box-shadow: none; }
.mock--rules { left: 0; top: 3%; width: 45%; transform: rotate(-2deg); }
.mock__code { margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--clear); color: var(--text); font: 500 clamp(8px, .72vw, 11px)/1.8 var(--font-mono); white-space: pre; }
.mock__code .v { color: var(--text-muted); }
.mock__code .p { color: var(--accent); font-weight: 700; }
.mock--verify { right: -3%; top: 35%; width: 38%; transform: rotate(1.6deg); box-shadow: var(--shadow-slab), var(--shadow-near); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.check { width: 18px; height: 18px; margin-top: 2px; border-radius: var(--r-circle); display: grid; place-items: center; background: var(--success); color: var(--ink); font: 800 12px/1 var(--font-body); }
.checks__k { display: block; font-size: 11px; line-height: 1.3; color: var(--text-muted); }
.checks__v { display: block; font-size: 12.5px; line-height: 1.4; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.checks__v--mono { font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; }
.mock--settings { left: -2%; top: 72%; width: 37%; transform: rotate(-1.2deg); box-shadow: var(--shadow-slab), var(--shadow-near); }
.toggles { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.toggles li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 12px/1.3 var(--font-mono); color: var(--text); }
.sw { position: relative; flex-shrink: 0; width: 36px; height: 21px; border-radius: var(--r-pill); background: var(--border); color: var(--text); box-shadow: inset 0 0 0 var(--stroke) var(--ink); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: var(--r-circle); background: var(--text-muted); box-shadow: 0 0 0 var(--stroke) var(--ink); }
.sw--on { background: var(--accent); color: var(--ink); }
.sw--on::after { background: var(--text); transform: translateX(15px); }

/* 预览专用家具，不给真实截图添加尺寸约束。 */
.preview-heading { margin-top: 0; margin-bottom: 32px; }
.preview-label { display: block; margin-bottom: 12px; font: 500 12px/1.5 var(--font-mono); color: var(--text-muted); }
.palette-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.swatch { margin: 0; overflow-wrap: anywhere; }
.swatch__paint { height: 76px; border: 1px solid var(--border); border-radius: var(--r-btn); margin-bottom: 10px; }
.swatch code { color: var(--text); font-size: 12px; }
.swatch__paint--bg { background: var(--bg); color: var(--text); }
.swatch__paint--panel { background: var(--bg-panel); color: var(--text); }
.swatch__paint--deep { background: var(--bg-panel2); color: var(--text); }
.swatch__paint--border { background: var(--border); color: var(--text); }
.swatch__paint--accent { background: var(--accent); color: var(--ink); }
.swatch__paint--accent-dark { background: var(--accent-dark); color: var(--ink); }
.swatch__paint--text { background: var(--text); color: var(--ink); }
.swatch__paint--muted { background: var(--text-muted); color: var(--ink); }
.swatch__paint--success { background: var(--success); color: var(--ink); }
.swatch__paint--warn { background: var(--warn); color: var(--ink); }
.swatch__paint--error { background: var(--error); color: var(--ink); }
.swatch__paint--ink { background: var(--ink); color: var(--text); }
.swatch__paint--device { background: var(--device); color: var(--text); }
.swatch__paint--device-hi { background: var(--device-hi); color: var(--text); }
.swatch__paint--lamp { background: var(--lamp); color: var(--text); }
.swatch__paint--lamp-shade { background: var(--lamp-shade); color: var(--text); }
.swatch__paint--lamp-hi { background: var(--lamp-hi); color: var(--ink); }
.swatch__paint--clear { background: var(--clear); color: var(--text); border-style: dashed; }
.shot-placeholder { display: grid; place-content: center; gap: 14px; width: 100%; aspect-ratio: 750 / 1334; border: 1px dashed var(--border); border-radius: var(--r-shot); background: var(--bg-panel); color: var(--text-muted); text-align: center; font: 500 13px/1.6 var(--font-mono); }
.preview-states { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.preview-type { margin: 0 0 24px; }
.preview-type--display { font: 900 clamp(34px, 3.4vw, 48px)/1.14 var(--font-display); letter-spacing: -.02em; }
.preview-type--sub { font: 800 34px/1.25 var(--font-display); }
.preview-type--small { font: 800 22px/1.4 var(--font-display); }

@media (max-width: 1040px) {
  .stage { max-width: 680px; margin-inline: auto; }
  .mock__code { font-size: 10px; }
  .feature-tabs { gap: 24px; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr); }
}
@media (max-width: 768px) {
  .feature-tabs { grid-template-columns: minmax(0, 1fr); }
  .feature-tabs [role="tablist"] { flex-direction: row; overflow-x: auto; padding: 4px 3px 12px; }
  .feature-tabs [role="tab"] { flex: 0 0 auto; width: auto; min-height: 48px; padding: 12px 18px; border-radius: var(--r-pill); border-color: var(--border); }
  .feature-tabs [role="tab"]::before { display: none; }
  .feature-tabs [role="tab"][aria-selected="true"] { border-color: var(--accent); }
  .tab-copy small { display: none; }
  .tab-detail { padding: 24px; }
  .toc--sticky { position: static; }
  .preview-type--display { font-size: 30px; }
}
@media (max-width: 640px) {
  .fact-row { justify-content: center; flex-direction: row; }
  .fact-pill { padding: 6px 10px; font-size: 11px; }
  .shot-pair { flex-direction: column; align-items: center; }
  .device-card { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .device-card__icon { width: 34px; height: 46px; }
  .mock { padding: 9px 11px 10px; }
  .mock--rules { width: 66%; transform: none; }
  .mock__head { font-size: 9.5px; padding-bottom: 6px; margin-bottom: 7px; }
  .mock__code { font-size: clamp(7px, 2.1vw, 10px); }
  .mock--verify { width: 56%; right: -1%; transform: none; }
  .checks { gap: 7px; }
  .checks li { grid-template-columns: 15px minmax(0, 1fr); gap: 7px; }
  .check { width: 15px; height: 15px; font-size: 10px; }
  .checks__k { font-size: 9.5px; }
  .checks__v { font-size: 10.5px; }
  .mock--settings { width: 53%; left: 0; top: 76%; transform: none; }
  .toggles li { font-size: 10px; gap: 6px; }
  .stage { margin-bottom: 36px; }
  .callout { padding: 18px 20px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); }
}

/* 多平台下载 */
.get-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin: 22px 0 0;
}
.get-row .get-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}
.get-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px 18px;
  margin-top: 28px;
}
.plat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 26px 22px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.plat-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}
.plat-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.plat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.plat-actions .btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13.5px;
}
[data-visitor-os="ios"] .plat-card[data-plat="ios"],
[data-visitor-os="mac"] .plat-card[data-plat="mac"],
[data-visitor-os="windows"] .plat-card[data-plat="windows"],
[data-visitor-os="android"] .plat-card[data-plat="android"],
[data-visitor-os="linux"] .plat-card[data-plat="linux"] {
  order: -1;
  background: var(--bg-panel2);
  border-color: var(--accent);
}
[data-visitor-os="ios"] .plat-card[data-plat="ios"]::before,
[data-visitor-os="mac"] .plat-card[data-plat="mac"]::before,
[data-visitor-os="windows"] .plat-card[data-plat="windows"]::before,
[data-visitor-os="android"] .plat-card[data-plat="android"]::before,
[data-visitor-os="linux"] .plat-card[data-plat="linux"]::before {
  content: attr(data-mine);
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 1px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}
.download-platforms,
.download-install {
  margin-top: 72px;
}
.download-install .table-scroll {
  margin: 20px 0 8px;
}
.section--deep .btn--guide,
.callout .btn--guide,
.plat-card .btn--quiet {
  color: var(--text);
}
.callout .get-row {
  margin-top: 14px;
}
.wx-open-tip {
  position: fixed;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 1000;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 640px) {
  .plat-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .dl-fab { width: 52px; height: 52px; min-width: 0; min-height: 0; max-width: none; padding: 0; gap: 0; border-radius: 50%; justify-content: center; align-items: center; font-size: 0; line-height: 1; }
  .dl-fab > :not(svg):not([aria-hidden="true"]):not(.dl-fab-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dl-fab > [aria-hidden="true"]:not(svg) { font-size: 20px; }
  .dl-fab svg { margin: 0; }
  .dl-fab:not(:has(svg)):not(:has([aria-hidden="true"]:not(:empty)))::after { content: "\2193"; font-size: 22px; }
}
