/* 影像幕：文案和平台入口独立于静态装置。 */
.stage-wrap {padding-inline:var(--inset)}
.stage {
  position:relative;
  isolation:isolate;
  height:clamp(700px,88vh,820px);
  border-radius:var(--r-stage);
  overflow:hidden;
  overflow-x:clip;
  background:linear-gradient(to top right,var(--c-stage-from) 0%,var(--c-stage-to) 100%);
  color:var(--c-on-stage);
  display:grid;
  grid-template-columns:minmax(0,54fr) minmax(0,46fr);
}
.stage::before,.stage::after {
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
}
.stage::before {
  width:1000px;height:780px;right:-170px;top:-280px;
  background:radial-gradient(closest-side,var(--c-glow),var(--c-clear));
  color:var(--c-on-stage);
}
.stage::after {
  width:900px;height:640px;left:-260px;bottom:-320px;
  background:radial-gradient(closest-side,var(--c-vignette),var(--c-clear));
  color:var(--c-on-stage);
}
.stage :focus-visible {outline-color:var(--c-accent)}
.stage-copy {
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:64px 24px 56px calc(var(--edge) - var(--inset));
  min-width:0;
}
.tag {
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:32px;
  padding:4px 14px 4px 12px;
  border:1px solid var(--c-on-stage-line);
  border-radius:var(--r-pill);
  background:var(--c-on-stage-veil);
  color:var(--c-on-stage);
  font-size:13px;
  font-weight:var(--fw-semibold);
  letter-spacing:.01em;
}
.tag-dot {
  width:8px;height:8px;
  border-radius:var(--r-round);
  background:var(--c-accent);
  color:var(--c-text);
  box-shadow:0 0 0 4px var(--c-glow-ring);
}
.hero-title {
  margin:24px 0 0;
  font-family:var(--font-display);
  font-weight:var(--fw-display);
  font-size:clamp(34px,3.4vw,48px);
  line-height:1.17;
  letter-spacing:-.012em;
  text-wrap:wrap;
  color:var(--c-on-stage);
}
.hero-title > span {display:block}
.h1-key {color:var(--c-accent)}
.stage .btn-ghost:not(:disabled) {border:1.5px solid var(--c-on-stage-soft);background:var(--c-clear);color:var(--c-on-stage)}
.stage .btn-ghost:not(:disabled):hover {background:var(--c-on-stage-hover);color:var(--c-on-stage);border-color:var(--c-on-stage)}
.hero-desc {margin-top:26px;max-width:31em;font-size:var(--fs-body);line-height:1.78;color:var(--c-on-stage-soft)}
.hero-desc strong {color:var(--c-on-stage);font-weight:var(--fw-bold)}
.platforms {margin-top:46px;padding-top:22px;border-top:1px solid var(--c-on-stage-line);max-width:540px}
.platforms-label {font-size:var(--fs-xs);font-weight:var(--fw-semibold);letter-spacing:.12em;color:var(--c-on-stage-dim)}
.platform-list {display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0;padding:0;list-style:none}
.platform-list a {
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 16px 0 13px;
  border:1px solid var(--c-on-stage-line);
  border-radius:var(--r-pill);
  color:var(--c-on-stage);
  font-size:var(--fs-sm);
  font-weight:var(--fw-medium);
  transition:background-color var(--speed) ease,border-color var(--speed) ease;
}
.platform-list a:hover {background:var(--c-on-stage-hover);color:var(--c-on-stage);border-color:var(--c-on-stage-soft)}
.platform-list svg {width:16px;height:16px;flex-shrink:0}

