/* 首页首屏：排版入场，设备保持静止。 */
.sky { position:absolute; inset:0 0 auto; height:1000px; pointer-events:none; z-index:0; }
.sky svg { width:100%; height:100%; }
.sky .band { fill:var(--cloud); }
.band-a { opacity:.78; }
.band-b { opacity:.62; }
.band-c { opacity:.7; }
.hero {
  position:relative; z-index:1;
  min-height:max(720px,calc(100vh - var(--nav-h) - 44px));
  display:flex; align-items:center;
}
.hero-grid { display:grid; grid-template-columns:minmax(0,45fr) minmax(0,55fr); column-gap:40px; align-items:center; }
.copy { padding-bottom:6px; }
.badge {
  display:inline-flex; align-items:center; gap:10px; min-height:32px;
  padding:5px 14px 5px 12px; max-width:100%;
  background:var(--panel); color:var(--muted);
  border:1px solid var(--border-soft); border-radius:var(--r-pill);
  box-shadow:var(--sh-badge); font-size:13px; font-weight:var(--weight-semibold);
}
.copy > .badge { margin-bottom:26px; }
.pulse { position:relative; width:8px; height:8px; border-radius:var(--r-circle); background:var(--warn); flex-shrink:0; }
.pulse::after { content:""; position:absolute; inset:-4px; border-radius:var(--r-circle); background:var(--warn-halo); animation:breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform:scale(.6); opacity:.2; } 50% { transform:scale(1.15); opacity:.9; } }
.title { margin:0 0 32px; font-size:var(--size-h1); line-height:1.17; font-weight:var(--weight-display); letter-spacing:-.015em; }
.title-line { display:block; animation:rise .72s var(--ease-out) both; }
.title-line:nth-child(1) { animation-delay:.05s; }
.title-line:nth-child(2) { animation-delay:.2s; }
@keyframes rise { from { opacity:0; transform:translateY(.42em); } to { opacity:1; transform:translateY(0); } }
.kw { position:relative; isolation:isolate; display:inline-block; white-space:nowrap; }
.kw::before {
  content:""; position:absolute; left:-.1em; right:-.1em; bottom:.07em; height:.4em;
  background:var(--accent-wash); border-radius:var(--r-highlight); z-index:-1;
  transform-origin:left center; animation:sweep .46s var(--ease-out) .66s both;
}
@keyframes sweep { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.lede { margin:0 0 28px; max-width:30em; font-size:16.5px; line-height:1.75; color:var(--muted); }
.lede strong { color:var(--text); }
.platforms { display:flex; flex-wrap:wrap; align-items:center; gap:8px 26px; list-style:none; margin:0 0 18px; padding:0; }
.platforms a { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:var(--weight-semibold); color:var(--text); }
.platforms svg { width:16px; height:16px; color:var(--muted); }
.platforms a:hover,.platforms a:hover svg { color:var(--accent-dark); text-decoration:none; }
.chips { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0; }
.chips li,.tag {
  display:inline-flex; align-items:center; min-height:26px; padding:4px 11px;
  max-width:100%; overflow:hidden; overflow-wrap:anywhere;
  background:var(--panel-2); color:var(--muted); border-radius:var(--r-pill);
  font:var(--weight-medium) 12px/1.5 var(--font-mono);
}
.tag { font-family:var(--font-body); }
.rig-stage { min-width:0; }
.rig { position:relative; margin:0; height:574px; isolation:isolate; }
.win-contact { position:absolute; z-index:0; left:120px; right:24px; top:432px; height:26px; background:radial-gradient(ellipse at center,var(--contact-win),var(--clear) 70%); filter:blur(5px); }
.win {
  position:absolute; z-index:1; top:0; left:96px; right:0; height:430px;
  display:flex; flex-direction:column;
  background:var(--panel); color:var(--text); border-radius:var(--r-window);
  box-shadow:var(--sh-window); overflow:hidden;
}
.win-base { position:absolute; z-index:1; top:428px; left:80px; right:-16px; height:13px; background:linear-gradient(180deg,var(--metal-1),var(--metal-2) 55%,var(--metal-3)); border-radius:var(--r-base); }
.win-base::before { content:""; position:absolute; left:50%; top:0; width:96px; height:5px; margin-left:-48px; background:linear-gradient(180deg,var(--metal-groove),var(--metal-2)); border-radius:var(--r-groove); }
.win-title {
  position:relative; flex-shrink:0; height:34px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg,var(--chrome-top),var(--panel)); color:var(--text);
  border-bottom:1px solid var(--hair); font-size:12px; font-weight:var(--weight-bold); letter-spacing:.01em;
}
.lights { position:absolute; left:14px; top:50%; display:flex; gap:7px; transform:translateY(-50%); }
.lights i { display:block; width:10px; height:10px; border-radius:var(--r-circle); }
.lights i:nth-child(1) { background:var(--error); }
.lights i:nth-child(2) { background:var(--warn); }
.lights i:nth-child(3) { background:var(--success); }
.win-menu { flex-shrink:0; height:30px; display:flex; align-items:center; gap:20px; padding-inline:16px; border-bottom:1px solid var(--hair); font-size:11.5px; color:var(--text); }
.win-menu span:first-child { color:var(--accent-dark); font-weight:var(--weight-semibold); }
.win-tabs { flex-shrink:0; height:30px; display:flex; align-items:flex-end; padding-inline:16px; }
.win-tabs span { height:30px; display:flex; align-items:center; padding-inline:4px; font-size:11px; font-weight:var(--weight-bold); color:var(--accent-dark); box-shadow:inset 0 -2px 0 var(--accent); }
.grid-head {
  flex-shrink:0; height:27px; display:grid;
  grid-template-columns:52px 1.2fr 1.4fr 40px 62px 34px 46px 64px;
  align-items:center; padding-inline:12px;
  background:var(--panel-2); color:var(--muted);
  border-block:1px solid var(--border-soft); font-size:10.5px; font-weight:var(--weight-semibold);
}
.grid-head span { padding-inline:6px; white-space:nowrap; border-left:1px solid var(--border); }
.grid-head span:first-child { border-left:0; }
.grid-body {
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  background:repeating-linear-gradient(180deg,var(--clear) 0 25px,var(--row-line) 25px 26px),var(--panel);
  color:var(--muted);
}
.empty-ico { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:var(--r-circle); background:var(--accent-wash-soft); color:var(--accent); }
.empty-ico svg { width:18px; height:18px; }
.empty-text { font-size:11.5px; color:var(--muted); background:var(--panel); padding-inline:8px; }
.win-status {
  flex-shrink:0; min-height:40px; display:flex; align-items:center; justify-content:flex-end; gap:5px;
  padding:5px 10px 5px var(--phone-clear);
  background:var(--panel-2); color:var(--muted); border-top:1px solid var(--border-soft); font-size:8.5px;
}
.st-label { font-weight:var(--weight-semibold); white-space:nowrap; }
.seg { display:flex; padding:2px; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--panel); color:var(--muted); }
.seg span { display:flex; align-items:center; min-height:20px; padding-inline:5px; border-radius:var(--r-pill); font-size:8.5px; white-space:nowrap; }
.seg .on { background:var(--accent); color:var(--on-accent); font-weight:var(--weight-semibold); box-shadow:var(--sh-seg); }
.st-sep { width:1px; height:16px; background:var(--border); flex-shrink:0; }
.select { display:flex; align-items:center; gap:4px; min-height:24px; padding-inline:7px; background:var(--panel); color:var(--text); border:1px solid var(--border); border-radius:var(--r-pill); font-size:8.5px; font-weight:var(--weight-semibold); white-space:nowrap; }
.select svg { width:10px; height:10px; color:var(--muted); }
.win-log { flex-shrink:0; height:26px; display:flex; align-items:center; padding:0 14px 0 var(--phone-clear); border-top:1px solid var(--hair); background:var(--panel); color:var(--muted); font:var(--weight-medium) 10.5px/1 var(--font-mono); }
.phone-contact { position:absolute; z-index:2; left:4px; width:170px; top:552px; height:22px; background:radial-gradient(ellipse at center,var(--contact-phone),var(--clear) 70%); filter:blur(4px); }
.phone { position:absolute; z-index:3; left:-24px; top:150px; width:200px; height:410px; padding:6px; background:var(--ink); color:var(--on-accent); border-radius:var(--r-phone); box-shadow:var(--sh-phone),inset 0 0 0 1px var(--bezel-edge); }
.phone::before,.phone::after { content:""; position:absolute; right:-3px; width:3px; background:var(--ink-2); border-radius:var(--r-phone-key); }
.phone::before { top:96px; height:46px; }
.phone::after { top:156px; height:26px; }
.screen { position:relative; height:100%; display:flex; flex-direction:column; background:var(--panel); color:var(--text); border-radius:var(--r-screen); overflow:hidden; }
.p-status { position:relative; flex-shrink:0; height:22px; display:flex; align-items:center; justify-content:flex-end; gap:4px; padding-inline:14px; color:var(--muted); }
.p-status svg { height:8px; width:auto; }
.punch { position:absolute; left:50%; top:7px; width:8px; height:8px; margin-left:-4px; border-radius:var(--r-circle); background:var(--ink); }
.p-bar { flex-shrink:0; height:40px; display:flex; align-items:center; gap:10px; padding-inline:12px; border-bottom:1px solid var(--hair); color:var(--text); }
.p-bar svg { width:16px; height:16px; }
.p-title { flex:1; font-size:13px; font-weight:var(--weight-display); letter-spacing:-.01em; }
.p-more { color:var(--muted); }
.p-list { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding-inline:14px; text-align:center; }
.p-list .empty-ico { width:32px; height:32px; }
.p-list .empty-ico svg { width:15px; height:15px; }
.p-list p { margin:0; font-size:10.5px; line-height:1.5; color:var(--muted); }
.p-set { flex-shrink:0; margin:0 10px 58px; padding:2px 12px; border-radius:var(--r-md); background:var(--panel-2); color:var(--text); }
.p-row { height:34px; display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:10.5px; font-weight:var(--weight-semibold); }
.p-row + .p-row { border-top:1px solid var(--border); }
.switch { position:relative; width:28px; height:16px; border-radius:var(--r-pill); background:var(--switch-off); flex-shrink:0; }
.switch::after { content:""; position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:var(--r-circle); background:var(--panel); box-shadow:var(--sh-knob); }
.switch.on { background:var(--accent); }
.switch.on::after { left:14px; }
.p-foot { position:absolute; inset:auto 0 0; height:44px; display:flex; align-items:center; gap:6px; padding-inline:14px; border-top:1px solid var(--hair); background:var(--panel); color:var(--muted); font-size:10.5px; font-weight:var(--weight-semibold); }
.p-foot i { width:6px; height:6px; border-radius:var(--r-circle); background:var(--faint-2); flex-shrink:0; }
.fab { position:absolute; right:12px; bottom:24px; width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:var(--r-circle); background:var(--accent); color:var(--on-accent); box-shadow:var(--sh-fab); }
.fab svg { width:16px; height:16px; }
.peek { position:relative; z-index:1; }
.peek-card { background:var(--panel); color:var(--text); border:1px solid var(--border-soft); border-bottom:0; border-radius:var(--r-card) var(--r-card) 0 0; box-shadow:var(--sh-peek); padding:22px 48px 64px; }
.peek-eyebrow { display:inline-flex; align-items:center; gap:8px; margin-bottom:14px; font-size:12.5px; font-weight:var(--weight-bold); letter-spacing:.06em; color:var(--accent-dark); }
.peek-eyebrow i { width:6px; height:6px; border-radius:var(--r-circle); background:var(--accent); flex-shrink:0; }
.peek h2 { margin:0; font-size:30px; }

