/* 首屏沿用确认稿的比例、留白和配置文件装置。 */
.hero {
  position: relative;
  min-height: max(640px, calc(100vh - var(--nav-h) - 60px));
  display: flex;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 56px;
  overflow-x: clip;
}
.hero-floor {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -40px;
  height: 340px;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, var(--clear) 1px), linear-gradient(90deg, var(--grid-line) 1px, var(--clear) 1px);
  background-size: 64px 64px;
  transform: perspective(560px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, var(--mask-ink) 10%, var(--clear) 92%);
  mask-image: linear-gradient(to top, var(--mask-ink) 10%, var(--clear) 92%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,46fr) minmax(0,54fr); gap: 72px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 6px 14px 6px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--size-small); font-weight: var(--weight-strong); letter-spacing: .005em; max-width: 100%; }
.eyebrow-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft-line); }
.hero h1 { margin: 26px 0 0; font-size: clamp(28px,3.05vw,44px); line-height: 1.18; }
.h1-line { display: block; white-space: nowrap; }
.lede { margin: 22px 0 0; max-width: 520px; font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.lede strong { color: var(--text); }
.cta, .get-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.get-actions > .btn { flex: 0 1 auto; }
.get-note { margin: 14px 0 0; font-size: var(--size-small); color: var(--text-muted); }
.get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: var(--size-micro); color: var(--text); }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 30px 0 0; padding: 22px 0 0; list-style: none; max-width: 520px; border-top: 1px solid var(--border); }
.platforms li, .platforms a { display: inline-flex; align-items: center; gap: 7px; font-size: var(--size-small); font-weight: var(--weight-medium); color: var(--text-muted); }
.platforms a { min-height: 24px; }
.platforms a:hover { color: var(--accent-dark); }
.platforms svg { width: 16px; height: 16px; color: var(--text); }
.platforms .price-chip { min-height: 28px; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--white); color: var(--text); font-size: var(--size-micro); font-weight: var(--weight-strong); }
.stage { position: relative; margin: 0; height: 520px; border-radius: var(--r-stage); box-shadow: var(--shadow-stage); }
.stage-bg { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-stage); background: linear-gradient(140deg,var(--canvas-1) 0%,var(--canvas-2) 52%,var(--canvas-3) 100%); color: var(--white); box-shadow: inset 0 1px 0 var(--canvas-rim); }
.arc { position: absolute; border-radius: var(--r-logo); }
.arc-a { width: 640px; height: 640px; left: -250px; bottom: -380px; background: linear-gradient(160deg,var(--canvas-deep-2),var(--canvas-deep)); color: var(--white); opacity: .92; }
.arc-b { width: 880px; height: 880px; left: -370px; bottom: -500px; border: 1px solid var(--canvas-ring); }
.conf { position: absolute; top: 56px; left: 92px; width: 488px; border-radius: var(--r-window); background: var(--window); color: var(--text); box-shadow: var(--shadow-window); overflow: hidden; }
.conf-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; background: var(--window-bar); color: var(--text-muted); border-bottom: 1px solid var(--border); }
.conf-dots { position: absolute; left: 16px; top: 50%; display: flex; gap: 7px; transform: translateY(-50%); }
.conf-dots i { width: 11px; height: 11px; border-radius: var(--r-logo); background: var(--window-dot); color: var(--text); }
.conf-name { font-family: var(--font-mono); font-size: var(--size-micro); color: var(--text-muted); letter-spacing: .01em; }
.conf-body { padding: 18px 0 20px; font-family: var(--font-mono); font-size: 14.5px; color: var(--text); counter-reset: ln; overflow-x: auto; }
.ln { position: relative; display: flex; align-items: center; height: var(--line); padding: 0 24px 0 56px; white-space: nowrap; counter-increment: ln; }
.ln::before { content: counter(ln); position: absolute; left: 0; width: 38px; text-align: right; font-size: 12px; color: var(--text-muted); }
.tok-sec, .tok-kw { font-weight: var(--weight-bold); color: var(--text); }
.tok-key { color: var(--text); }
.tok-op { color: var(--text-muted); padding-inline: .5ch; }
.tok-val, .tok-arg, .ln-cm { color: var(--text-muted); }
.tok-pol { font-weight: var(--weight-strong); color: var(--accent); }
.rules { position: relative; min-width: max-content; }
.scan { position: absolute; inset: 0 0 auto; height: var(--line); background: var(--scan-fill); color: var(--text); animation: rule-scan var(--scan-time) var(--ease) infinite; }
.scan::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 0 var(--r-small) var(--r-small) 0; background: var(--accent); color: var(--white); }
.policy-tag { position: absolute; right: -28px; top: 410px; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: var(--r-chip); background: var(--white); color: var(--text); box-shadow: var(--shadow-chip); font-family: var(--font-mono); font-size: 14px; line-height: var(--tick); }
.policy-arrow { color: var(--text-muted); }
.policy-window { height: var(--tick); overflow: hidden; }
.policy-ticker { display: block; animation: policy-scan var(--scan-time) var(--ease) infinite; }
.policy-ticker span { display: block; height: var(--tick); font-weight: var(--weight-bold); color: var(--accent); letter-spacing: .02em; }
@keyframes rule-scan {
  0% { transform: translateY(0); opacity: 0; }
  3%,16% { transform: translateY(0); opacity: 1; }
  20%,36% { transform: translateY(var(--line)); opacity: 1; }
  40%,56% { transform: translateY(calc(var(--line) * 2)); opacity: 1; }
  60%,76% { transform: translateY(calc(var(--line) * 3)); opacity: 1; }
  80%,95% { transform: translateY(calc(var(--line) * 4)); opacity: 1; }
  99% { transform: translateY(calc(var(--line) * 4)); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes policy-scan {
  0%,16% { transform: translateY(0); }
  20%,36% { transform: translateY(calc(var(--tick) * -1)); }
  40%,56% { transform: translateY(calc(var(--tick) * -2)); }
  60%,76% { transform: translateY(calc(var(--tick) * -3)); }
  80%,96% { transform: translateY(calc(var(--tick) * -4)); }
  100% { transform: translateY(calc(var(--tick) * -5)); }
}
.preview-static .scan { animation: none; opacity: 1; transform: translateY(calc(var(--line) * 4)); }
.preview-static .policy-ticker { animation: none; transform: translateY(calc(var(--tick) * -4)); }
.capabilities { margin-inline: 24px; border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); padding-top: 112px; padding-bottom: 120px; overflow-x: clip; }
.cap-grid { display: grid; grid-template-columns: minmax(0,60fr) minmax(0,40fr); gap: 48px; align-items: center; }
.cap-grid h2 { margin: 0; max-width: 640px; line-height: 1.3; }
.text-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 34px; }
.text-links a { color: var(--accent); font-weight: var(--weight-strong); }
.tiles { display: flex; justify-content: flex-end; gap: 20px; }
.tile-col { display: flex; flex-direction: column; gap: 20px; }
.tile-col:nth-child(1) { margin-top: 70px; }
.tile-col:nth-child(2) { margin-top: -40px; }
.tile-col:nth-child(3) { margin-top: 30px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 120px; min-height: 120px; padding: 10px; border-radius: var(--r-tile); background: var(--white); color: var(--text); box-shadow: var(--shadow-tile); }
.tile svg { width: 30px; height: 30px; }
.tile span { font-size: 11.5px; font-weight: var(--weight-strong); color: var(--text-muted); text-align: center; }
.tile-ghost { background: var(--bg-panel-2); color: var(--text); box-shadow: none; }
.feature-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 80px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-row h3 { margin-top: 0; }
.feature-demo { padding: 36px; border-radius: var(--r-demo); background: var(--bg-panel); color: var(--text); min-width: 0; }
.feature-demo pre { margin: 0; border: 0; padding: 0; }
.setting-list { list-style: none; margin: 0; padding: 0; border-radius: var(--r-window); background: var(--bg); color: var(--text); overflow: hidden; }
.setting-list li { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setting-list li + li { border-top: 1px solid var(--border); }
.setting-list li::after { content: "›"; color: var(--text-muted); }
.tabs { min-width: 0; }
[role="tablist"] { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: var(--r-tile); background: var(--bg-panel); color: var(--text); }
[role="tab"] { border: 0; border-radius: var(--r-pill); padding: 12px 20px; min-height: 44px; background: var(--clear); color: var(--text-muted); font-weight: var(--weight-strong); }
[role="tab"][aria-selected="true"] { background: var(--bg); color: var(--accent-dark); box-shadow: var(--shadow-tile); }
[role="tabpanel"] { min-width: 0; padding-top: 28px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 16px; border-radius: var(--r-tile); background: var(--bg-panel); color: var(--text); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); color: var(--text-muted); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg); color: var(--accent-dark); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding-block: 20px; cursor: pointer; font-weight: var(--weight-strong); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; font-size: 24px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; max-width: 760px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border-radius: var(--r-tile); background: var(--bg-panel); color: var(--text); }
.term-card dt { font: var(--weight-bold) 20px/1.4 var(--font-mono); margin-bottom: 14px; overflow-wrap: anywhere; }
.term-card dd { margin: 0; color: var(--text-muted); line-height: 1.8; }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 10px 24px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--white); box-shadow: var(--shadow-btn); max-width: 100%; }
.store-button:hover { background: var(--accent-dark); color: var(--white); }
.store-button svg { width: 26px; height: 30px; }
.store-button small { display: block; font-size: 11px; line-height: 1.4; }
.store-button strong { display: block; font-size: 16px; line-height: 1.4; }
.plat-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.plat-card { position: relative; flex: 1 1 320px; min-width: 0; max-width: 100%; padding: 36px; border-radius: var(--r-demo); background: var(--bg-panel); color: var(--text); }
.plat-card h3 { margin-block: 0 16px; }
.plat-card p { color: var(--text-muted); }
.plat-card::before { display: none; content: attr(data-mine); margin-bottom: 18px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--size-micro); font-weight: var(--weight-strong); }
.plat-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
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: inline-flex; }
.wx-open-tip { position: fixed; left: 50%; bottom: max(24px,env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; width: max-content; max-width: calc(100% - 32px); padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--r-window); background: var(--bg); color: var(--text); box-shadow: var(--shadow-chip); font-size: 14px; }
.facts, .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin-block: 24px; }
.fact, .badge, .chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); font-size: var(--size-micro); overflow-wrap: anywhere; }
.badge-accent { border-color: var(--accent-soft-line); background: var(--accent-soft); color: var(--accent-dark); }
.badge-dot::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--white); }
.official-shot { width: 100%; max-width: 280px; flex-shrink: 0; margin: 0; min-width: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.official-shot { border: 1px solid var(--border); border-radius: var(--r-shot); background: var(--bg); color: var(--text-muted); }
.official-shot figcaption { padding: 12px; font-size: var(--size-micro); line-height: 1.6; }
.shot-row { display: flex; gap: 32px; align-items: flex-start; }
.shot-placeholder { width: 100%; aspect-ratio: 750 / 1334; display: grid; place-items: center; border-radius: var(--r-shot); background: var(--bg-panel-2); color: var(--text-muted); text-align: center; }
.device-card { display: flex; align-items: center; gap: 24px; padding: 30px; border-radius: var(--r-demo); background: var(--bg-panel); color: var(--text); min-width: 0; }
.device-card:hover { background: var(--bg-panel-2); color: var(--text); }
.device-card svg { width: 44px; height: 54px; color: var(--text); }
.device-card strong { display: block; font-size: 20px; margin-bottom: 6px; }
.device-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.article-card { display: block; padding: 32px; border-radius: var(--r-demo); background: var(--bg-panel); color: var(--text); min-width: 0; transition: transform var(--fast) ease; }
.article-card:hover { color: var(--text); transform: translateY(-3px); }
.article-card h3 { margin-block: 18px 14px; font-size: 22px; }
.article-card p { margin: 0; color: var(--text-muted); }
.article-meta { font-size: var(--size-small); color: var(--text-muted); }
.callout { margin: 28px 0; padding: 24px 28px; border-left: 3px solid var(--accent); border-radius: var(--r-chip); background: var(--accent-soft); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.article-store-guide { padding: 32px; border-radius: var(--r-demo); background: var(--bg-panel); color: var(--text); }
.article-store-guide h2 { margin-top: 0; font-size: 24px; }
.article-store-guide p { color: var(--text-muted); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td, .prose table th, .prose table td { min-width: 7em; padding: 18px 20px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-strong); }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; text-align: left; }
.dl-fab { position: fixed; right: 28px; bottom: 28px; z-index: 15; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 22px; border-radius: var(--r-pill); background: var(--accent); color: var(--white); box-shadow: var(--shadow-btn); font-weight: var(--weight-strong); }
.dl-fab:hover { background: var(--accent-dark); color: var(--white); }
.dl-fab svg { width: 22px; height: 22px; }
.preview-block { padding-top: 80px; padding-bottom: 80px; }
.preview-block h2 { margin-top: 0; margin-bottom: 32px; }
.preview-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 18px; }
.swatch { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-window); background: var(--bg); color: var(--text); }
.swatch-color { height: 64px; border-radius: var(--r-chip); border: 1px solid var(--border); margin-bottom: 10px; }
.swatch code { font-size: 12px; }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel2 { background: var(--bg-panel-2); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--white); }
.sw-dark { background: var(--accent-dark); color: var(--white); }
.sw-soft { background: var(--accent-soft); color: var(--text); }
.sw-soft-line { background: var(--accent-soft-line); color: var(--text); }
.sw-text { background: var(--text); color: var(--white); }
.sw-muted { background: var(--text-muted); color: var(--white); }
.sw-faint { background: var(--text-faint); color: var(--text); }
.sw-success { background: var(--success); color: var(--text); }
.sw-warn { background: var(--warn); color: var(--text); }
.sw-error { background: var(--error); color: var(--text); }
.sw-canvas1 { background: var(--canvas-1); color: var(--white); }
.sw-canvas2 { background: var(--canvas-2); color: var(--white); }
.sw-canvas3 { background: var(--canvas-3); color: var(--white); }
.sw-deep { background: var(--canvas-deep); color: var(--white); }
.sw-deep2 { background: var(--canvas-deep-2); color: var(--white); }
.sw-window { background: var(--window); color: var(--text); }
.sw-bar { background: var(--window-bar); color: var(--text); }
.sw-dot { background: var(--window-dot); color: var(--text); }
.sw-gutter { background: var(--gutter-ink); color: var(--text); }
.sw-scan { background: var(--scan-fill); color: var(--text); }
.sw-grid { background: var(--grid-line); color: var(--text); }
.sw-rim { background: var(--canvas-rim); color: var(--text); }
.sw-ring { background: var(--canvas-ring); color: var(--text); }
.sw-veil { background: var(--veil); color: var(--text); }
.sw-clear { background: var(--clear); color: var(--text); }
@media (max-width: 1180px) {
  .hero-grid { gap: 48px; }
  .conf { left: 56px; }
}
@media (max-width: 1024px) {
  .hero { min-height: 0; padding-top: 24px; padding-bottom: 72px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 56px; }
  .h1-line { white-space: normal; }
  .stage { width: 100%; max-width: 660px; }
  .policy-tag { right: -12px; }
  .cap-grid { grid-template-columns: minmax(0,1fr); }
  .tiles { justify-content: flex-start; }
  .feature-row { gap: 40px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .feature-row { grid-template-columns: minmax(0,1fr); padding-top: 48px; padding-bottom: 48px; }
  .feature-row:nth-child(even) .feature-copy { order: initial; }
}
@media (max-width: 640px) {
  .hero-grid { gap: 40px; }
  .hero h1 { margin-top: 22px; }
  .eyebrow { font-size: 11px; }
  .lede { font-size: 16px; }
  .get-actions, .cta { margin-top: 24px; gap: 10px; }
  .get-actions .btn, .cta .btn { padding-inline: 19px; font-size: 14px; }
  .platforms { gap: 10px 16px; }
  .platforms li, .platforms a { font-size: 12px; }
  .stage { height: 400px; }
  .conf { left: 12px; right: 12px; top: 28px; width: auto; }
  .conf-body { font-size: 10px; }
  .ln { padding-left: 32px; padding-right: 8px; }
  .ln::before { width: 22px; font-size: 10px; }
  .policy-tag { right: 12px; top: 350px; }
  .capabilities { margin-inline: 12px; padding-top: 72px; padding-bottom: 72px; }
  .tiles { gap: 10px; }
  .tile-col { gap: 10px; flex: 1; min-width: 0; }
  .tile { width: 100%; min-height: 96px; padding: 8px 4px; }
  .tile span { font-size: 9px; }
  .feature-demo { padding: 24px; }
  .facts, .chips { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .fact, .badge, .chip { padding: 5px 9px; font-size: 11px; }
  .plat-card { padding: 26px; flex-basis: 100%; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { margin-inline: auto; }
  .device-card { padding: 24px; gap: 18px; }
  .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 span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body:has(.dl-fab) { padding-bottom: 84px; }
  .preview-block { padding-top: 56px; padding-bottom: 56px; }
  #install table, table#install { display: block; width: 100%; }
  #install thead { display: none; }
  #install tbody, #install tr, #install td, #install th { display: block; width: 100%; min-width: 0; }
  #install tr { margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--r-chip); }
  #install td { padding: 16px; }
  #install td[data-label]::before { content: attr(data-label); display: block; font-weight: var(--weight-strong); margin-bottom: 8px; }
  #install code { display: block; max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; word-break: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .scan { animation: none; opacity: 1; transform: translateY(calc(var(--line) * 4)); }
  .policy-ticker { animation: none; transform: translateY(calc(var(--tick) * -4)); }
  .article-card:hover { transform: none; }
}