/* 首屏画布 */
.hero {
  position: relative;
  height: clamp(640px, calc(100vh - 132px), 800px);
  overflow: clip;
  isolation: isolate;
  border-radius: var(--r-hero);
  color: var(--c-text);
  background: var(--c-hero);
}
.hero-atmos, .hero-dots, .hero::after { position: absolute; pointer-events: none; }
.hero-atmos { inset: 0; z-index: -2; background: var(--paint-atmos); }
.hero-dots {
  inset: 0 var(--gutter) 0 auto;
  width: 56%;
  z-index: -1;
  background: var(--paint-dots) 0 0 / 22px 22px;
  -webkit-mask-image: var(--mask-dots);
  mask-image: var(--mask-dots);
}
.hero::after { content: ""; inset: 0; z-index: 4; background: var(--paint-hero-foot); }
.hero-grid {
  position: relative;
  z-index: 1;
  height: 100%;
  padding-inline: var(--hero-pad);
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 680px);
  justify-content: space-between;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero h1 { margin-block-start: 22px; line-height: 1.18; }
.hero h1 .line { display: block; }
.hero .kw { color: var(--c-accent-dark); }
@supports (background-clip: text) {
  .hero .kw { background: var(--paint-keyword); background-clip: text; color: var(--c-clear); }
}
.lede { color: var(--c-muted); font-size: 17px; line-height: 1.78; }
.hero .lede { margin-block-start: 22px; max-width: 528px; }
.lede strong { color: var(--c-text); font-weight: 500; }

.cta-row, .get-actions, .plat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hero :is(.cta-row, .get-actions) { margin-block-start: 34px; }
.get-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-inline-size: 100%;
  margin-block-start: 16px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--c-note-edge);
  border-radius: var(--r-note);
  background: var(--c-note);
  color: var(--c-muted);
  box-shadow: var(--shadow-note);
  font-size: 13px;
}
.get-note .ver { font: 400 12px/1.6 var(--font-mono); color: var(--c-text); }
.pip, .sdot { display: inline-block; border-radius: var(--r-dot); }
.pip { width: 7px; height: 7px; background: var(--paint-dot-light), var(--c-success); box-shadow: var(--shadow-green-dot); }
.sdot { width: 9px; height: 9px; }
.sdot-blue { background: var(--paint-dot-light), var(--c-accent); box-shadow: var(--shadow-blue-dot); }
.sdot-green { background: var(--paint-dot-light), var(--c-success); box-shadow: var(--shadow-green-dot); }
.platforms, .fact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero .platforms { margin-block-start: 28px; }
.plat, .badge, .fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-inline-size: 100%;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-chip);
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
.plat { padding-inline-end: 12px; }
.plat svg { width: 14px; height: 14px; color: var(--c-accent-dark); }
a.plat:hover { border-color: var(--c-accent); text-decoration: underline; }
.fact-pill { border-radius: var(--r-note); }
.badge--tint { background: var(--c-tint); color: var(--c-accent-dark); }

