/* 首页分屏画布：棱镜、设备行与状态条各自独立。 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  min-height: max(640px, calc(100svh - var(--head-h) - 64px));
  background: linear-gradient(180deg, var(--hero-1), var(--hero-2) 52%, var(--hero-3));
  color: var(--white);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  background: radial-gradient(560px 400px at 12% 4%, var(--glow-lilac), var(--clear) 72%),
    radial-gradient(620px 440px at 94% 74%, var(--glow-coral), var(--clear) 72%);
}
.hero::after {
  z-index: 6;
  background: linear-gradient(180deg, var(--clear) 76%, var(--fade-mid) 90%, var(--bg));
}
.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 72px 48px 150px var(--hero-gutter);
}
.flag {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 30px;
  max-width: 100%;
  margin: 1em 0;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--w-20);
  border-radius: 16px;
  background: var(--w-08);
  color: var(--w-88);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .01em;
  text-wrap: balance;
}
.flag-dot {
  width: 8px;
  height: 8px;
  margin-block-start: 5px;
  border-radius: var(--radius-pill);
  background: var(--warn);
  box-shadow: 0 0 0 4px var(--warn-ring);
}
.hero h1 { margin: 28px 0 0; line-height: 1.12; color: var(--white); }
.hero h1 .h1-line { display: block; }
.hero h1 .h1-key {
  background: linear-gradient(90deg, var(--lilac-2), var(--lilac) 46%, var(--warn));
  background-clip: text;
  color: var(--clear);
}
.hero .lede { margin: 22px 0 0; max-width: 35em; font-size: 17px; line-height: 1.72; color: var(--w-76); }
.hero .lede strong { font-weight: 500; color: var(--white); box-shadow: inset 0 -.42em 0 var(--hl); }
.hero .lede code { font-size: .86em; color: var(--w-88); }
.cta-row, .get-actions, .plat-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}
.cta-row, .hero .get-actions { margin-top: 32px; }
.get-actions > *, .plat-actions > * { min-width: 0; }
.get-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  max-width: 100%;
  min-height: 30px;
  margin: 16px 0 0;
  padding: 3px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 13px;
}
.get-note [data-pkg-ver] { font: 12px var(--font-mono); color: var(--text); }
.get-note [data-pkg-ver]:empty, .pkg-version:not(:has([data-pkg-ver]:not(:empty))) { display: none; }
.hero .get-note { background: var(--w-08); color: var(--w-76); border-color: var(--w-14); }
.hero .get-note [data-pkg-ver] { color: var(--white); }
.hero .get-note .sep { color: var(--w-30); }
.pf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--w-14);
  list-style: none;
  font-size: 13px;
  color: var(--w-88);
}
.pf-row li, .pf-row a { display: inline-flex; align-items: center; gap: 7px; }
.pf-row a { color: inherit; text-decoration: none; }
.pf-row a:hover { color: var(--white); text-decoration: underline; }
.pf-row svg { width: 16px; height: 16px; flex: none; }
.pf-chip {
  min-height: 26px;
  padding: 2px 12px;
  border: 1px solid var(--w-20);
  border-radius: var(--radius-pill);
  background: var(--w-08);
  color: var(--w-76);
  font-size: 12px;
}
.hero-stage {
  position: relative;
  z-index: 1;
  overflow: clip;
  border-inline-start: 1px solid var(--w-14);
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  color: var(--white);
}
.stage-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, var(--clear) 1.6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(48% 44% at 48% 46%, var(--mask) 10%, var(--clear));
}
.stage-glow {
  position: absolute;
  left: 46%;
  top: 44%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-pill);
  background: radial-gradient(closest-side, var(--glow-lilac-strong), var(--clear));
}
.stage-cap {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 11px var(--font-mono);
  letter-spacing: .06em;
  color: var(--w-88);
}
.stage-cap::before { content: ""; width: 22px; height: 1px; background: var(--w-30); }
.device {
  position: absolute;
  left: 0;
  top: 47%;
  width: min(600px, 94%);
  aspect-ratio: 640 / 560;
  transform: translateY(-50%);
}
.frost {
  position: absolute;
  inset: 0;
  background: var(--w-05);
  -webkit-backdrop-filter: blur(7px) saturate(1.25);
  backdrop-filter: blur(7px) saturate(1.25);
  clip-path: polygon(46.875% 23.214%, 52.5% 19.643%, 69.6875% 71.429%, 64.0625% 75%, 29.6875% 75%);
}
.device svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s-w { stop-color: var(--white); }
.s-l { stop-color: var(--lilac); }
.s-c { stop-color: var(--warn); }
.s-i { stop-color: var(--ink-deep); }
.f-w { fill: var(--white); }
.f-l { fill: var(--lilac); }
.f-c { fill: var(--warn); }
.f-pill { fill: var(--hero-3); }
.k-w { stroke: var(--white); }
.k-l { stroke: var(--lilac); }
.k-c { stroke: var(--warn); }
.t-tag { font: 500 12px var(--font-mono); }
.statusline { background: var(--bg); color: var(--text-muted); border-bottom: 1px solid var(--border); }
.statusline-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  min-height: 56px;
  padding-block: 8px;
  font: 12px var(--font-mono);
}
.statusline-in span { display: inline-flex; align-items: center; gap: 8px; }
.statusline-in .key { color: var(--text); }
.statusline-in .push { margin-inline-start: auto; }
.sd { width: 7px; height: 7px; border-radius: var(--radius-pill); }
.sd-p { background: var(--accent); }
.sd-d { background: var(--text-muted); }
.sd-r { background: var(--warn); }
.sd-ok { background: var(--success); }
.dl-peek { padding-block-start: 72px; padding-block-end: 96px; }
.dl-peek p { max-width: 40em; color: var(--text-muted); }

/* 胶囊筛选与双面板。 */
[role="tablist"], .fact-row, .badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
[role="tablist"] { margin-block: 24px; }
[role="tab"], .fact-chip, .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}
[role="tab"] { min-height: 44px; padding-inline: 17px; cursor: pointer; font-size: 14px; }
[role="tab"]:hover { border-color: var(--accent); }
[role="tab"][aria-selected="true"] { background: var(--tab-on); color: var(--text); border-color: var(--tab-on); }
[role="tabpanel"] { min-width: 0; }
[role="tabpanel"].tab-enter { animation: panel-in .22s var(--ease) both; }
@keyframes panel-in { from { opacity: .55; } to { opacity: 1; } }
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
  margin: 0;
}
.feature-split h3 { font-size: clamp(24px, 3vw, 32px); }
.feature-split .text-link { display: inline-block; margin-block-start: 16px; }
.feature-split .panel + .panel { display: grid; align-content: center; }
.feature-split pre { margin: 0; }
.badge { background: var(--bg-panel); color: var(--accent-dark); }
.sec--tint .badge { background: var(--bg); color: var(--accent-dark); }
.step-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--accent-dark);
  font: 500 13px/1.5 var(--font-mono);
}
.step-tag b {
  flex: none;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
}
.sec--ink .step-tag { color: var(--ink-link); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; }
.doc-split {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}
.doc-split > .toc { position: sticky; top: 20px; display: grid; max-height: calc(100dvh - 40px); overflow-y: auto; }
.doc-split > .toc a { display: block; line-height: 1.45; text-wrap: balance; }
.doc-split > .toc.toc-static { position: static; max-height: none; }
.numbered-section + .numbered-section { margin-block-start: 48px; }
.numbered-section h2 { margin-block-start: 8px; }
.faq-list { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary {
  position: relative;
  min-height: 48px;
  padding: 14px 42px 14px 16px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  overflow-wrap: break-word;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 16px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-body { padding: 0 16px 16px; color: var(--text-muted); }
.faq-body > :first-child { margin-block-start: 0; }
.term-card { border-block-start: 2px solid var(--accent); }
.term-card dt { font: 500 1rem var(--font-mono); overflow-wrap: anywhere; }
.term-card dd { margin: 8px 0 0; color: var(--text-muted); }
.callout {
  margin: 18px 0;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  color: var(--text);
}
.callout p, .sec--ink .callout p { color: var(--text); }
.callout > :first-child { margin-block-start: 0; }

.store-button {
  min-height: 52px;
  padding: 8px 17px;
  gap: 12px;
  text-align: start;
}
.store-button svg { width: 23px; height: 23px; }
.store-button small, .store-button b { display: block; }
.store-button small { font-size: 11px; font-weight: 400; }
.store-button b { font-size: 15px; font-weight: 500; }
.plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: stretch;
  gap: var(--gap);
}
.plat-card { position: relative; display: grid; align-content: start; gap: 12px; }
.plat-card p { margin: 0; }
.plat-card .plat-actions { margin-block-start: 4px; }
.plat-card[data-mine]::before {
  display: none;
  content: attr(data-mine);
  justify-self: start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--tab-on);
  color: var(--text);
  font-size: 12px;
}
html[data-visitor-os="ios"] .plat-card[data-plat="ios"] { order: -1; }
html[data-visitor-os="mac"] .plat-card[data-plat="mac"] { order: -1; }
html[data-visitor-os="windows"] .plat-card[data-plat="windows"] { order: -1; }
html[data-visitor-os="android"] .plat-card[data-plat="android"] { order: -1; }
html[data-visitor-os="linux"] .plat-card[data-plat="linux"] { order: -1; }
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 { display: block; }
.wx-open-tip {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - var(--gutter) * 2), 460px);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel2);
  color: var(--ink-fg);
  box-shadow: var(--shadow-float);
  text-align: center;
}
.device-entry, .post-card { display: grid; align-content: start; gap: 10px; }
a.device-entry { text-decoration: none; }
a.device-entry:hover { color: var(--accent-dark); border-color: var(--accent); }
.device-entry p, .post-card p { margin: 0; color: var(--text-muted); }
.device-entry svg { width: 32px; height: 32px; color: var(--accent); }
.post-card .badge { justify-self: start; }
.post-card time { color: var(--text-muted); font: 12px var(--font-mono); }
.store-guide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); }
.store-guide > div { flex: 1 1 16rem; min-width: 0; }

