/* 首屏画布与事实板 */
.screen {
  position: relative;
  overflow-x: clip;
  max-width: 100%;
  isolation: isolate;
  background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
}
.screen::before { content: ""; position: absolute; inset: 0 0 34% 50%; background: var(--hero-glow); pointer-events: none; z-index: -1 }
.hero { padding-top: 28px; padding-bottom: 26px }
.hero-copy { position: relative; z-index: 2; text-align: center }
.hero h1 { margin-top: 20px }
.lede { margin: 18px auto 0; max-width: 34em; font-size: var(--fs-lede); line-height: 1.6; color: var(--text-muted) }
.lede strong, .trust strong { color: var(--text) }
.cta-row, .trust { display: flex; justify-content: center; flex-wrap: wrap }
.cta-row { gap: 12px; margin-top: 26px }
.trust { gap: 6px 22px; margin-top: 18px; font-size: var(--fs-small); color: var(--text-muted) }
.trust li { display: inline-flex; align-items: center; gap: 7px }
.trust svg { width: 16px; height: 16px; color: var(--text) }

.stage { position: relative; margin-top: 26px; padding-block: 22px }
.board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 28px;
  border-radius: var(--r-board);
  background: var(--board-fill);
  box-shadow: var(--shadow-board), var(--hi-board);
}
.board::before { content: ""; position: absolute; inset: 0 40% 45% 0; background: var(--board-light); pointer-events: none; z-index: -1 }
.pf-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px }
.pf-tab, .tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--fs-nav);
  font-weight: var(--fw-bold);
  text-align: start;
  box-shadow: var(--hi-edge);
}
.pf-tab { white-space: nowrap }
.pf-tab:hover, .tab:not(:disabled):hover { border-color: var(--text-muted) }
.pf-ico, .feature-ico, .note-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--r-icon);
  background: var(--bg-panel-2);
}
.pf-ico { width: 30px; height: 30px }
.pf-ico svg { width: 18px; height: 18px }
.pf-tab[aria-current="true"], [role="tablist"] [role="tab"][aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--hi-cta), var(--shadow-cta);
}
.pf-tab[aria-current="true"] .pf-ico, [aria-selected="true"] .feature-ico { background: var(--bg-panel); color: var(--accent) }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px }
.fact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 164px;
  padding: 24px 24px 20px;
  border-radius: var(--r-card);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card), var(--hi-edge);
}
.fact-num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font: var(--fw-bold) var(--fs-stat)/1 var(--font-mono);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fact-num--word { font-family: var(--font-display); font-size: var(--fs-stat-word); font-weight: var(--fw-display); letter-spacing: var(--tracking-cjk) }
.unit { font: var(--fw-mark) var(--fs-subhead)/1.1 var(--font-display); letter-spacing: 0; color: var(--accent) }
.fact-label { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: var(--fs-small); font-weight: var(--fw-label); color: var(--text-muted) }
.fact-mark { position: absolute; top: 15px; right: 16px; width: 26px; height: 26px }
.tape {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  margin-top: 18px;
  padding: 8px 14px 8px 18px;
  border: 1px solid var(--tape-edge);
  border-radius: var(--r-card);
  background: var(--tape-fill);
  backdrop-filter: blur(8px);
}
.tape-label, .tape-link { font-size: var(--fs-caption); font-weight: var(--fw-bold); white-space: nowrap }
.tape-label { padding-inline-end: 10px }
.tape-link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding-inline-start: 10px; color: var(--text-muted) }
.tape-link:hover { color: var(--text) }
.flag-item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--fs-small); font-weight: var(--fw-label); white-space: nowrap }
.flag-item svg { width: 28px; height: 20px; overflow: hidden; border-radius: var(--r-flag); box-shadow: var(--shadow-flag) }
.fl-red { fill: var(--flag-red) }
.fl-white { fill: var(--flag-white) }
.fl-blue { fill: var(--flag-blue) }
.fl-black { fill: var(--flag-black) }
.fl-gold { fill: var(--flag-gold) }
.fl-edge { fill: none; stroke: var(--flag-edge) }
.note {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 16px 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card), var(--hi-edge);
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.note b { color: var(--text) }
.note-ico { width: 28px; height: 28px; color: var(--text) }
.note-ico svg { width: 16px; height: 16px }
.note-ico--ok { color: var(--success) }
.note--tl { top: 0; left: 32px }
.note--br { bottom: 0; right: 32px }
.marks { padding-block: 22px 72px; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--hero-bottom), var(--bg) 60%) }
.marks-title { font-size: var(--fs-nav); font-weight: var(--fw-bold); color: var(--text-muted); text-align: center; letter-spacing: .04em }
.marks-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; margin-top: 28px }
.marks-grid li { min-width: 0; text-align: center; font: var(--fw-mark) 1.5em/1.25 var(--font-display); letter-spacing: -.025em }

