/* 设置浏览器与平台标签使用同一套语义。 */
.tabs { min-width: 0; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
[role="tab"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
[role="tab"]:hover { background: var(--bg-panel); color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--accent-10); color: var(--accent-dark); border-color: var(--accent-16); }
[role="tabpanel"] { min-width: 0; margin-top: 24px; }
.settings-browser { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-browser [role="tablist"] { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-win); }
.settings-browser [role="tab"] { justify-content: flex-start; text-align: left; width: 100%; border-color: var(--clear); background: var(--clear); color: var(--text-muted); overflow: hidden; }
.settings-browser [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--accent-dark); box-shadow: var(--shadow-soft); }
.settings-browser [role="tabpanel"] { margin: 0; padding: 32px; min-height: 330px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-win); box-shadow: var(--shadow-float); }
.tab-progress { position: absolute; inset: auto 0 0; height: 2px; background: var(--grad); color: var(--text); transform: scaleX(0); transform-origin: left; }
.is-playing [aria-selected="true"] .tab-progress { animation: tab-fill var(--tab-cycle) linear forwards; }
@keyframes tab-fill { to { transform: scaleX(1); } }
.toc {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 32px;
  padding: 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-win);
  box-shadow: var(--shadow-soft);
}
.toc a { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 8px 16px; color: var(--text-muted); text-decoration: none; border-radius: var(--r-pill); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--accent-10); color: var(--accent-dark); }
.faq-item { border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); }
.faq-item summary { position: relative; padding: 22px 40px 22px 0; cursor: pointer; list-style: none; font-weight: var(--weight-medium); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 20px; font-family: var(--font-mono); font-size: 20px; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; max-width: 74ch; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 2px solid var(--accent-30); }
.term-card .term-en { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; margin-bottom: 14px; }
.term-card p { font-size: 14px; line-height: 1.85; color: var(--text-muted); }
.client-card { position: relative; }
.client-card.is-featured { border-color: var(--accent-30); box-shadow: var(--shadow-soft); }
.client-card .client-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
[data-rev]:empty { display: none; }
.badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.badge-first { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.badge-recommended { background: var(--accent-10); color: var(--accent-dark); border-color: var(--accent-16); }
.badge-archived { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--border); }
.post-card { display: flex; flex-direction: column; align-items: flex-start; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; font-size: 12px; color: var(--text-muted); }
.post-card h3 { line-height: 1.55; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-card p { font-size: 14px; color: var(--text-muted); }
.post-card .read-link { margin-top: auto; padding-top: 18px; font-size: 13px; }
.callout {
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--accent-16);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-btn);
  background: var(--accent-06);
  color: var(--text);
}
.callout p:last-child { margin-bottom: 0; }
.callout-warning { background: var(--warn-soft); color: var(--text); border-color: var(--border); border-left-color: var(--warn); }
.callout-error { background: var(--error-soft); color: var(--text); border-color: var(--border); border-left-color: var(--error); }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-btn); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table caption { padding: 14px 18px; text-align: left; color: var(--text-muted); }
.data-table th, .data-table td, .prose table th, .prose 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 { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-medium); }
.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;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.dl-fab {
  position: fixed;
  z-index: 18;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: calc(100vw - 40px);
  min-height: 56px;
  padding: 12px 18px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--accent-30);
  border-radius: var(--r-win);
  box-shadow: var(--shadow-float);
  text-decoration: none;
}
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--accent-dark); stroke-width: 1.8; }
.dl-fab strong { display: block; font-size: 14px; font-weight: var(--weight-medium); }
.dl-fab small { display: block; color: var(--text-muted); font-size: 11px; }
.article-download { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; background: var(--bg-panel); color: var(--text); }
.article-download p { color: var(--text-muted); margin-bottom: 0; }
.fact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.fact-card { min-width: 0; min-height: 240px; padding: 32px; border-radius: var(--r-win); display: flex; flex-direction: column; justify-content: flex-end; }
.fact-card strong { display: block; margin-bottom: 16px; font-family: var(--font-display); font-weight: var(--weight-normal); font-size: clamp(32px, 4vw, 54px); line-height: 1.15; overflow-wrap: anywhere; }
.fact-card p { margin: 0; font-size: 14px; }
.fact-core { background: radial-gradient(var(--white-pattern) 1px, var(--clear) 1px) 0 0 / 16px 16px, var(--accent); color: var(--bg); }
.fact-license { background: repeating-linear-gradient(135deg, var(--accent-10) 0 1px, var(--clear) 1px 18px), var(--accent-12); color: var(--text); }
.fact-platforms { background: linear-gradient(var(--white-pattern) 1px, var(--clear) 1px) 0 0 / 48px 48px, linear-gradient(90deg, var(--white-pattern) 1px, var(--clear) 1px) 0 0 / 48px 48px, var(--text); color: var(--bg); }

