/* 拍板首屏：静态几何、订阅设置浮窗、独立平台入口。 */
.hero { position: relative; background: var(--bg); color: var(--text); }
.hero-in { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 688px); justify-content: space-between; column-gap: 48px; min-height: 740px; }
.hero-copy { padding-top: 150px; }
.hero-title { margin: 0; font-size: var(--size-h1); font-weight: var(--weight-display); line-height: 1.16; letter-spacing: var(--tracking-title); }
.hero-title .title-line { display: block; }
.hero-lede { margin: 24px 0 0; max-width: 520px; font-size: 18px; line-height: 1.7; color: var(--text-muted); }
.hero-lede strong { color: var(--text); font-weight: var(--weight-semibold); }
.facts { display: grid; gap: 18px; max-width: 520px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.fact-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.fact-label { flex-shrink: 0; width: 56px; font-size: 13px; font-weight: var(--weight-medium); color: var(--text-muted); }
.os-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.os-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; font-weight: var(--weight-semibold); text-decoration: none; }
.os-tile { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-tile); background: var(--bg-panel); color: var(--text); }
.os-tile svg { width: 15px; height: 15px; }
.os-link:hover { color: var(--accent-dark); }
.os-link:hover .os-tile { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.rig { position: relative; height: 740px; overflow: visible; }
.geo-arc { position: absolute; left: 91px; top: -87px; width: 474px; height: 474px; border-radius: var(--radius-circle); background: var(--accent); color: var(--on-accent); z-index: 1; }
.geo-wedge { position: absolute; left: 380px; top: 230px; width: 460px; height: 420px; max-width: none; overflow: visible; z-index: 2; }
.stop-geo-a { stop-color: var(--geo-from); }
.stop-geo-b { stop-color: var(--geo-to); }
.win-back { position: absolute; left: 64px; top: 128px; width: 528px; height: 140px; border: 1px solid var(--veil-edge); border-radius: var(--radius-card); background: var(--veil); color: var(--text); box-shadow: var(--shadow-card); z-index: 3; }
.win { position: absolute; left: 32px; top: 150px; width: 592px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); font-size: 12.5px; line-height: 1.5; z-index: 4; }
.win-bar { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.win-glyph { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius-glyph); background: var(--bg-panel-2); color: var(--text-muted); }
.win-glyph svg { width: 14px; height: 14px; }
.win-title { font-size: 14.5px; font-weight: var(--weight-bold); letter-spacing: -0.005em; }
.win-ctrl { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--text-faint); }
.win-ctrl svg { width: 12px; height: 12px; display: block; flex-shrink: 0; }
.win-body { display: grid; grid-template-columns: 120px minmax(0, 1fr) 192px; }
.win-body > * { min-width: 0; }
.pane { padding: 16px 14px; }
.pane-cap { margin: 0 0 10px; font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: 0.04em; color: var(--text-muted); }
.pane-groups { background: var(--bg-panel); color: var(--text); border-right: 1px solid var(--border); }
.grp-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.grp { position: relative; min-height: 34px; display: flex; align-items: center; padding: 0 10px 0 12px; border-radius: var(--radius-field); font-weight: var(--weight-semibold); color: var(--text-muted); }
.grp.is-on { background: var(--accent-soft); color: var(--accent-dark); }
.grp.is-on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: var(--radius-line); background: var(--accent); }
.grp-add { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0 12px; font-size: 12px; color: var(--text-muted); }
.grp-add svg { width: 11px; height: 11px; flex-shrink: 0; }
.pane-form { display: grid; align-content: start; gap: 14px; padding: 16px; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld-label { font-size: 11.5px; font-weight: var(--weight-medium); color: var(--text-muted); }
.inp { min-height: 32px; display: flex; align-items: center; padding: 5px 9px; border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--bg); color: var(--text); font-size: 12.5px; overflow-wrap: anywhere; min-width: 0; }
.inp-url { font-family: var(--font-mono); font-size: 11px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring-accent); }
.inp-num { justify-content: space-between; padding-right: 0; padding-block: 0; font-variant-numeric: tabular-nums; }
.stepper { width: 28px; flex-shrink: 0; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-left: 1px solid var(--border); background: var(--bg-panel); color: var(--text-muted); }
.stepper svg { width: 9px; height: 6px; display: block; }
.fld-row { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 10px; border-radius: var(--radius-field); background: var(--bg-panel); color: var(--text); }
.fld-row .fld-label { font-size: 12.5px; font-weight: var(--weight-semibold); color: var(--text); }
.switch { position: relative; width: 34px; height: 20px; flex-shrink: 0; border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: var(--radius-circle); background: var(--bg); box-shadow: var(--shadow-knob); }
.switch[aria-checked="false"] { background: var(--text-muted); color: var(--on-accent); }
.switch[aria-checked="false"]::after { right: auto; left: 2px; }
.pane-acts { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; border-left: 1px solid var(--border); }
.pane-acts .pane-cap { margin-bottom: 2px; }
.act { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--bg); color: var(--text); font-size: 12px; font-weight: var(--weight-semibold); }
.act-mark { flex-shrink: 0; width: 14px; height: 14px; display: grid; place-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-circle); }
.act-mark svg { width: 8px; height: 8px; }
.act.is-on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent-sm); }
.act.is-on .act-mark { border-color: transparent; background: var(--on-accent); color: var(--accent); }
.act-foot { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.win-ok { min-height: 34px; display: inline-flex; align-items: center; padding: 6px 24px; border-radius: var(--radius-field); background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: var(--weight-bold); }
.quick { padding-top: 36px; padding-bottom: 128px; text-align: center; }
.quick-title { margin: 20px 0 14px; font-size: 36px; font-weight: var(--weight-display); line-height: 1.2; letter-spacing: var(--tracking-title); }
.quick-lede { max-width: 640px; margin: 0 auto; font-size: 17px; color: var(--text-muted); }
.tray { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; padding: 56px 48px; border-radius: var(--radius-panel); background: var(--bg-panel); color: var(--text); text-align: left; }
.tray::before, .setting-tray::before { content: ""; position: absolute; top: 0; right: 0; width: 300px; height: 220px; background: linear-gradient(135deg, var(--geo-from), var(--geo-to)); clip-path: polygon(34% 0, 100% 0, 100% 100%); }
.step-card { position: relative; z-index: 1; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.step-kicker { margin: 0; font-size: 13px; font-weight: var(--weight-semibold); color: var(--text-muted); }
.step-card h3 { margin: 8px 0 10px; font-size: 19px; font-weight: var(--weight-bold); letter-spacing: -0.01em; }
.step-card p:last-child { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* 同一 data-tabs 作用域内配对 tab 与 panel。 */
.tabs { min-width: 0; }
.tab-list, [role="tablist"].tab-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px; margin-bottom: 28px; border-radius: var(--radius-menu); background: var(--bg-panel); color: var(--text); }
.tab {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}
.tab:hover { color: var(--accent-dark); }
.tab[aria-selected="true"] { background: var(--bg); color: var(--accent-dark); border-color: var(--border); box-shadow: var(--shadow-card); }
.tab-panel { min-width: 0; }
.feature-tabs { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0 64px; }
.feature-index { display: contents; }
.feature-item { display: contents; }
.feature-tab { grid-column: 1; display: block; width: 100%; text-align: left; padding: 24px 0; border: 0; border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text-muted); }
.feature-heading { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: var(--weight-bold); }
.feature-heading svg { width: 28px; height: 28px; flex-shrink: 0; }
.feature-description { display: none; margin: 18px 0 8px 42px; font-size: 15px; font-weight: var(--weight-body); line-height: 1.8; color: var(--text-muted); }
.feature-tab[aria-selected="true"] { position: relative; color: var(--text); }
.feature-tab[aria-selected="true"] .feature-description { display: block; }
.feature-tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; border-radius: var(--radius-line); background: var(--accent); }
.feature-panel { grid-column: 2; grid-row: 1 / span 4; min-width: 0; align-self: stretch; }
.setting-tray { position: relative; overflow: hidden; min-height: 460px; height: 100%; display: grid; place-items: center; padding: 48px; border-radius: var(--radius-panel); background: var(--bg-panel); color: var(--text); }
.setting-card { position: relative; width: 100%; max-width: 410px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); display: grid; gap: 20px; }
.setting-card h3 { font-size: 19px; margin: 0; }
.setting-card .act { min-height: 44px; }