/* 选项、说明与阅读导航 */
[role="tablist"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px }
.tab { justify-content: center }
[data-tabs] [role="tabpanel"] { margin-top: 20px; min-width: 0 }
.feature-tabs[role="tablist"] { grid-template-columns: repeat(6, minmax(0, 1fr)) }
.feature-tabs .tab { justify-content: flex-start }
.feature-ico { width: 24px; height: 24px }
.feature-ico svg { width: 16px; height: 16px }
.feature-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 48px); align-items: stretch }
.feature-stage > * { min-width: 0 }
.feature-copy { display: grid; align-content: start; gap: 16px }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px }
.scene-board { display: grid; align-content: center; gap: 16px; min-height: 240px; padding: clamp(16px, 3vw, 40px) }
.scene-card { width: min(100%, 25em); padding: 16px; border-radius: var(--r-card) }
.scene-card + .scene-card { justify-self: end }
.scene-card p { color: var(--text-muted); margin-top: 4px }
.draw-rule { display: block; width: 100%; height: 18px; color: var(--text-muted); margin-block: 12px }
.toc-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.toc-tabs.toc-static { position: static }
.toc-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 32px; padding-inline: 12px; border-radius: var(--r-btn); white-space: nowrap; text-decoration: none }
.toc-tabs a:hover, .toc-tabs a.is-current { background: var(--bg-panel-2); font-weight: var(--fw-bold) }
body:has(.toc-tabs) section[id] { scroll-margin-top: 16px }
.faq-item { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--hi-edge) }
.faq-item + .faq-item { margin-top: 10px }
.faq-item summary { position: relative; padding: 12px 48px 12px 16px; min-height: 44px; font-weight: var(--fw-bold); text-wrap: pretty }
.faq-item summary::after { position: absolute; right: 16px; top: 12px; content: "+"; font-family: var(--font-mono) }
.faq-item[open] summary::after { content: "−" }
.faq-answer { padding: 0 16px 16px; color: var(--text-muted) }
.callout { background: var(--bg-panel-2); padding: 16px 20px; border-inline-start: 3px solid var(--text-muted); border-radius: var(--r-chip) var(--r-card) var(--r-card) var(--r-chip) }

/* 套餐、线路、下载与阅读卡 */
.plan-grid, .platform-grid, .article-grid { display: grid; gap: 16px }
.plan-grid, .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.platform-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) }
.plan-card, .platform-card, .article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0 }
.plan-card.is-recommended { border-color: var(--text-muted); box-shadow: var(--shadow-board), var(--hi-edge) }
.plan-card[aria-current="true"] { box-shadow: var(--shadow-board), inset 0 0 0 1px var(--text-muted) }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; width: 100%; justify-content: space-between }
.plan-price { font-size: clamp(1.45rem, 2.8vw, 2.25rem); line-height: 1.3 }
.plan-price small { color: var(--text-muted) }
.plan-card .btn, .platform-card .btn { margin-top: auto; max-width: 100% }
.plan-grid, .table-scroll { margin-bottom: 24px }
.platform-card { padding: 16px }
.platform-card .btn { padding-inline: 12px; min-height: 40px; font-size: var(--fs-small) }
.platform-card .pf-ico { width: 38px; height: 38px }
.platform-card .pf-ico svg { width: 24px; height: 24px }
.article-card time { font-size: var(--fs-small); color: var(--text-muted); font-family: var(--font-mono) }
.article-card h3 a:hover { text-decoration: underline }
.article-card p { color: var(--text-muted) }
.blog-hero { padding-block: var(--section-space); background: var(--bg-panel-2); border-block: 1px solid var(--border) }
.blog-meta { color: var(--text-muted); font-size: var(--fs-small) }
.promo-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: clamp(20px, 4vw, 40px); background: var(--board-fill); border-radius: var(--r-board); box-shadow: var(--shadow-board), var(--hi-board) }
.promo-block p { max-width: 34em; margin-top: 8px }
.promo-block .btn { flex-shrink: 0; white-space: nowrap }

