/* 首屏采用已确认的居中构图；设备只是规则文字壁纸，不模拟应用界面。 */
.hero {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  height: calc(100vh - var(--nav-h) - var(--peek));
  min-height: 740px;
  padding: 36px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -200px;
  width: 1600px;
  height: 820px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--bg-panel2) 0%, var(--bg-panel2) 30%, var(--bg) 100%);
  color: var(--text);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; flex-shrink: 0; }
.hero-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 0 18px;
  border-radius: var(--radius-icon);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 3px 14px 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: inset 0 0 0 var(--line-width) var(--border);
  font-size: var(--size-small);
  line-height: 22px;
  font-weight: var(--weight-medium);
}
.eyebrow__dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-round);
  background: var(--accent);
  color: var(--bg-panel);
}
.eyebrow__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-round);
  background: var(--accent-ring);
  color: var(--text);
  opacity: 0;
  animation: dot-breathe var(--dot-duration) var(--ease) infinite;
}
@keyframes dot-breathe {
  0% { transform: scale(0.5); opacity: 0.9; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
.hero-title { margin: 0 0 14px; font-size: var(--size-h1); line-height: var(--line-title); }
.lede { max-width: 44em; margin: 0 0 24px; font-size: var(--size-lede); line-height: 1.55; color: var(--text-muted); }
.lede strong { color: var(--text); }
.get-actions, .cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 100%;
  margin: 0 0 12px;
}
.get-actions .btn { flex-shrink: 1; }
.get-note { margin: 0 0 22px; font-size: var(--size-small); line-height: 18px; color: var(--text-muted); }
.platforms { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 26px; }
.platform-list { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; }
.platform-list li { margin: 0; }
.platform-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-size: var(--size-small); color: var(--text-muted); text-decoration: none; }
.platform-list a:hover { color: var(--accent); }
.platform-list svg { width: 16px; height: 16px; color: var(--text); flex-shrink: 0; }
.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 3px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel2);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 var(--line-width) var(--accent-line);
  font-size: var(--size-caption);
  line-height: 22px;
  font-weight: var(--weight-medium);
}
.hero-geometry { margin-top: auto; width: 100%; display: flex; justify-content: center; }
.geometry__art { display: block; height: clamp(220px, calc(100vh - 560px), 340px); width: auto; max-width: 100%; aspect-ratio: 900 / 360; overflow: visible; }
.ht-dot { fill: var(--accent); fill-opacity: 0.34; }
.st-deep { stop-color: var(--accent-dark); }
.st-mid { stop-color: var(--accent); }
.st-light { stop-color: var(--bg-panel2); }
.d-edge { fill: var(--border); stroke: var(--border); stroke-width: 24; stroke-linejoin: round; }
.d-cut { fill: var(--bg-panel); stroke: var(--bg-panel); stroke-width: 22; stroke-linejoin: round; }
.d-body { fill: var(--device); }
.d-dots { fill: url(#geometry-dots); }
.d-screen { fill: url(#geometry-screen); }
.d-screen-wide { fill: url(#geometry-screen-wide); }
.hinge { fill: var(--device-hinge); }
.lip { fill: var(--device-lip); }
.scr-txt { fill: var(--bg-panel); font-family: var(--font-mono); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-code); }
.scr-txt--mac { font-size: 17px; }
.scr-txt--pad { font-size: 13px; }
.scr-txt--phone { font-size: 5.2px; }
.peek { min-height: 180px; background: var(--bg-panel); color: var(--text); }

.tabs { min-width: 0; }
.tab-list, [role="tablist"].segments {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  margin: 0 auto 36px;
  padding: 6px;
  border-radius: var(--radius-panel);
  background: var(--bg);
  color: var(--text);
}
.tab-list { width: fit-content; }
.tab-list [role="tab"] {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 24px;
  font-weight: var(--weight-medium);
}
.tab-list [role="tab"]:hover { background: var(--bg-panel2); color: var(--accent-dark); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--bg-panel); }
.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 64px;
  min-height: 360px;
  border-radius: var(--radius-panel);
  background: var(--bg);
  color: var(--text);
}
.tab-panel h3 { font-size: var(--size-h2); }
.tab-panel p { color: var(--text-muted); }
.tab-panel pre { margin: 0; background: var(--bg-panel); color: var(--text); }
.protocols { display: flex; gap: 10px; flex-wrap: wrap; }
.protocols code { padding: 8px 14px; border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--accent-dark); }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 10;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: visible;
  max-width: 100%;
  padding: 8px;
  margin-bottom: 40px;
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
  overscroll-behavior-x: contain;
}
.toc a { flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-pill); color: var(--text-muted); text-decoration: none; font-size: 14px; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel2); color: var(--accent-dark); }
.toc--static { position: static; }

