.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  max-width: 100%;
  padding: 9px 20px;
  color: var(--on-ink);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-press);
  line-height: 1.25;
  transition: transform var(--duration-fast), background-color var(--duration-fast);
}
.app-store-button:hover { color: var(--on-ink); background: var(--ink-hover); transform: translateY(-1px); }
.app-store-button > svg { width: 23px; height: 26px; flex-shrink: 0; fill: currentColor; }
.app-store-button__copy { display: block; text-align: left; }
.app-store-button__overline { display: block; font-size: 11px; }
.app-store-button__title { display: block; font-size: 16px; font-weight: 600; }
.app-store-button--large { min-height: 58px; padding: 12px 26px; }

.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.devices__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }
.devices__item { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
a.devices__item:hover { color: var(--text); }
.devices__icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.devices__pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); }

.chips, .fact-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.chip, .fact-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 11px;
  color: var(--text-muted);
  background: var(--veil);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.badge { font-family: var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text); }
.badge--proxy { color: var(--accent-dark); background: var(--tint-proxy); }
.badge--direct { color: var(--direct-deep); background: var(--tint-direct); }
.badge--reject { color: var(--reject-deep); background: var(--tint-reject); }
.chip__dot { width: 6px; height: 6px; border-radius: var(--radius-dot); flex-shrink: 0; }
.chip__dot--direct { background: var(--direct); }
.chip__dot--proxy { background: var(--proxy); }
.chip__dot--reject { background: var(--reject); }
.factband { margin-top: 56px; }
.factband__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 20px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--text-muted); background: var(--veil); border: 1px solid var(--border); border-radius: var(--radius-card); }
.factband__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0; }
.fact { display: inline-flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.fact strong { font-weight: 600; color: var(--text); }
.fact__sq { width: 6px; height: 6px; flex-shrink: 0; }
.fact__sq--direct { background: var(--direct); }
.fact__sq--proxy { background: var(--proxy); }
.fact__sq--reject { background: var(--reject); }
.fact__sep { color: var(--text-muted); }
.fact--note { color: var(--text-muted); }

.tabs { min-width: 0; }
.tab-list, [role="tablist"].feature-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.tab-list [role="tab"] { min-width: 0; min-height: 92px; padding: 20px 12px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); font-size: 25px; font-weight: 700; }
.tab-list [role="tab"][aria-selected="true"] { color: var(--text); background: var(--tint-direct); border-color: var(--direct-hi); }
.tab-list [role="tab"].tab--proxy[aria-selected="true"] { color: var(--text); background: var(--tint-proxy); border-color: var(--proxy-hi); }
.tab-list [role="tab"].tab--reject[aria-selected="true"] { color: var(--text); background: var(--tint-reject); border-color: var(--reject-hi); }
.tab-panel { min-width: 0; color: var(--text); background: var(--panel); border-radius: var(--radius-card); box-shadow: var(--shadow-float); }
.feature-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; }
.feature-panel > * { min-width: 0; }
.feature-accordion { align-self: center; }
.feature-accordion details { border-bottom: 1px solid var(--border); }
.feature-accordion details:last-child { border-bottom: 0; }
.feature-accordion summary { display: flex; align-items: center; gap: 14px; min-height: 82px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.feature-accordion summary::-webkit-details-marker { display: none; }
.feature-accordion summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); color: var(--text-muted); }
.feature-accordion details[open] summary::after { content: "−"; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; color: var(--direct-deep); background: var(--tint-direct); border-radius: var(--radius-btn); font-family: var(--font-mono); }
.feature-accordion p { margin: 0 0 24px; font-size: 15px; line-height: 1.85; color: var(--text-muted); }
.rule-canvas { display: grid; align-content: center; padding: 34px 24px; min-height: 360px; overflow-x: clip; color: var(--text); background: linear-gradient(125deg, var(--tint-direct), var(--bg-end) 52%, var(--tint-proxy)); border-radius: var(--radius-card); }
.rule-canvas--proxy { color: var(--text); background: linear-gradient(125deg, var(--tint-proxy), var(--bg-end)); }
.rule-canvas--reject { color: var(--text); background: linear-gradient(125deg, var(--tint-reject), var(--bg-end)); }
.rule-card { padding: 20px; min-width: 0; color: var(--text); background: var(--panel); border-radius: var(--radius-card); box-shadow: var(--shadow-float); }
.rule-card__label { margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: var(--track-label); text-transform: uppercase; }
.rule-card pre { border: 0; padding: 0; margin: 0; color: var(--text); background: var(--panel); }
.rule-lines { counter-reset: rule-line; list-style: none; padding: 0; margin: 0; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; line-height: 2.2; }
.rule-lines li { display: flex; gap: 16px; white-space: pre; }
.rule-lines li::before { counter-increment: rule-line; content: counter(rule-line, decimal-leading-zero); color: var(--text-muted); flex-shrink: 0; }
.rule-lines code { font-size: inherit; overflow-wrap: normal; }

