/* 分屏工作台。首屏保持静态，配置内容仅用于说明界面。 */
.hero {
  min-height: calc(100svh - var(--nav-h) - var(--peek));
  display: grid;
  align-content: center;
  padding-top: 28px;
  padding-bottom: 40px;
}
.hero-card {
  display: grid;
  grid-template-columns: 56fr 44fr;
  min-height: 600px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 44px 40px;
  background: var(--panel-2);
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.tick { position: absolute; width: 9px; height: 9px; pointer-events: none; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--cross); }
.tick::before { left: 0; right: 0; top: 4px; height: 1px; }
.tick::after { top: 0; bottom: 0; left: 4px; width: 1px; }
.tick--tl { top: 18px; left: 18px; }
.tick--tr { top: 18px; right: 18px; }
.tick--bl { bottom: 18px; left: 18px; }
.tick--br { bottom: 18px; right: 18px; }
.stage-inner { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ipad {
  position: relative;
  width: min(100%, 600px);
  min-width: 0;
  padding: 12px;
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line-device);
  border-radius: var(--r-device);
  box-shadow: var(--shadow-device);
}
.ipad::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: var(--r-circle);
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line-device);
}
.screen {
  display: grid;
  grid-template-columns: 45fr 1px 55fr;
  height: 384px;
  border: 1px solid var(--line);
  border-radius: var(--r-screen);
  overflow: hidden;
  background: var(--sunken);
  color: var(--ink);
}
.pane { position: relative; padding-top: 18px; min-width: 0; display: flex; flex-direction: column; }
.grip { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.grip i { width: 3px; height: 3px; border-radius: var(--r-circle); background: var(--faint); }
.split { position: relative; background: var(--line); color: var(--ink); }
.split::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--line-device);
}
.pane--editor { background: var(--panel); color: var(--ink); }
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--hair); }
.ed-file { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--font-body); color: var(--ink); }
.ed-file svg { width: 12px; height: 12px; color: var(--muted); }
.ed-lang { font: 500 9.5px/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.code { flex: 1; padding: 10px 0; font: 400 11px/22px var(--font-mono); counter-reset: ln; list-style: none; overflow-x: auto; }
.code li { display: grid; grid-template-columns: 30px max-content; counter-increment: ln; white-space: pre; }
.code li::before { content: counter(ln); text-align: right; padding-right: 12px; color: var(--muted); font-size: 10px; }
.k { color: var(--ink); font-weight: 500; }
.v { color: var(--muted); }
.p { color: var(--muted); }
.in { padding-left: 2ch; }
.cursor { display: inline-block; width: 1.5px; height: 13px; vertical-align: -2px; background: var(--accent); }
.ed-foot { display: flex; gap: 10px; height: 24px; align-items: center; padding: 0 12px; border-top: 1px solid var(--hair); background: var(--sunken); color: var(--muted); font: 500 9.5px/1 var(--font-mono); }
.pane--settings { padding: 18px 16px 16px; gap: 12px; }
.set-title { font: 700 13px/1.2 var(--font-display); color: var(--ink); letter-spacing: -.01em; padding-top: 6px; }
.set-label { display: block; font: 600 10px/1 var(--font-body); color: var(--muted); letter-spacing: .02em; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px; background: var(--panel-2); color: var(--ink); border-radius: var(--r-btn); }
.seg span { min-height: 24px; display: grid; place-items: center; font: 500 11px/1 var(--font-body); color: var(--muted); border-radius: var(--r-sm); }
.seg .on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-seg); }
.group { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-btn); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; padding: 5px 10px; font-size: 11.5px; color: var(--ink); }
.row + .row { border-top: 1px solid var(--hair); }
.sw { position: relative; flex-shrink: 0; width: 30px; height: 18px; border-radius: var(--r-pill); border: 1px solid var(--line-device); background: var(--panel); color: var(--ink); }
.sw::after { content: ""; position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: var(--r-circle); background: var(--panel); border: 1px solid var(--line-device); box-shadow: var(--shadow-knob); }
.sw--on { background: var(--accent); color: var(--panel); border-color: var(--accent); }
.sw--on::after { left: 13px; border-color: var(--accent); }
.rules-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rules-head .set-label { margin: 0; }
.req { display: inline-flex; align-items: center; gap: 5px; min-height: 20px; padding: 3px 8px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pill); font: 500 10px/1.2 var(--font-mono); }
.req svg { width: 10px; height: 10px; color: var(--muted); }
.rules { position: relative; padding: 4px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-btn); overflow-x: auto; }
.rules-hl { position: absolute; top: 4px; left: 4px; right: 4px; height: var(--rh); background: var(--panel-2); border-radius: var(--r-highlight); transform: translateY(calc(var(--rh) * 2)); }
.rules ul { list-style: none; width: max-content; min-width: 100%; }
.rules li { position: relative; z-index: var(--z-content); height: var(--rh); padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 5px; font: 400 10.5px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.rules .t, .rules .match { color: var(--ink); }
.rules .pol { color: var(--ink); font-weight: 600; }
.hit { display: inline-flex; align-items: center; gap: 4px; font: 600 9.5px/1 var(--font-body); color: var(--success); }
.hit::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--success); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 28px; padding: 5px 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pill); font: 500 11.5px/1.4 var(--font-mono); }
.facts li span { color: var(--muted); font-weight: 400; }
.copy { display: flex; flex-direction: column; justify-content: center; padding: 56px 52px; min-width: 0; }
.copy > .badge { align-self: flex-start; min-height: 30px; gap: 9px; padding-inline: 11px 12px; }
.h1 { margin-top: 22px; font-size: var(--text-h1); font-weight: 800; line-height: 1.13; letter-spacing: var(--tracking-heading); }
.h1 > span { display: block; }
.h1 .sep { display: inline; color: var(--muted); font-weight: 600; }
.h1 .soft { color: var(--muted); }
.lede { margin-top: 18px; max-width: 30em; font-size: var(--text-base); line-height: 1.75; color: var(--muted); }
.lede strong { color: var(--ink); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.platforms { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hair); }
.platforms-cap { display: block; font: 500 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; margin-bottom: 12px; }
.platforms ul { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.platforms a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color var(--duration-fast); }
.platforms a:hover { color: var(--ink); }
.platforms svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ink); }
.platforms .tux { width: 13px; }
.qs { padding-top: 64px; padding-bottom: 96px; }
.qs-head { text-align: center; }
.qs-head h2 { margin-top: 18px; }
.qs-head p { margin: 12px auto 0; color: var(--muted); max-width: 34em; }
.qs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; padding-inline: 44px; }
.qs-card { min-width: 0; background: var(--panel); color: var(--ink); border: 1px solid var(--line-card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 24px; }
.qs-step { display: inline-block; padding: 5px 8px; border-radius: var(--r-sm); background: var(--panel-2); color: var(--muted); font: 500 11px/1 var(--font-mono); }
.qs-card h3 { margin-top: 16px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.qs-card p { margin-top: 6px; font-size: var(--text-sm); color: var(--muted); line-height: 1.7; }
.qs-more { display: flex; justify-content: center; margin-top: 32px; }

/* 设置侧栏式资料浏览器 */
.tabs { min-width: 0; }
.feature-browser { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); padding: 0; }
.feature-browser > * { min-width: 0; }
.tab-list { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; list-style: none; }
.tab-list [role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--transparent);
  border-radius: var(--r-sm);
  background: var(--transparent);
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: left;
}
.tab-list [role="tab"]:hover { background: var(--sunken); color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--panel-2); color: var(--ink); font-weight: 600; }
.feature-browser .tab-list { flex-direction: column; flex-wrap: nowrap; gap: 4px; padding: 20px; border-right: 1px solid var(--line); }
.feature-browser [role="tab"] { position: relative; justify-content: flex-start; width: 100%; }
.feature-browser [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 0; width: 2px; background: var(--accent); }
.tab-panels { min-width: 0; padding: 36px; }
.tab-panel { min-width: 0; }
.tab-panel h3 { margin-bottom: 16px; }
.tab-panel p { color: var(--muted); line-height: 1.85; }
.interface-sample { margin-top: 28px; padding: 22px; background: var(--sunken); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-btn); }
.interface-sample .seg { max-width: 340px; }
.interface-sample .seg span { min-height: 36px; font-size: var(--text-sm); }
.interface-sample .row { font-size: var(--text-sm); min-height: 44px; }
.interface-sample pre { margin: 0; padding: 0; border: 0; }
.interface-sample label { display: block; margin-bottom: 8px; font-size: var(--text-sm); }
.interface-sample select { width: 100%; max-width: 340px; padding: 10px 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-btn); }
.platform-tabs { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; min-width: 0; }
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-btn); font-size: var(--text-sm); }
.toc a:hover, .toc a[aria-current] { border-color: var(--accent); color: var(--ink); }
.toc--sticky { position: sticky; top: 0; z-index: var(--z-content); background: var(--bg); color: var(--ink); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 22px 36px 22px 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 19px; font: 400 22px/1.4 var(--font-mono); color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; color: var(--muted); line-height: 1.85; }
.faq-answer > * + * { margin-top: 12px; }
.term-card { position: relative; }
.term-card dt { font-size: var(--text-lg); font-weight: 700; }
.term-card dd { margin: 12px 0 0; color: var(--muted); line-height: 1.8; }
.term-en { display: block; margin-top: 4px; color: var(--muted); font: 400 var(--text-xs)/1.5 var(--font-mono); }
.client-card { display: flex; flex-direction: column; gap: 18px; }
.client-head { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.client-head > div { min-width: 0; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-title { font-size: var(--text-h3); }
.client-meta { color: var(--muted); font-size: var(--text-sm); }
.client-version:empty, [data-ver]:empty { display: none; }
.client-version { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.badge--first { background: var(--accent); color: var(--panel); border-color: var(--accent); }
.badge--recommended { background: var(--panel-2); color: var(--ink); }
.badge--archived { background: var(--panel); color: var(--muted); border-style: dashed; }
.badge--success { background: var(--panel); color: var(--success); border-color: var(--success); }
.badge--warn { background: var(--panel); color: var(--warn); border-color: var(--warn); }
.badge--error { background: var(--panel); color: var(--error); border-color: var(--error); }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font: 400 var(--text-xs)/1.5 var(--font-mono); }
.post-card h3 { font-size: var(--text-h3); }
.post-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card p { font-size: var(--text-sm); line-height: 1.8; }
.post-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; font-size: var(--text-sm); font-weight: 600; }
.callout { margin: 0; padding: 20px 24px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-btn); }
.callout p + p { margin-top: 10px; }
.callout--warn { border-left-color: var(--warn); }
.callout--error { border-left-color: var(--error); }
.callout--success { border-left-color: var(--success); }
.callout-title { display: block; margin-bottom: 8px; font-weight: 650; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--panel); color: var(--ink); }
.data-table { width: 100%; border-collapse: collapse; background: var(--panel); color: var(--ink); font-size: var(--text-sm); text-align: left; }
.data-table caption { text-align: left; padding: 16px; font-weight: 600; }
.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 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th { background: var(--sunken); color: var(--ink); font-weight: 600; }
.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;
  overscroll-behavior-x: contain;
  border-collapse: collapse;
}
.prose table code, .article-body table code, .data-table code { overflow-wrap: anywhere; white-space: normal; }
.article-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 28px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.article-download > div { min-width: 0; }
.article-download p { margin-top: 8px; color: var(--muted); font-size: var(--text-sm); }
.article-download .btn { flex-shrink: 0; }
.dl-fab {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: calc(100vw - var(--gutter) * 2);
  padding: 12px 18px;
  background: var(--accent);
  color: var(--panel);
  border: 1px solid var(--accent-dark);
  border-radius: var(--r-btn);
  box-shadow: var(--shadow-device);
  font-size: var(--text-sm);
  font-weight: 600;
}
.dl-fab svg { width: 18px; height: 18px; flex-shrink: 0; }
.dl-fab:hover { background: var(--accent-dark); color: var(--panel); }
.has-dl-fab .site-footer { padding-bottom: 76px; }