.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 0 28px; border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.faq-item summary { position: relative; padding: 22px 32px 22px 0; cursor: pointer; font-weight: var(--weight-semibold); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; color: var(--accent); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding-bottom: 24px; color: var(--text-muted); }
.faq-item__body > :last-child { margin-bottom: 0; }

.term-card { padding: 32px; border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.term-card dt { font-size: var(--size-h3); font-weight: var(--weight-bold); margin-bottom: 12px; }
.term-card dd { margin: 0; color: var(--text-muted); }
.term-card code { color: var(--accent-dark); }
.badge, .fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel2);
  color: var(--accent-dark);
  font-size: var(--size-caption);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.badge--neutral { background: var(--bg); color: var(--text-muted); }
.badge--success { background: var(--bg-panel); color: var(--success); }
.badge--warn { background: var(--bg-panel); color: var(--warn); }
.badge--error { background: var(--bg-panel); color: var(--error); }
.fact-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.fact-pill { background: var(--bg-panel); color: var(--text-muted); box-shadow: inset 0 0 0 var(--line-width) var(--border); }
.fact-pill strong { color: var(--text); }

.store-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg-panel);
  text-decoration: none;
  line-height: 1.25;
}
.store-button:hover { background: var(--accent-dark); color: var(--bg-panel); }
.store-button svg { width: 25px; height: 28px; flex-shrink: 0; }
.store-button__copy { display: block; text-align: left; }
.store-button small { display: block; font-size: 11px; }
.store-button strong { display: block; font-size: 16px; margin-top: 2px; }
.store-guide { padding: 32px; border-radius: var(--radius-panel); background: var(--bg-panel2); color: var(--text); }

.plat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px 28px 28px;
  border-radius: var(--radius-panel);
  background: var(--bg-panel);
  color: var(--text);
}
.plat-card h3 { margin-bottom: 12px; }
.plat-card p { color: var(--text-muted); }
.plat-card::before {
  display: none;
  content: attr(data-mine);
  position: absolute;
  top: 12px;
  right: 20px;
  max-width: calc(100% - 40px);
  font-size: var(--size-caption);
  color: var(--accent-dark);
}
.plat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.plat-actions .btn { font-size: 14px; padding-inline: 18px; }
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;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: max-content;
  max-width: calc(100% - var(--gutter) * 2);
  padding: 18px 24px;
  border: var(--line-width) solid var(--accent-line);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 14px;
}
.wx-open-tip button { min-width: 44px; min-height: 44px; border: 0; background: var(--clear); color: var(--accent); }
.official-shot { width: 100%; max-width: 280px; margin-inline: auto; flex-shrink: 0; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-shot); }
.official-shot img { outline: var(--line-width) solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 12px; font-size: var(--size-small); line-height: 1.6; color: var(--text-muted); text-align: center; }
.shot-row { display: flex; justify-content: center; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border-radius: var(--radius-shot);
  border: var(--line-width) solid var(--border);
  background: var(--bg-panel2);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 14px;
}

.device-entry { display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: var(--radius-panel); background: var(--bg-panel); color: var(--text); text-decoration: none; }
.device-entry:hover { background: var(--bg-panel3); color: var(--text); }
.device-entry svg { width: 48px; height: 60px; flex-shrink: 0; color: var(--accent); }
.device-entry strong { display: block; font-size: var(--size-h3); }
.device-entry p { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: var(--radius-panel); background: var(--bg-panel); color: var(--text); }
.article-card h3 { margin-top: 24px; font-size: var(--size-h3); }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { font-size: 15px; color: var(--text-muted); }
.article-card .text-link { margin-top: auto; }
.callout { padding: 26px 30px; border-inline-start: 3px solid var(--accent); border-radius: 0 var(--radius-card) var(--radius-card) 0; background: var(--bg-panel2); color: var(--text); }
.callout > :last-child { margin-bottom: 0; }
.group-list { padding: 0; margin: 0; list-style: none; border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.group-list li { margin: 0; }
.group-list li + li { border-top: var(--line-width) solid var(--border); }
.group-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; color: var(--text); text-decoration: none; }
.group-list a::after { content: "›"; flex-shrink: 0; color: var(--accent); }