/* 跨页导航与内容组件。 */
.tabs { min-width:0; }
[role="tablist"] { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
[role="tab"] {
  min-height:44px; padding:11px 22px; border:1px solid var(--border);
  border-radius:var(--r-pill); background:var(--panel); color:var(--muted);
  font-weight:var(--weight-bold); line-height:1.4;
}
[role="tab"]:hover { color:var(--accent-dark); border-color:var(--accent); }
[role="tab"][aria-selected="true"] { background:var(--accent); color:var(--on-accent); border-color:var(--accent); box-shadow:var(--sh-btn-primary); }
[role="tabpanel"] { min-width:0; scroll-margin-top:28px; }
.protocol-wall { margin:0 auto 80px; text-align:center; }
.protocol-wall h2 { max-width:850px; margin-inline:auto; margin-bottom:44px; }
.protocol-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:24px 52px; margin-bottom:26px; color:var(--muted); font-size:26px; font-weight:var(--weight-bold); }
.protocol-row span:nth-child(odd) { font-family:var(--font-mono); font-size:.9em; }
.feature-tabs { display:grid; grid-template-columns:minmax(200px,.7fr) minmax(0,1.7fr); gap:56px; align-items:start; }
.feature-tabs [role="tablist"] { flex-direction:column; gap:10px; }
.feature-tabs [role="tab"] { position:relative; border:0; border-radius:var(--r-sm); padding:16px 24px; text-align:left; font-size:24px; font-weight:var(--weight-display); background:var(--clear); color:var(--muted); box-shadow:none; }
.feature-tabs [role="tab"][aria-selected="true"] { color:var(--text); background:var(--clear); }
.feature-tabs [role="tab"][aria-selected="true"]::before { content:""; position:absolute; left:0; top:18px; bottom:18px; width:4px; border-radius:var(--r-pill); background:var(--accent); }
.feature-detail { padding:44px; min-height:380px; }
.setting-preview { padding:24px; margin-top:28px; background:var(--panel-2); color:var(--text); border-radius:var(--r-md); }
.setting-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; }
.setting-row + .setting-row { margin-top:18px; }
.toc { display:flex; flex-wrap:wrap; gap:8px; padding:16px; margin-bottom:40px; border-radius:var(--r-card); background:var(--panel-2); color:var(--text); }
.toc a { display:flex; align-items:center; min-height:44px; padding:9px 16px; border-radius:var(--r-pill); color:var(--muted); font-size:14px; font-weight:var(--weight-semibold); }
.toc a:hover,.toc a[aria-current] { background:var(--panel); color:var(--accent-dark); text-decoration:none; }
.toc-sticky { position:sticky; top:16px; z-index:10; }
.faq-item { background:var(--panel); color:var(--text); border:1px solid var(--border-soft); border-radius:var(--r-md); margin-bottom:12px; }
.faq-item summary { position:relative; padding:22px 56px 22px 24px; cursor:pointer; font-weight:var(--weight-bold); list-style:none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; position:absolute; right:24px; top:20px; color:var(--accent-dark); font-size:22px; line-height:1.2; }
.faq-item[open] summary::after { content:"−"; }
.faq-answer { padding:0 24px 24px; color:var(--muted); }
.faq-answer > :last-child { margin-bottom:0; }
.term-card { border-top:3px solid var(--accent-wash); }
.term-card h3 { margin-bottom:8px; }
.term-card .term-alias { display:block; font:var(--weight-medium) 13px/1.6 var(--font-mono); color:var(--muted); margin-bottom:18px; }
.client-card { position:relative; }
.client-heading { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:18px; }
.client-heading h3 { margin:0; }
.client-meta { color:var(--muted); font-size:14px; margin-bottom:20px; }
.client-actions { display:flex; flex-wrap:wrap; gap:12px; }
.client-alternates { display:flex; flex-wrap:wrap; gap:10px 20px; margin-top:18px; font-size:14px; }
.status-badge { display:inline-flex; align-items:center; gap:6px; max-width:100%; overflow:hidden; overflow-wrap:anywhere; padding:5px 11px; border-radius:var(--r-pill); background:var(--accent-wash-soft); color:var(--accent-dark); font-size:12px; line-height:1.5; font-weight:var(--weight-bold); }
.status-recommended { background:var(--accent-wash); color:var(--accent-dark); }
.status-retired { background:var(--panel-2); color:var(--muted); }
.article-card { display:flex; flex-direction:column; align-items:flex-start; }
.article-card h3 { margin-top:20px; font-size:22px; }
.article-card h3 a { color:var(--text); }
.article-card p { color:var(--muted); }
.article-meta { display:flex; flex-wrap:wrap; align-items:center; gap:12px; color:var(--muted); font-size:13px; }
.article-card .article-more { margin-top:auto; font-weight:var(--weight-semibold); }
.callout { margin:28px 0; padding:24px 28px; border-left:4px solid var(--accent); border-radius:var(--r-sm) var(--r-md) var(--r-md) var(--r-sm); background:var(--accent-wash-soft); color:var(--text); }
.callout > :last-child { margin-bottom:0; }
.callout-title { font-weight:var(--weight-bold); margin-bottom:8px; }
.table-scroll { max-width:100%; min-width:0; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:var(--r-md); }
.data-table { width:100%; border-collapse:collapse; background:var(--panel); color:var(--text); text-align:left; }
.data-table th,.data-table td,.prose table th,.prose table td {
  min-width:7em; padding:16px 20px; border-bottom:1px solid var(--border);
  overflow-wrap:normal; word-break:normal; vertical-align:top;
}
.data-table th,.prose table th { background:var(--panel-2); color:var(--text); font-size:14px; font-weight:var(--weight-bold); }
.data-table tr:last-child td { border-bottom:0; }
.prose table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; min-width:0; border-collapse:collapse; background:var(--panel); color:var(--text); margin-block:28px; }
.prose table code,.data-table code { overflow-wrap:anywhere; }
.article-download { margin-block:48px; padding:32px; background:var(--panel-2); color:var(--text); border-radius:var(--r-card); }
.article-download h2 { margin-top:0; font-size:26px; }
.dl-fab {
  position:fixed; right:24px; bottom:24px; z-index:20;
  display:flex; align-items:center; gap:12px; max-width:calc(100% - 40px); padding:14px 22px;
  background:var(--accent); color:var(--on-accent); border-radius:var(--r-pill);
  box-shadow:var(--sh-btn-primary); font-size:14px; font-weight:var(--weight-bold);
}
.dl-fab svg { width:20px; height:20px; }
.dl-fab:hover { background:var(--accent-dark); color:var(--on-accent); text-decoration:none; }
.quick-steps { list-style:none; counter-reset:quick; padding:0; }
.quick-steps li { position:relative; counter-increment:quick; padding-left:56px; margin-bottom:28px; }
.quick-steps li::before { content:counter(quick); position:absolute; left:0; top:0; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:var(--r-circle); background:var(--panel-2); color:var(--text); font:var(--weight-bold) 16px/1 var(--font-mono); }
.quick-steps li[aria-current="step"]::before { background:var(--warn); color:var(--text); }