.device { position: relative; width: 100%; max-width: 680px; aspect-ratio: 680 / 620; justify-self: end; }
.device-floor { position: absolute; inset: 91% 24% 2%; border-radius: var(--r-dot); background: var(--paint-floor); }
.globe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.st-white { stop-color: var(--c-panel); }
.st-sky { stop-color: var(--c-sky); }
.st-accent { stop-color: var(--c-accent); }
.st-dark { stop-color: var(--c-accent-dark); }
.st-light { stop-color: var(--c-core-light); }
.g-rim, .g-outline, .g-mer, .g-dot { fill: none; stroke: var(--c-accent); }
.g-rim { stroke-width: 14; opacity: .05; }
.g-outline, .g-mer, .g-eq, .g-tick { stroke-width: 1.25; }
.g-mer { opacity: .92; }
.g-dot { stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; opacity: .55; }
.g-eq, .g-tick { stroke: var(--c-accent); }
.g-tick, .n-ring, .travel-pip { fill: var(--c-panel); }
.travel-halo, .travel-dot, .n-halo, .n-core { fill: var(--c-accent); }
.travel-halo { fill-opacity: .18; }
.n-halo { fill-opacity: .2; }
.n-ring { stroke: var(--c-accent); stroke-width: 1.75; }
.core-shadow { fill: var(--c-accent-dark); opacity: .3; }
.core-ring { fill: none; stroke: var(--c-accent); stroke-width: 1; opacity: .3; }
.core-edge { fill: none; stroke: var(--c-panel); stroke-width: 1.2; opacity: .5; }
.core-spec { fill: var(--c-panel); opacity: .78; }
.core-txt { fill: var(--c-panel); font: 500 17px var(--font-mono); letter-spacing: .12em; }
.rc { position: absolute; z-index: 2; max-inline-size: 64%; }
.rc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  background: var(--c-note);
  border: 1px solid var(--c-note-edge);
  transform: translate(-7px, 7px);
}
.rc-r::before { transform: translate(7px, 7px); }
.rc-face {
  position: relative;
  padding: 11px 14px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-card-l);
}
.rc-r .rc-face { box-shadow: var(--shadow-card-r); }
.rc-line { display: flex; align-items: center; gap: 8px; }
.rc-line code { min-width: 0; font-size: 12.5px; letter-spacing: -.01em; }
.rc-line .set { font-size: 14px; font-weight: 500; }
.rc-sub { margin-block-start: 5px; font-size: 12px; line-height: 1.4; color: var(--c-muted); }
.pill-reject {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  color: var(--c-panel);
  background: var(--paint-reject);
  font: 400 10.5px/1.6 var(--font-mono);
  letter-spacing: .05em;
}
.sq { width: 16px; height: 16px; border-radius: var(--r-mark); background: var(--paint-mark); }
.rc-a { left: 4.4%; top: 26.1%; }
.rc-b { right: 7%; top: 11.3%; }
.rc-c { left: 3.5%; top: 67.7%; }
.rc-d { right: 3%; top: 72.3%; }
.statusline {
  margin-top: 24px;
  min-height: 52px;
  padding: 10px var(--hero-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  border-block: 1px solid var(--c-border);
  color: var(--c-muted);
  font: 400 12px/1.5 var(--font-mono);
}
.sl { display: inline-flex; align-items: center; gap: 8px; }
.sl b { color: var(--c-text); font-weight: 500; }
.sl .mark { width: 8px; height: 8px; }

/* 能力与对照 Tabs */
.tab-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
[role="tab"] {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  color: var(--c-text);
  background: var(--c-panel);
  text-align: start;
}
[role="tab"][aria-selected="true"] { border-color: var(--c-accent); color: var(--c-accent-dark); background: var(--c-tint); }
.tab-list + [role="tabpanel"] { margin-block-start: 16px; }
.feature-switch {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 80px);
}
.feature-switch > * { min-width: 0; }
.feature-item { border-bottom: 1px solid var(--c-border); }
.feature-item:has(> [aria-selected="true"]) {
  --focus: var(--c-panel);
  border-color: var(--c-wine);
  border-radius: var(--r-card);
  color: var(--c-panel);
  background: var(--c-wine);
}
.feature-item > [role="tab"] {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px clamp(14px, 2vw, 26px);
  border: 0;
  color: var(--c-text);
  background: var(--c-clear);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
}
.feature-item > [aria-selected="true"] { color: var(--c-panel); background: var(--c-clear); }
.feature-item > button::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: var(--r-mark);
  background: var(--paint-mark);
}
.feature-item > button::after, .faq > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.feature-item > button::after { margin-inline-start: auto; }
.feature-item > [aria-selected="true"]::after { transform: rotate(225deg); }
.feature-detail { padding: 0 clamp(16px, 3vw, 44px) 24px; }
.feature-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block-start: 18px;
  border-radius: var(--r-dot);
  color: var(--c-wine);
  background: var(--c-panel);
  text-decoration: none;
}
.feature-link:hover { text-decoration: underline; }
.rule-stage {
  display: grid;
  align-content: center;
  min-height: 320px;
  padding: var(--panel-pad);
  border-radius: var(--r-hero);
  background: var(--paint-grid) 0 0 / 28px 28px, var(--c-bg);
  color: var(--c-text);
}
.rule-deck { min-width: 0; display: grid; gap: 14px; }
.rule-deck .card { width: min(92%, 360px); padding: 16px; }
.rule-deck .card + .card { justify-self: end; }
.rule-deck:not([hidden]) { animation: rule-show .24s var(--ease) both; }
@keyframes rule-show { from { opacity: 0; } to { opacity: 1; } }