.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; font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 16px 20px;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  border-bottom: var(--line-width) solid var(--border);
}
.data-table th, .prose table th { background: var(--bg-panel2); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose table td { background: var(--bg-panel); color: var(--text); }
.prose table, .article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.article-body table th, .article-body table td { min-width: 7em; padding: 16px 20px; overflow-wrap: normal; word-break: normal; }

.dl-fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: calc(100% - 48px);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg-panel);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-semibold);
}
.dl-fab:hover { background: var(--accent-dark); color: var(--bg-panel); }
.dl-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
.dl-fab--sample { position: static; margin-top: 24px; }
.has-article-fab { padding-bottom: 96px; }

/* 预览色板只映射令牌，不产生另一套调色盘。 */
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { border-radius: var(--radius-shot); border: var(--line-width) solid var(--border); background: var(--bg-panel); color: var(--text); overflow: clip; }
.swatch__paint { display: block; height: 64px; }
.swatch code { display: block; padding: 12px; font-size: 12px; }
.paint-bg { background: var(--bg); color: var(--text); }
.paint-panel { background: var(--bg-panel); color: var(--text); }
.paint-panel2 { background: var(--bg-panel2); color: var(--text); }
.paint-panel3 { background: var(--bg-panel3); color: var(--text); }
.paint-border { background: var(--border); color: var(--text); }
.paint-accent { background: var(--accent); color: var(--bg-panel); }
.paint-dark { background: var(--accent-dark); color: var(--bg-panel); }
.paint-text { background: var(--text); color: var(--bg-panel); }
.paint-muted { background: var(--text-muted); color: var(--bg-panel); }
.paint-success { background: var(--success); color: var(--bg-panel); }
.paint-warn { background: var(--warn); color: var(--bg-panel); }
.paint-error { background: var(--error); color: var(--bg-panel); }
.paint-device { background: var(--device); color: var(--text); }
.paint-hinge { background: var(--device-hinge); color: var(--text); }
.paint-lip { background: var(--device-lip); color: var(--text); }
.paint-glass { background: var(--nav-glass); color: var(--text); }
.paint-ring { background: var(--accent-ring); color: var(--text); }
.paint-soft { background: var(--accent-soft); color: var(--text); }
.paint-line { background: var(--accent-line); color: var(--text); }
.paint-veil { background: var(--veil); color: var(--text); }
.paint-clear { background: var(--clear); color: var(--text); }
.preview-stack { display: grid; gap: 32px; }
.preview-subsection { margin-top: 64px; }
.preview-button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.preview-type-title { font-size: var(--size-h1); line-height: 1.2; font-weight: var(--weight-bold); letter-spacing: var(--tracking-title); }
.preview-mono { font-family: var(--font-mono); }
.preview-footer { margin-top: 0; }
.symbol-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 960px) {
  .tab-panel { gap: 32px; padding: 40px; }
  .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .tab-panel { grid-template-columns: minmax(0, 1fr); }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { height: auto; min-height: 0; padding: 28px 18px 24px; }
  .hero-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .lede { font-size: 15px; }
  .br-wide { display: none; }
  .get-actions, .cta-row { width: 100%; max-width: 320px; gap: 10px; }
  .get-actions .btn, .cta-row .btn { flex: 1 1 100%; }
  .platforms { margin-bottom: 20px; }
  .platform-list { gap: 8px 14px; }
  .geometry__art { width: 100%; height: auto; }
  .tab-list { border-radius: var(--radius-card); gap: 4px; }
  .tab-list [role="tab"] { padding-inline: 12px; font-size: var(--size-small); }
  .tab-panel { padding: 26px; min-height: 0; }
  .plat-grid, .device-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-card, .term-card, .article-card, .store-guide { padding: 32px 24px 24px; }
  .device-entry { padding: 24px; gap: 18px; }
  .faq-item { padding-inline: 22px; }
  .callout { padding: 22px; }
  .fact-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .shot-row { flex-direction: column; align-items: center; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: var(--radius-round);
  }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dl-fab--sample { position: static; }
  #install table, #install tbody, #install tr, #install td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  #install thead { display: none; }
  #install tr { margin-bottom: 20px; border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
  #install td { overflow-x: auto; }
  #install td::before { content: attr(data-label); display: block; margin-bottom: 6px; font-weight: var(--weight-semibold); }
  #install code { white-space: pre; overflow-wrap: normal; word-break: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow__dot::after { animation: none; opacity: 0; }
}