/* 首屏：按确认稿保持静态、白底、居中。 */
.hero {
  min-height: max(720px, calc(100vh - var(--nav-h) - var(--peek)));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 24px 22px; text-align: center; overflow-x: clip;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; min-height: 28px; padding: 4px 14px 4px 12px; border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text-muted); font-size: 13px; line-height: 20px; letter-spacing: .01em; margin: 0 0 18px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.hero h1 { margin: 0 0 22px; font-size: clamp(28px, 2.2vw + 17px, 48px); line-height: 1.08; letter-spacing: -.02em; font-weight: var(--weight-regular); color: var(--text); }
.hero h1 > .title-line { display: block; }
.lede { margin: 0 0 16px; max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: var(--weight-medium); }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; list-style: none; margin: 0 0 30px; padding: 0; }
.platforms a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); line-height: 20px; }
.platforms a:hover { color: var(--text); text-decoration: none; }
.platforms svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }
.stage { position: relative; width: 760px; max-width: calc(100% - 16px); margin: 0 auto 36px; transform: rotate(-1.5deg); text-align: left; overflow: visible; }
.stage::before { content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); background: var(--bg-panel-2); color: var(--text); border-radius: var(--radius-device); }
.device { position: relative; margin: 0; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-device); box-shadow: var(--shadow-card); overflow: hidden; }
.chrome { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--bg-panel); color: var(--text); border-bottom: 1px solid var(--border); }
.chrome-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { width: 10px; height: 10px; border-radius: var(--radius-round); background: var(--chrome-dot); color: var(--text); }
.chrome-title { font-size: 13px; font-weight: var(--weight-medium); color: var(--text); }
.crumb { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; }
.crumb b { font-weight: var(--weight-regular); color: var(--text-muted); }
.crumb em { font-style: normal; color: var(--text); }
.form { padding: 18px 28px; display: grid; row-gap: 12px; }
.row { display: grid; grid-template-columns: 148px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.lbl { font-size: 14px; color: var(--text-muted); }
.field { min-width: 0; min-height: 38px; display: flex; align-items: center; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--bg); color: var(--text); font-size: 14px; }
.field-url { min-height: 46px; padding: 0 5px 0 16px; border-radius: var(--radius-url); background: var(--bg-panel); color: var(--text); justify-content: space-between; gap: 12px; }
.mono { min-width: 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; letter-spacing: -.01em; }
.send { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-round); background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.update { display: flex; align-items: center; gap: 12px; }
.switch { width: 40px; height: 22px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); position: relative; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: var(--radius-round); background: var(--on-accent); color: var(--accent); box-shadow: var(--shadow-switch); }
.switch[aria-checked="false"], .switch.is-off { background: var(--border-strong); color: var(--text); }
.switch[aria-checked="false"]::after, .switch.is-off::after { left: 2px; right: auto; }
.switch-state { font-size: 13px; color: var(--text); }
.update .lbl { margin-left: auto; }
.field-sm { width: 88px; justify-content: flex-start; flex-shrink: 0; }
.actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 28px 16px; border-top: 1px solid var(--border); }
.mini { height: 34px; min-width: 84px; padding: 0 18px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: var(--weight-medium); }
.mini-ok { background: var(--accent); color: var(--on-accent); }
.mini-cancel { border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.protocols { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.protocols a { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 14px; color: var(--text-muted); background: var(--bg); }
.protocols a:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.horizon {
  position: relative; margin: 0 24px 48px; height: 560px; border-radius: var(--radius-container); overflow: hidden; color: var(--on-ink);
  background:
    radial-gradient(circle at 9% 62%, var(--aurora-star) 0 1px, var(--clear) 1.6px),
    radial-gradient(circle at 23% 38%, var(--aurora-star) 0 .8px, var(--clear) 1.4px),
    radial-gradient(circle at 41% 18%, var(--aurora-star) 0 1px, var(--clear) 1.6px),
    radial-gradient(circle at 57% 31%, var(--aurora-star) 0 .8px, var(--clear) 1.4px),
    radial-gradient(circle at 86% 12%, var(--aurora-star) 0 1px, var(--clear) 1.6px),
    radial-gradient(circle at 93% 41%, var(--aurora-star) 0 .8px, var(--clear) 1.4px),
    radial-gradient(ellipse 90% 100% at 72% 150%, var(--aurora-planet) 0 97.6%, var(--clear) 98%),
    radial-gradient(ellipse 90% 100% at 72% 150%, var(--clear) 96.8%, var(--aurora-cyan) 98.1%, var(--clear) 100.6%),
    radial-gradient(ellipse 90% 100% at 72% 150%, var(--clear) 97%, var(--aurora-cyan-soft) 99%, var(--clear) 112%),
    radial-gradient(circle 260px at 72% 52%, var(--aurora-amber) 0, var(--aurora-amber-soft) 22%, var(--clear) 70%),
    linear-gradient(180deg, var(--aurora-ink) 0%, var(--aurora-ink-2) 100%);
}
.horizon-word { position: absolute; left: 44px; top: 28px; margin: 0; font-family: var(--font-display); font-weight: var(--weight-regular); font-size: 136px; line-height: 1; letter-spacing: -.035em; color: var(--on-ink); }

/* 通用 tab 与编辑式特性布局。 */
.tab-list, [role="tablist"].tab-list { display: flex; align-items: center; gap: 8px; padding: 4px; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.tab-list [role="tab"] { position: relative; flex-shrink: 0; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text-muted); font-size: 15px; white-space: nowrap; }
.tab-list [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border); }
.tab-panel { margin-top: 24px; min-width: 0; }
.feature-layout { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); gap: 52px; align-items: start; }
.feature-tabs { position: sticky; top: 88px; display: flex; flex-direction: column; align-items: stretch; }
.feature-tabs [role="tab"] { position: relative; width: 100%; padding: 21px 20px; text-align: left; font-size: 22px; font-weight: var(--weight-regular); line-height: 1.4; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.feature-tabs [role="tab"][aria-selected="true"] { color: var(--accent); }
.feature-tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-tick); }
.feature-panel { margin: 0; padding: 36px; background: var(--bg-panel); color: var(--text); border-radius: var(--radius-device); }
.feature-mock { padding: 24px; margin-bottom: 32px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); }
.feature-mock .row { grid-template-columns: 110px minmax(0, 1fr); margin-block: 12px; }
.feature-copy { color: var(--text-muted); line-height: 1.85; }
.setting-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; margin-bottom: 36px; max-width: 100%; overflow-x: visible; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); }
.toc a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--radius-pill); font-size: var(--text-small); color: var(--text-muted); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel); color: var(--accent); text-decoration: none; }
.faq-item { border-bottom: 1px solid var(--border); padding-block: 6px; }
.faq-item summary { position: relative; list-style: none; padding: 22px 40px 22px 0; cursor: pointer; font-size: 18px; line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 21px; font-size: 22px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 32px 20px 0; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { scroll-margin-top: 88px; }
.term-card .term-en { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 16px; overflow-wrap: anywhere; }
.term-card p { color: var(--text-muted); }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-block; max-width: 100%; padding: 4px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; vertical-align: middle; }
.badge-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.badge-recommended { background: var(--bg); color: var(--accent); border-color: var(--accent); }
.badge-retired { background: var(--bg-panel-2); color: var(--text-muted); border-style: dashed; }
.download-card { padding: 32px; }
.download-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.app-icon { width: 56px; height: 56px; flex-shrink: 0; }
.download-card-head h3 { margin: 0 0 6px; }
.download-card p { color: var(--text-muted); }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.download-meta [data-rev]:empty { display: none; }
.article-card { padding: 0; border: 0; background: var(--bg); color: var(--text); }
.article-cover { height: 220px; position: relative; overflow: hidden; border-radius: var(--radius-card); margin-bottom: 24px; background: var(--bg-panel-2); color: var(--text); display: flex; align-items: flex-end; padding: 24px; }
.article-cover--horizon { background: radial-gradient(ellipse at 70% 130%, var(--aurora-planet) 0 48%, var(--aurora-cyan) 49%, var(--aurora-ink) 51%); color: var(--on-ink); }
.article-cover-word { font-family: var(--font-mono); font-size: 32px; line-height: 1.1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.article-card h3 { font-size: 22px; line-height: 1.45; }
.article-card h3 a { color: var(--text); }
.article-card p { color: var(--text-muted); font-size: 14px; }
.callout { margin: 28px 0; padding: 24px 28px; border-radius: var(--radius-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; font-weight: var(--weight-medium); margin-bottom: 8px; }
.callout--warn { border-left-color: var(--warn); }
.callout--error { border-left-color: var(--error); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-card); }
.data-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em; padding: 16px 20px; vertical-align: top;
  border-bottom: 1px solid var(--border); overflow-wrap: normal; word-break: normal;
}
.data-table th, .prose table th { font-weight: var(--weight-medium); background: var(--bg-panel); color: var(--text); }
.data-table td, .prose table td { background: var(--bg); color: var(--text); }
.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; text-align: left; margin-block: 28px; }
.prose table code, .data-table code { overflow-wrap: anywhere; }
.article-download { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-block: 48px; padding: 32px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-container); }
.article-download h2 { font-size: 24px; margin: 0 0 12px; }
.article-download p { color: var(--text-muted); margin: 0; }
.article-download .btn { flex-shrink: 0; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); min-height: 56px; padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--accent); box-shadow: var(--shadow-pop); font-size: 14px; font-weight: var(--weight-medium); }
.dl-fab:hover { background: var(--bg-panel); color: var(--accent-dark); text-decoration: none; }
.has-dl-fab .site-footer { padding-bottom: 112px; }
.dl-fab--sample { position: static; }