.stage-device {position:relative;display:flex;align-items:center;justify-content:center;min-width:0}
.device {position:relative;flex:none;width:600px;height:660px;transform-origin:center center}
.phone {position:absolute;left:70px;top:20px;width:272px;height:560px;transform:rotate(-4deg);z-index:1}
.phone::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:var(--r-phone);
  background:var(--c-metal-side);
  color:var(--c-on-stage);
  transform:translate(7px,6px);
}
.phone::after {
  content:"";
  position:absolute;
  z-index:-2;
  left:-34%;right:18%;bottom:-54px;
  height:96px;
  border-radius:var(--r-round);
  background:radial-gradient(closest-side,var(--c-cast),var(--c-clear));
  color:var(--c-on-stage);
  transform:skewX(32deg);
  opacity:.9;
}
.phone-body {
  position:relative;
  height:100%;
  padding:5px;
  border-radius:var(--r-phone);
  background:linear-gradient(155deg,var(--c-metal-hi) 0%,var(--c-metal-mid) 34%,var(--c-metal-lo) 68%,var(--c-metal-mid) 100%);
  color:var(--c-on-stage);
  box-shadow:inset 0 1px 0 var(--c-glint),inset 1px 0 0 var(--c-glint),var(--sh-phone);
}
.phone-key {
  position:absolute;
  right:-11px;
  width:5px;
  border-radius:0 var(--r-key) var(--r-key) 0;
  background:linear-gradient(to right,var(--c-metal-lo),var(--c-metal-hi));
  color:var(--c-on-stage);
}
.phone-key-a {top:118px;height:54px}
.phone-key-b {top:190px;height:86px}
.phone-bezel {height:100%;padding:9px;border-radius:var(--r-bezel);background:var(--c-bezel);color:var(--c-on-stage)}
.screen {position:relative;height:100%;overflow:hidden;border-radius:var(--r-screen);background:var(--c-bg);color:var(--c-text)}
.sb {position:relative;height:28px;display:flex;align-items:center;justify-content:space-between;padding:0 18px}
.sb-key {width:15px;height:15px;color:var(--c-text)}
.sb-cam {
  position:absolute;
  left:50%;top:8px;
  width:11px;height:11px;
  margin-left:-5.5px;
  border-radius:var(--r-round);
  background:var(--c-camera);
  color:var(--c-on-stage);
}
.sb-right {display:flex;align-items:center;gap:5px;color:var(--c-text)}
.sb-signal {width:12px;height:12px}
.sb-wifi {width:13px;height:12px}
.sb-battery {width:20px;height:11px}
.appbar {
  height:48px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  background:var(--c-panel);
  color:var(--c-text);
  border-bottom:1px solid var(--c-border);
}
.appbar svg {width:20px;height:20px;flex-shrink:0;color:var(--c-text)}
.appbar-title {font-family:var(--font-display);font-size:17px;font-weight:var(--fw-bold);letter-spacing:var(--tracking-heading)}
.appbar-add {margin-left:auto}
.set-group {padding:12px 14px 6px;font-size:11px;font-weight:var(--fw-bold);letter-spacing:.06em;color:var(--c-accent-dark)}
.set-row {display:flex;align-items:center;gap:10px;min-height:54px;padding:8px 14px;border-bottom:1px solid var(--c-border)}
.set-text {flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.set-title {font-size:13px;font-weight:var(--fw-semibold);line-height:1.35}
.set-sub {font-size:10.5px;line-height:1.4;color:var(--c-muted)}
.switch {position:relative;flex:none;width:32px;height:18px;border-radius:var(--r-pill);background:var(--c-panel-2);color:var(--c-text)}
.switch::after {
  content:"";
  position:absolute;
  top:2px;left:2px;
  width:14px;height:14px;
  border-radius:var(--r-round);
  background:var(--c-bg);
  color:var(--c-text);
  box-shadow:0 1px 2px var(--c-knob-shadow);
}
.switch.is-on {background:var(--c-accent);color:var(--c-text)}
.switch.is-on::after {transform:translateX(14px)}
.set-chev {flex:none;width:14px;height:14px;color:var(--c-muted)}
.fab {
  position:absolute;
  right:16px;bottom:30px;
  width:50px;height:50px;
  border-radius:var(--r-round);
  display:grid;
  place-items:center;
  background:var(--c-text);
  color:var(--c-bg);
  box-shadow:var(--sh-fab);
}
.fab svg {width:18px;height:18px}
.gesture {
  position:absolute;
  left:50%;bottom:9px;
  width:92px;height:4px;
  margin-left:-46px;
  border-radius:var(--r-pill);
  background:var(--c-panel-2);
  color:var(--c-text);
}
.tips {position:absolute;inset:0;z-index:2}
.tip {
  position:absolute;
  width:256px;
  padding:14px 16px 16px;
  border:1px solid var(--c-border);
  border-radius:var(--r-card);
  background:var(--c-bg);
  color:var(--c-text);
  box-shadow:var(--sh-card);
}
.tip-1 {left:298px;top:64px}
.tip-2 {left:332px;top:300px}
.tip-3 {left:170px;top:548px}
.tip-head {display:flex;align-items:center;gap:8px}
.tip-icon {
  width:24px;height:24px;
  flex-shrink:0;
  border-radius:var(--r-round);
  display:grid;
  place-items:center;
  background:var(--c-text);
  color:var(--c-bg);
}
.tip-icon svg {width:13px;height:13px}
.tip-label {font-size:var(--fs-xs);font-weight:var(--fw-medium);color:var(--c-muted)}
.tip-path {margin-top:10px;font-size:14.5px;font-weight:var(--fw-bold);line-height:1.45}
.tip-arr {color:var(--c-accent-dark);padding:0 2px}
.tip-note {margin-top:6px;font-size:var(--fs-xs);line-height:1.55;color:var(--c-muted)}
.tip-note code {font-size:11px;padding:1px 5px}

/* 下载入口 → 中轴特性。 */
.dl-intro {padding-top:104px;text-align:center}
.dl-intro p {max-width:40em;margin:16px auto 0;font-size:var(--fs-body);line-height:1.75;color:var(--c-muted)}
.dl-intro .btn {margin-top:30px;padding-inline:28px;box-shadow:none}
.dl-intro .btn:hover {box-shadow:var(--sh-white-btn)}
.axis {display:flex;flex-direction:column;align-items:center;margin-top:56px}
.axis-node {
  width:40px;height:40px;
  flex-shrink:0;
  border-radius:var(--r-round);
  display:grid;
  place-items:center;
  background:var(--c-accent-dark);
  color:var(--c-bg);
}
.axis-node svg {width:18px;height:18px}
.axis-line {width:1px;height:120px;background:var(--c-border);color:var(--c-text)}
.feature-track {position:relative;isolation:isolate;display:grid;gap:clamp(54px,8vw,112px)}
.feature-track::before {
  content:"";
  position:absolute;
  inset:0 auto 0 50%;
  width:1px;
  z-index:-1;
  background:var(--c-border);
  color:var(--c-text);
}
.feature-panel {
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:center;
  gap:clamp(28px,6vw,88px);
}
.feature-panel::before {
  content:"";
  position:absolute;
  inset:0 auto 0 50%;
  width:1px;
  z-index:-1;
  opacity:.55;
  background:var(--c-border);
  color:var(--c-text);
}
.feature-panel:target {border-color:var(--c-accent-dark)}
.feature-copy p {margin-top:14px;color:var(--c-muted);line-height:1.8}
.feature-notes {display:grid;gap:12px;min-width:0}
.feature-notes .card {padding:16px 18px}
.feature-notes .card:first-child {margin-inline-end:12%}
.feature-notes .card + .card {margin-inline-start:12%}
.feature-notes pre {margin-top:8px}
.feature-nav {position:relative;justify-content:center;margin-bottom:16px}

/* 导航、切换、目录。 */
.tab-list,.toc-list {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:0;
  margin:0;
  list-style:none;
}
.tab-list {position:relative}
.tab-list :is([role="tab"],.tab-link),.toc a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:var(--tap);
  padding:8px 16px;
  border:1px solid var(--c-border);
  border-radius:var(--r-pill);
  background:var(--c-bg);
  color:var(--c-text);
  font-size:var(--fs-sm);
  font-weight:var(--fw-semibold);
  text-align:center;
  overflow-wrap:anywhere;
}
.tab-list :is([role="tab"],.tab-link):hover,.toc a:hover {border-color:var(--c-accent-dark);color:var(--c-accent-dark)}
.tab-list [aria-selected="true"] {border-color:var(--c-accent-dark);background:var(--c-panel);color:var(--c-accent-dark)}
.tab-panel {min-width:0;margin-block-start:var(--gap)}
.toc {padding:12px;border:1px solid var(--c-border);border-radius:var(--r-card);background:var(--c-panel);color:var(--c-text)}
/* 只有父容器跨越所有章节时才启用。 */
.toc-sticky {position:sticky;top:12px;z-index:var(--z-toc)}
.toc-sticky ~ [id] {scroll-margin-top:88px}
.toc-sticky.is-static {position:static}