/* 长文、目录、原生折叠与数据表 */
.toc {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-hair);
  padding: 8px;
}
.toc ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block;
  padding: 8px 10px;
  color: var(--c-accent-dark);
  background: var(--c-tint);
  border-radius: var(--r-btn);
  text-decoration: none;
}
.toc a:hover { text-decoration: underline; }
.chapter-split { display: grid; grid-template-columns: minmax(0, 225px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 5vw, 64px); }
.chapter-split > * { min-width: 0; }
.toc--sticky, .chapter-rail { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 3; }
.toc--sticky { margin-block-end: 20px; }
.chapter-rail { max-height: calc(100dvh - var(--nav-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
.chapter-rail .toc ul { flex-direction: column; }
.sticky-off { position: static; max-height: none; overflow: visible; }
.chapter-body > section + section { margin-block-start: clamp(44px, 8vw, 96px); }
.step-label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-block-end: 10px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-panel);
  font: 500 .8rem/1.5 var(--font-mono);
}
.sec--ink .step-label { background: var(--c-ink-link); color: var(--c-ink-band); }
.faq { border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); }
.faq > summary {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 48px;
  padding: 12px 44px 12px 16px;
  list-style: none;
  font-weight: 500;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { position: absolute; top: 50%; inset-inline-end: 18px; transform: translateY(-65%) rotate(45deg); }
.faq[open] > summary::after { transform: translateY(-35%) rotate(225deg); }
.faq-body { padding: 14px 16px 16px; border-top: 1px solid var(--c-border); color: var(--c-muted); }
.callout {
  padding: 16px var(--panel-pad);
  border-inline-start: 3px solid var(--c-accent);
  border-radius: var(--r-btn);
  background: var(--c-tint);
  color: var(--c-text);
}
.table-scroll, .prose table, .chapter-body table, .wrap table:not(.table-scroll table) {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.table-scroll { border: 1px solid var(--c-border); border-radius: var(--r-card); }
table { border-collapse: collapse; text-align: start; background: var(--c-panel); color: var(--c-text); }
.table-scroll table { width: 100%; }
.table-scroll :is(th, td), .data-table :is(th, td),
:is(.prose, .chapter-body, .wrap) table :is(th, td) {
  min-width: 7em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
table th { color: var(--c-text); background: var(--c-tint); font-weight: 500; }
table th[scope="row"] { width: 1%; white-space: nowrap; }
table td code { overflow-wrap: anywhere; }
.term-card dt { font: 500 1rem/1.4 var(--font-mono); color: var(--c-accent-dark); }
.term-card dd { margin-block-start: 10px; color: var(--c-muted); }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.article-card > p:not(.card-meta) { color: var(--c-muted); }
.article-card .article-more { margin-block-start: auto; }

/* 获取入口 */
.appstore-btn { min-height: 50px; background: var(--c-accent-dark); color: var(--c-panel); }
.appstore-btn svg { width: 22px; height: 22px; }
.appstore-btn small { display: block; font-size: .75rem; }
.appstore-btn:not(:disabled):hover { background: var(--c-accent); color: var(--c-panel); }
.store-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.store-cta > * { min-width: 0; }
.store-cta-copy { flex: 1 1 220px; }
.device-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  color: var(--c-text);
  text-decoration: none;
}
.device-card svg { width: 34px; height: 34px; color: var(--c-accent-dark); }
.device-card p { color: var(--c-muted); }
.device-card:hover h3 { text-decoration: underline; }
.plat-grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.plat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 calc((100% - 2 * var(--gap)) / 3);
  min-width: 0;
  max-width: calc((100% - var(--gap)) / 2);
}
.plat-card > * { max-width: 100%; }
.plat-card .plat-actions { margin-top: auto; order: 2; width: 100%; padding-top: 8px; }
html[data-visitor-os="ios"] .plat-card[data-plat="ios"],
html[data-visitor-os="mac"] .plat-card[data-plat="mac"],
html[data-visitor-os="windows"] .plat-card[data-plat="windows"],
html[data-visitor-os="android"] .plat-card[data-plat="android"],
html[data-visitor-os="linux"] .plat-card[data-plat="linux"] { order: -1; border-color: var(--c-accent); }
html[data-visitor-os="ios"] .plat-card[data-plat="ios"][data-mine]::before,
html[data-visitor-os="mac"] .plat-card[data-plat="mac"][data-mine]::before,
html[data-visitor-os="windows"] .plat-card[data-plat="windows"][data-mine]::before,
html[data-visitor-os="android"] .plat-card[data-plat="android"][data-mine]::before,
html[data-visitor-os="linux"] .plat-card[data-plat="linux"][data-mine]::before {
  content: attr(data-mine);
  order: -1;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  color: var(--c-accent-dark);
  background: var(--c-tint);
  font-size: 12px;
}
.wx-open-tip {
  position: fixed;
  z-index: 60;
  inset-inline: 0;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 12px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-note);
  color: var(--c-ink-text);
  background: var(--c-ink-band);
  box-shadow: var(--shadow-card);
}
.wx-open-tip a { color: var(--c-ink-link); }

.shot-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gap); }
.official-shot { flex-shrink: 0; width: min(100%, 280px); }
.official-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.official-shot figcaption { margin-top: 8px; color: var(--c-muted); font-size: .875rem; }
.official-shot { border-radius: var(--r-card); }
.official-shot figcaption::before { content: ""; display: block; margin-block-end: 8px; border-top: 1px solid var(--c-border); }
.preview-shot {
  display: grid;
  place-items: center;
  aspect-ratio: 750 / 1334;
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  color: var(--c-accent-dark);
  background: var(--paint-grid) 0 0 / 24px 24px, var(--c-tint);
  font: 400 .875rem var(--font-mono);
}
.dl-fab {
  position: fixed;
  right: var(--gutter);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.dl-fab:hover { transform: translateY(-1px); }
.dl-fab-ico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-dot);
  color: var(--c-panel);
  background: var(--paint-cta);
  box-shadow: var(--shadow-fab-dot);
}
.dl-fab-ico svg { width: 15px; height: 15px; }

