/* 首屏始终为静态装置；窗口、糖果与光带不播放动画。 */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  display: grid;
  align-content: center;
  min-height: max(700px, calc(100vh - 120px));
  min-height: max(700px, calc(100svh - 120px));
  padding-top: 28px;
  padding-bottom: calc(var(--r-hero) + 28px);
  background: radial-gradient(55% 65% at 6% 8%,var(--glass-38) 0%,var(--glass-0) 62%), radial-gradient(40% 50% at 96% 100%,var(--glass-20) 0%,var(--glass-0) 70%), linear-gradient(118deg,var(--hero-a) 0%,var(--hero-b) 52%,var(--hero-c) 100%);
  color: var(--text);
}
.hero-grid { display: grid; grid-template-columns: 46fr 54fr; gap: 32px; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { margin: 22px 0 0; font-size: clamp(34px,1.4vw + 28px,48px); line-height: 1.12; letter-spacing: var(--tracking-heading); }
.lede { margin: 20px 0 0; max-width: 540px; font-size: 17.5px; line-height: 1.72; color: var(--text); }
.lede strong { color: var(--accent-dark); font-weight: var(--weight-heavy); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  max-width: 100%;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-70);
  background: var(--glass-55);
  color: var(--text);
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 14px var(--plum-06);
}
.dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--success); color: var(--white); box-shadow: 0 0 0 4px var(--success-22); }
.platforms { margin-top: 32px; }
.plat-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plat-list li { margin: 0; }
.plat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 15px 9px 12px;
  border-radius: var(--r-pill);
  background: var(--glass-55);
  color: var(--text);
  border: 1px solid var(--glass-70);
  text-decoration: none;
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  transition: background-color var(--duration-fast), transform var(--duration-fast);
}
.plat svg { width: 16px; height: 16px; flex-shrink: 0; }
.plat:hover { background: var(--white); color: var(--text); transform: translateY(-1px); }
.hero-visual { position: relative; height: 620px; min-width: 0; }
.stage { position: absolute; left: 50%; top: 50%; width: 700px; height: 620px; margin: -310px 0 0 -350px; transform-origin: center; }
.blob-wrap { position: absolute; inset: 0 0 0 10px; z-index: 1; filter: drop-shadow(0 30px 50px var(--plum-20)) drop-shadow(0 8px 16px var(--plum-12)); }
.blob {
  position: absolute;
  inset: 0;
  clip-path: url(#blobClip);
  background: radial-gradient(50% 45% at 28% 20%,var(--glass-38) 0%,var(--glass-0) 72%), linear-gradient(155deg,var(--blob-a) 0%,var(--blob-m) 54%,var(--blob-z) 100%);
  color: var(--text);
}
.blob::after { content: ""; position: absolute; inset: 0; background: radial-gradient(38% 34% at 74% 72%,var(--glass-20) 0%,var(--glass-0) 100%); color: var(--text); }
.blob-arc { position: absolute; left: 10px; top: 0; z-index: 2; width: 690px; height: 620px; overflow: visible; }
.blob-arc .arc { fill: none; stroke: var(--glass-70); stroke-width: 1.5; }
.blob-arc .arc-hi { fill: none; stroke: var(--glass-92); stroke-width: 2.5; stroke-linecap: round; }
.bands { position: absolute; inset: 0; z-index: 3; width: 700px; height: 620px; overflow: visible; }
.bands .bs { stop-color: var(--white); }
.bands path { fill: none; stroke: url(#bandGrad); stroke-linecap: round; }
.win-ghost { position: absolute; left: 128px; top: 78px; z-index: 4; width: 520px; height: 350px; border-radius: var(--r-card-lg); background: var(--glass-38); color: var(--text); border: 1px solid var(--glass-55); transform: rotate(1.5deg); box-shadow: 0 20px 50px var(--plum-12); }
.win-ghost::before { content: ""; position: absolute; left: 0; right: 0; top: 42px; height: 1px; background: var(--glass-55); color: var(--text); }
.win { position: absolute; overflow: hidden; background: var(--white); color: var(--text); }
.win-main { left: 92px; top: 112px; z-index: 5; width: 520px; border-radius: var(--r-card); transform: rotate(-4deg); box-shadow: var(--shadow-card); }
.titlebar { display: flex; align-items: center; gap: 9px; height: 42px; padding-left: 14px; border-bottom: 1px solid var(--border); background: var(--white); color: var(--text); }
.tb-mark { width: 20px; height: 20px; flex-shrink: 0; }
.tb-title { font-size: 13px; font-weight: var(--weight-medium); color: var(--text); }
.tb-ctrl { display: flex; margin-left: auto; }
.tb-btn { display: grid; place-items: center; width: 44px; height: 42px; color: var(--text-muted); }
.tb-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1; }
.win-body { display: grid; grid-template-columns: 150px 1fr; }
.side { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 14px 10px; list-style: none; background: var(--bg-panel); color: var(--text-muted); }
.side li { margin: 0; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: var(--weight-medium); line-height: 1.3; color: var(--text-muted); }
.side li.is-on { background: var(--accent); color: var(--white); box-shadow: 0 6px 14px var(--accent-35); }
.pane { padding: 14px 20px 16px; }
.pane-head { padding: 2px 0 8px; font: var(--weight-heavy) 16px/1.6 var(--font-display); letter-spacing: -.01em; }
.setting-row { display: flex; align-items: center; justify-content: space-between; height: 41px; border-top: 1px solid var(--border); gap: 12px; }
.lbl { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: var(--weight-medium); color: var(--text); }
.st { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--dot-off); color: var(--text); }
.st-on { background: var(--success); color: var(--white); box-shadow: 0 0 0 3px var(--success-22); }
.st-accent { background: var(--accent); color: var(--white); }
.val { padding: 4px 10px; border-radius: var(--r-xs); background: var(--bg-panel-2); color: var(--accent-dark); font: var(--weight-medium) 12.5px/1.3 var(--font-mono); }
.tg { position: relative; width: 36px; height: 20px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--toggle-off); color: var(--text); box-shadow: inset 0 1px 2px var(--ink-12); }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: var(--r-circle); background: var(--white); color: var(--text); box-shadow: 0 1px 3px var(--plum-30); }
.tg-on { background: var(--accent); color: var(--white); }
.tg-on::after { transform: translateX(16px); }
.win-yaml { left: 22px; top: 444px; z-index: 6; width: 236px; border-radius: var(--r-code); transform: rotate(3deg); box-shadow: var(--shadow-soft); }
.yaml-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); font: var(--weight-medium) 12px/1.6 var(--font-mono); }
.yaml-head svg { width: 13px; height: 13px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.yaml-tag { margin-left: auto; padding: 2px 7px; border-radius: var(--r-tiny); background: var(--bg-panel-2); color: var(--accent-dark); font-size: 10px; letter-spacing: .04em; }
.code { margin: 0; padding: 10px 14px 12px; list-style: none; counter-reset: ln; font: 12.5px/22px var(--font-mono); color: var(--text); }
.code li { counter-increment: ln; white-space: nowrap; margin: 0; }
.code li::before { content: counter(ln); display: inline-block; width: 16px; margin-right: 10px; color: var(--text-muted); text-align: right; }
.code .k { color: var(--accent-dark); font-weight: var(--weight-medium); }
.code .p { color: var(--text-muted); }

.candy { position: absolute; z-index: 8; }
.candy-win { left: 188px; top: 22px; width: 72px; height: 72px; padding: 16px; border-radius: var(--r-candy); display: grid; grid-template-columns: 1fr 1fr; gap: 5px; transform: rotate(-10deg); background: radial-gradient(60% 50% at 30% 22%,var(--glass-92) 0%,var(--glass-0) 70%),linear-gradient(150deg,var(--candy-violet-hi) 0%,var(--candy-violet) 72%); color: var(--text); box-shadow: inset 0 2px 3px var(--glass-92),inset 0 -10px 16px var(--candy-shade),0 14px 26px var(--plum-20),0 4px 8px var(--plum-12); }
.candy-win i { border-radius: var(--r-pane); background: linear-gradient(160deg,var(--glass-92) 0%,var(--glass-55) 100%); color: var(--text); box-shadow: 0 2px 4px var(--candy-shade),inset 0 1px 0 var(--white); }
.candy-paw { left: 598px; top: 32px; width: 84px; height: 84px; transform: rotate(12deg); }
.candy-paw i { position: absolute; border-radius: var(--r-circle); background: radial-gradient(55% 45% at 32% 26%,var(--glass-92) 0%,var(--glass-0) 70%),linear-gradient(150deg,var(--candy-peach-hi) 0%,var(--candy-peach) 78%); color: var(--text); box-shadow: inset 0 2px 2px var(--glass-92),inset 0 -5px 8px var(--candy-warm-shade),0 8px 14px var(--plum-20); }
.candy-paw .pad { left: 20px; top: 38px; width: 44px; height: 36px; border-radius: var(--r-paw); }
.candy-paw .t1 { left: 6px; top: 24px; width: 17px; height: 21px; transform: rotate(-28deg); }
.candy-paw .t2 { left: 22px; top: 9px; width: 17px; height: 21px; transform: rotate(-10deg); }
.candy-paw .t3 { left: 45px; top: 9px; width: 17px; height: 21px; transform: rotate(10deg); }
.candy-paw .t4 { left: 61px; top: 24px; width: 17px; height: 21px; transform: rotate(28deg); }
.candy-shield { left: 634px; top: 296px; width: 58px; height: 68px; transform: rotate(8deg); filter: drop-shadow(0 12px 14px var(--plum-20)) drop-shadow(0 3px 5px var(--plum-12)); }
.shield-body { position: absolute; inset: 0; clip-path: url(#shieldClip); background: radial-gradient(70% 45% at 30% 18%,var(--glass-92) 0%,var(--glass-0) 70%),linear-gradient(165deg,var(--candy-violet-hi) 0%,var(--candy-violet) 78%); color: var(--text); }
.shield-body::before { content: ""; position: absolute; inset: 6px 6px 7px; clip-path: url(#shieldClip); background: linear-gradient(170deg,var(--glass-38) 0%,var(--glass-0) 60%); color: var(--text); }
.shield-body::after { content: ""; position: absolute; left: 19px; top: 22px; width: 22px; height: 12px; border-left: 5px solid var(--white); border-bottom: 5px solid var(--white); border-radius: var(--r-pixel); transform: rotate(-45deg); }
.candy-plug { left: 566px; top: 484px; width: 64px; height: 88px; transform: rotate(-14deg); }
.candy-plug i { position: absolute; }
.candy-plug .pin { top: 0; width: 8px; height: 24px; border-radius: var(--r-pin); background: linear-gradient(90deg,var(--white) 0%,var(--metal-lo) 100%); color: var(--text); box-shadow: 0 2px 3px var(--plum-12); }
.candy-plug .pin-l { left: 18px; }
.candy-plug .pin-r { left: 38px; }
.candy-plug .body { top: 18px; left: 6px; width: 52px; height: 44px; border-radius: var(--r-plug); background: radial-gradient(55% 45% at 30% 24%,var(--glass-92) 0%,var(--glass-0) 70%),linear-gradient(150deg,var(--candy-violet-hi) 0%,var(--candy-violet) 75%); color: var(--text); box-shadow: inset 0 2px 3px var(--glass-92),inset 0 -8px 12px var(--candy-shade),0 12px 22px var(--plum-20); }
.candy-plug .neck { top: 58px; left: 22px; width: 20px; height: 16px; border-radius: 0 0 var(--r-neck) var(--r-neck); background: linear-gradient(180deg,var(--candy-violet) 0%,var(--candy-violet-hi) 100%); color: var(--text); box-shadow: inset 0 -3px 5px var(--candy-shade); }
.candy-plug .cable { top: 71px; left: 28px; width: 8px; height: 16px; border-radius: var(--r-pin); background: var(--candy-violet); color: var(--text); box-shadow: inset 0 -3px 4px var(--candy-shade); }
.candy-toggle { left: -8px; top: 292px; width: 92px; height: 46px; border-radius: var(--r-pill); transform: rotate(-8deg); background: radial-gradient(60% 50% at 30% 20%,var(--glass-92) 0%,var(--glass-0) 70%),linear-gradient(160deg,var(--candy-peach-hi) 0%,var(--candy-peach) 80%); color: var(--text); box-shadow: inset 0 2px 3px var(--glass-92),inset 0 -8px 12px var(--candy-warm-shade),0 12px 24px var(--plum-20),0 3px 6px var(--plum-12); }
.candy-toggle .knob { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: var(--r-circle); background: radial-gradient(circle at 35% 30%,var(--white) 0%,var(--white) 35%,var(--metal-lo) 100%); color: var(--text); box-shadow: 0 4px 8px var(--candy-warm-shade),inset 0 -3px 5px var(--plum-12); }
.peek { position: relative; z-index: 3; margin-top: calc(var(--r-hero) * -1); padding-top: 32px; padding-bottom: 48px; border-radius: var(--r-hero) var(--r-hero) 0 0; background: var(--bg); color: var(--text); text-align: center; }
.peek-label { margin: 0; font: var(--weight-heavy) 15px/1.4 var(--font-display); letter-spacing: .02em; color: var(--text-muted); }

.tabs { min-width: 0; }
.tab-tray, [role="tablist"].tab-tray {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  padding: 10px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.tab-tray.platform-tabs { grid-template-columns: repeat(6,minmax(0,1fr)); }
[role="tab"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 13px 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-weight: var(--weight-heavy);
  line-height: 1.4;
  text-align: center;
}
[role="tab"]:hover { background: var(--bg-panel-2); color: var(--accent-dark); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--white); }
[role="tabpanel"] { min-width: 0; padding-top: 40px; }
.tab-progress { position: absolute; bottom: 5px; left: 20px; right: 20px; height: 2px; border-radius: var(--r-pill); background: var(--glass-38); color: var(--white); transform-origin: left; transform: scaleX(0); }
.tabs.is-playing [aria-selected="true"] .tab-progress { animation: tab-count 7s linear forwards; }
@keyframes tab-count { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.feature-detail { display: grid; grid-template-columns: 44fr 56fr; gap: 40px; align-items: center; }
.feature-name { margin-bottom: 20px; font-weight: var(--weight-heavy); }
.feature-name::before { content: "✦"; display: inline-block; margin-right: 10px; color: var(--accent); }
.feature-copy p { color: var(--text-muted); }
.feature-windows { position: relative; overflow: hidden; overflow-x: clip; min-height: 450px; }
.feature-windows::before { content: ""; position: absolute; inset: 20px 10px 28px 40px; border-radius: 44% 56% 38% 62% / 50% 36% 64% 50%; background: linear-gradient(135deg,var(--hero-a),var(--hero-b),var(--hero-c)); color: var(--text); }
.feature-window { position: absolute; width: 76%; padding: 22px; border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.feature-window p { margin: 0 0 12px; font-size: var(--size-small); font-weight: var(--weight-heavy); }
.feature-window pre { margin: 0; padding: 14px; font-size: var(--size-caption); }
.feature-window-a { left: 6%; top: 24px; transform: rotate(-3deg); }
.feature-window-b { left: 21%; top: 165px; transform: rotate(3deg); z-index: 2; }
.feature-window-c { left: 9%; top: 325px; z-index: 3; width: 65%; }
.field-link { position: absolute; left: 16%; right: 8%; top: 284px; height: 1px; z-index: 4; background: var(--accent); color: var(--white); }
.field-link::before, .field-link::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--accent); color: var(--white); }
.field-link::after { right: 0; }

.toc {
  position: sticky;
  top: 16px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); text-decoration: none; font-size: var(--size-small); font-weight: var(--weight-bold); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--accent); color: var(--white); }
.faq-item { margin-bottom: 14px; padding: 0 24px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.faq-item summary { position: relative; list-style: none; padding: 23px 34px 23px 0; cursor: pointer; font-weight: var(--weight-heavy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; color: var(--accent); font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { height: 100%; padding: 28px; border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.term-card h3 { font-size: 23px; margin-top: 16px; }
.term-card p { margin-bottom: 0; color: var(--text-muted); }
.term-en { font: var(--size-small)/1.6 var(--font-mono); color: var(--accent-dark); }
.client-card { min-width: 0; padding: 30px; border-radius: var(--r-card-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.client-card.is-featured { box-shadow: 0 0 0 1px var(--accent-35),var(--shadow-soft); }
.client-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.client-head > div { min-width: 0; flex: 1; }
.client-head h3 { margin: 0 0 8px; font-size: 24px; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-card p { color: var(--text-muted); }
.client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.client-rev:empty, [data-rev]:empty { display: none; }
.client-rev { font: var(--size-caption)/1.5 var(--font-mono); color: var(--text-muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--accent-dark);
  font-size: var(--size-caption);
  font-weight: var(--weight-bold);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}
.chip-top { background: var(--accent); color: var(--white); }
.chip-recommended { background: var(--bg-panel-2); color: var(--accent-dark); }
.chip-archived { background: var(--bg-panel); color: var(--text-muted); }
.chip-warning { background: var(--bg-panel); color: var(--text); }
.chip-warning::before { content: ""; width: 7px; height: 7px; border-radius: var(--r-circle); flex-shrink: 0; background: var(--warn); color: var(--text); }
.chip-error { background: var(--bg-panel); color: var(--text); }
.chip-error::before { content: ""; width: 7px; height: 7px; border-radius: var(--r-circle); flex-shrink: 0; background: var(--error); color: var(--white); }
.post-card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 30px; border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.post-card h3 { margin: 22px 0 16px; font-size: 24px; line-height: 1.4; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--text-muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; color: var(--text-muted); font-size: var(--size-caption); }
.callout { margin: 24px 0; padding: 24px 28px; border: 0; border-inline-start: 4px solid var(--accent); border-radius: var(--r-md); background: var(--bg-panel-2); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: var(--weight-heavy); }
.callout-warning { border-inline-start-color: var(--warn); background: var(--bg-panel); color: var(--text); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; border-radius: var(--r-md); overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg); color: var(--text); font-size: var(--size-small); }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .article-body table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-heavy); }
.prose table, .article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  background: var(--bg);
  color: var(--text);
}
.data-table code, .prose table code, .article-body table code { overflow-wrap: anywhere; }
.download-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 16px; border-radius: var(--r-section); background: var(--bg-panel-2); color: var(--text); }
.download-strip a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 12px; min-height: 150px; border-radius: var(--r-card); background: var(--bg); color: var(--text); text-decoration: none; font-weight: var(--weight-heavy); }
.download-strip svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--accent); }
.download-strip small { color: var(--accent-dark); font-weight: var(--weight-medium); }
.article-download { padding: 30px; margin-top: 40px; border-radius: var(--r-card-lg); background: var(--bg-panel-2); color: var(--text); }
.article-download h2 { margin: 0 0 12px; font-size: 26px; }
.article-download p { color: var(--text-muted); }
.dl-fab {
  position: fixed;
  right: 24px;
  bottom: max(24px,env(safe-area-inset-bottom));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: calc(100vw - 40px);
  min-height: 58px;
  padding: 14px 23px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  font-weight: var(--weight-heavy);
  line-height: 1.4;
}
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-fab:hover { background: var(--accent-dark); color: var(--white); }
.has-dl-fab .footer-inner { padding-bottom: 110px; }

/* 设计预览专用陈列，不参与正式页面导航。 */
.preview-colors { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.swatch { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); }
.swatch i { display: block; height: 58px; border-radius: var(--r-sm); color: var(--text); }
.swatch code { display: block; margin-top: 8px; font-size: var(--size-caption); color: var(--text-muted); }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--bg-panel); }
.sw-panel2 { background: var(--bg-panel-2); }
.sw-border { background: var(--border); }
.sw-accent { background: var(--accent); }
.sw-dark { background: var(--accent-dark); }
.sw-text { background: var(--text); }
.sw-muted { background: var(--text-muted); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-ha { background: var(--hero-a); }
.sw-hb { background: var(--hero-b); }
.sw-hc { background: var(--hero-c); }
.sw-ba { background: var(--blob-a); }
.sw-bm { background: var(--blob-m); }
.sw-bz { background: var(--blob-z); }
.sw-toggle { background: var(--toggle-off); }
.sw-dot { background: var(--dot-off); }
.sw-metal { background: var(--metal-lo); }
.sw-white { background: var(--white); }
.sw-gl92 { background: var(--glass-92); }
.sw-gl70 { background: var(--glass-70); }
.sw-gl55 { background: var(--glass-55); }
.sw-gl38 { background: var(--glass-38); }
.sw-gl20 { background: var(--glass-20); }
.sw-gl0 { background: var(--glass-0); }
.sw-ink28 { background: var(--ink-28); }
.sw-ink12 { background: var(--ink-12); }
.sw-p06 { background: var(--plum-06); }
.sw-p12 { background: var(--plum-12); }
.sw-p20 { background: var(--plum-20); }
.sw-p30 { background: var(--plum-30); }
.sw-a35 { background: var(--accent-35); }
.sw-s22 { background: var(--success-22); }
.sw-cv { background: var(--candy-violet); }
.sw-cvh { background: var(--candy-violet-hi); }
.sw-cp { background: var(--candy-peach); }
.sw-cph { background: var(--candy-peach-hi); }
.sw-cs { background: var(--candy-shade); }
.sw-cws { background: var(--candy-warm-shade); }
.sw-veil { background: var(--veil); }
.preview-states { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.preview-type > * { margin-bottom: 22px; }
.type-display { font: var(--weight-display) var(--size-h1)/1.12 var(--font-display); letter-spacing: var(--tracking-heading); }
.preview-note { margin-top: 20px; font-size: var(--size-small); color: var(--text-muted); }

@media (max-width: 1340px) {
  .stage { transform: scale(.9); }
}
@media (max-width: 1180px) {
  .hero-visual { height: 540px; }
  .stage { transform: scale(.8); }
  .feature-detail { gap: 24px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { height: 470px; }
  .stage { transform: scale(.74); }
  .feature-detail { grid-template-columns: 1fr; }
  .feature-windows { max-width: 640px; width: 100%; margin-inline: auto; }
  .tab-tray, [role="tablist"].tab-tray { border-radius: var(--r-card); grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tab-tray.platform-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .download-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .preview-colors { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 28px; }
  .lede { font-size: var(--size-body); }
  .hero-visual { height: 320px; }
  .stage { transform: scale(.47); }
  .win-main, .win-ghost, .win-yaml, .feature-window-a, .feature-window-b { transform: none; }
  .peek-label { font-size: 13.5px; }
  .plat-list { gap: 6px; }
  .plat { padding-inline: 10px; font-size: var(--size-caption); }
  [role="tab"] { padding: 12px 10px; font-size: var(--size-small); }
  .tab-tray, [role="tablist"].tab-tray { gap: 6px; padding: 8px; }
  .tab-tray.platform-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-windows { min-height: 440px; }
  .feature-window { padding: 16px; }
  .feature-window-a { left: 2%; width: 90%; }
  .feature-window-b { left: 10%; width: 88%; }
  .feature-window-c { left: 2%; width: 90%; }
  .feature-window pre { padding: 10px; }
  .toc { position: static; border-radius: var(--r-md); }
  .toc a { padding-inline: 12px; }
  .client-card, .post-card, .term-card, .article-download { padding: 24px; }
  .callout { padding: 20px; }
  .faq-item { padding-inline: 20px; }
  .download-strip { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 10px; }
  .download-strip a { min-height: 130px; padding: 18px 8px; font-size: var(--size-small); }
  .preview-colors { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dl-fab { right: 20px; min-height: 52px; padding: 12px 18px; font-size: var(--size-small); }
}