/* 已确认首屏：居中排版与跨区规则手稿窗。 */
.first {
  position: relative; overflow-x: clip;
  background:
    radial-gradient(52% 46% at 0% 100%,var(--warm-a80),var(--clear) 72%),
    radial-gradient(48% 42% at 100% 96%,var(--warm-a80),var(--clear) 72%),
    linear-gradient(180deg,var(--bg-panel) 0%,var(--bg) 40%,var(--bg) 100%);
  color: var(--text);
}
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 32px 0; }
.hero__icon {
  display: block; width: 48px; height: 48px; border-radius: var(--r-icon);
  background: var(--bg-panel); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border),var(--shadow-tile);
}
.hero__title { margin: 18px 0 0; font-size: clamp(30px,2.2vw + 16px,48px); line-height: 1.12; }
.hero__title em { font-style: italic; padding-right: .08em; }
.hero__lead { max-width: 660px; margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__lead code { color: var(--text); }
.actions, .get-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.get-actions > * { flex-shrink: 0; max-width: 100%; }
.get-note { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--text-muted); }
.get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin: 20px 0 0; padding: 0; list-style: none; }
.platforms li, .platforms a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text); }
.platforms svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.platforms .platforms__price { min-height: 30px; padding: 4px 14px; margin-left: 4px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border); font-size: 12.5px; }
.platforms__price b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--text); }
.device { position: relative; z-index: 2; width: min(1120px,calc(100% - 64px)); margin: 72px auto -220px; }
.device__glow {
  position: absolute; z-index: 0; left: -14%; right: -14%; top: 44%; bottom: -150px;
  background:
    radial-gradient(26% 58% at 14% 52%,var(--peach-a),var(--clear) 72%),
    radial-gradient(24% 56% at 34% 64%,var(--rose-a),var(--clear) 72%),
    radial-gradient(28% 58% at 55% 58%,var(--lavender-a),var(--clear) 72%),
    radial-gradient(24% 56% at 76% 54%,var(--sky-a),var(--clear) 72%),
    radial-gradient(22% 52% at 92% 62%,var(--mint-a),var(--clear) 72%);
  filter: blur(40px); pointer-events: none;
}
.manuscript { position: relative; z-index: 1; margin: 0; background: var(--bg-panel); color: var(--text); border-radius: var(--r-float); box-shadow: var(--shadow-float); overflow: hidden; }
.ms-bar { height: 52px; display: flex; align-items: center; justify-content: center; background: var(--bg-panel-2); color: var(--text-muted); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; }
.ms-body { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 446px; gap: 20px; height: 380px; padding: 20px; }
.conf { margin: 0; padding: 22px 0 0 28px; list-style: none; counter-reset: ln; font-family: var(--font-mono); font-size: 14px; line-height: var(--line); color: var(--text); overflow-x: auto; }
.conf li { counter-increment: ln; display: flex; align-items: center; min-height: var(--line); white-space: nowrap; }
.conf li::before { content: counter(ln); flex: none; width: 24px; margin-right: 20px; text-align: right; font-size: 12px; color: var(--text-muted); }
.conf code { font-family: inherit; font-size: inherit; white-space: pre; overflow-wrap: normal; }
.conf .conf__sec code { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--text); }
.t-key, .t-arg { color: var(--text); }
.t-op, .t-p { color: var(--text-muted); }
.t-val, .t-kw { color: var(--accent); font-weight: 500; }
.pol { padding: 1px 6px; margin-left: 1px; border-radius: var(--r-chip); color: var(--text); }
.pol--proxy { background: var(--tint-proxy); color: var(--text); }
.pol--direct { background: var(--tint-direct); color: var(--text); }
.field { position: relative; border-radius: var(--r-card); }
.field__wash { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: linear-gradient(155deg,var(--sky) 0%,var(--lavender) 42%,var(--rose) 72%,var(--peach) 100%); color: var(--text); }
.field__drift {
  position: absolute; inset: -22%;
  background:
    radial-gradient(36% 32% at 22% 22%,var(--sky),var(--clear) 70%),
    radial-gradient(34% 30% at 76% 20%,var(--lavender),var(--clear) 70%),
    radial-gradient(36% 34% at 68% 58%,var(--rose),var(--clear) 70%),
    radial-gradient(40% 36% at 26% 74%,var(--peach),var(--clear) 70%),
    radial-gradient(34% 30% at 84% 88%,var(--mint),var(--clear) 70%),
    radial-gradient(28% 26% at 46% 44%,var(--mint),var(--clear) 72%);
  color: var(--text);
}
.field--motion .field__drift { animation: manuscript-drift 28s ease-in-out infinite; }
.field__veil { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg,var(--white-a30),var(--clear) 42%,var(--white-a18)); color: var(--text); box-shadow: inset 0 0 0 1px var(--white-a40); }
@keyframes manuscript-drift {
  0%,100% { transform: translate3d(0,0,0); }
  33% { transform: translate3d(-5%,4%,0); }
  66% { transform: translate3d(4%,-3%,0); }
}
.notes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 2; }
.note { position: absolute; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 400; white-space: nowrap; box-shadow: var(--shadow-pill); transform: translateY(-50%); }
.note__kw { font-family: var(--font-mono); font-size: 12px; }
.note--1 { left: 46px; top: 72px; }
.note--2 { left: 196px; top: 154px; }
.note--3 { left: 86px; top: 226px; }
.note--4 { left: 246px; top: 280px; }
.leads { position: absolute; z-index: 1; left: 0; top: 0; width: 1120px; height: 380px; max-width: none; pointer-events: none; }
.lead { fill: none; stroke: var(--white-a40); stroke-width: 1; stroke-dasharray: 3 4; }
.lead-stop-ink { stop-color: var(--accent); stop-opacity: .34; }
.lead-stop-white { stop-color: var(--bg-panel); stop-opacity: .9; }
.lead-dot { fill: var(--bg-panel); stroke: var(--accent); stroke-width: 1.2; }
.ms-legend { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 28px; background: var(--bg); color: var(--text); }
.ms-legend__label { margin-right: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.chip, .badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-mono); font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.chip--on { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-a26); }
.chip--on::before, .badge--dot::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); }
.ms-legend__hint { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.band { position: relative; background: var(--bg-panel); color: var(--text); padding: 380px 32px 160px; }
.band__inner { max-width: 760px; margin-inline: auto; text-align: center; }
.band__eyebrow { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-muted); }
.band__title { margin: 14px 0 0; font-size: 34px; }
.band__text { margin: 16px 0 0; line-height: 1.75; color: var(--text-muted); }
.band__text a { text-decoration: underline; text-underline-offset: 3px; }

