/* 首屏是配置文本排版道具，不是客户端界面。 */
.hero { position: relative; padding-top: 36px; text-align: center; overflow-x: clip; }
.hero__copy { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  max-width: 100%;
  margin: 0;
  padding: 4px 13px 4px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.badge__dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--ring-accent); }
.hero__title { margin: 22px 0 0; font-size: clamp(30px, 2.2rem + 1.4vw, 48px); }
.hero__title > span { display: block; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__lede { margin: 20px auto 0; max-width: 760px; font-size: 16px; line-height: 24px; color: var(--text-muted); }
.hero__lede strong { color: var(--text); }
.devices { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 24px; color: var(--text-muted); }
.devices__item { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); text-decoration: none; }
.devices__item svg { width: 18px; height: 18px; }
.devices__sep { width: 1px; height: 14px; flex-shrink: 0; background: var(--border); color: var(--text); }
.devices__pills { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
.pill svg { width: 12px; height: 12px; }
.stage { position: relative; margin: 32px 0 0; padding: 40px var(--gutter) 0; height: 420px; overflow: hidden; }
.frame { position: relative; max-width: var(--page-max); height: 544px; margin-inline: auto; padding: var(--bezel); border-radius: var(--r-device); background: var(--device); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--device-edge), var(--shadow-device); text-align: left; }
.frame__cam { position: absolute; top: 8px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: var(--r-pill); background: var(--device-cam); color: var(--on-accent); box-shadow: 0 0 0 1px var(--device-cam-ring); }
.screen { position: relative; height: 100%; border-radius: var(--r-screen); background: var(--screen); color: var(--text); }
.screen::before { content: ""; position: absolute; top: 31px; left: 0; bottom: 0; width: var(--gutter-w); background: var(--gutter-bg); color: var(--text); border-right: 1px solid var(--border); border-bottom-left-radius: var(--r-screen); }
.screen__bar { position: relative; height: 31px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); border-radius: var(--r-screen) var(--r-screen) 0 0; font: 12px/1.5 var(--font-mono); color: var(--text-muted); letter-spacing: 0.01em; }
.screen__dots { position: absolute; left: 14px; top: 50%; display: flex; gap: 6px; transform: translateY(-50%); }
.screen__dots span { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--window-dot); color: var(--text); }
.doc { position: relative; padding: 12px var(--doc-pad-r) 0 var(--doc-pad-l); counter-reset: ln; font: 15px/1.5 var(--font-mono); color: var(--text); }
.ln { position: relative; display: flex; align-items: center; height: var(--row-h); counter-increment: ln; }
.ln::before { content: counter(ln); position: absolute; left: calc(-1 * var(--doc-pad-l)); width: var(--gutter-w); padding-right: 11px; text-align: right; font-size: 11.5px; color: var(--text-muted); }
.code { white-space: pre; flex-shrink: 0; }
.sec { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 15px; letter-spacing: 0; color: var(--text); }
.t-type { color: var(--text); font-weight: var(--weight-medium); }
.t-val { color: var(--text-muted); }
.t-sep { color: var(--text-muted); }
.t-pol { color: var(--text); }
.t-proxy { color: var(--accent); font-weight: var(--weight-strong); }
.note {
  --note-bg: var(--tag-blue-bg);
  --note-ink: var(--tag-blue-ink);
  --note-line: var(--tag-blue-line);
  --note-hue: var(--accent);
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 30px;
  padding: 0 14px 0 11px;
  border-radius: var(--r-pill);
  background: var(--note-bg);
  color: var(--note-ink);
  font: var(--weight-medium) 13px/1.5 var(--font-body);
  white-space: nowrap;
}
.note--pink { --note-bg: var(--tag-pink-bg); --note-ink: var(--tag-pink-ink); --note-line: var(--tag-pink-line); --note-hue: var(--error); }
.note--yellow { --note-bg: var(--tag-yellow-bg); --note-ink: var(--tag-yellow-ink); --note-line: var(--tag-yellow-line); --note-hue: var(--warn); }
.note--purple { --note-bg: var(--tag-purple-bg); --note-ink: var(--tag-purple-ink); --note-line: var(--tag-purple-line); --note-hue: var(--tag-purple); }
.note__icon { width: 14px; height: 14px; }
.note__tri { fill: var(--note-hue); stroke: var(--note-hue); stroke-width: 1.2; stroke-linejoin: round; }
.note__mark { fill: none; stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; }
.note__pt { fill: var(--bg); }
.lead { position: relative; height: 1px; background: var(--note-line); color: var(--text); }
.lead::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: var(--r-pill); background: var(--note-line); color: var(--text); }
.lead--r { flex: 1 1 auto; min-width: 24px; margin-left: 18px; }
.lead--r::after { left: -2px; }
.note--r { margin-right: calc(-1 * (var(--doc-pad-r) + var(--bezel) + var(--note-poke))); }
.note--l { position: absolute; right: calc(100% + 22px); top: 50%; transform: translateY(-50%); }
.lead--l { position: absolute; right: calc(100% + 4px); top: 50%; width: 18px; }
.lead--l::after { right: -2px; }
.c-blue { --note-line: var(--tag-blue-line); }
.c-pink { --note-line: var(--tag-pink-line); }
.c-yellow { --note-line: var(--tag-yellow-line); }
.c-purple { --note-line: var(--tag-purple-line); }
.entry { background: var(--bg); color: var(--text); padding-top: 64px; padding-bottom: 96px; text-align: center; }
.entry__inner { max-width: 768px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-dot); background: var(--accent); color: var(--on-accent); }
.entry h2 { margin: 14px 0 0; }
.entry__text { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: var(--text-muted); }

