/* 首页暗场与评测装置 */
.hero { padding: 12px var(--edge) 0; }
.stage {
  position: relative;
  display: grid;
  grid-template-columns: 45fr 55fr;
  height: clamp(640px,calc(100vh - 140px),820px);
  height: clamp(640px,calc(100svh - 140px),820px);
  overflow: clip;
  border-radius: var(--r-hero);
  background: radial-gradient(ellipse 52% 58% at 80% 94%,var(--accent-glow),var(--clear) 72%),var(--hero-bg);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--stage-edge);
}
.stage :focus-visible { outline-color: var(--accent); }
.copy { align-self: center; position: relative; z-index: 3; padding: 0 24px 0 var(--indent); max-width: 620px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 3px 14px 3px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  color: var(--on-dark-muted);
  font-size: 13px;
  font-weight: 500;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-round);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.hero-title { margin: 24px 0 30px; }
.hero-line { display: block; }
.hero-title em { font-style: normal; color: var(--accent); }
.lede { margin-block-start: 24px; max-width: 30em; font-size: 16px; line-height: 1.75; color: var(--on-dark-muted); }
.lede strong { color: var(--on-dark); font-weight: 600; }
.platforms { margin-block-start: 28px; padding-block-start: 22px; border-block-start: 1px solid var(--line-dark); }
.platforms-label { display: block; margin-block-end: 12px; color: var(--on-dark-muted); font: 500 12px/1.5 var(--font-mono); letter-spacing: .06em; }
.platform-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.platform-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding-inline: 11px 13px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 500;
}
.platform-chip svg { display: block; width: 15px; height: 15px; color: var(--on-dark-muted); }
.platform-chip:is(:hover,:focus-visible) { border-color: var(--accent); background: var(--chip-bg-hover); color: var(--on-dark); }
.platform-chip:is(:hover,:focus-visible) svg { color: var(--accent); }
.visual { position: relative; z-index: 1; min-height: 0; }
.cat-art { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; aspect-ratio: 600 / 720; display: block; }
.orb { fill: none; stroke: var(--orbit-line); }
.orb-outer { stroke-dasharray: 2 7; }
.orb-dot { fill: var(--on-dark-faint); }
.orb-label { font: 500 12.5px var(--font-mono); fill: var(--on-dark-muted); letter-spacing: .02em; }
.orbit-core-mark { filter: drop-shadow(0 0 18px var(--accent-ring)); }
.c-shade { fill: var(--graphite-2); }
.c-lit { fill: var(--graphite-3); }
.c-fur { fill: var(--graphite-4); }
.c-ink { fill: var(--graphite-1); }
.rim { stroke: var(--accent); stroke-opacity: .6; stroke-width: 1.6; stroke-linejoin: round; }
.tail, .limb-far, .limb-near, .band, .band-line, .face-line, .whisker, .wave { fill: none; stroke-linecap: round; }
.tail, .limb-far { stroke: var(--graphite-2); }
.limb-near { stroke: var(--graphite-3); }
.face-line { stroke: var(--graphite-1); stroke-width: 2.5; }
.whisker { stroke: var(--on-dark-faint); stroke-width: 1.2; }
.phone-body { fill: var(--graphite-1); stroke: var(--graphite-4); }
.phone-screen, .eye { fill: var(--screen); }
.phone-ui { fill: var(--graphite-3); opacity: .55; }
.phone-ui-on { fill: var(--accent-shade); }
.band { stroke: var(--accent); stroke-width: 15; }
.band-line { stroke: var(--accent-shade); stroke-width: 3; }
.cup-depth { fill: var(--accent-shade); }
.cup-face { fill: var(--accent); }
.cup-pad { fill: var(--accent-deep); }
.mesh-line { fill: none; stroke: var(--accent-shade); stroke-width: .75; }
.wave { stroke: var(--accent); stroke-width: 2; opacity: .25; animation: wave-breathe 4s ease-in-out infinite; }
.wave-2 { animation-delay: .6s; }
@keyframes wave-breathe { 0%,100% { opacity: .2; } 50% { opacity: .9; } }