.toc { position: sticky; top: 16px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-menu); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-field); color: var(--text-muted); text-decoration: none; }
.toc a:hover, .toc a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.faq-list { display: grid; gap: 14px; }
.faq-item { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); }
.faq-item summary { position: relative; min-height: 64px; padding: 20px 56px 20px 24px; list-style: none; cursor: pointer; font-weight: var(--weight-bold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 19px; color: var(--accent-dark); font-size: 22px; }
.faq-item[open] { box-shadow: var(--shadow-card); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 3px solid var(--accent); }
.term-card dt { margin: 0 0 12px; font-size: 21px; font-weight: var(--weight-bold); }
.term-card dd { margin: 0; color: var(--text-muted); }
.term-category { display: block; margin-bottom: 14px; font-size: 13px; color: var(--text-muted); }
.client-card { display: grid; gap: 24px; }
.client-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.client-head h3 { margin: 0; }
.client-details { color: var(--text-muted); }
.client-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.client-extra { font-size: 14px; }
.badge { display: inline-block; max-width: 100%; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--bg-panel); color: var(--text-muted); font-size: 12px; font-weight: var(--weight-bold); overflow-wrap: anywhere; vertical-align: middle; }
.badge-first, .badge-recommended { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-soft); }
.badge-retired { background: var(--bg-panel); color: var(--warn-ink); }
.badge-success { background: var(--bg-panel); color: var(--success-ink); }
.badge-error { background: var(--bg-panel); color: var(--error-ink); }
.article-card { display: flex; flex-direction: column; gap: 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.article-card h3 { margin: 0; font-size: 21px; }
.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); }
.article-card .text-link { margin-top: auto; padding-top: 8px; }
.callout { margin: 24px 0; padding: 24px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-field); background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--warn); }
.callout-error { border-left-color: var(--error); }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-field); overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg); color: var(--text); font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td { min-width: 7em; padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); 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: var(--weight-bold); }
.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; border-collapse: collapse; background: var(--bg); color: var(--text); }
.prose table code, .article-body table code, .data-table code { overflow-wrap: anywhere; }
.article-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.article-download-copy { flex: 1 1 260px; min-width: 0; }
.article-download h2 { margin: 0 0 8px; font-size: 24px; }
.article-download p { margin: 0; color: var(--text-muted); }
.dl-fab { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); min-height: 56px; padding: 14px 20px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg); color: var(--text); box-shadow: var(--shadow-pop); font-weight: var(--weight-bold); text-decoration: none; }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-dark); }
.dl-fab:hover { border-color: var(--accent); color: var(--accent-dark); }
.has-dl-fab .site-foot { padding-bottom: 112px; }