/* 共享内容组件 */
.facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 0; margin: 24px 0; list-style: none; }
.fact { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.fact strong { color: var(--text); font-weight: 500; }
.appstore-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; max-width: 100%; padding: 10px 24px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); text-align: left; }
.appstore-btn:hover { background: var(--accent-dark); color: var(--on-accent); text-decoration: none; }
.appstore-btn svg { width: 24px; height: 28px; flex-shrink: 0; }
.appstore-btn__text { display: grid; gap: 2px; }
.appstore-btn small { font-size: 11px; line-height: 1.2; }
.appstore-btn strong { font-size: 15px; line-height: 1.3; font-weight: 500; }
.plat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.plat-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-tile); }
.plat-card h3, .plat-card p { margin: 0; }
.plat-card p { color: var(--text-muted); }
.plat-card > svg { width: 30px; height: 30px; }
.plat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; width: 100%; }
.plat-actions .btn { min-height: 48px; padding-inline: 20px; font-size: 14px; }
.plat-card::before { display: none; content: attr(data-mine); position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 11px; }
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"]::before,
html[data-visitor-os="mac"] .plat-card[data-plat="mac"]::before,
html[data-visitor-os="windows"] .plat-card[data-plat="windows"]::before,
html[data-visitor-os="android"] .plat-card[data-plat="android"]::before,
html[data-visitor-os="linux"] .plat-card[data-plat="linux"]::before { display: block; }
.wx-open-tip { position: fixed; z-index: 90; bottom: max(20px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(480px,calc(100% - 32px)); padding: 20px 24px; border-radius: var(--r-card); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-float); text-align: center; }
.wx-open-tip button, .wx-open-tip a { color: var(--on-accent); }
.official-shots { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 32px; }
.official-shot { width: 280px; max-width: 100%; margin: 0; padding: 0; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot img, .shot-placeholder { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 12px; font-size: 13px; text-align: center; color: var(--text-muted); }
.device-entry { display: flex; gap: 24px; align-items: center; padding: 28px; border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.device-entry:hover { text-decoration: none; box-shadow: var(--shadow-tile); }
.device-entry svg { width: 40px; height: 52px; flex-shrink: 0; color: var(--accent); }
.device-entry strong { display: block; margin-bottom: 4px; }
.device-entry p { margin: 0; font-size: 14px; color: var(--text-muted); }
.article-card { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-tile); overflow: hidden; }
.article-cover { display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 24px; background: radial-gradient(at 10% 20%,var(--peach),var(--clear) 60%),radial-gradient(at 85% 25%,var(--sky),var(--clear) 60%),linear-gradient(130deg,var(--rose),var(--lavender),var(--mint)); color: var(--accent); font-family: var(--font-display); font-size: 28px; }
.article-card__body { padding: 28px; }
.article-card h3 { margin-block: 16px; }
.article-card p { color: var(--text-muted); }
.term-card { padding: 28px; background: var(--bg-panel); color: var(--text); border-radius: var(--r-card); box-shadow: var(--shadow-tile); }
.term-card dt { margin-bottom: 12px; font-family: var(--font-mono); font-size: 18px; color: var(--accent); }
.term-card dd { margin: 0; color: var(--text-muted); }
.callout { margin: 32px 0; padding: 24px 28px; border-radius: var(--r-card); background: var(--bg-panel-2); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout__label { display: block; margin-bottom: 8px; color: var(--accent); font-weight: 600; }
.article-store-card { padding: 32px; border-radius: var(--r-float); background: var(--bg-panel-2); color: var(--text); }
.article-store-card h2 { margin-top: 0; font-size: 28px; }
.article-store-card p { color: var(--text-muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill); }
.toc a:hover, .toc a[aria-current] { background: var(--accent-a06); color: var(--accent); text-decoration: none; }
.toc--sticky { position: sticky; top: 16px; z-index: 4; }
.faq-item { margin-block: 12px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.faq-item summary { position: relative; padding: 24px 56px 24px 28px; list-style: none; cursor: pointer; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 28px; top: 22px; font-family: var(--font-mono); font-size: 22px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding: 0 28px 28px; color: var(--text-muted); }
.faq-item__body p:last-child { margin-bottom: 0; }
.feature-tabs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 64px; align-items: start; }
.feature-index[role="tablist"] { display: flex; flex-direction: column; gap: 8px; }
.feature-index [role="tab"], .feature-index .feature-trigger {
  position: relative; width: 100%; display: flex; gap: 20px; align-items: baseline;
  padding: 18px 20px; text-align: left; border: 0; border-radius: 0;
  background: var(--clear); color: var(--text-muted); font-family: var(--font-display); font-size: 34px; line-height: 1.4;
}
.feature-index [role="tab"]::before, .feature-trigger::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 0; width: 3px; background: var(--clear); color: var(--text); }
.feature-index [aria-selected="true"], .feature-index [aria-expanded="true"] { color: var(--text); }
.feature-index [aria-selected="true"]::before, .feature-index [aria-expanded="true"]::before { background: var(--accent); color: var(--on-accent); }
.feature-number { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.feature-panel { padding: 44px; border-radius: var(--r-float); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-float); }
.feature-panel h3 { margin-top: 0; font-size: 28px; }
.feature-panel p { color: var(--text-muted); line-height: 1.9; }
.feature-panel pre { margin-bottom: 0; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-card); }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-panel); color: var(--text); }
.data-table th, .data-table td, .prose table th, .prose table td { min-width: 7em; padding: 18px 24px; vertical-align: top; text-align: left; overflow-wrap: normal; word-break: normal; border-bottom: 1px solid var(--border); }
.data-table th, .prose table th { background: var(--bg-panel-2); color: var(--text); font-weight: 500; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; background: var(--bg-panel); color: var(--text); }
.dl-fab { position: fixed; z-index: 20; right: 24px; bottom: max(24px,env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 24px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); font-size: 14px; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); text-decoration: none; }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
body.has-dl-fab { padding-bottom: 100px; }