.qa-stack { position: absolute; inset: 0; z-index: 2; }
.qa-card {
  position: absolute;
  padding: 16px 18px 17px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
  animation: card-rise .45s var(--ease) both;
}
.qa-card--q { right: 104px; bottom: 236px; width: 256px; animation-delay: .15s; }
.qa-card--a { right: 28px; bottom: 118px; width: 304px; animation-delay: .3s; }
.qa-card--setting { right: 168px; bottom: 36px; width: 262px; padding: 14px 16px; animation-delay: .45s; }
@keyframes card-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.qa-head { display: flex; align-items: center; gap: 9px; margin-block-end: 9px; }
.qa-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-round);
  background: var(--bg-panel-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.qa-name { font-size: 13px; font-weight: 600; }
.qa-tag {
  margin-inline-start: auto;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 11.5px;
}
.qa-text { font-size: 15px; line-height: 1.55; }
.set-row { display: flex; align-items: center; gap: 12px; }
.set-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.set-label { font-size: 14px; font-weight: 600; }
.set-key { font: 500 11.5px/1.4 var(--font-mono); color: var(--text-muted); overflow-wrap: anywhere; }
.set-state { margin-inline-start: auto; font-size: 13px; color: var(--text-muted); }
.switch {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text);
}
.switch::before {
  content: "";
  position: absolute;
  inset: 2px auto auto 2px;
  width: 18px;
  height: 18px;
  border-radius: var(--r-round);
  background: var(--bg);
  box-shadow: var(--shadow-knob);
}
.switch.is-on { background: var(--accent); color: var(--text); }
.switch.is-on::before { transform: translateX(18px); }

/* 贯穿面板的评测时间轴 */
.peek { padding: 72px max(var(--edge),var(--gutter)) 0; text-align: center; }
.peek-title { line-height: 1.3; }
.peek-sub { margin: 16px auto 0; max-width: 40em; line-height: 1.75; color: var(--text-muted); }
.peek-node {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 48px auto 0;
  border-radius: var(--r-round);
  background: var(--accent);
  color: var(--text);
}
.peek-node svg { width: 24px; height: 24px; }
.timeline { position: relative; isolation: isolate; display: grid; gap: 72px; padding-block-start: 120px; max-width: 1248px; margin-inline: auto; text-align: start; }
.timeline::before, .timeline-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}
.timeline-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: 36px;
  padding: clamp(24px,5vw,64px);
}
.timeline-copy, .timeline-props { position: relative; }
.timeline-props { display: grid; gap: 12px; padding-block: 8px; }
.timeline-props .card { width: min(100%, 23rem); }
.timeline-panel:nth-child(odd) .timeline-props .card:first-child,
.timeline-panel:nth-child(even) .timeline-props .card:nth-child(2) { justify-self: end; }
.timeline-props .card + .card { margin-block-start: -6px; }
.timeline-title { font-size: clamp(23px,2vw + 8px,34px); }

.tablist, [role="tablist"], .toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
}
[role="tablist"][aria-orientation="vertical"] { flex-direction: column; align-items: stretch; }
[role="tab"], .toc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  text-align: center;
  overflow-wrap: break-word;
}
[role="tab"]:hover, .toc a:hover { background: var(--bg-panel-2); color: var(--text); }
[role="tab"][aria-selected="true"], .toc a[aria-current] {
  border-color: var(--border);
  background: var(--bg);
  color: var(--accent-dark);
  box-shadow: var(--shadow-knob);
  font-weight: 700;
}
[role="tabpanel"] { margin-block-start: 16px; min-width: 0; }
.toc--sticky { position: sticky; top: 8px; z-index: 5; }
.toc--sticky ~ [id] { scroll-margin-block-start: 12rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
}
.faq-item + .faq-item { margin-block-start: 12px; }
.faq-item summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 14px 52px 14px 18px;
  border-radius: var(--r-card);
  font-weight: 700;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  inset: 50% 18px auto auto;
  transform: translateY(-50%);
  color: var(--accent-dark);
  font: 700 1.3em var(--font-mono);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--bg-panel); color: var(--text); }
.faq-answer { padding: 12px 18px 18px; color: var(--text-muted); }

.term-card dt { font: 800 1.25rem/1.3 var(--font-display); }
.term-card dd { margin-block-start: 8px; }
.card-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 10px; }
.card-head > * { min-width: 0; }
.download-card .cta-row, .post-card .text-link { margin-block-start: 16px; }
.version-slot:empty { display: none; }
.tag, .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: var(--r-round); background: var(--text-muted); }
.status--first { color: var(--accent-dark); font-weight: 700; }
.status--first::before { background: var(--accent-dark); }
.status--recommended::before { background: var(--success); }
.status--archived::before { background: var(--warn); }
.callout {
  padding: 16px 20px;
  border-inline-start: 3px solid var(--accent-dark);
  border-radius: 0 var(--r-menu) var(--r-menu) 0;
  background: var(--bg-panel);
  color: var(--text);
}
.article-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.article-download > div { min-width: 0; }