/* 正文家具。 */
.faq-item {border:1px solid var(--c-border);border-radius:var(--r-card);background:var(--c-bg);color:var(--c-text);box-shadow:var(--sh-float)}
.faq-item + .faq-item {margin-top:10px}
.faq-item summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:var(--tap);
  padding:14px var(--card-pad);
  list-style:none;
  font-weight:var(--fw-bold);
}
.faq-item summary::-webkit-details-marker {display:none}
.faq-item summary::after {content:"+";color:var(--c-accent-dark);font-size:var(--fs-lead);flex-shrink:0}
.faq-item[open] summary::after {content:"−"}
.faq-answer {padding:0 var(--card-pad) var(--card-pad);color:var(--c-muted)}
.term-card dd {margin-top:8px;color:var(--c-muted)}
.term-card dfn {font-style:normal}
.client-card,.article-card,.article-download {display:grid;align-content:start;gap:12px}
.client-head {display:flex;align-items:center;gap:14px}
.app-logo {width:56px;height:56px;flex-shrink:0}
.client-card p,.article-card p,.article-download p {color:var(--c-muted)}
.client-card .actions,.article-download .actions {margin-top:4px}
.article-card h3 a:hover {color:var(--c-accent-dark);text-decoration:underline;text-underline-offset:.18em}
.article-meta {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;color:var(--c-muted);font-size:var(--fs-sm)}
.badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:27px;
  max-width:100%;
  padding:3px 10px;
  border:1px solid var(--c-border);
  border-radius:var(--r-pill);
  background:var(--c-panel);
  color:var(--c-text);
  font-size:var(--fs-xs);
  font-weight:var(--fw-bold);
  overflow-wrap:anywhere;
}
.badge::before {content:"";width:6px;height:6px;flex-shrink:0;border-radius:var(--r-round);background:var(--c-muted);color:var(--c-bg)}
.badge-first {border-color:var(--c-accent-dark);background:var(--c-bg);color:var(--c-accent-dark)}
.badge-first::before {background:var(--c-accent-dark);color:var(--c-bg)}
.badge-recommended::before {background:var(--c-success);color:var(--c-text)}
.badge-retired {background:var(--c-panel-2);color:var(--c-text)}
.badge-retired::before {background:var(--c-warn);color:var(--c-text)}
.callout {
  padding:var(--card-pad);
  border-inline-start:3px solid var(--c-accent-dark);
  border-radius:var(--r-card);
  background:var(--c-panel);
  color:var(--c-text);
  overflow-wrap:anywhere;
}
.callout strong {color:var(--c-accent-dark)}
.dl-fab {
  position:fixed;
  z-index:var(--z-fab);
  inset:auto max(var(--gutter),env(safe-area-inset-right)) max(var(--gutter),env(safe-area-inset-bottom)) auto;
  max-width:calc(100% - var(--gutter) * 2);
  box-shadow:var(--sh-fab);
}
.has-dl-fab .site-foot {padding-bottom:calc(76px + env(safe-area-inset-bottom))}