/* 设计预览专用，正式页面不使用占位画面。 */
.preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.preview-row + .preview-row { margin-top: 32px; }
.swatches { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.swatch { min-height: 100px; padding: 20px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.swatch code { display: block; }
.swatch--bg { background: var(--bg); color: var(--text); }
.swatch--panel { background: var(--bg-panel); color: var(--text); }
.swatch--panel2 { background: var(--bg-panel-2); color: var(--text); }
.swatch--border { background: var(--border); color: var(--text); }
.swatch--accent { background: var(--accent); color: var(--on-accent); }
.swatch--dark { background: var(--accent-dark); color: var(--on-accent); }
.swatch--text { background: var(--text); color: var(--on-accent); }
.swatch--muted { background: var(--text-muted); color: var(--on-accent); }
.swatch--peach { background: var(--peach); color: var(--text); }
.swatch--rose { background: var(--rose); color: var(--text); }
.swatch--lavender { background: var(--lavender); color: var(--text); }
.swatch--sky { background: var(--sky); color: var(--text); }
.swatch--mint { background: var(--mint); color: var(--text); }
.swatch--success { box-shadow: inset 0 8px var(--success); }
.swatch--warn { box-shadow: inset 0 8px var(--warn); }
.swatch--error { box-shadow: inset 0 8px var(--error); }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border-radius: var(--r-shot); background: var(--bg-panel-2); color: var(--text-muted); font-family: var(--font-mono); font-size: 14px; text-align: center; }
.preview-caption { margin-top: 32px; color: var(--text-muted); font-size: 13px; }
@media (max-width: 1179px) {
  .leads { display: none; }
  .ms-body { grid-template-columns: minmax(0,1fr) 40%; }
  .note--1 { left: 8%; }
  .note--2 { left: 16%; }
  .note--3 { left: 6%; }
  .note--4 { left: 20%; }
  .feature-tabs { gap: 32px; }
  .feature-index [role="tab"] { font-size: 28px; }
}
@media (max-width: 900px) {
  .plat-grid, .preview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .hero__title { font-size: 30px; }
  .hero__lead { font-size: 15.5px; }
  .hero { padding-inline: var(--gutter); }
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; max-width: 340px; }
  .get-actions { width: 100%; }
  .get-actions .btn { flex: 1 1 220px; }
  .platforms { gap: 14px; }
  .platforms .platforms__price { margin-left: 0; }
  .device { width: calc(100% - 32px); margin: 72px auto -160px; }
  .ms-body { grid-template-columns: minmax(0,1fr); height: auto; }
  .conf { padding: 12px 0 8px 8px; font-size: 12.5px; }
  .field { height: 320px; }
  .ms-legend { flex-wrap: wrap; height: auto; padding: 14px 20px; }
  .ms-legend__hint { margin-left: 0; width: 100%; }
  .band { padding-top: 300px; padding-inline: var(--gutter); }
  .band__title { font-size: 26px; }
  .feature-tabs { display: block; }
  .feature-index [role="tab"], .feature-index .feature-trigger { font-size: 26px; padding-inline: 16px; gap: 12px; }
  .feature-panel { padding: 28px; margin-block: 12px 28px; }
  .feature-panels { margin-top: 24px; }
  .feature-tabs.is-accordion .feature-panels { margin: 0; }
  .swatches { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .plat-grid, .preview-grid { grid-template-columns: minmax(0,1fr); }
  .plat-card { padding: 28px 24px; }
  .official-shots { flex-direction: column; align-items: center; }
  .facts { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .fact { padding: 6px 10px; font-size: 11px; }
  .note { font-size: 11px; padding-inline: 11px; }
  .note__kw { font-size: 10px; }
  .note--1 { left: 5%; }
  .note--2 { left: 8%; }
  .note--3 { left: 5%; }
  .note--4 { left: 24%; }
  .dl-fab { width: 52px; height: 52px; min-height: 52px; padding: 0; justify-content: center; right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #install table, #install tbody, #install tr, #install td, #install th { display: block; width: 100%; min-width: 0; }
  #install thead { display: none; }
  #install td, #install th { padding: 16px; }
  #install tr { margin-bottom: 24px; background: var(--bg-panel); color: var(--text); }
  #install td::before { content: attr(data-label); display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); }
  #install table code { display: block; max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; word-break: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .field--motion .field__drift { animation: none; }
}