.shot-row { display: flex; flex-wrap: wrap; align-items: start; gap: var(--gap); }
.official-shot {
  width: min(100%, 280px);
  max-width: 100%;
  flex-shrink: 0;
  margin: 0;
}
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-shot); }
.official-shot figcaption { padding-block-start: 7px; color: var(--text-muted); font-size: 13px; }
.official-shot img, .shot-placeholder { outline: 1px solid var(--border); outline-offset: -1px; }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border-radius: var(--radius-shot);
  background: linear-gradient(155deg, var(--bg-panel), var(--tab-on));
  color: var(--text-muted);
  font: 13px var(--font-mono);
}

.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
:where(.data-table, .prose table, .article-body table, #install table) {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  text-align: start;
}
:where(.prose table, .article-body table, #install table, .data-table:not(.table-scroll .data-table)) {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.table-scroll > table { display: table; }
:where(.data-table, .prose table, .article-body table, #install table) :is(th, td) {
  min-width: 7em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  overflow-wrap: normal;
  word-break: normal;
}
:where(.data-table, .prose table, .article-body table, #install table) :is(th, td):first-child {
  min-width: 11em;
  word-break: keep-all;
}
:where(.data-table, .prose table, .article-body table, #install table) th {
  background: var(--bg-panel);
  color: var(--text);
  font-weight: 500;
}
:where(.data-table, .prose table, .article-body table, #install table) caption {
  color: var(--text-muted);
  text-align: start;
  padding-block-end: 8px;
}
.dl-fab {
  position: fixed;
  z-index: 20;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
}
html.nav-open .dl-fab { visibility: hidden; }

@media (min-width: 1021px) and (min-height: 975px) {
  .hero-copy { justify-content: center; padding-block: 60px 110px; }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 56px var(--gutter) 40px; }
  .hero-stage { height: 480px; border-inline-start: 0; border-block-start: 1px solid var(--w-14); }
  .device { left: 50%; width: min(560px, 96%); transform: translate(-50%, -50%); }
}
@media (max-width: 768px) {
  .feature-split, .doc-split { grid-template-columns: minmax(0, 1fr); }
  .doc-split > .toc { position: static; display: flex; max-height: none; }
}
@media (max-width: 640px) {
  .fact-row, .badge-row { justify-content: center; gap: 6px 8px; }
  .shot-row { flex-direction: column; align-items: center; }
  .has-dl-fab main { padding-block-end: calc(78px + env(safe-area-inset-bottom)); }
  .dl-fab { width: 52px; height: 52px; padding: 0; }
  .dl-fab .fab-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .has-dl-fab :is(.prose, .article-body) { padding-inline-end: max(0px, calc(76px - var(--gutter))); }
  #install :is(table, tbody, tr, td, th[scope="row"]) { display: block; }
  #install thead { display: none; }
  #install tr { margin-block-end: 12px; border: 1px solid var(--border); border-radius: var(--radius-card); }
  #install :is(th, td) { min-width: 0; }
  #install td:last-child { border-bottom: 0; }
  #install td code { display: inline-block; vertical-align: bottom; max-width: 100%; overflow-x: auto; overflow-wrap: normal; word-break: normal; white-space: pre; }
}
@media (max-width: 560px) {
  .hero-copy { padding-block: 36px 32px; }
  .hero .lede { font-size: 16px; }
  .hero h1 { margin-block-start: 18px; }
  .hero .cta-row, .hero .get-actions { margin-block-start: 24px; }
  .get-note { border-radius: var(--radius-card); }
  .hero-stage { height: 360px; }
  .stage-cap { display: none; }
  .statusline-in { gap: 6px 18px; }
  .statusline-in .push { margin-inline-start: 0; }
  .dl-peek { padding-block: 56px 72px; }
}
@media (prefers-reduced-motion: reduce) {
  [role="tabpanel"].tab-enter { animation: none; }
}
@media (forced-colors: active) {
  .hero h1 .h1-key { background: none; color: inherit; }
}