.toc { position: sticky; top: 16px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; overflow-x: visible; padding: 10px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-float); overscroll-behavior-inline: contain; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; padding: 9px 14px; white-space: nowrap; font-size: 14px; border-radius: var(--radius-btn); }
.toc a:hover, .toc a[aria-current="location"] { color: var(--accent-dark); background: var(--tint-proxy); }
.toc--static { position: static; }
.faq-list { border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--text); background: var(--panel); }
.faq-item { padding-inline: 24px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { position: relative; padding: 22px 30px 22px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 22px; color: var(--accent-dark); font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding-bottom: 24px; color: var(--text-muted); }

.term-card { padding: 24px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); border-top: 3px solid var(--direct); }
.term-card h3 { margin: 16px 0 10px; font-size: 20px; }
.term-card p { margin-bottom: 0; color: var(--text-muted); font-size: 15px; }
.term-card code { color: var(--accent-dark); }
.device-card { display: flex; align-items: flex-start; gap: 24px; padding: 32px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); transition: box-shadow var(--duration-fast), border-color var(--duration-fast); }
.device-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-float); }
.device-card > svg { width: 48px; height: 64px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.device-card h3 { margin: 0 0 12px; }
.device-card p { color: var(--text-muted); font-size: 15px; }
.device-card__link { color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); }
.article-card h3 { font-size: 21px; margin: 24px 0 14px; }
.article-card p { color: var(--text-muted); font-size: 15px; }
.article-card__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.callout { padding: 24px; margin: 28px 0; color: var(--text); background: var(--tint-direct); border-left: 3px solid var(--direct); border-radius: var(--radius-card); }
.callout p:last-child { margin-bottom: 0; }
.callout--note { color: var(--text); background: var(--tint-proxy); border-color: var(--accent); }
.callout--warn { color: var(--text); background: var(--tint-reject); border-color: var(--warn); }
.callout__title { display: block; font-weight: 700; margin-bottom: 8px; }
.official-shot { width: 100%; max-width: 280px; flex-shrink: 0; margin-inline: auto; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-shot); }
.official-shot figcaption { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.shot-frame { border: 1px solid var(--border); border-radius: var(--radius-shot); }
.shot-row { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.shot-placeholder { display: grid; place-content: center; text-align: center; width: 100%; aspect-ratio: 750 / 1334; padding: 24px; color: var(--text-muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-shot); }
.shot-placeholder span { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-label); }
.table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; color: var(--text); background: var(--panel); font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .article-body table th { color: var(--text); background: var(--panel-2); font-weight: 600; }
.prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; color: var(--text); background: var(--panel); }
.prose table code, .article-body table code { overflow-wrap: anywhere; white-space: normal; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 36px); min-height: 56px; padding: 12px 18px; color: var(--on-ink); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-float); font-size: 14px; font-weight: 600; }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dl-fab:hover { color: var(--on-ink); background: var(--ink-hover); }
.article-store-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 28px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); }
.article-store-card__copy { flex: 1 1 240px; min-width: 0; }
.article-store-card h2 { margin: 0 0 12px; font-size: 24px; }
.article-store-card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* 装置的色彩只取自共享令牌。 */
.sc-glass-1 { stop-color: var(--glass-1); }
.sc-glass-2 { stop-color: var(--glass-2); }
.sc-glass-3 { stop-color: var(--glass-3); }
.sc-side-1 { stop-color: var(--glass-side-1); }
.sc-side-2 { stop-color: var(--glass-side-2); }
.sc-proxy-tint { stop-color: var(--tint-proxy); }
.sc-proxy-hi { stop-color: var(--proxy-hi); }
.sc-proxy { stop-color: var(--proxy); }
.sc-proxy-deep { stop-color: var(--proxy-deep); }
.sc-direct-tint { stop-color: var(--tint-direct); }
.sc-direct-hi { stop-color: var(--direct-hi); }
.sc-direct { stop-color: var(--direct); }
.sc-direct-deep { stop-color: var(--direct-deep); }
.sc-reject-tint { stop-color: var(--tint-reject); }
.sc-reject-hi { stop-color: var(--reject-hi); }
.sc-reject { stop-color: var(--reject); }
.sc-reject-deep { stop-color: var(--reject-deep); }
.f-shadow { fill: var(--shadow-ink); }
.f-white { fill: var(--glass-1); }
.f-proxy-deep { fill: var(--proxy-deep); }
.f-direct-deep { fill: var(--direct-deep); }
.f-reject-deep { fill: var(--reject-deep); }
.beam-edge { stroke: var(--beam-edge); stroke-width: 1; fill: none; }
.beam-core { stroke: var(--glass-1); stroke-width: 1.6; fill: none; }
.edge-hi { stroke: var(--glass-1); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.edge-soft { stroke: var(--glass-side-2); stroke-width: 1; fill: none; opacity: .7; }
.edge-accent { stroke: var(--accent); stroke-width: 1.4; fill: none; opacity: .7; stroke-linecap: round; }
.band-hi { stroke: var(--glass-1); stroke-width: 1.2; fill: none; opacity: .75; }
.ann-line { stroke: var(--text); stroke-width: 1; opacity: .42; vector-effect: non-scaling-stroke; }
.ann-sq { fill: var(--text); }
.ann-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: var(--track-label); fill: var(--text); }
.ann-rule { font-family: var(--font-mono); font-size: 12px; fill: var(--text-muted); }
.sweep { opacity: 0; animation: band-sweep 7s cubic-bezier(.45, 0, .25, 1) infinite both; }
.sweep--proxy { --run: 240px; animation-delay: .4s; }
.sweep--direct { --run: 256px; animation-delay: 2.73s; }
.sweep--reject { --run: 282px; animation-delay: 5.06s; }
@keyframes band-sweep {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  44% { transform: translateX(var(--run)); opacity: 1; }
  52%, 100% { transform: translateX(var(--run)); opacity: 0; }
}