/* 只供风格确认页使用的色板与状态列。 */
.palette-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { margin: 0; min-width: 0; }
.swatch-color { display: block; height: 76px; border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--bg); color: var(--text); }
.swatch figcaption { padding-top: 10px; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.swatch-bg { background: var(--bg); color: var(--text); }
.swatch-panel { background: var(--bg-panel); color: var(--text); }
.swatch-panel2 { background: var(--bg-panel-2); color: var(--text); }
.swatch-border { background: var(--border); color: var(--text); }
.swatch-border-strong { background: var(--border-strong); color: var(--text); }
.swatch-accent { background: var(--accent); color: var(--on-accent); }
.swatch-dark { background: var(--accent-dark); color: var(--on-accent); }
.swatch-soft { background: var(--accent-soft); color: var(--text); }
.swatch-text { background: var(--text); color: var(--on-accent); }
.swatch-muted { background: var(--text-muted); color: var(--on-accent); }
.swatch-faint { background: var(--text-faint); color: var(--text); }
.swatch-white { background: var(--on-accent); color: var(--text); }
.swatch-success { background: var(--success); color: var(--text); }
.swatch-warn { background: var(--warn); color: var(--text); }
.swatch-error { background: var(--error); color: var(--text); }
.swatch-success-ink { background: var(--success-ink); color: var(--on-accent); }
.swatch-warn-ink { background: var(--warn-ink); color: var(--on-accent); }
.swatch-error-ink { background: var(--error-ink); color: var(--on-accent); }
.swatch-from { background: var(--geo-from); color: var(--on-accent); }
.swatch-to { background: var(--geo-to); color: var(--text); }
.swatch-veil { background: var(--veil); color: var(--text); }
.swatch-veil-edge { background: var(--veil-edge); color: var(--text); }
.swatch-scrim { background: var(--scrim); color: var(--text); }
.swatch-ring { background: var(--ring-accent); color: var(--text); }
.state-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.preview-type h1 { margin-top: 0; }
.preview-type h2 { margin-top: 28px; }
@media (max-width: 1180px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding-top: 72px; }
  .rig { width: 688px; max-width: 100%; margin: 40px auto 0; }
  .tray { grid-template-columns: minmax(0, 1fr); }
  .feature-tabs { column-gap: 32px; }
  .setting-tray { padding: 28px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(24px, 7vw, 30px); }
  .feature-tabs { display: block; }
  .feature-index, .feature-item { display: block; }
  .feature-panel { margin-top: 20px; margin-bottom: 20px; }
  .feature-heading { font-size: 20px; }
  .setting-tray { min-height: 0; padding: 36px 20px; }
}
@media (max-width: 720px) {
  .hero-copy { padding-top: 48px; }
  .hero-lede { font-size: 16px; }
  .fact-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .rig { height: auto; padding-top: 120px; padding-bottom: 72px; }
  .geo-arc { left: 10vw; top: calc(120px - 40vw); width: 80vw; height: 80vw; }
  .win-back { left: 6%; width: 88%; top: 100px; }
  .win { position: relative; left: auto; top: auto; width: 100%; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .pane-groups { display: none; }
  .pane-acts { border-left: 0; border-top: 1px solid var(--border); }
  .geo-wedge { left: auto; right: -170px; top: auto; bottom: -40px; width: 320px; height: 292px; }
  .quick-title { font-size: 26px; }
  .tray { padding: 28px 18px; }
}
@media (max-width: 640px) {
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-description { margin-left: 0; }
  .toc { position: static; }
  .setting-card { padding: 24px; }
  .article-download { padding: 24px; }
  .dl-fab { right: 20px; bottom: 20px; min-height: 48px; padding: 12px 16px; font-size: 14px; }
}