/* 预览页色样；使用同一组令牌，不添第二套配色。 */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 12px;
  margin-block-start: 24px;
}
.swatch {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
}
.swatch::before {
  content: "";
  min-height: 32px;
  background: var(--sample, var(--bg));
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
}
.swatch[data-field="ink"]::before {
  background: linear-gradient(var(--sample), var(--sample)), var(--bg-panel2);
}
[data-swatch="bg"] { --sample: var(--bg); }
[data-swatch="bg-panel"] { --sample: var(--bg-panel); }
[data-swatch="bg-panel2"] { --sample: var(--bg-panel2); }
[data-swatch="border"] { --sample: var(--border); }
[data-swatch="accent"] { --sample: var(--accent); }
[data-swatch="accent-dark"] { --sample: var(--accent-dark); }
[data-swatch="text"] { --sample: var(--text); }
[data-swatch="text-muted"] { --sample: var(--text-muted); }
[data-swatch="success"] { --sample: var(--success); }
[data-swatch="warn"] { --sample: var(--warn); }
[data-swatch="error"] { --sample: var(--error); }
[data-swatch="tab-on"] { --sample: var(--tab-on); }
[data-swatch="title-tail"] { --sample: var(--title-tail); }
[data-swatch="hero-1"] { --sample: var(--hero-1); }
[data-swatch="hero-2"] { --sample: var(--hero-2); }
[data-swatch="hero-3"] { --sample: var(--hero-3); }
[data-swatch="ink-deep"] { --sample: var(--ink-deep); }
[data-swatch="lilac"] { --sample: var(--lilac); }
[data-swatch="lilac-2"] { --sample: var(--lilac-2); }
[data-swatch="white"] { --sample: var(--white); }
[data-swatch="mask"] { --sample: var(--mask); }
[data-swatch="clear"] { --sample: var(--clear); }
[data-swatch="w-88"] { --sample: var(--w-88); }
[data-swatch="w-76"] { --sample: var(--w-76); }
[data-swatch="w-56"] { --sample: var(--w-56); }
[data-swatch="w-30"] { --sample: var(--w-30); }
[data-swatch="w-20"] { --sample: var(--w-20); }
[data-swatch="w-14"] { --sample: var(--w-14); }
[data-swatch="w-08"] { --sample: var(--w-08); }
[data-swatch="w-05"] { --sample: var(--w-05); }
[data-swatch="ink-fg"] { --sample: var(--ink-fg); }
[data-swatch="ink-muted"] { --sample: var(--ink-muted); }
[data-swatch="ink-link"] { --sample: var(--ink-link); }
[data-swatch="glow-lilac"] { --sample: var(--glow-lilac); }
[data-swatch="glow-lilac-strong"] { --sample: var(--glow-lilac-strong); }
[data-swatch="glow-coral"] { --sample: var(--glow-coral); }
[data-swatch="fade-mid"] { --sample: var(--fade-mid); }
[data-swatch="panel-a"] { --sample: var(--panel-a); }
[data-swatch="panel-b"] { --sample: var(--panel-b); }
[data-swatch="dot"] { --sample: var(--dot); }
[data-swatch="hl"] { --sample: var(--hl); }
[data-swatch="warn-ring"] { --sample: var(--warn-ring); }
[data-swatch="veil"] { --sample: var(--veil); }
.spec-stack > * + * { margin-block-start: 18px; }