/* 首页已经确认的 42/58 构图。 */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - var(--bar-h) - var(--peek));
  min-height: calc(100svh - var(--nav-h) - var(--bar-h) - var(--peek));
  display: grid;
  align-content: center;
  padding-top: 36px;
  padding-bottom: 36px;
  overflow: hidden;
}
.guides { position: absolute; inset: 0; pointer-events: none; mask-image: linear-gradient(to bottom, var(--clear), var(--mask-solid) 16%, var(--mask-solid) 84%, var(--clear)); }
.guides span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); color: var(--text); opacity: 0.7; }
.guides span:nth-child(1) { left: 9%; }
.guides span:nth-child(2) { left: 27%; }
.guides span:nth-child(3) { left: 45%; }
.guides span:nth-child(4) { left: 63%; }
.guides span:nth-child(5) { left: 81%; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); column-gap: 56px; align-items: center; padding-left: var(--gutter); }
.copy { max-width: 540px; }
.badge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 30px; max-width: 100%; padding: 5px 12px 5px 11px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text-muted); box-shadow: var(--shadow-soft); font-size: 13px; margin-bottom: 22px; }
.badge-dot { width: 8px; height: 8px; border-radius: var(--r-circle); background: var(--success); color: var(--text); box-shadow: 0 0 0 4px var(--success-16); flex-shrink: 0; }
.badge b { font-weight: var(--weight-medium); color: var(--text); font-family: var(--font-mono); font-size: 12.5px; }
.badge i { font-style: normal; color: var(--text-muted); }
.hero h1 > span { display: block; }
.h1-key { background: var(--grad); color: var(--clear); -webkit-background-clip: text; background-clip: text; padding-bottom: 2px; }
.lead { margin: 0 0 28px; font-size: 16px; line-height: 1.8; color: var(--text-muted); max-width: 31em; }
.lead strong { color: var(--text); }
.platforms { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.platforms-cap { margin: 0 0 11px; font-size: 12px; color: var(--text-faint); letter-spacing: 0.02em; }
.platforms ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.plat { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; color: var(--text-muted); border-radius: var(--r-chip); }
.plat-tile { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--r-chip); background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); }
.plat-tile svg { width: 14px; height: 14px; }
.plat:hover { color: var(--text); }
.plat:hover .plat-tile { border-color: var(--accent-30); background: var(--accent-06); color: var(--accent-dark); }
.visual { position: relative; isolation: isolate; }
.glow { position: absolute; z-index: -1; left: -210px; bottom: -230px; width: 620px; height: 620px; border-radius: var(--r-circle); background: radial-gradient(closest-side, var(--accent) 0%, var(--accent) 22%, var(--clear) 100%); color: var(--text); opacity: 0.08; pointer-events: none; }
.win { position: relative; width: calc(100% + var(--bleed)); height: clamp(540px, 70vh, 760px); display: grid; grid-template-rows: 38px minmax(0, 1fr); background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-win); box-shadow: var(--shadow-window); overflow: hidden; user-select: none; }
.titlebar { display: flex; align-items: center; gap: 9px; padding-left: 14px; padding-right: var(--bleed); border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.titlebar img { width: 18px; height: 18px; flex-shrink: 0; }
.tt-sep { color: var(--text-muted); margin: 0 2px; }
.tt-now { color: var(--text); }
.wctrl { margin-left: auto; display: flex; height: 100%; }
.wctrl span { width: 46px; display: grid; place-items: center; color: var(--text-muted); }
.wctrl svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1; }
.win-body { display: grid; grid-template-columns: 104px minmax(0, 1fr); min-height: 0; }
.side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--bg-panel); color: var(--text-muted); border-right: 1px solid var(--border); }
.side-item { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 11px; border-radius: var(--r-pill); font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.side-item svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-item.is-on { background: var(--accent-10); color: var(--accent-dark); font-weight: var(--weight-medium); }
.board { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 calc(var(--bleed) + var(--assist-w) + 30px) 14px 16px; }
.board-bar { display: flex; align-items: center; gap: 10px; height: 50px; flex-shrink: 0; }
.board-title { font-size: 14.5px; font-weight: var(--weight-medium); color: var(--text); white-space: nowrap; }
.tag-mono { font-family: var(--font-mono); font-size: 11px; padding: 2px 7px; border-radius: var(--r-chip); background: var(--accent-10); color: var(--accent-dark); }
.board-note { margin-left: auto; font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
.colhead, .sched { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)); background-image: linear-gradient(to right, var(--border) 1px, var(--clear) 1px); background-size: calc((100% - 34px) / 3) 100%; background-position: 34px 0; background-repeat: repeat-x; }
.colhead { height: 40px; flex-shrink: 0; align-items: center; border-top: 1px solid var(--border); }
.colhead > div { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text); line-height: 1.3; }
.colhead small { display: block; font-family: var(--font-body); font-size: 10.5px; letter-spacing: 0; color: var(--text-faint); }
.cd { display: inline-block; width: 6px; height: 6px; border-radius: var(--r-mini); margin-right: 6px; vertical-align: 1px; background: var(--c); color: var(--text); }
.sched { position: relative; flex: 1; min-height: 0; grid-template-rows: repeat(8, minmax(0, 1fr)); background-image: linear-gradient(to bottom, var(--border) 1px, var(--clear) 1px), linear-gradient(to right, var(--border) 1px, var(--clear) 1px); background-size: 100% 12.5%, calc((100% - 34px) / 3) 100%; background-position: 0 0, 34px 0; background-repeat: repeat-y, repeat-x; overflow: hidden; }
.ax { grid-column: 1; padding: 7px 0 0 2px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.ax:nth-child(1) { grid-row: 1; }
.ax:nth-child(2) { grid-row: 2; }
.ax:nth-child(3) { grid-row: 3; }
.ax:nth-child(4) { grid-row: 4; }
.ax:nth-child(5) { grid-row: 5; }
.ax:nth-child(6) { grid-row: 6; }
.ax:nth-child(7) { grid-row: 7; }
.ax:nth-child(8) { grid-row: 8; }
.blk { margin: 4px 5px; border-radius: var(--r-chip); min-width: 0; min-height: 0; }
.blk.idle { background: var(--bg-panel-2); color: var(--text); }
.g1 { grid-area: 3 / 2 / 7 / 3; }
.g2 { grid-area: 8 / 2 / 9 / 3; }
.g3 { grid-area: 1 / 3 / 4 / 4; }
.g4 { grid-area: 5 / 3 / 6 / 4; }
.g5 { grid-area: 7 / 3 / 8 / 4; }
.g6 { grid-area: 1 / 4 / 3 / 5; }
.g7 { grid-area: 4 / 4 / 5 / 5; }
.g8 { grid-area: 6 / 4 / 9 / 5; }
.p-direct { --c: var(--success); --c-soft: var(--success-10); --c-ring: var(--success-16); --c-lift: var(--success-06); --c-ink: var(--success-ink); }
.p-proxy { --c: var(--accent); --c-soft: var(--accent-10); --c-ring: var(--accent-16); --c-lift: var(--accent-06); --c-ink: var(--accent-dark); }
.p-reject { --c: var(--accent-dark); --c-soft: var(--accent-dark-06); --c-ring: var(--accent-dark-16); --c-lift: var(--accent-dark-06); --c-ink: var(--accent-dark); }
.rule { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; background: var(--c-soft); color: var(--text); border: 1.5px dashed var(--c); overflow: visible; }
.rule.p-reject { background: repeating-linear-gradient(135deg, var(--accent-dark-12) 0 1px, var(--clear) 1px 7px), var(--c-soft); color: var(--text); }
.rule > * { position: relative; z-index: 1; }
.rule b { font-family: var(--font-mono); font-weight: var(--weight-medium); font-size: 9.5px; letter-spacing: 0.03em; color: var(--c-ink); white-space: nowrap; }
.rule span { font-family: var(--font-mono); font-size: 12px; color: var(--text); white-space: nowrap; }
.rule span.zh { font-family: var(--font-body); font-size: 11.5px; }
.rule::after { content: ""; position: absolute; z-index: 0; inset: -1.5px; border-radius: inherit; border: 1.5px solid var(--c); background: var(--c-lift); color: var(--text); box-shadow: 0 0 0 3px var(--c-ring); opacity: 0; pointer-events: none; animation: rule-lit 7s linear infinite; animation-delay: var(--d); }
.r1 { grid-area: 1 / 2 / 2 / 3; --d: -6.365s; }
.r2 { grid-area: 2 / 2 / 3 / 3; --d: -5.656s; }
.r3 { grid-area: 3 / 4 / 4 / 5; --d: -4.947s; }
.r4 { grid-area: 4 / 3 / 5 / 4; --d: -4.237s; }
.r5 { grid-area: 5 / 4 / 6 / 5; --d: -3.528s; }
.r6 { grid-area: 6 / 3 / 7 / 4; --d: -2.819s; }
.r7 { grid-area: 7 / 2 / 8 / 3; --d: -2.109s; }
.r8 { grid-area: 8 / 3 / 9 / 4; --d: -1.4s; }
.scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: rule-scan 7s linear infinite; }
.scan::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; border-radius: var(--r-mini); background: var(--grad); color: var(--text); box-shadow: 0 0 10px var(--accent-30); }
.scan::after { content: ""; position: absolute; left: 34px; right: 0; top: -24px; height: 23px; background: linear-gradient(to bottom, var(--clear), var(--accent-06)); color: var(--text); }
@keyframes rule-scan { 0% { transform: translateY(0); opacity: 0; } 5% { opacity: 1; } 86% { transform: translateY(96%); opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
@keyframes rule-lit { 0%, 14%, 100% { opacity: 0; } 3%, 10% { opacity: 1; } }
.assist { position: absolute; z-index: 3; top: 50px; bottom: 14px; right: calc(var(--bleed) + 14px); width: var(--assist-w); display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-win); box-shadow: var(--shadow-float); }
.as-head { display: flex; align-items: center; gap: 8px; }
.as-ico { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: var(--r-chip); background: var(--accent-10); color: var(--accent-dark); }
.as-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-title { font-size: 13.5px; font-weight: var(--weight-medium); white-space: nowrap; }
.as-file { margin-left: auto; padding: 1px 6px; border-radius: var(--r-chip); border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; }
.as-tip { margin: 0; padding: 10px 11px; border-radius: var(--r-btn); background: var(--accent-06); color: var(--text-muted); border: 1px solid var(--accent-16); font-size: 12px; line-height: 1.65; }
.as-tip code { font-size: 11px; color: var(--accent-dark); }
.yaml { padding: 8px 11px; border-radius: var(--r-btn); border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 11.5px; line-height: 1.95; }
.yl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; white-space: nowrap; }
.yk { color: var(--accent-dark); }
.yv { color: var(--text); }
.yd, .yc { color: var(--text-faint); }
.yc { font-family: var(--font-body); font-size: 11px; }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--accent); color: var(--text); border-radius: var(--r-mini); animation: yaml-blink 1.1s steps(1, end) infinite; }
@keyframes yaml-blink { 50% { opacity: 0; } }
.as-mode-cap { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 11.5px; color: var(--text-muted); }
.as-mode-cap span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: var(--r-btn); background: var(--bg-panel-2); color: var(--text-muted); }
.seg span { padding: 4px 0; text-align: center; border-radius: var(--r-chip); font-size: 12px; }
.seg .on { background: var(--bg); color: var(--text); font-weight: var(--weight-medium); box-shadow: var(--shadow-soft); }
.toggles { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tg-l { font-size: 12.5px; color: var(--text); line-height: 1.35; }
.tg-l small { display: block; font-size: 10.5px; color: var(--text-faint); }
.tg-l small.mono { font-size: 10px; }
.sw { position: relative; flex-shrink: 0; width: 30px; height: 18px; border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: var(--r-circle); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.sw.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.sw.on::after { transform: translateX(12px); }
.statusbar { min-height: var(--bar-h); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 40px; padding: 10px var(--gutter); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-panel); color: var(--text-muted); font-size: 12px; }
.statusbar b { margin-left: 8px; font-family: var(--font-mono); color: var(--text); font-size: 11.5px; font-weight: var(--weight-normal); }

/* 无脚本的设计预览。 */
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { padding: 12px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text); font-size: 12px; }
.swatch-sample { height: 64px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--r-chip); }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel2 { background: var(--bg-panel-2); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--bg); }
.sw-dark { background: var(--accent-dark); color: var(--bg); }
.sw-text { background: var(--text); color: var(--bg); }
.sw-muted { background: var(--text-muted); color: var(--bg); }
.sw-success { background: var(--success); color: var(--text); }
.sw-warn { background: var(--warn); color: var(--text); }
.sw-error { background: var(--error); color: var(--text); }
.sw-grad { background: var(--grad); color: var(--text); }
.button-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-fab { position: static; max-width: 100%; margin-top: 24px; }
@media (min-width: 1281px) and (max-width: 1500px) {
  .board-note { display: none; }
  .rule { padding-inline: 5px; }
  .rule b { font-size: 8px; letter-spacing: 0; }
  .rule span { font-size: 10px; }
}
@media (max-width: 1280px) {
  .hero-inner { column-gap: 32px; }
  .visual { --assist-w: 200px; }
  .board-note { display: none; }
  .side { padding-inline: 5px; }
  .win-body { grid-template-columns: 90px minmax(0, 1fr); }
  .side-item { padding-inline: 8px; gap: 6px; }
  .board { padding-left: 10px; padding-right: calc(var(--bleed) + var(--assist-w) + 22px); }
  .rule { padding-inline: 3px; }
  .rule b { font-size: 7px; letter-spacing: 0; }
  .rule span { font-size: 9px; }
  .assist { padding: 10px; }
  .yaml { padding-inline: 7px; font-size: 10px; }
  .yc { font-size: 10px; }
}
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-inline: var(--gutter); gap: 40px; }
  .hero { min-height: auto; padding-top: 48px; padding-bottom: 48px; }
  .copy { max-width: 660px; }
  .visual { --bleed: 0px; --assist-w: 228px; }
  .win { width: 100%; height: 560px; }
  .win-body { grid-template-columns: 104px minmax(0, 1fr); }
  .rule { padding-inline: 8px; }
  .rule b { font-size: 9px; }
  .rule span { font-size: 12px; }
  .assist { padding: 14px; }
  .yaml { padding-inline: 11px; font-size: 11px; }
}
@media (max-width: 768px) {
  .settings-browser { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .settings-browser [role="tablist"] { flex-direction: row; }
  .settings-browser [role="tab"] { width: auto; flex: 1 1 180px; }
  .fact-cards { gap: 16px; }
  .fact-card { padding: 24px; min-height: 200px; }
  .win { height: 500px; }
  .visual { --assist-w: 190px; }
  .win-body { grid-template-columns: 76px minmax(0, 1fr); }
  .side-item { padding-inline: 5px; gap: 5px; font-size: 11px; }
  .side-item svg { width: 12px; height: 12px; }
  .assist { padding: 10px; gap: 10px; }
  .as-head { gap: 4px; }
  .as-title { font-size: 12px; }
  .as-file { font-size: 9px; padding-inline: 3px; }
  .yaml { font-size: 9px; padding-inline: 6px; }
  .yc { font-size: 9px; }
  .colhead > div { font-size: 9px; }
  .colhead small { font-size: 9px; }
  .rule b { font-size: 7px; }
  .rule span { font-size: 9px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 32px; padding-bottom: 32px; }
  .hero-inner { gap: 32px; }
  .badge { margin-bottom: 18px; font-size: 12px; }
  .lead { font-size: 14px; }
  .platforms ul { gap: 10px 14px; }
  .plat { font-size: 12px; gap: 6px; }
  .visual { --assist-w: 42%; }
  .win { height: 430px; }
  .titlebar { font-size: 10px; gap: 6px; padding-left: 10px; padding-right: 8px; }
  .wctrl span { width: 22px; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .board { padding: 0 calc(var(--assist-w) + 16px) 10px 8px; }
  .board-bar { height: 42px; gap: 6px; }
  .board-title { font-size: 11px; }
  .tag-mono { font-size: 9px; padding-inline: 4px; }
  .colhead, .sched { grid-template-columns: 20px repeat(3, minmax(0, 1fr)); background-position: 20px 0; background-size: calc((100% - 20px) / 3) 100%; }
  .sched { background-position: 0 0, 20px 0; background-size: 100% 12.5%, calc((100% - 20px) / 3) 100%; }
  .colhead { height: 36px; }
  .colhead > div { font-size: 7px; letter-spacing: 0; }
  .colhead small { font-size: 8px; }
  .cd { width: 4px; height: 4px; margin-right: 2px; }
  .ax { font-size: 8px; }
  .blk { margin: 3px 2px; }
  .rule { padding: 5px 2px; gap: 3px; }
  .rule b { font-size: 5px; }
  .rule span, .rule span.zh { font-size: 6px; }
  .assist { top: 48px; right: 6px; bottom: 10px; padding: 7px; gap: 8px; }
  .as-ico { display: none; }
  .as-title { font-size: 10px; }
  .as-file { font-size: 7px; }
  .as-tip { padding: 7px; font-size: 9px; }
  .as-tip code { font-size: 8px; }
  .yaml { padding: 6px; font-size: 7px; }
  .yl { gap: 3px; }
  .yc { font-size: 7px; }
  .as-mode-cap { font-size: 9px; }
  .as-mode-cap span { font-size: 8px; }
  .seg span { font-size: 9px; }
  .tg-l { font-size: 10px; }
  .tg-l small, .tg-l small.mono { font-size: 8px; }
  .sw { width: 26px; height: 16px; }
  .sw::after { width: 10px; height: 10px; }
  .sw.on::after { transform: translateX(10px); }
  .caret { width: 4px; height: 10px; }
  .scan::after { left: 20px; }
  .statusbar { gap: 8px 20px; justify-content: flex-start; font-size: 11px; }
  .statusbar b { margin-left: 5px; font-size: 10px; }
  .settings-browser [role="tabpanel"] { padding: 24px; }
  .settings-browser [role="tab"] { flex-basis: 120px; font-size: 12px; padding-inline: 10px; }
  .fact-cards { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .fact-card { min-height: 200px; }
  .fact-card strong { font-size: 48px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-fab { right: 20px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .scan { transform: translateY(94%); opacity: 1; }
  .caret { opacity: 1; }
  .rule::after { opacity: 0; }
  .rule.r8::after { opacity: 1; }
  .tab-progress { transform: scaleX(0); }
}