/* 页面切换：页头 tabs 与内容 switchboard 分开，避免样式串用。 */
.switchboard { min-width: 0; }
.switchboard [role="tablist"] { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; padding: 5px; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--bg-panel-2); color: var(--text); }
.switchboard [role="tab"] { position: relative; min-height: 44px; padding: 10px 18px; border: 1px solid var(--clear); border-radius: var(--r-ctl); background: var(--clear); color: var(--text-muted); font-family: var(--font-body); font-size: var(--text-sm); }
.switchboard [role="tab"]:hover { color: var(--text); }
.switchboard [role="tab"][aria-selected="true"] { border-color: var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow-contact); }
.switchboard [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; bottom: 3px; left: 18px; right: 18px; height: 2px; background: var(--accent); }
.switchboard [role="tabpanel"] { min-width: 0; }
.toc { position: sticky; top: var(--header-height); z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: 24px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.toc a { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--text-sm); text-decoration: none; }
.toc--static { position: static; }
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); padding-block: 4px; }
.faq__item summary { position: relative; padding: 18px 32px 18px 0; cursor: pointer; list-style: none; font-size: var(--text-base); font-weight: var(--weight-medium); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; top: 18px; right: 4px; color: var(--accent); }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding-bottom: 20px; color: var(--text-muted); max-width: 76ch; }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.term-card__category { display: block; margin-bottom: 12px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.term-card h3 { font-size: 24px; }
.term-card p { margin-top: 12px; color: var(--text-muted); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge, .tag { display: inline-block; max-width: 100%; padding: 4px 9px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text-muted); font-size: var(--text-xs); line-height: 1.5; overflow-wrap: anywhere; white-space: normal; vertical-align: middle; text-decoration: none; }
.badge--first, .badge--recommended { background: var(--accent-tint); color: var(--accent-dark); border-color: var(--border); }
.badge--retired { background: var(--bg-panel-2); color: var(--text-muted); border-style: dashed; }
.download-card { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.download-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.download-card__head > div { min-width: 0; }
.download-card__icon { width: 56px; height: 56px; flex-shrink: 0; }
.download-card h3 { font-size: 26px; }
.download-card__version { margin-top: 6px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.download-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.download-card__note { margin-top: 16px; color: var(--text-muted); font-size: var(--text-sm); }
.article-card { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--text-muted); font-size: var(--text-xs); }
.article-card h3 { font-size: 24px; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { margin-top: 14px; color: var(--text-muted); }
.article-card__more { display: inline-block; margin-top: 20px; font-size: var(--text-sm); }
.callout { margin: 24px 0; padding: 20px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: var(--accent-tint); color: var(--text); }
.callout p + p { margin-top: 8px; }
.callout--warning { border-left-color: var(--warn); background: var(--bg-panel); color: var(--text); }
.callout--error { border-left-color: var(--error); background: var(--bg-panel); color: var(--text); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-panel); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--text-sm); }
.data-table th, .data-table td, .prose table th, .prose table td { min-width: 7em; padding: 14px 18px; border-bottom: 1px solid var(--border); overflow-wrap: normal; word-break: normal; vertical-align: top; }
.data-table th, .prose table th { background: var(--bg-panel-2); 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; max-width: 100%; min-width: 0; border-collapse: collapse; text-align: left; }
.prose table code, .data-table code { overflow-wrap: anywhere; word-break: normal; }
.dl-fab { position: fixed; z-index: 25; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); min-height: 52px; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); color: var(--text); box-shadow: var(--shadow-menu); text-decoration: none; font-size: var(--text-sm); }
.dl-fab svg { width: 20px; height: 20px; color: var(--accent); }
.dl-fab:hover { border-color: var(--accent); color: var(--accent); }
.article-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg-panel-2); color: var(--text); }
.article-download > div { min-width: 0; flex: 1 1 240px; }
.article-download h2 { margin: 0; font-size: 26px; }
.article-download p { margin-top: 10px; color: var(--text-muted); }