.table-scroll {
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--c-border);
  border-radius:var(--r-card);
}
.data-table,.prose table,.article-body table {
  width:100%;
  border-collapse:collapse;
  font-size:var(--fs-sm);
  background:var(--c-bg);
  color:var(--c-text);
}
.prose table,.article-body table,table.data-table:not(.table-scroll table) {
  display:block;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  max-width:100%;
  min-width:0;
}
:is(.prose,.article-body) .table-scroll table {display:table;overflow:visible}
:is(.data-table,.prose table,.article-body table) :is(th,td) {
  min-width:7em;
  padding:12px 16px;
  border-bottom:1px solid var(--c-border);
  text-align:start;
  vertical-align:top;
  overflow-wrap:normal;
  word-break:normal;
}
:is(.data-table,.prose table,.article-body table) th {background:var(--c-panel-2);color:var(--c-text)}
:is(.data-table,.prose table,.article-body table) caption {padding:12px 16px;text-align:start;font-weight:var(--fw-bold)}

/* 设计速览专用。 */
.preview-section {padding-top:var(--section-gap)}
.preview-section:last-child {padding-bottom:var(--section-gap)}
.preview-section > h2 {margin-bottom:20px}
.preview-heading {font-family:var(--font-display);font-weight:var(--fw-display);font-size:var(--fs-h1);line-height:1.17;letter-spacing:var(--tracking-heading)}
.swatches {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:10px;list-style:none;padding:0}
.swatch {padding:10px;border:1px solid var(--c-border);border-radius:var(--r-card);background:var(--c-bg);color:var(--c-text)}
.swatch::before {
  content:"";
  display:block;
  height:42px;
  margin-bottom:8px;
  border-radius:var(--r-chip);
  border:1px solid var(--c-border);
  background:var(--swatch-base,var(--c-bg));
  color:var(--c-text);
  box-shadow:inset 0 0 0 30px var(--swatch);
}
[data-swatch="bg"] {--swatch:var(--c-bg)}
[data-swatch="panel"] {--swatch:var(--c-panel)}
[data-swatch="panel-2"] {--swatch:var(--c-panel-2)}
[data-swatch="border"] {--swatch:var(--c-border)}
[data-swatch="accent"] {--swatch:var(--c-accent)}
[data-swatch="accent-dark"] {--swatch:var(--c-accent-dark)}
[data-swatch="text"] {--swatch:var(--c-text)}
[data-swatch="muted"] {--swatch:var(--c-muted)}
[data-swatch="success"] {--swatch:var(--c-success)}
[data-swatch="warn"] {--swatch:var(--c-warn)}
[data-swatch="error"] {--swatch:var(--c-error)}
[data-swatch="stage-from"] {--swatch:var(--c-stage-from)}
[data-swatch="stage-to"] {--swatch:var(--c-stage-to)}
[data-swatch^="on-stage"],[data-swatch="glow"],[data-swatch="glow-ring"],[data-swatch="glint"] {--swatch-base:var(--c-stage-from)}
[data-swatch="on-stage"] {--swatch:var(--c-on-stage)}
[data-swatch="on-stage-soft"] {--swatch:var(--c-on-stage-soft)}
[data-swatch="on-stage-dim"] {--swatch:var(--c-on-stage-dim)}
[data-swatch="on-stage-line"] {--swatch:var(--c-on-stage-line)}
[data-swatch="on-stage-veil"] {--swatch:var(--c-on-stage-veil)}
[data-swatch="on-stage-hover"] {--swatch:var(--c-on-stage-hover)}
[data-swatch="glow"] {--swatch:var(--c-glow)}
[data-swatch="glow-ring"] {--swatch:var(--c-glow-ring)}
[data-swatch="vignette"] {--swatch:var(--c-vignette)}
[data-swatch="metal-hi"] {--swatch:var(--c-metal-hi)}
[data-swatch="metal-mid"] {--swatch:var(--c-metal-mid)}
[data-swatch="metal-lo"] {--swatch:var(--c-metal-lo)}
[data-swatch="metal-side"] {--swatch:var(--c-metal-side)}
[data-swatch="bezel"] {--swatch:var(--c-bezel)}
[data-swatch="camera"] {--swatch:var(--c-camera)}
[data-swatch="glint"] {--swatch:var(--c-glint)}
[data-swatch="cast"] {--swatch:var(--c-cast)}
[data-swatch="knob-shadow"] {--swatch:var(--c-knob-shadow)}
[data-swatch="veil"] {--swatch:var(--c-veil)}
[data-swatch="clear"] {--swatch:var(--c-clear);--swatch-base:var(--c-panel)}