/* 仅预览页使用的色板与静态状态布局。 */
.swatch-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.swatch { margin:0; padding:12px; border:1px solid var(--border); border-radius:var(--r-md); background:var(--panel); color:var(--text); min-width:0; }
.swatch-chip { height:56px; margin-bottom:10px; border-radius:var(--r-sm); border:1px solid var(--border); }
.swatch figcaption { font:var(--weight-medium) 12px/1.6 var(--font-mono); overflow-wrap:anywhere; }
.sw-bg { background:var(--bg); }
.sw-panel { background:var(--panel); }
.sw-panel-2 { background:var(--panel-2); }
.sw-border { background:var(--border); }
.sw-border-soft { background:var(--border-soft); }
.sw-hair { background:var(--hair); }
.sw-row-line { background:var(--row-line); }
.sw-accent { background:var(--accent); }
.sw-accent-dark { background:var(--accent-dark); }
.sw-accent-wash { background:var(--accent-wash); }
.sw-accent-wash-soft { background:var(--accent-wash-soft); }
.sw-text { background:var(--text); }
.sw-muted { background:var(--muted); }
.sw-faint { background:var(--faint); }
.sw-faint-2 { background:var(--faint-2); }
.sw-success { background:var(--success); }
.sw-warn { background:var(--warn); }
.sw-error { background:var(--error); }
.sw-on-accent { background:var(--on-accent); }
.sw-chrome-top { background:var(--chrome-top); }
.sw-metal-1 { background:var(--metal-1); }
.sw-metal-2 { background:var(--metal-2); }
.sw-metal-3 { background:var(--metal-3); }
.sw-metal-groove { background:var(--metal-groove); }
.sw-ink { background:var(--ink); }
.sw-ink-2 { background:var(--ink-2); }
.sw-switch-off { background:var(--switch-off); }
.sw-cloud { background:var(--cloud); }
.sw-clear { background:var(--clear); }
.sw-warn-halo { background:var(--warn-halo); }
.sw-bezel-edge { background:var(--bezel-edge); }
.sw-contact-win { background:var(--contact-win); }
.sw-contact-phone { background:var(--contact-phone); }
.sw-veil { background:var(--veil); }
.preview-states { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.preview-caption { color:var(--muted); font-size:13px; margin-top:16px; }

@media (max-width:1180px) {
  .hero-grid { grid-template-columns:minmax(0,1fr); row-gap:56px; }
  .copy { padding-top:40px; }
  .rig-stage { width:680px; max-width:100%; margin:0 auto 40px; }
  .rig { width:680px; }
}
@media (max-width:768px) {
  .hero { min-height:auto; padding-bottom:20px; }
  .feature-tabs { grid-template-columns:minmax(0,1fr); gap:24px; }
  .feature-tabs [role="tablist"] { flex-direction:row; flex-wrap:wrap; gap:8px; }
  .feature-tabs [role="tab"] { font-size:16px; padding:12px 16px; }
  .feature-tabs [role="tab"][aria-selected="true"]::before { top:auto; bottom:0; left:16px; right:16px; width:auto; height:3px; }
  .feature-detail { min-height:0; padding:28px; }
  .swatch-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .rig-stage { height:360px; margin-bottom:12px; }
  .rig { transform:scale(.6); transform-origin:top left; margin-left:20px; }
  .peek-card { padding:22px 24px 48px; }
  .protocol-row { gap:20px 28px; font-size:22px; }
}
@media (max-width:480px) {
  .hero-grid { row-gap:40px; }
  .rig-stage { height:300px; }
  .rig { transform:scale(.5); margin-left:12px; }
  .platforms { gap:12px 20px; }
  .swatch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dl-fab { right:20px; bottom:16px; }
  .toc { gap:4px; padding:10px; }
  .toc a { padding-inline:12px; }
}
@media (max-width:399px) {
  .rig-stage { height:278px; }
  .rig { transform:scale(.45); }
}
@media (max-width:359px) {
  .rig-stage { height:244px; }
  .rig { transform:scale(.39); }
  .cta { gap:10px; }
  .cta .btn { padding-inline:20px; font-size:14px; }
  .platforms { gap:10px 16px; }
  .platforms a { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
  .title-line,.kw::before,.pulse::after { animation:none; }
  .pulse::after { opacity:.5; }
}