.hero { padding: 36px var(--gutter) 0; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 4px 12px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-size: 13px; line-height: 1.3; letter-spacing: .01em; }
.eyebrow__dot { width: 6px; height: 6px; border-radius: var(--r-circle); background: var(--accent); }
.hero__title { margin-bottom: 22px; font-size: clamp(28px,2.6vw + 12px,48px); line-height: 1.16; font-weight: var(--weight-normal); letter-spacing: -.02em; }
.hero__line { display: block; }
.cta { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.hero__lede { max-width: 760px; margin: 0 auto 16px; font-size: var(--text-base); line-height: 1.6; color: var(--text-muted); }
.hero__lede strong { color: var(--text); }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin: 0 0 26px; padding: 0; list-style: none; }
.platforms__item + .platforms__item { border-left: 1px solid var(--border); }
.platforms__link { display: inline-flex; align-items: center; gap: 7px; min-height: 22px; padding-inline: 16px; font-size: 13.5px; line-height: 1; color: var(--text-muted); text-decoration: none; }
.platforms__link svg { width: 14px; height: 14px; }
.platforms__link:hover { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 620px; margin: 0 auto 14px; }
.fact { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fact__num { font-size: 30px; font-weight: var(--weight-normal); line-height: 1.1; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact__unit { margin-left: 2px; font-size: var(--text-base); letter-spacing: 0; }
.fact__label { font-size: var(--text-sm); line-height: 1.5; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 26px; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.trust__item { display: inline-flex; align-items: center; gap: 6px; }
.trust__item svg { width: 13px; height: 13px; }
.stage { max-width: var(--container); margin-inline: auto; padding: 12px; text-align: left; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.stage__field { position: relative; overflow: hidden; padding: 26px 110px 30px 24px; border-radius: var(--r-field); background: linear-gradient(135deg,var(--field-a),var(--field-b)); color: var(--text); }
.stage__field::before, .tile__field::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px,var(--clear) 1.3px); background-size: 14px 14px; pointer-events: none; }
.stage__field::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 16% 0%,var(--field-glow),var(--clear) 70%); pointer-events: none; }
.desk { position: relative; z-index: 1; width: 820px; height: 241px; margin-left: auto; }
.menubar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px; background: var(--surface-bar); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-field); box-shadow: var(--shadow-contact); font-size: 13px; line-height: 1; }
.menubar__menus { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.menubar__apple { width: 13px; height: 13px; }
.menubar__app { font-weight: var(--weight-strong); }
.menubar__status { display: flex; align-items: center; gap: 4px; }
.status-item { display: flex; align-items: center; justify-content: center; width: 26px; height: 22px; border-radius: var(--r-ctl); }
.status-item svg { width: 15px; height: 15px; }
.status-item--tray { width: 30px; background: var(--bg-panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-mono); font-weight: var(--weight-strong); }
.menu { position: absolute; padding: 5px 0; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); color: var(--text); box-shadow: var(--shadow-menu); font-size: 13px; line-height: 1; }
.menu--tray { top: 30px; right: 131px; z-index: 3; width: 236px; }
.menu--sub { top: 140px; right: -8px; z-index: 4; width: 144px; }
.menu__item { position: relative; display: flex; align-items: center; justify-content: space-between; height: 23px; margin: 0 5px; padding: 0 10px 0 24px; border-radius: var(--r-ctl); white-space: nowrap; }
.menu__item--open { background: var(--bg-panel-2); color: var(--text); }
.menu__check { position: absolute; left: 7px; color: var(--accent); }
.menu__chev { color: var(--text-muted); }
.menu__sep { height: 1px; margin: 4px 10px; background: var(--hairline); }
.term { position: absolute; left: 22px; top: 54px; z-index: 1; width: 400px; overflow: hidden; background: var(--surface-term); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-contact); }
.term__bar { position: relative; display: flex; align-items: center; height: 28px; padding: 0 12px; background: var(--bg-panel); color: var(--text-muted); border-bottom: 1px solid var(--border); }
.term__dots { display: flex; gap: 7px; }
.term__dot { width: 11px; height: 11px; border-radius: var(--r-circle); }
.term__dot--close { background: var(--error); }
.term__dot--min { background: var(--warn); }
.term__dot--max { background: var(--success); }
.term__title { position: absolute; left: 0; right: 0; text-align: center; font-size: var(--text-xs); line-height: 1; pointer-events: none; }
.term__body { padding: 12px 16px 14px; border: 0; border-radius: var(--r-ctl); background: var(--surface-term); color: var(--text); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.55; white-space: pre; }
.term__prompt, .term__out { color: var(--text-muted); }
.term__cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--text-muted); }
.paths { max-width: 1180px; margin-inline: auto; padding: 104px var(--gutter) 120px; }
.paths__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.paths__title { margin-bottom: 14px; font-size: var(--title-h2); line-height: 1.25; }
.paths__title em { color: var(--accent); font-style: normal; }
.paths__sub { font-size: var(--text-base); line-height: 1.7; color: var(--text-muted); }
.paths__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.tile { min-width: 0; display: flex; flex-direction: column; padding: 32px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-panel); }
.tile__mark { width: 8px; height: 8px; margin-bottom: 22px; background: var(--accent); }
.tile__title { margin-bottom: 12px; font-size: 26px; line-height: 1.25; letter-spacing: -.015em; }
.tile__text { margin-bottom: 14px; font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.tile__path { display: block; margin-bottom: 26px; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.5; letter-spacing: .03em; overflow-wrap: anywhere; }
.tile__path-key { margin-right: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.tile__field { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 260px; margin-top: auto; border-radius: var(--r-field); background: linear-gradient(150deg,var(--field-a),var(--field-b)); color: var(--text); }
.paths__grid > .tile:nth-child(n+3) .tile__field { background: linear-gradient(150deg,var(--field-c),var(--field-d)); color: var(--text); }
.frag { position: relative; z-index: 1; width: min(360px,86%); min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); color: var(--text); box-shadow: var(--shadow-menu); font-size: 13px; line-height: 1.4; }
.frag__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: -2px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); font-size: 12.5px; color: var(--text-muted); }
.frag__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: var(--r-ctl); }
.radio + .radio { margin-top: 2px; }
.radio--on { background: var(--accent-tint); color: var(--text); }
.radio__ring { position: relative; flex-shrink: 0; width: 14px; height: 14px; border: 1px solid var(--border-strong); border-radius: var(--r-circle); background: var(--surface); }
.radio--on .radio__ring { border-color: var(--accent); }
.radio--on .radio__ring::after { content: ""; position: absolute; inset: 3px; border-radius: var(--r-circle); background: var(--accent); }
.code { padding: 0; border: 0; border-radius: var(--r-ctl); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; white-space: pre; background: var(--surface); color: var(--text); }
.code__s { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: 10px; }
.form-row + .form-row { margin-top: 8px; }
.form-row__label { text-align: right; font-size: 12.5px; color: var(--text-muted); }
.input { display: flex; align-items: center; min-height: 28px; min-width: 0; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg); color: var(--text-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.input--mono { font-family: var(--font-mono); font-size: var(--text-xs); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.checkbox { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.checkbox__box { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 14px; height: 14px; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); }
.mini-btns { display: flex; gap: 6px; }
.mini-btn { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--surface); color: var(--text); font-size: var(--text-xs); }
.mini-btn--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 14px; border-bottom: 1px solid var(--hairline); }
.toggle-row__name { font-size: 13.5px; }
.switch { position: relative; flex-shrink: 0; width: 34px; height: 20px; border-radius: var(--r-pill); background: var(--accent); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: var(--r-circle); background: var(--surface); box-shadow: var(--shadow-contact); }
.notes { padding-top: 12px; }
.note { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.note + .note { margin-top: 6px; }
.note__symbol { flex-shrink: 0; color: var(--text); }
.note strong { color: var(--text); }

/* 预览色板采用独立类，禁止行内样式。 */
.swatches { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.swatch { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); color: var(--text); overflow: hidden; }
.swatch__paint { display: block; height: 64px; border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 10px 12px; font-size: var(--text-xs); color: var(--text); }
.paint-bg { background: var(--bg); }
.paint-panel { background: var(--bg-panel); }
.paint-panel2 { background: var(--bg-panel-2); }
.paint-border { background: var(--border); }
.paint-border-strong { background: var(--border-strong); }
.paint-surface { background: var(--surface); }
.paint-bar { background: var(--surface-bar); }
.paint-term { background: var(--surface-term); }
.paint-accent { background: var(--accent); }
.paint-dark { background: var(--accent-dark); }
.paint-tint { background: var(--accent-tint); }
.paint-on { background: var(--on-accent); }
.paint-text { background: var(--text); }
.paint-muted { background: var(--text-muted); }
.paint-faint { background: var(--text-faint); }
.paint-success { background: var(--success); }
.paint-warn { background: var(--warn); }
.paint-error { background: var(--error); }
.paint-a { background: var(--field-a); }
.paint-b { background: var(--field-b); }
.paint-c { background: var(--field-c); }
.paint-d { background: var(--field-d); }
.paint-glow { background: var(--field-glow); }
.paint-dot { background: var(--dot); }
.paint-hairline { background: var(--hairline); }
.paint-veil { background: var(--veil); }
.paint-clear { background: var(--clear); }
.preview-h1 { font-size: var(--title-h1); line-height: 1.16; font-family: var(--font-display); }
.preview-footer { margin-top: 48px; }
.preview-tabs { margin-top: 24px; }
@media (max-width: 1180px) {
  .stage__field { padding-right: 60px; }
}
@media (max-width: 1000px) {
  .stage__field { padding: 24px 24px 28px; }
  .term { display: none; }
  .desk { width: 600px; margin-inline: auto; }
  .menubar__menus > :nth-child(n+6) { display: none; }
}
@media (max-width: 860px) {
  .paths__grid { grid-template-columns: minmax(0,1fr); }
  .swatches { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .hero__title { font-size: clamp(24px,4.1vw,30px); }
}
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .eyebrow { font-size: 11px; }
  .cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .platforms { row-gap: 10px; }
  .platforms__link { padding-inline: 10px; }
  .facts { gap: 8px; }
  .fact__label { font-size: 13px; }
  .trust { gap: 6px 14px; font-size: 10px; }
  .stage { padding: 8px; }
  .stage__field { padding: 18px 12px 22px; }
  .desk { width: 100%; }
  .menubar__menus > :nth-child(n+3) { display: none; }
  .status-item:not(.status-item--tray) { display: none; }
  .menu--tray { right: 11px; width: min(236px,calc(100% - 22px)); }
  .menu--sub { display: none; }
  .paths { padding-top: 72px; padding-bottom: 88px; }
  .tile { padding: 24px; }
  .tile__title { font-size: 22px; }
  .frag { padding: 14px 12px; width: 92%; }
  .form-row { grid-template-columns: 64px minmax(0,1fr); gap: 6px; }
  .swatches { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .switchboard [role="tab"] { flex: 1 1 auto; padding-inline: 12px; }
  .toc { position: static; }
  .dl-fab { right: 16px; bottom: 16px; }
  .download-card, .article-card, .term-card, .article-download { padding: 22px; }
}