.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border-radius: var(--r-card) }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-panel); text-align: start }
.table-scroll .data-table { min-width: 580px }
.prose > .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0 }
.data-table caption { padding: 12px 16px; text-align: start; color: var(--text); font-weight: var(--fw-bold); background: var(--bg-panel-2) }
.data-table th, .data-table td, .table-scroll th { padding: 11px 16px; text-align: start; border-bottom: 1px solid var(--border); word-break: keep-all }
.data-table th { color: var(--text); font-weight: var(--fw-bold) }
.data-table thead th { background: var(--bg-panel-2); white-space: nowrap }
.route-group + .route-group { margin-top: 24px }
.help-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px }
.help-section > * { min-width: 0 }

.float-cta {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-float);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 40px;
  max-width: 150px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  background: var(--text);
  color: var(--on-ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  box-shadow: var(--shadow-float);
}
.float-cta svg { width: 15px; height: 15px }
.float-cta:hover { background: var(--accent-dark) }
body:has(.float-cta)::after { content: ""; display: block; height: calc(88px + env(safe-area-inset-bottom, 0px)) }

/* 静态样张 */
.preview-section { border-top: 1px solid var(--border) }
.preview-label { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--text-muted) }
.sample-display { font: var(--fw-display) var(--fs-display)/1.1 var(--font-display); letter-spacing: var(--tracking-cjk) }
.sample-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px }
.sample-focus { outline: 2px solid var(--accent); outline-offset: 3px }
.sample-hover { background: var(--accent-dark) }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); gap: 12px }
.swatches li { min-width: 0; padding: 8px; font-size: var(--fs-caption) }
.swatches li::before { content: ""; display: block; height: 44px; margin-bottom: 6px; border-radius: var(--r-chip); border: 1px solid var(--border); background: var(--swatch) }
.swatches [data-token="bg"] { --swatch: var(--bg) }
.swatches [data-token="bg-panel"] { --swatch: var(--bg-panel) }
.swatches [data-token="bg-panel-2"] { --swatch: var(--bg-panel-2) }
.swatches [data-token="border"] { --swatch: var(--border) }
.swatches [data-token="accent"] { --swatch: var(--accent) }
.swatches [data-token="accent-dark"] { --swatch: var(--accent-dark) }
.swatches [data-token="accent-2"] { --swatch: var(--accent-2) }
.swatches [data-token="text"] { --swatch: var(--text) }
.swatches [data-token="text-muted"] { --swatch: var(--text-muted) }
.swatches [data-token="success"] { --swatch: var(--success) }
.swatches [data-token="warn"] { --swatch: var(--warn) }
.swatches [data-token="error"] { --swatch: var(--error) }
.swatches [data-token="on-accent"] { --swatch: var(--on-accent) }
.swatches [data-token="on-ink"] { --swatch: var(--on-ink) }
.swatches [data-token="hero-top"] { --swatch: var(--hero-top) }
.swatches [data-token="hero-bottom"] { --swatch: var(--hero-bottom) }
.swatches [data-token="sand"] { --swatch: var(--sand) }
.swatches [data-token="sand-mid"] { --swatch: var(--sand-mid) }
.swatches [data-token="lilac"] { --swatch: var(--lilac) }
.swatches [data-token="flag-red"] { --swatch: var(--flag-red) }
.swatches [data-token="flag-white"] { --swatch: var(--flag-white) }
.swatches [data-token="flag-blue"] { --swatch: var(--flag-blue) }
.swatches [data-token="flag-black"] { --swatch: var(--flag-black) }
.swatches [data-token="flag-gold"] { --swatch: var(--flag-gold) }
.swatches [data-token="flag-edge"] { --swatch: var(--flag-edge) }
.swatches [data-token="veil-fill"] { --swatch: var(--veil-fill) }
.swatches [data-token="tape-fill"] { --swatch: var(--tape-fill) }
.swatches [data-token="tape-edge"] { --swatch: var(--tape-edge) }