.preview-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); gap: 10px; }
.preview-palette > div { min-width: 0; padding: 8px; border: 1px solid var(--c-border); border-radius: var(--r-btn); background: var(--c-panel); color: var(--c-text); }
.swatch { display: block; height: 38px; margin-block-end: 8px; border: 1px solid var(--c-border); border-radius: var(--r-mark); }
.sw-bg { background: var(--c-bg); }
.sw-panel { background: var(--c-panel); }
.sw-wine { background: var(--c-wine); }
.sw-border { background: var(--c-border); }
.sw-accent { background: var(--c-accent); }
.sw-dark { background: var(--c-accent-dark); }
.sw-text { background: var(--c-text); }
.sw-muted { background: var(--c-muted); }
.sw-success { background: var(--c-success); }
.sw-warn { background: var(--c-warn); }
.sw-error { background: var(--c-error); }
.sw-hero { background: var(--c-hero); }
.sw-sky { background: var(--c-sky); }
.sw-tint { background: var(--c-tint); }
.sw-ink { background: var(--c-ink-band); }
.sw-ink-text { background: var(--c-ink-text); }
.sw-ink-muted { background: var(--c-ink-muted); }
.sw-ink-link { background: var(--c-ink-link); }
.sw-core { background: var(--c-core-light); }
.sw-glass { background: var(--c-glass); }
.sw-glass-hover { background: var(--c-glass-hover); }
.sw-note { background: var(--c-note); }
.sw-note-edge { background: var(--c-note-edge); }
.sw-chip { background: var(--c-chip); }
.sw-veil { background: var(--c-veil); }
.sw-clear { background: var(--c-clear); }
.preview-display { font: 400 var(--size-h1)/1.18 var(--font-display); letter-spacing: -.02em; }
.preview-facts { margin-block-start: 18px; }

@media (max-width: 1180px) {
  .hero-grid { padding-inline: 32px; grid-template-columns: minmax(0, 500px) minmax(0, 600px); }
  .statusline { padding-inline: 32px; }
}
@media (max-width: 1020px) {
  .hero { height: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); height: auto; padding: 56px 28px 80px; gap: 40px; }
  .hero-dots { width: 100%; right: 0; }
  .device { justify-self: center; }
  .statusline { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .feature-switch, .chapter-split { grid-template-columns: minmax(0, 1fr); }
  .chapter-rail, .toc--sticky { position: static; max-height: none; overflow: visible; }
  .chapter-rail .toc ul { flex-direction: row; }
  .plat-card { flex-basis: 100%; max-width: 100%; }
}
@media (max-width: 640px) {
  .hero-grid { padding: 36px var(--gutter) 42px; gap: 22px; }
  .hero .lede { font-size: 15.5px; }
  .hero :is(.cta-row, .get-actions) { margin-block-start: 24px; }
  .hero .platforms { margin-block-start: 20px; }
  .fact-row, .platforms { justify-content: center; }
  .plat, .fact-pill { font-size: 12px; }
  .rc { max-inline-size: 62%; }
  .rc-line { gap: 5px; flex-wrap: wrap; }
  .rc-line code { font-size: 9.5px; }
  .rc-line .set { font-size: 11px; }
  .rc-sub { display: none; }
  .rc-face { padding: 5px 7px; }
  .rc-a { left: 0; top: 24%; }
  .rc-b { right: 0; top: 6%; }
  .rc-c { left: 0; top: 59%; }
  .rc-d { right: 0; top: auto; bottom: 4%; }
  .pill-reject { font-size: 9px; padding: 1px 6px; }
  .statusline { padding-inline: var(--gutter); }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { margin-inline: auto; }
  #install :is(table, tbody, tr, td, th[scope="row"]) { display: block; width: auto; min-width: 0; }
  #install thead { display: none; }
  #install tr + tr { border-block-start: 1px solid var(--c-border); }
  #install th[scope="row"] { white-space: normal; }
  #install :is(td, th) code { word-break: normal; overflow-wrap: normal; }
  #install :is(td, th):has(code) { overflow-x: auto; }
  .dl-fab {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
  }
  .dl-fab-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .dl-fab-ico { width: 36px; height: 36px; }
  .dl-fab-ico svg { width: 17px; height: 17px; }
  body:has(.dl-fab) main { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
@media (forced-colors: active) {
  .hero .kw { color: LinkText; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-fab { transition: none; }
  .rule-deck:not([hidden]) { animation: none; }
}