.table-wrap, .prose table, .article-body table {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose table, .article-body table { display: block; }
.data-table, .prose table, .article-body table { border-collapse: collapse; text-align: start; }
.data-table { width: 100%; }
:is(.data-table,.prose table,.article-body table) :is(th,td) {
  min-width: 7em;
  padding: 12px 14px;
  border-block-end: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
:is(.data-table,.prose table,.article-body table) th { background: var(--bg-panel); color: var(--text); }
:is(.data-table,.prose table,.article-body table) caption { padding: 8px 14px; text-align: start; font-weight: 700; }

.dl-fab {
  position: fixed;
  right: max(24px,env(safe-area-inset-right));
  bottom: max(24px,env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 18px 22px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-fab);
  transition: transform .2s var(--ease);
}
.dl-fab:is(:hover,:focus-visible) { transform: translateY(-2px); }
.nav-open .dl-fab { visibility: hidden; }

.palette {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%, 10rem),1fr));
  gap: 12px;
}
.swatch { min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-small); }
.swatch::before { content: ""; display: block; height: 44px; border: 1px solid var(--border); border-radius: var(--r-small); background: var(--sample); }
.sw-bg { --sample: var(--bg); }
.sw-panel { --sample: var(--bg-panel); }
.sw-panel-2 { --sample: var(--bg-panel-2); }
.sw-border { --sample: var(--border); }
.sw-rule { --sample: var(--rule); }
.sw-text { --sample: var(--text); }
.sw-muted { --sample: var(--text-muted); }
.sw-accent { --sample: var(--accent); }
.sw-dark { --sample: var(--accent-dark); }
.sw-deep { --sample: var(--accent-deep); }
.sw-shade { --sample: var(--accent-shade); }
.sw-success { --sample: var(--success); }
.sw-warn { --sample: var(--warn); }
.sw-error { --sample: var(--error); }
.sw-hero { --sample: var(--hero-bg); }
.sw-on { --sample: var(--on-dark); }
.sw-on-muted { --sample: var(--on-dark-muted); }
.sw-on-faint { --sample: var(--on-dark-faint); }
.sw-line-dark { --sample: var(--line-dark); }
.sw-orbit { --sample: var(--orbit-line); }
.sw-stage { --sample: var(--stage-edge); }
.sw-chip { --sample: var(--chip-bg); }
.sw-chip-hover { --sample: var(--chip-bg-hover); }
.sw-glow { --sample: var(--accent-glow); }
.sw-ring { --sample: var(--accent-ring); }
.sw-veil { --sample: var(--veil); }
.sw-clear { --sample: var(--clear); }
.sw-graphite-1 { --sample: var(--graphite-1); }
.sw-graphite-2 { --sample: var(--graphite-2); }
.sw-graphite-3 { --sample: var(--graphite-3); }
.sw-graphite-4 { --sample: var(--graphite-4); }
.sw-screen { --sample: var(--screen); }
.swatch--stage::before { background: linear-gradient(var(--sample),var(--sample)),var(--hero-bg); }
.preview-dark { padding: 16px; border-radius: var(--r-card); background: var(--hero-bg); color: var(--on-dark); }
.preview-dark :focus-visible { outline-color: var(--accent); }
.demo-hover { background: var(--accent-deep); color: var(--text); }
.demo-focus { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.demo-pressed { transform: translateY(1px); }

@media (max-width: 1180px) {
  .qa-card--q { right: 80px; }
  .qa-card--setting { right: 128px; }
}
@media (max-width: 900px) {
  .stage { height: auto; grid-template-columns: minmax(0,1fr); border-radius: var(--r-compact); }
  .copy { padding: 40px 24px 8px; max-width: none; }
  .hero-title { font-size: clamp(24px,4vw + 10px,30px); margin: 20px 0 24px; }
  .visual { display: flex; flex-direction: column; }
  .cat-art { position: relative; width: 100%; height: auto; }
  .qa-stack { position: relative; inset: auto; display: flex; flex-direction: column; gap: 12px; margin: clamp(-140px,-20vw,-56px) 16px 24px; }
  .qa-card { position: relative; right: auto; bottom: auto; width: auto; max-width: 320px; }
  .qa-card--a { align-self: flex-end; }
  .qa-card--setting { display: none; }
  .peek { padding-block-start: 56px; }
}
@media (max-width: 640px) {
  .copy { padding-inline: var(--gutter); }
  .copy .btn { padding-inline: 16px; }
  .platform-list { justify-content: center; }
  .timeline { padding-block-start: 56px; gap: 40px; }
  .timeline-panel { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .timeline-panel::before { display: none; }
  .timeline-props .card { width: min(100%, 20rem); }
  .toc--sticky { position: static; }
  .toc--sticky ~ [id] { scroll-margin-block-start: 1rem; }
  .dl-fab { right: max(16px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .qa-card { animation: none; }
  .wave { animation: none; opacity: .6; }
  .dl-fab:is(:hover,:focus-visible) { transform: none; }
}