@media (max-width: 1160px) and (min-width: 769px) {
  .fact-num { font-size: clamp(2.25rem, 4.7vw, 3.45rem) }
  .fact-num--word { font-size: clamp(2.1rem, 4.1vw, 3rem) }
  .fact { padding-inline: 16px }
  .fact-mark { width: 20px; height: 20px; right: 10px; top: 9px }
}
@media (max-width: 900px) {
  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .feature-tabs[role="tablist"] { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 768px) {
  :root { --fs-lede: 1.0625rem; --fs-stat: 2.5rem; --fs-stat-word: 2.25rem }
  .hero { padding-top: 20px }
  .stage { display: flex; flex-direction: column; gap: 12px; padding-block: 0 }
  .board { padding: 20px 16px }
  .note { position: static; order: 1; padding: 10px 14px 10px 8px }
  .note--br { order: 2 }
  .pf-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 148px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px }
  .pf-tab { scroll-snap-align: start }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .fact { min-height: 132px; padding: 18px 16px 16px }
  .unit { font-size: var(--fs-body) }
  .fact-mark { top: 8px; right: 9px; width: 19px; height: 19px }
  .tape { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 10px; gap: 6px }
  .tape-label, .tape-link { grid-column: 1 / -1; padding: 0 }
  .tape-link { justify-content: center }
  .flag-item { flex-direction: column; gap: 4px; font-size: var(--fs-caption) }
  .marks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px }
  .marks-grid li { font-size: var(--fs-subhead) }
  .feature-stage, .help-section { grid-template-columns: minmax(0, 1fr) }
  .plan-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 640px) {
  .marks { padding-bottom: 88px }
  .plan-grid, .article-grid { grid-template-columns: minmax(0, 1fr) }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .platform-grid > :last-child:nth-child(odd) { grid-column: 1 / -1 }
  .feature-tabs .tab { gap: 5px; padding-inline: 5px; font-size: var(--fs-caption) }
  .feature-ico { width: 24px; height: 24px }
  .plan-grid, .table-scroll { margin-bottom: 56px }
  .table-scroll { padding: 0 0 2px }
  .table-scroll .data-table, .prose > .data-table, .data-table { display: block; width: 100%; min-width: 0; background: transparent }
  .data-table caption { display: block; border-radius: var(--r-chip); margin-bottom: 8px }
  .data-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
  .data-table tbody { display: grid; gap: 10px }
  .data-table tbody tr { display: block; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden }
  .data-table td, .data-table tbody th { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; padding: 8px 12px; overflow-wrap: anywhere }
  .data-table td::before, .data-table tbody th[data-label]::before { content: attr(data-label); font-weight: var(--fw-bold); color: var(--text) }
  .data-table tbody tr > :last-child { border-bottom: 0 }
  .float-cta { width: 40px; padding: 0; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: var(--r-round) }
  .float-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
}
@media (max-width: 410px) {
  .fact { padding-inline: 12px }
  .fact-num { font-size: 2rem }
  .fact-num--word { font-size: 1.875rem }
  .fact-mark { top: 5px; right: 6px; width: 16px; height: 16px }
  .flag-item { font-size: .75rem }
}

/* fab-guard:start */
@supports (animation-timeline:scroll()){
  .float-cta{animation:fab-guard-in linear both;animation-timeline:scroll(root);animation-range:0 60vh}
}
@keyframes fab-guard-in{0%,40%{opacity:0;visibility:hidden}100%{opacity:1;visibility:visible}}
body:has(.float-cta) > footer:last-of-type{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
body:has(.float-cta):not(:has(> footer)){padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
/* fab-guard:end */