/* 预览页色板；色值仍全部由令牌提供。 */
.preview-stack { display: grid; gap: 24px; }
.preview-states { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--border); border-radius: var(--radius-field); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch-chip { display: block; height: 68px; border-bottom: 1px solid var(--border); background: var(--sample-color, var(--bg)); color: var(--text); }
.swatch code { display: block; padding: 12px; font-size: 11px; }
.sw-bg { --sample-color: var(--bg); }
.sw-panel { --sample-color: var(--bg-panel); }
.sw-panel2 { --sample-color: var(--bg-panel-2); }
.sw-border { --sample-color: var(--border); }
.sw-strong { --sample-color: var(--border-strong); }
.sw-dot { --sample-color: var(--chrome-dot); }
.sw-accent { --sample-color: var(--accent); }
.sw-dark { --sample-color: var(--accent-dark); }
.sw-text { --sample-color: var(--text); }
.sw-muted { --sample-color: var(--text-muted); }
.sw-success { --sample-color: var(--success); }
.sw-warn { --sample-color: var(--warn); }
.sw-error { --sample-color: var(--error); }
.sw-onaccent { --sample-color: var(--on-accent); }
.sw-onink { --sample-color: var(--on-ink); }
.sw-clear { --sample-color: var(--clear); }
.sw-veil { --sample-color: var(--veil); }
.sw-ink { --sample-color: var(--aurora-ink); }
.sw-ink2 { --sample-color: var(--aurora-ink-2); }
.sw-planet { --sample-color: var(--aurora-planet); }
.sw-cyan { --sample-color: var(--aurora-cyan); }
.sw-cyansoft { --sample-color: var(--aurora-cyan-soft); }
.sw-amber { --sample-color: var(--aurora-amber); }
.sw-ambersoft { --sample-color: var(--aurora-amber-soft); }
.sw-star { --sample-color: var(--aurora-star); }
@media (max-width: 980px) {
  .platforms { gap: 14px 22px; }
  .feature-layout { gap: 28px; }
  .feature-tabs [role="tab"] { font-size: 19px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(24px, 4vw, 30px); }
  .feature-layout { grid-template-columns: minmax(0, 1fr); }
  .feature-tabs { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding: 4px; }
  .feature-tabs [role="tab"] { flex-shrink: 0; width: auto; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-pill); white-space: nowrap; font-size: 16px; }
  .feature-tabs [role="tab"][aria-selected="true"] { border-color: var(--accent); }
  .feature-tabs [role="tab"][aria-selected="true"]::before { display: none; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding: 28px 16px 32px; }
  .stage { transform: none; }
  .row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .update { flex-wrap: wrap; }
  .update .lbl { margin-left: 0; }
  .form { padding: 16px 18px; }
  .actions { padding: 12px 18px 14px; }
  .crumb { display: none; }
  .horizon { margin: 0 12px 32px; height: 360px; }
  .horizon-word { font-size: 72px; left: 24px; top: 22px; }
}
@media (max-width: 640px) {
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-panel { padding: 24px; }
  .feature-mock { padding: 16px; }
  .feature-mock .row { grid-template-columns: minmax(0, 1fr); }
  .download-card { padding: 24px; }
  .article-download { flex-direction: column; align-items: flex-start; padding: 24px; }
  .dl-fab { right: 16px; bottom: 16px; }
  .eyebrow { font-size: 11px; }
  .protocols { gap: 8px; }
  .protocols a { font-size: 12px; padding-inline: 12px; }
}