/* 仅供设计预览的色板，不需要页面脚本或内联样式。 */
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--text); background: var(--panel); }
.swatch__paint { min-height: 64px; border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 10px 12px; font-size: 11px; }
.paint-bg { background: var(--bg); color: var(--text); }
.paint-bg-end { background: var(--bg-end); color: var(--text); }
.paint-panel { background: var(--panel); color: var(--text); }
.paint-panel-2 { background: var(--panel-2); color: var(--text); }
.paint-border { background: var(--border); color: var(--text); }
.paint-border-strong { background: var(--border-strong); color: var(--text); }
.paint-accent { background: var(--accent); color: var(--on-ink); }
.paint-accent-dark { background: var(--accent-dark); color: var(--on-ink); }
.paint-text { background: var(--text); color: var(--on-ink); }
.paint-muted { background: var(--text-muted); color: var(--on-ink); }
.paint-soft { background: var(--text-soft); color: var(--text); }
.paint-success { background: var(--success); color: var(--text); }
.paint-warn { background: var(--warn); color: var(--text); }
.paint-error { background: var(--error); color: var(--on-ink); }
.paint-ink-hover { background: var(--ink-hover); color: var(--on-ink); }
.paint-direct-tint { background: var(--tint-direct); color: var(--text); }
.paint-proxy-tint { background: var(--tint-proxy); color: var(--text); }
.paint-reject-tint { background: var(--tint-reject); color: var(--text); }
.paint-proxy-hi { background: var(--proxy-hi); color: var(--text); }
.paint-direct-hi { background: var(--direct-hi); color: var(--text); }
.paint-direct { background: var(--direct); color: var(--text); }
.paint-direct-deep { background: var(--direct-deep); color: var(--on-ink); }
.paint-reject-hi { background: var(--reject-hi); color: var(--text); }
.paint-reject { background: var(--reject); color: var(--text); }
.paint-reject-deep { background: var(--reject-deep); color: var(--on-ink); }
.paint-glass-2 { background: var(--glass-2); color: var(--text); }
.paint-glass-3 { background: var(--glass-3); color: var(--text); }
.paint-side-1 { background: var(--glass-side-1); color: var(--text); }
.paint-side-2 { background: var(--glass-side-2); color: var(--text); }
.paint-beam { background: var(--beam-edge); color: var(--text); }
.paint-shadow { background: var(--shadow-ink); color: var(--on-ink); }
.paint-veil { background: var(--veil); color: var(--text); }
.paint-scrim { background: var(--scrim); color: var(--text); }
.preview-stack { display: grid; gap: 24px; }
.preview-buttons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.preview-title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.14; margin: 0; }
.preview-facts { margin-top: 56px; }
.preview-facts .card { min-height: 220px; }
.preview-facts h3 { font-size: 26px; margin-top: 28px; }

@media (max-width: 1024px) {
  .factband__inner { flex-direction: column; align-items: flex-start; }
  .feature-panel { grid-template-columns: minmax(0, 1fr); }
  .preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fact-pills, .chips { flex-direction: row; justify-content: center; }
  .fact-pill, .chip { font-size: 11px; padding: 4px 8px; }
  .devices { gap: 8px 14px; }
  .devices__item { font-size: 12px; gap: 5px; }
  .devices__icon { width: 17px; height: 17px; }
  .tab-list { gap: 8px; }
  .tab-list [role="tab"] { min-height: 72px; padding: 12px 6px; font-size: 16px; }
  .feature-panel { padding: 20px; gap: 20px; }
  .rule-canvas { padding: 20px 12px; min-height: 280px; }
  .rule-card { padding: 16px; }
  .device-card { padding: 24px 20px; gap: 18px; }
  .device-card > svg { width: 36px; height: 52px; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { max-width: min(280px, 100%); }
  .faq-item { padding-inline: 18px; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-fab { right: 18px; bottom: 18px; padding: 12px 14px; }
  .article-store-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sweep { animation: none; opacity: 0; }
}