/* 设置页式能力面板 */
.tabs { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr); gap: 56px; }
.tabs > * { min-width: 0; }
.tabs__list { align-self: start; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg); color: var(--text); }
.tabs [role="tab"] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  font-size: 14px;
}
.tabs [role="tab"]:last-child { border-bottom: 0; }
.tabs [role="tab"]::after { content: "›"; margin-left: auto; color: var(--text-muted); font-size: 20px; }
.tabs [role="tab"][aria-selected="true"] { background: var(--bg-panel); color: var(--text); }
.tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); color: var(--on-accent); }
.tab-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-dot); background: var(--accent); color: var(--on-accent); }
.tab-dot--pink { background: var(--error); color: var(--text); }
.tab-dot--yellow { background: var(--warn); color: var(--text); }
.tab-dot--purple { background: var(--tag-purple); color: var(--text); }
.tabs__panel h3 { margin-top: 0; }
.tabs__panel p { color: var(--text-muted); line-height: 1.85; }
.rule-snippet { margin-top: 24px; border: 0; border-radius: var(--r-md); }
.tag { display: inline; padding: 3px 7px; border-radius: var(--r-xs); background: var(--tag-blue-bg); color: var(--tag-blue-ink); font-size: 0.85em; font-weight: var(--weight-medium); box-decoration-break: clone; -webkit-box-decoration-break: clone; overflow-wrap: anywhere; }
.tag--pink { background: var(--tag-pink-bg); color: var(--tag-pink-ink); }
.tag--yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow-ink); }
.tag--purple { background: var(--tag-purple-bg); color: var(--tag-purple-ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-xs); text-decoration: none; color: var(--text-muted); }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
.toc--sticky { position: sticky; top: 16px; z-index: 10; }
.faq-item { border-bottom: 1px solid var(--border); padding-block: 6px; }
.faq-item summary { position: relative; padding: 20px 36px 20px 0; font-weight: var(--weight-strong); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 20px; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding-bottom: 16px; color: var(--text-muted); line-height: 1.85; }
.term-card { border-top: 3px solid var(--tag-purple-line); }
.term-card dt { margin-bottom: 14px; font: var(--weight-display) 24px/1.3 var(--font-display); }
.term-card dd { margin: 0; color: var(--text-muted); line-height: 1.85; }
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  text-align: left;
}
.store-button:hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.store-button svg { width: 25px; height: 28px; }
.store-button__copy { display: block; min-width: 0; }
.store-button__copy small { display: block; font-size: 12px; line-height: 1.3; }
.store-button__copy strong { display: block; font-size: 16px; line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.facts li { max-width: 100%; }
.facts .pill { gap: 8px; }
.facts__label { color: var(--text-muted); }
.official-shot { width: 100%; max-width: 280px; margin: 24px auto; padding: 0; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot figcaption { padding-top: 12px; color: var(--text-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.official-shot__surface { border: 1px solid var(--border); border-radius: var(--r-shot); }
.shot-row { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.device-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
.device-card__icon { width: 40px; height: 48px; color: var(--text-muted); }
.device-card h3, .device-card p { margin: 0; }
.device-card p { color: var(--text-muted); line-height: 1.8; }
.device-card .btn { margin-top: auto; }
.article-card { display: flex; flex-direction: column; gap: 16px; }
.article-card h3 { margin: 0; font-size: 24px; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { margin: 0; color: var(--text-muted); line-height: 1.8; }
.article-card__meta { font-size: 13px; color: var(--text-muted); }
.callout { margin: 24px 0; padding: 22px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--tag-blue-bg); color: var(--tag-blue-ink); line-height: 1.85; }
.callout p:last-child { margin-bottom: 0; }
.callout--warning { border-color: var(--warn); background: var(--tag-yellow-bg); color: var(--tag-yellow-ink); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; 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);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-strong); }
.data-table td, .prose table td { background: var(--bg); color: var(--text); }
.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; }
.prose table code, .data-table code { overflow-wrap: anywhere; white-space: normal; }
.dl-fab {
  position: fixed;
  z-index: 20;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-strong);
}
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.dl-fab svg { width: 20px; height: 20px; }
.article-store-card { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.article-store-card__text { flex: 1 1 260px; min-width: 0; }
.article-store-card h2 { margin: 0 0 12px; font-size: 24px; }
.article-store-card p { margin: 0; color: var(--text-muted); }

/* 规则图只用于正文，渐变来自令牌。 */
.rule-flow { display: block; width: 100%; height: auto; margin-top: 32px; }
.rule-flow__shade { stop-color: var(--border-strong); }
.rule-flow__light { stop-color: var(--bg); }
.rule-flow__pipe { fill: none; stroke: url(#rule-pipe); stroke-width: 34; stroke-linecap: round; }
.rule-flow__edge { fill: none; stroke: var(--border); stroke-width: 36; stroke-linecap: round; }
.rule-flow__label { font: var(--weight-medium) 13px var(--font-mono); }
.rule-flow__blue { fill: var(--tag-blue-bg); }
.rule-flow__pink { fill: var(--tag-pink-bg); }
.rule-flow__yellow { fill: var(--tag-yellow-bg); }
.rule-flow__purple { fill: var(--tag-purple-bg); }
.rule-flow__ink-blue { fill: var(--tag-blue-ink); }
.rule-flow__ink-pink { fill: var(--tag-pink-ink); }
.rule-flow__ink-yellow { fill: var(--tag-yellow-ink); }
.rule-flow__ink-purple { fill: var(--tag-purple-ink); }

/* 只供无脚本设计预览使用的家具。 */
.preview-section { border-top: 1px solid var(--border); }
.preview-section h2 { margin-top: 0; margin-bottom: 32px; }
.preview-swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.swatch { margin: 0; border: 1px solid var(--border); border-radius: var(--r-xs); overflow: hidden; }
.swatch__color { height: 54px; background: var(--swatch); color: var(--text); }
.swatch figcaption { padding: 10px; font: 11px/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-purple { --swatch: var(--tag-purple); }
.sw-on { --swatch: var(--on-accent); }
.sw-blue-bg { --swatch: var(--tag-blue-bg); }
.sw-blue-ink { --swatch: var(--tag-blue-ink); }
.sw-blue-line { --swatch: var(--tag-blue-line); }
.sw-pink-bg { --swatch: var(--tag-pink-bg); }
.sw-pink-ink { --swatch: var(--tag-pink-ink); }
.sw-pink-line { --swatch: var(--tag-pink-line); }
.sw-yellow-bg { --swatch: var(--tag-yellow-bg); }
.sw-yellow-ink { --swatch: var(--tag-yellow-ink); }
.sw-yellow-line { --swatch: var(--tag-yellow-line); }
.sw-purple-bg { --swatch: var(--tag-purple-bg); }
.sw-purple-ink { --swatch: var(--tag-purple-ink); }
.sw-purple-line { --swatch: var(--tag-purple-line); }
.sw-device { --swatch: var(--device); }
.sw-device-edge { --swatch: var(--device-edge); }
.sw-cam { --swatch: var(--device-cam); }
.sw-cam-ring { --swatch: var(--device-cam-ring); }
.sw-screen { --swatch: var(--screen); }
.sw-gutter { --swatch: var(--gutter-bg); }
.sw-dot { --swatch: var(--window-dot); }
.sw-veil { --swatch: var(--veil); }
.sw-clear { --swatch: var(--clear); }
.shot-placeholder { display: grid; place-content: center; gap: 12px; width: 100%; aspect-ratio: 750 / 1334; border: 1px solid var(--border); border-radius: var(--r-shot); background: var(--bg-panel); color: var(--text-muted); text-align: center; font-size: 13px; }
.preview-type-display { font: var(--weight-display) var(--size-h1)/1.12 var(--font-display); letter-spacing: var(--tracking-display); }
.preview-fab { position: static; }
@media (max-width: 1240px) {
  :root { --doc-pad-l: 200px; --note-poke: 16px; }
}
@media (max-width: 980px) {
  :root { --doc-pad-l: 72px; }
  .note--l, .lead--l { display: none; }
  .tabs { gap: 32px; grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.5fr); }
}
@media (max-width: 760px) {
  :root { --bezel: 14px; --gutter-w: 32px; --doc-pad-l: 48px; --doc-pad-r: 16px; --row-h: 19px; --r-device: 26px; }
  .hero { padding-top: 28px; }
  .hero__title { font-size: clamp(24px, 7.2vw, 30px); }
  .hero__title > span { display: inline; }
  .cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .devices { gap: 8px 16px; }
  .devices__sep { display: none; }
  .stage { height: 300px; padding-top: 28px; margin-top: 24px; }
  .frame { height: 420px; }
  .frame__cam { top: 4px; }
  .doc { font-size: 12.5px; overflow-x: auto; }
  .ln { min-width: 390px; }
  .sec { font-size: 12.5px; }
  .note, .lead { display: none; }
  .tabs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tabs__list { display: flex; gap: 8px; overflow-x: auto; border: 0; border-radius: 0; padding: 4px; }
  .tabs [role="tab"] { width: auto; min-height: 44px; padding: 10px 16px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--r-pill); white-space: nowrap; }
  .tabs [role="tab"]:last-child { border-bottom: 1px solid var(--border); }
  .tabs [role="tab"]::after, .tabs [role="tab"][aria-selected="true"]::before { display: none; }
  .tabs [role="tab"][aria-selected="true"] { border-color: var(--accent); color: var(--accent-dark); }
  .shot-row { flex-direction: column; align-items: center; }
  .facts { flex-direction: row; flex-wrap: wrap; }
  .dl-fab { font-size: 13px; min-height: 48px; }
}