/* 设计预览家具，不用于正式页面信息架构。 */
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.preview-stack { display: grid; gap: 24px; }
.preview-swatch { min-width: 0; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-btn); overflow: hidden; }
.preview-swatch i { display: block; height: 64px; border-bottom: 1px solid var(--line); }
.preview-swatch code { display: block; padding: 10px 12px; font-size: var(--text-xs); }
.swatch-bg { background: var(--bg); }
.swatch-panel { background: var(--panel); }
.swatch-panel-2 { background: var(--panel-2); }
.swatch-sunken { background: var(--sunken); }
.swatch-line { background: var(--line); }
.swatch-line-card { background: var(--line-card); }
.swatch-line-device { background: var(--line-device); }
.swatch-hair { background: var(--hair); }
.swatch-cross { background: var(--cross); }
.swatch-accent { background: var(--accent); }
.swatch-accent-dark { background: var(--accent-dark); }
.swatch-ink { background: var(--ink); }
.swatch-muted { background: var(--muted); }
.swatch-faint { background: var(--faint); }
.swatch-success { background: var(--success); }
.swatch-warn { background: var(--warn); }
.swatch-error { background: var(--error); }
.swatch-logo-a { background: var(--logo-a); }
.swatch-logo-b { background: var(--logo-b); }
.swatch-veil { background: var(--veil); }
.swatch-transparent { background: var(--transparent); }
.type-display { font: 800 var(--text-h1)/1.13 var(--font-display); letter-spacing: var(--tracking-heading); }
.preview-note { color: var(--muted); font-size: var(--text-sm); }
.preview-footer { margin-top: 40px; }
@media (max-width: 1180px) {
  .copy { padding: 44px 40px; }
}
@media (max-width: 1024px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); }
  .stage { border-right: 0; border-bottom: 0; border-top: 1px solid var(--line); order: 2; }
  .copy { order: 1; }
  .qs-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: 20px; padding-bottom: 32px; }
  .copy { padding: 32px 22px; }
  .stage { padding: 28px 14px; }
  .screen { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pane--editor, .split { display: none; }
  .pane--settings { padding-inline: 14px; }
  .rules li { font-size: 10px; padding-inline: 4px; }
  .hero .facts { gap: 6px; }
  .hero .facts li { font-size: 10px; padding-inline: 9px; }
  .feature-browser { grid-template-columns: minmax(0, 1fr); }
  .feature-browser .tab-list { flex-direction: row; flex-wrap: wrap; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .feature-browser [role="tab"] { width: auto; padding-inline: 10px; }
  .feature-browser [role="tab"][aria-selected="true"]::before { top: auto; bottom: 0; left: 10px; right: 10px; width: auto; height: 2px; }
  .tab-panels { padding: 24px 20px; }
  .interface-sample { padding: 16px; }
  .preview-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-download { flex-direction: column; align-items: flex-start; padding: 22px; }
  .callout { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .platforms a { transition: none; }
}