@media (max-width:1360px) {.device {transform:scale(.9)}}
@media (max-width:1180px) {
  .stage {grid-template-columns:minmax(0,56fr) minmax(0,44fr)}
  .device {transform:scale(.78)}
}
@media (min-width:961px) and (max-height:800px) {.device {transform:scale(.84)}}
@media (max-width:960px) {
  .stage {height:auto;grid-template-columns:minmax(0,1fr)}
  .stage-copy {padding:40px 24px 0}
  .hero-title,.preview-heading {font-size:var(--fs-h1-small)}
  .platforms {margin-top:34px}
  .stage-device {padding:40px 0 36px}
  .device {width:100%;height:auto;transform:none;display:flex;flex-direction:column;align-items:center}
  .phone {position:relative;left:auto;top:auto;width:240px;height:490px}
  .tips {
    position:relative;
    inset:auto;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    width:100%;
    max-width:460px;
    margin-top:-80px;
    padding:0 14px;
  }
  .tip {position:static;width:auto;padding:12px 12px 14px}
  .tip-path {font-size:13px}
  .tip-3 {display:none}
}
@media (max-width:768px) {
  .feature-panel {grid-template-columns:minmax(0,1fr)}
  .feature-panel::before {display:none}
  .feature-panel > * {min-width:0}
  .feature-notes .card:first-child {margin-inline-end:6%}
  .feature-notes .card + .card {margin-inline-start:6%}
  .feature-nav,.tab-list,.toc-list {justify-content:center}
  .toc-sticky {position:static}
}
@media (max-width:640px) {
  .tip-note {font-size:11px}
  .dl-intro {padding-top:64px}
  .axis-line {height:64px}
}
@media (max-width:380px) {
  .stage-copy {padding-inline:16px}
  .stage-copy .actions {gap:8px}
  .stage-copy .btn {padding-inline:12px;font-size:var(--fs-sm)}
  .platform-list a {padding-inline:10px}
}