/* 用户确认稿：居中标题与下沉双层客户端装置。 */
.hero { position: relative; padding-top: 34px; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 640px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px,var(--border) 1px,var(--clear) 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom,var(--mask-ink) 0,var(--mask-ink) 62%,var(--clear) 100%);
  mask-image: linear-gradient(to bottom,var(--mask-ink) 0,var(--mask-ink) 62%,var(--clear) 100%);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; min-height: 32px;
  padding: 5px 15px 5px 12px; margin: 1em 0;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-circle); background: var(--success); }
.eyebrow .dot { box-shadow: 0 0 0 3px var(--bg-panel); }
.eyebrow b { font-weight: 600; color: var(--text); }
.h1 { margin: 20px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px,3.4vw,48px); line-height: 1.14; letter-spacing: -.02em; color: var(--text); }
.h1-line { display: block; }
.h1-key { position: relative; display: inline-block; color: var(--accent); padding-inline: 2px; white-space: nowrap; }
.h1-key::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--accent); border-radius: var(--radius-pill); }
.cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lead { max-width: 640px; margin: 22px auto 0; font-size: 16.5px; line-height: 1.7; color: var(--text-muted); }
.lead strong { color: var(--text); font-weight: 600; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 20px 0 0; padding: 0; list-style: none; }
.platforms a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color var(--ease); }
.platforms a:hover { color: var(--accent); }
.platforms svg { width: 16px; height: 16px; }
.platforms .ic-tux { width: 15px; height: 17px; }
.facts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); letter-spacing: .01em; }
.facts i { width: 3px; height: 3px; flex-shrink: 0; border-radius: var(--radius-circle); background: var(--border-strong); }
.stage {
  position: relative; margin: 40px auto 0; height: 560px; border-radius: var(--radius-xl);
  background: linear-gradient(180deg,var(--wall-top) 0%,var(--wall-bottom) 100%); color: var(--win-text);
  box-shadow: var(--shadow-stage); overflow: hidden;
}
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 var(--menubar-line); }
.menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 30px;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 0 calc(6% + 6px) 0 24px; background: var(--menubar-bg);
  border-bottom: 1px solid var(--menubar-line); color: var(--menubar-fg);
}
.mb-item { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding-inline: 7px; border-radius: var(--radius-xs); }
.mb-item svg, .mb-item img { width: 15px; height: 15px; }
.mb-item.is-open { background: var(--menubar-hi); color: var(--bg); }
.win {
  position: absolute; top: 68px; left: 6%; width: 74%; height: 452px;
  display: grid; grid-template-rows: 40px 1fr; background: var(--win-bg); color: var(--win-text);
  border-radius: var(--radius-win); box-shadow: var(--shadow-window); overflow: hidden;
}
.win-bar { position: relative; display: flex; align-items: center; gap: 8px; padding-inline: 16px; background: var(--win-bar); color: var(--win-text); border-bottom: 1px solid var(--win-line); }
.light { width: 12px; height: 12px; border-radius: var(--radius-circle); flex-shrink: 0; }
.light-r { background: var(--error); }
.light-y { background: var(--warn); }
.light-g { background: var(--success); }
.win-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--win-muted); letter-spacing: .01em; }
.win-body { display: grid; grid-template-columns: 168px 1fr; min-height: 0; }
.side { margin: 0; padding: 14px 10px; list-style: none; background: var(--win-side); color: var(--win-muted); border-right: 1px solid var(--win-line); }
.side li { padding: 7px 12px; margin-bottom: 2px; font-size: 13.5px; line-height: 1.4; border-radius: var(--radius-sm); }
.side li.is-cur { background: var(--win-hi); color: var(--win-text); font-weight: 600; }
.main { position: relative; padding: 18px 26px 0; min-width: 0; }
.main-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; }
.main-title { font-size: 16px; font-weight: 700; color: var(--win-text); }
.main-path { font-family: var(--font-mono); font-size: 11.5px; color: var(--win-muted); }
.rule-head, .rule { display: grid; grid-template-columns: 170px 230px auto; align-items: center; }
.rule-head { height: 30px; border-bottom: 1px solid var(--win-line); font-size: 11.5px; font-weight: 600; color: var(--win-muted); letter-spacing: .04em; }
.rules { margin: 0; padding: 0; list-style: none; }
.rule { height: 35px; border-bottom: 1px solid var(--win-line-soft); font-family: var(--font-mono); font-size: 12.5px; }
.r-type { color: var(--win-muted); }
.r-val { color: var(--win-text); }
.tag { justify-self: start; display: inline-flex; align-items: center; min-height: 21px; padding: 2px 9px; max-width: 100%; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .03em; border-radius: var(--radius-xs); }
.tag-proxy { background: var(--tag-proxy-bg); color: var(--tag-proxy-fg); }
.tag-direct { background: var(--tag-direct-bg); color: var(--tag-direct-fg); }
.tag-reject { background: var(--tag-reject-bg); color: var(--tag-reject-fg); }
.rule-note { margin: 16px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--win-muted); }
.win-status { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; gap: 18px; padding-inline: 26px; border-top: 1px solid var(--win-line); font-size: 11.5px; color: var(--win-muted); }
.win-status span { display: inline-flex; align-items: center; gap: 7px; }
.win-status .dot { width: 7px; height: 7px; }
.menu { position: absolute; top: 36px; right: 6%; width: 296px; padding: 6px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-menu); }
.menu-label { padding: 7px 12px 4px 30px; font-size: 11.5px; font-weight: 600; color: var(--text-muted); letter-spacing: .03em; }
.mi { position: relative; display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 12px 0 30px; font-size: 13.5px; border-radius: var(--radius-xs); }
.mi.is-hl { background: var(--menu-hover); color: var(--text); }
.mi-check { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--accent); }
.mi-sub { font-size: 11px; color: var(--text-muted); }
.mi-sep { height: 1px; margin: 5px 10px; background: var(--border); }
.sw { position: relative; width: 30px; height: 18px; border-radius: var(--radius-pill); background: var(--switch-off); flex-shrink: 0; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--radius-circle); background: var(--knob); box-shadow: var(--shadow-lift); }
.sw.is-on { background: var(--accent); }
.sw.is-on::after { left: 14px; }
/* Tabs are scoped by a data-tabs owner; panels belong to that same owner. */
.canvas { display: grid; grid-template-columns: 34% minmax(0,1fr); gap: 28px; margin-top: 40px; padding: 28px; background: var(--bg-panel); color: var(--text); border-radius: var(--radius-xl); }
.feat-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feat-list [role="tab"] { position: relative; width: 100%; padding: 14px 18px 14px 22px; text-align: left; border: 0; border-radius: var(--radius-md); background: var(--clear); color: var(--text); }
.feat-list [role="tab"] b { display: block; font-size: 15.5px; font-weight: 700; }
.feat-list [role="tab"] span { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.feat-list [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--text); box-shadow: var(--shadow-lift); }
.feat-list [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--accent); border-radius: var(--radius-pill); }
.tab-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab-strip [role="tab"] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted); font-weight: 700; }
.tab-strip [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
[role="tabpanel"] { min-width: 0; }
.feat-view { display: flex; flex-direction: column; gap: 18px; }
.snip { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.snip-bar { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.snip-bar .light { width: 10px; height: 10px; }
.snip-name { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.snip pre { margin: 0; padding: 18px 22px; border-radius: 0; background: var(--bg); color: var(--text); font-size: 13px; }
.snip-body { padding: 24px; }
.k { color: var(--accent); }
.c { color: var(--text-muted); }
.feat-note { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--text-muted); padding-inline: 6px; }
.platform-rail { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 12px; gap: 8px; background: var(--bg-panel); color: var(--text); border-radius: var(--radius-xl); }
.platform-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 28px 14px; border-radius: var(--radius-lg); text-align: center; }
.platform-tile svg { width: 28px; height: 28px; color: var(--text-muted); }
.platform-tile span { font-size: 13px; color: var(--text-muted); }
.platform-tile:hover { background: var(--bg); color: var(--accent); box-shadow: var(--shadow-lift); }
.toc { position: sticky; top: 16px; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-block: 24px 40px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); }
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px; color: var(--text-muted); }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
.faq-item { border-bottom: 1px solid var(--border); padding-block: 8px; }
.faq-item summary { display: block; position: relative; padding: 18px 40px 18px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 16px; color: var(--accent); font: 400 24px/1.4 var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 16px; color: var(--text-muted); line-height: 1.9; }
.faq-answer p:last-child { margin: 0; }
.term-card { border: 0; background: var(--bg-panel); color: var(--text); }
.term-card dt { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.term-card dd { margin: 16px 0 0; color: var(--text-muted); }
.term-en { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.client-card { padding: 28px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0; box-shadow: var(--shadow-card); }
.client-card.is-primary { border-color: var(--accent); }
.client-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; min-width: 0; }
.client-logo { width: 56px; height: 56px; flex-shrink: 0; }
.client-title { min-width: 0; flex: 1; }
.client-title h3 { margin: 0; }
.client-card p { color: var(--text-muted); }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.client-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-muted); }
[data-version]:empty { display: none; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; background: var(--bg-panel-2); color: var(--text-muted); }
.badge-first { background: var(--accent); color: var(--bg); }
.badge-recommended { background: var(--bg-panel); color: var(--accent-dark); border: 1px solid var(--border); }
.badge-archived { background: var(--bg-panel-2); color: var(--text-muted); }
.badge-rule::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--radius-circle); background: var(--warn); }
.post-card { display: block; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-panel); color: var(--text); border: 1px solid var(--clear); transition: border-color var(--ease),box-shadow var(--ease); min-width: 0; }
.post-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.post-card h3 { margin: 16px 0 12px; font-size: 21px; }
.post-card p { color: var(--text-muted); font-size: 14px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
.callout { margin: 24px 0; padding: 20px 24px; border: 0; border-left: 3px solid var(--accent); background: var(--bg-panel); color: var(--text); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 6px; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; background: var(--bg); color: var(--text); }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td { min-width: 7em; padding: 14px 18px; border-bottom: 1px solid var(--border); 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: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; width: 100%; border-collapse: collapse; }
.prose table code, .article-body table code, .data-table code { overflow-wrap: anywhere; white-space: normal; }
.article-body, .article-body > *, .prose > * { min-width: 0; max-width: 100%; }
.download-guide { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-panel); color: var(--text); }
.download-guide h2 { font-size: 24px; margin: 0 0 8px; }
.download-guide p { margin: 0; color: var(--text-muted); }
.download-guide .btn { flex-shrink: 0; }
.dl-fab { position: fixed; right: 28px; bottom: 28px; z-index: 30; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px 10px 15px; font: 700 14px/1.4 var(--font-body); color: var(--bg); background: var(--text); border: 1px solid var(--text); border-radius: var(--radius-pill); box-shadow: var(--shadow-fab); transition: transform var(--ease),background-color var(--ease); }
.dl-fab svg { width: 16px; height: 16px; }
.dl-fab:hover { transform: translateY(-2px); background: var(--accent-dark); color: var(--bg); border-color: var(--accent-dark); }
/* Preview-only furniture shares the same tokens. */
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 16px; }
.swatch { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch i { display: block; height: 64px; background: var(--swatch); }
.swatch figcaption { padding: 12px; font: 12px/1.7 var(--font-mono); overflow-wrap: anywhere; }
.sw-bg { --swatch: var(--bg); }
.sw-panel { --swatch: var(--bg-panel); }
.sw-panel2 { --swatch: var(--bg-panel-2); }
.sw-border { --swatch: var(--border); }
.sw-border-strong { --swatch: var(--border-strong); }
.sw-accent { --swatch: var(--accent); }
.sw-accent-dark { --swatch: var(--accent-dark); }
.sw-text { --swatch: var(--text); }
.sw-muted { --swatch: var(--text-muted); }
.sw-faint { --swatch: var(--text-faint); }
.sw-success { --swatch: var(--success); }
.sw-warn { --swatch: var(--warn); }
.sw-error { --swatch: var(--error); }
.sw-wall-top { --swatch: var(--wall-top); }
.sw-wall-bottom { --swatch: var(--wall-bottom); }
.sw-menubar-bg { --swatch: var(--menubar-bg); }
.sw-menubar-line { --swatch: var(--menubar-line); }
.sw-menubar-hi { --swatch: var(--menubar-hi); }
.sw-menubar-fg { --swatch: var(--menubar-fg); }
.sw-win-bg { --swatch: var(--win-bg); }
.sw-win-side { --swatch: var(--win-side); }
.sw-win-bar { --swatch: var(--win-bar); }
.sw-win-line { --swatch: var(--win-line); }
.sw-win-line-soft { --swatch: var(--win-line-soft); }
.sw-win-hi { --swatch: var(--win-hi); }
.sw-win-text { --swatch: var(--win-text); }
.sw-win-muted { --swatch: var(--win-muted); }
.sw-win-faint { --swatch: var(--win-faint); }
.sw-proxy-bg { --swatch: var(--tag-proxy-bg); }
.sw-proxy-fg { --swatch: var(--tag-proxy-fg); }
.sw-direct-bg { --swatch: var(--tag-direct-bg); }
.sw-direct-fg { --swatch: var(--tag-direct-fg); }
.sw-reject-bg { --swatch: var(--tag-reject-bg); }
.sw-reject-fg { --swatch: var(--tag-reject-fg); }
.sw-menu-hover { --swatch: var(--menu-hover); }
.sw-switch { --swatch: var(--switch-off); }
.sw-knob { --swatch: var(--knob); }
.sw-veil { --swatch: var(--veil); }
.sw-clear { --swatch: var(--clear); }
.sw-mask { --swatch: var(--mask-ink); }
@media (max-width: 1180px) {
  .win { width: 80%; left: 4%; }
  .menu { right: 4%; }
  .menubar { padding-right: calc(4% + 6px); }
}
@media (max-width: 980px) {
  .rule-head, .rule { grid-template-columns: 150px 1fr auto; }
  .win { width: 88%; left: 6%; }
  .menu { width: 270px; top: auto; bottom: 24px; right: 3%; }
  .canvas { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 768px) {
  .h1 { font-size: clamp(24px,4vw,30px); }
  .platform-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-tile:last-child { grid-column: 1 / -1; }
  .download-guide { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .h1 { font-size: clamp(26px,7.6vw,30px); }
  .eyebrow { height: auto; padding: 6px 12px; font-size: 12px; line-height: 1.5; }
  .cta { flex-direction: column; width: 100%; }
  .cta .btn { width: 100%; }
  .lead { font-size: 15px; }
  .stage { height: 430px; border-radius: var(--radius-lg); margin-top: 32px; }
  .win { left: 4%; width: 92%; top: 52px; height: 360px; }
  .win-body { grid-template-columns: minmax(0,1fr); }
  .side { display: none; }
  .main { padding: 14px 14px 0; }
  .rule-head, .rule { grid-template-columns: minmax(0,1fr) auto; gap: 8px; font-size: 11px; }
  .r-type-col, .rule .r-type { display: none; }
  .menu { display: none; }
  .canvas { padding: 16px; border-radius: var(--radius-lg); gap: 20px; }
  .snip pre { padding: 16px; }
  .client-card { padding: 20px; }
  .toc { position: static; }
  .dl-fab { right: 16px; bottom: 16px; }
  .platforms { gap: 6px 18px; }
  .download-guide { padding: 24px; }
}