/* 首屏：静态轨道场与客户端窗口，共享给首页。 */
.hero { padding-top: 30px; padding-bottom: 72px; text-align: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; margin: 0 0 16px; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.hero-tag-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-title { margin: 0 0 14px; font-size: var(--title-size); font-weight: var(--weight-normal); line-height: 1.14; letter-spacing: var(--tracking-title); }
.hero-title-line { display: block; }
.hero-title-key { color: var(--accent); }
.hero-title-sep { color: var(--text-muted); padding-inline: .12em; }
.hero-lead { max-width: 680px; margin: 0 auto 22px; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.hero-lead strong { color: var(--text); font-weight: var(--weight-medium); }
.factline { display: flex; justify-content: center; list-style: none; margin: 0 0 20px; padding: 0; }
.factline-item { min-width: 0; padding-inline: 36px; }
.factline-item + .factline-item { border-left: 1px solid var(--border); }
.factline-head { display: flex; align-items: baseline; justify-content: center; gap: 6px; line-height: 1.1; }
.factline-num { font-family: var(--font-display); font-size: 30px; font-weight: var(--weight-normal); letter-spacing: -.02em; color: var(--accent); }
.factline-unit { font-size: 14px; color: var(--text); }
.factline-note { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.osrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.osrow-link { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); font-size: 13px; line-height: 1; transition: border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease); }
.osrow-link svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-muted); }
.osrow-link:hover { border-color: var(--accent); color: var(--accent); }
.osrow-link:hover svg { color: var(--accent); }
.pillbar-wrap { margin-bottom: 26px; }
.pillbar { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; min-height: 26px; max-width: 100%; margin: 0; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; line-height: 1.3; list-style: none; }
.pillbar-mark { width: 12px; height: 3px; flex-shrink: 0; margin-right: 10px; background: var(--accent); color: var(--on-accent); }
.pillbar-item { display: inline-flex; align-items: center; gap: 5px; }
.pillbar-item + .pillbar-item::before { content: "·"; margin-inline: 10px; color: var(--text-muted); }
.pillbar-key { color: var(--text); }
.stage { max-width: 1080px; margin-inline: auto; padding: 14px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.field { position: relative; height: 331px; border-radius: var(--r-card); overflow: hidden; background: linear-gradient(118deg, var(--field-stone) 0%, var(--field-sage) 48%, var(--field-clay) 100%); color: var(--text); }
.field::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--dot) 1px, var(--mask-off) 1.3px); background-size: 14px 14px; background-position: 7px 7px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, var(--mask-off) 0%, var(--mask-on) 78%); mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, var(--mask-off) 0%, var(--mask-on) 78%); }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-ring { fill: none; stroke: var(--orbit); stroke-width: 1; }
.orbit-ring-dash { stroke-dasharray: 3 6; }
.orbit-tag { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding-inline: 9px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; line-height: 1; white-space: nowrap; }
.orbit-tag::before { content: ""; width: 4px; height: 4px; flex-shrink: 0; border-radius: var(--r-round); background: var(--text-faint); color: var(--text); }
.orbit-tag-a { left: 9.7%; top: 21.3%; }
.orbit-tag-b { left: 8.1%; top: 66.5%; }
.orbit-tag-c { left: 90.3%; top: 21.3%; }
.orbit-tag-d { left: 91.9%; top: 66.5%; }
.rig { position: absolute; left: 50%; top: 22px; width: 760px; height: 271px; transform: translateX(-50%); transform-origin: top center; }
.win { position: absolute; left: 0; top: 0; width: 640px; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); color: var(--text); box-shadow: var(--shadow-win); font-size: 12px; line-height: 1.3; text-align: left; }
.win-chrome { display: flex; align-items: center; justify-content: space-between; height: 32px; padding-left: 12px; border-bottom: 1px solid var(--border); }
.win-title { display: flex; align-items: center; gap: 8px; font-weight: var(--weight-medium); }
.win-mark { width: 14px; height: 14px; }
.win-ctrls { display: flex; height: 100%; }
.win-ctrl { display: grid; place-items: center; width: 40px; height: 100%; color: var(--text-muted); }
.win-ctrl svg { width: 10px; height: 10px; }
.win-menu { display: flex; align-items: center; gap: 2px; height: 28px; padding-inline: 6px; border-bottom: 1px solid var(--border); }
.win-menu-item { padding: 3px 8px; border-radius: var(--r-ctl); }
.win-body { display: grid; grid-template-columns: 104px minmax(0, 1fr); height: 126px; }
.win-groups { padding: 8px 6px; border-right: 1px solid var(--border); }
.win-groups-cap { padding: 0 8px 5px; font-size: 10.5px; color: var(--text-muted); }
.group-tab { display: flex; align-items: center; gap: 7px; height: 24px; padding-inline: 8px; border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text); font-weight: var(--weight-medium); }
.group-tab::before { content: ""; width: 12px; height: 3px; background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.win-table { display: flex; flex-direction: column; min-width: 0; }
.tr { display: grid; grid-template-columns: 56px 1.3fr 1.5fr 56px 1fr; column-gap: 10px; align-items: center; padding-inline: 12px; }
.thead { height: 26px; border-bottom: 1px solid var(--border); background: var(--bg-panel); color: var(--text-muted); font-size: 11.5px; }
.trow { height: 24px; border-bottom: 1px solid var(--bg-panel-2); }
.trow-2 { opacity: .78; }
.trow-3 { opacity: .56; }
.sk { display: block; height: 6px; border-radius: var(--r-ctl); background: var(--bg-panel-2); color: var(--text); }
.sk-30 { width: 30px; }
.sk-40 { width: 40%; }
.sk-55 { width: 55%; }
.sk-65 { width: 65%; }
.sk-75 { width: 75%; }
.sk-85 { width: 85%; }
.win-status { display: flex; align-items: center; gap: 10px; height: 38px; padding-inline: 12px; border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.tun { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: var(--weight-medium); white-space: nowrap; }
.switch { position: relative; width: 28px; height: 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: var(--r-round); background: var(--surface); color: var(--text); }
.status-sep { width: 1px; height: 16px; background: var(--border); color: var(--text); }
.select { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px 0 8px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--surface); color: var(--text); font-size: 11.5px; white-space: nowrap; }
.select-key { color: var(--text-muted); }
.select svg { width: 10px; height: 10px; color: var(--text-muted); }
.dlg { position: absolute; left: 492px; top: 88px; width: 268px; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); color: var(--text); box-shadow: var(--shadow-dlg); font-size: 11.5px; line-height: 1.3; text-align: left; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 4px 0 12px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: var(--weight-medium); }
.dlg-close { display: grid; place-items: center; width: 28px; height: 28px; color: var(--text-muted); }
.dlg-body { display: grid; row-gap: 5px; padding: 8px 12px; }
.dlg-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: 8px; align-items: center; height: 22px; }
.dlg-label { color: var(--text-muted); white-space: nowrap; }
.input { display: block; height: 22px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--surface); color: var(--text); }
.input-short { width: 64px; }
.check { display: grid; place-items: center; width: 14px; height: 14px; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); }
.check svg { width: 9px; height: 9px; }
.dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 6px; height: 34px; padding-inline: 12px; border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.mini-btn { display: inline-flex; align-items: center; height: 22px; padding-inline: 14px; border-radius: var(--r-ctl); font-size: 11.5px; }
.mini-btn-main { background: var(--accent); color: var(--on-accent); }
.mini-btn-line { border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* Tabs：默认正文可见，脚本初始化后才隐藏非活动面板。 */
.tabs { min-width: 0; }
.tab-list, [role="tablist"] { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.tab, [role="tab"] { position: relative; display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg); color: var(--text-muted); text-align: left; }
[role="tab"]:hover { background: var(--bg-panel); color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--bg-panel); color: var(--text); border-color: var(--border); }
[role="tab"][aria-selected="true"]::before { content: ""; display: inline-block; width: 12px; height: 3px; flex-shrink: 0; background: var(--accent); color: var(--on-accent); }
.tab-panel { min-width: 0; margin-top: 20px; }
.feature-tabs { display: grid; grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); gap: 24px; }
.feature-tabs [role="tablist"] { flex-direction: column; align-items: stretch; overflow: visible; padding: 0; }
.feature-tabs [role="tab"] { width: 100%; min-height: 62px; }
.feature-tabs .tab-panel { margin-top: 0; }
.feature-panel { padding: 32px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.setting-path { display: block; margin-block: 20px; color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.mini-stage { display: grid; place-items: center; min-height: 190px; padding: 24px; border-radius: var(--r-card); background: linear-gradient(118deg, var(--field-stone), var(--field-sage), var(--field-clay)); color: var(--text); }
.setting-fragment { width: min(100%, 360px); padding: 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); color: var(--text); }
.setting-fragment p:last-child { margin: 0; }
.toc { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.toc a { flex-shrink: 0; padding: 8px 12px; border-radius: var(--r-ctl); font-size: 14px; }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel); color: var(--accent); }
.toc-static { position: static; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 20px 32px 20px 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: 4px; top: 20px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 20px; color: var(--text-muted); }
.faq-answer p:last-child { margin: 0; }
.term-card { border-top: 3px solid var(--border); }
.term-card dt { margin-bottom: 8px; font-size: 20px; }
.term-card dd { margin: 0; color: var(--text-muted); }
.term-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.client-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); color: var(--text); }
.client-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.client-heading h3 { margin: 0; }
.client-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.client-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 13px; }
.badge, .tag { display: inline-block; max-width: 100%; padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text-muted); font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
.badge-first, .badge-recommended { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--border); }
.badge-stopped { background: var(--bg-panel-2); color: var(--text-muted); }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-card { display: block; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.article-card + .article-card { margin-top: 12px; }
.article-card:hover { border-color: var(--accent); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
.article-card h3 { margin-bottom: 10px; }
.article-card p { color: var(--text-muted); margin-bottom: 0; }
.callout { margin: 24px 0; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: var(--weight-medium); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-card); }
.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: 14px 16px; 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, .article-body table { display: block; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; }
.article-body table th, .article-body table td { min-width: 7em; padding: 14px 16px; overflow-wrap: normal; word-break: normal; border-bottom: 1px solid var(--border); }
.article-body table th { background: var(--bg-panel); color: var(--text); }
.article-body table td { background: var(--bg); color: var(--text); }
.download-note { margin-top: 40px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.download-note h2 { font-size: 24px; margin-bottom: 12px; }
.download-note .btn { margin-top: 8px; }
.dl-fab { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 40px); min-height: 48px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); font-size: 14px; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.dl-fab svg { width: 18px; height: 18px; flex-shrink: 0; }
.has-dl-fab { padding-bottom: 88px; }

/* 仅用于风格确认页的令牌样本。 */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; min-width: 0; background: var(--bg); color: var(--text); }
.swatch-color { display: block; height: 64px; }
.swatch code { display: block; padding: 10px; font-size: 12px; }
.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-surface { background: var(--surface); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--on-accent); }
.sw-dark { background: var(--accent-dark); color: var(--on-accent); }
.sw-soft { background: var(--accent-soft); color: var(--text); }
.sw-text { background: var(--text); color: var(--surface); }
.sw-muted { background: var(--text-muted); color: var(--surface); }
.sw-faint { background: var(--text-faint); color: var(--text); }
.sw-success { background: var(--success); color: var(--surface); }
.sw-warn { background: var(--warn); color: var(--text); }
.sw-error { background: var(--error); color: var(--surface); }
.sw-stone { background: var(--field-stone); color: var(--text); }
.sw-sage { background: var(--field-sage); color: var(--text); }
.sw-clay { background: var(--field-clay); color: var(--text); }
.sw-dot { background: var(--dot); color: var(--text); }
.sw-orbit { background: var(--orbit); color: var(--text); }
.sw-line { background: var(--shadow-line); color: var(--text); }
.sw-shadow { background: var(--shadow-soft); color: var(--text); }
.sw-veil { background: var(--veil); color: var(--text); }
.sw-mask { background: var(--mask-on); color: var(--surface); }
.sw-clear { background: var(--mask-off); color: var(--text); }
.spec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.type-display { font-family: var(--font-display); font-size: var(--title-size); font-weight: var(--weight-normal); line-height: 1.14; }
.type-caption { font-size: 12px; color: var(--text-muted); }
@media (max-width: 980px) {
  .orbit-tag { display: none; }
}
@media (max-width: 860px) {
  .dlg { display: none; }
  .rig { width: 640px; }
  .factline-item { padding-inline: 20px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .feature-tabs { display: block; }
  .feature-tabs [role="tablist"] { flex-direction: row; overflow-x: auto; padding: 4px; }
  .feature-tabs [role="tab"] { width: auto; min-height: 44px; border-radius: var(--r-pill); white-space: nowrap; }
  .feature-tabs .tab-panel { margin-top: 20px; }
  .feature-panel { padding: 24px; }
}
@media (max-width: 720px) {
  .factline { flex-wrap: wrap; row-gap: 14px; }
  .factline-item + .factline-item { border-left: 0; }
  .field { height: 240px; }
  .rig { transform: translateX(-50%) scale(.72); }
}
@media (max-width: 520px) {
  .cta-row { flex-direction: column; align-items: center; }
  .field { height: 190px; }
  .rig { transform: translateX(-50%) scale(.52); }
  .pillbar { padding: 6px 12px; row-gap: 4px; }
  .factline-item { padding-inline: 10px; }
  .factline-unit { font-size: 12px; }
  .factline-note { font-size: 11px; }
  .client-card { padding: 20px; }
  .client-actions .btn { width: 100%; }
  .feature-panel { padding: 20px; }
  .dl-fab { font-size: 13px; }
}
@media (max-width: 360px) {
  .rig { transform: translateX(-50%) scale(.43); }
  .field { height: 165px; }
  .factline-item { padding-inline: 7px; }
}