/* 拱门测评台：按已确认的首屏稿工程化，不使用投影或动画。 */
.hero {
  position: relative; margin-top: 12px; height: var(--hero-h);
  background: var(--accent-dark); color: var(--on-dark);
  border-radius: var(--r-hero); overflow: hidden;
}
.hero :focus-visible { outline-color: var(--on-dark); }
.hero-copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start;
  height: 100%; width: min(680px, 54%); padding: 84px 0 56px 88px;
}
.badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  max-width: 100%; padding: 6px 16px 6px 6px;
  border: 1.5px solid var(--on-dark-edge); border-radius: var(--r-pill);
  font-size: var(--fs-nav-small); font-weight: var(--weight-medium); color: var(--on-dark);
}
.badge:hover { background: var(--on-dark-fill); color: var(--on-dark); }
.badge-star {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 28px; border: 1.5px solid var(--warn);
  border-radius: var(--r-pill); color: var(--warn);
}
.badge-star svg { width: 13px; height: 13px; }
.badge .chev { width: 14px; height: 14px; flex-shrink: 0; color: var(--on-dark-soft); }
.hero-title {
  margin: 34px 0 24px; font-size: var(--fs-h1); font-weight: var(--weight-display);
  line-height: 1.14; letter-spacing: var(--tracking-title); color: var(--on-dark);
}
.t-line { display: block; }
.t-soft { color: var(--on-dark-soft); }
.hero-lede { margin: 0 0 36px; max-width: 520px; font-size: var(--fs-lede); line-height: 1.72; color: var(--on-dark-soft); }
.hero-lede strong { color: var(--on-dark); font-weight: var(--weight-strong); }
.proto { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.proto-label { margin-right: 6px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); color: var(--on-dark-mute); }
.proto-chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px;
  border: 1px solid var(--on-dark-line); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-small); color: var(--on-dark-soft);
}
.platforms {
  margin-top: auto; width: 100%; max-width: 540px; padding-top: 22px;
  border-top: 1px solid var(--on-dark-hair); display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.plat-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); color: var(--on-dark-mute); }
.plat-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.plat { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-nav-small); font-weight: var(--weight-ui); color: var(--on-dark); border-radius: var(--r-pill); }
.plat-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: var(--r-round);
  background: var(--on-dark-fill); color: var(--on-dark); border: 1px solid var(--on-dark-hair);
}
.plat-ico svg { width: 16px; height: 16px; }
.plat:hover .plat-ico { background: var(--on-dark-fill-2); color: var(--on-dark); }
.hero-stage { position: absolute; z-index: 1; top: 0; bottom: 0; right: 72px; width: 560px; }
.arch-halo {
  position: absolute; bottom: 0; left: 50%; width: 568px; height: 556px; margin-left: -284px;
  border: 1px solid var(--on-dark-hair); border-bottom: 0; border-radius: var(--r-pill) var(--r-pill) 0 0;
}
.arch {
  position: absolute; bottom: 0; left: 50%; width: 500px; height: 520px; margin-left: -250px;
  background: var(--accent); color: var(--on-dark); border-radius: var(--r-pill) var(--r-pill) 0 0;
}
.rig { position: absolute; left: 50%; bottom: 56px; width: 356px; margin-left: -188px; transform: rotate(-3deg); transform-origin: 50% 100%; }
.plate { position: absolute; inset: 0; border-radius: var(--r-card); }
.plate-far { background: var(--text-muted); color: var(--on-dark); transform: translate(20px, 20px); }
.plate-near { background: var(--bg-panel-2); color: var(--text); transform: translate(10px, 10px); }
.win { position: relative; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; font-size: var(--fs-ui); line-height: 1.4; }
.win-bar { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; height: 38px; padding: 0 14px; background: var(--bg-panel); color: var(--text-muted); border-bottom: 1px solid var(--border); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 9px; height: 9px; flex-shrink: 0; border-radius: var(--r-round); background: var(--border-strong); }
.win-title { text-align: center; font-size: var(--fs-small); font-weight: var(--weight-semibold); color: var(--text-muted); }
.win-close { justify-self: end; width: 12px; height: 12px; }
.win-body { padding: 0 16px; }
.win-group { display: flex; align-items: center; gap: 8px; height: 28px; margin-top: 4px; font-size: var(--fs-caption); font-weight: var(--weight-semibold); color: var(--text-muted); }
.win-group::after { content: ""; flex: 1; height: 1px; background: var(--bg-panel-2); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; border-top: 1px solid var(--bg-panel-2); }
.set-name { font-weight: var(--weight-medium); white-space: nowrap; }
.field { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; height: 24px; min-width: 66px; padding: 0 10px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-field); font-size: var(--fs-small); white-space: nowrap; }
.field.is-mono { font-family: var(--font-mono); font-size: var(--fs-xs); }
.field svg { width: 11px; height: 11px; color: var(--text-muted); }
.toggle { position: relative; flex-shrink: 0; width: 32px; height: 18px; border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border-strong); }
.toggle .knob { position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: var(--r-round); background: var(--bg); border: 1px solid var(--border-strong); }
.toggle.is-on { background: var(--success); color: var(--on-dark); border-color: var(--success); }
.toggle.is-on .knob { left: 15px; border-color: var(--bg); }
.radio { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); white-space: nowrap; }
.radio-ring { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex-shrink: 0; border-radius: var(--r-round); border: 1.5px solid var(--accent); }
.radio-ring::after { content: ""; width: 6px; height: 6px; border-radius: var(--r-round); background: var(--accent); }
.code { margin: 8px 16px 0; padding: 9px 12px 10px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-inset); font-family: var(--font-mono); font-size: var(--fs-code); line-height: 1.55; }
.code-head { display: block; margin-bottom: 3px; font-size: var(--fs-micro); color: var(--text-muted); }
.code-line { display: block; white-space: pre; }
.code .k { color: var(--accent); }
.code .p { color: var(--text-muted); }
.code .n { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.win-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 11px 16px 12px; border-top: 1px solid var(--bg-panel-2); }
.win-state { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); color: var(--text-muted); }
.dot-ok { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-round); background: var(--success); }
.win-btns { display: flex; gap: 8px; }
.wbtn { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: var(--weight-semibold); }
.wbtn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.wbtn-solid { background: var(--accent-dark); color: var(--on-dark); }
.ledger { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ledger-item { text-align: center; padding-inline: 20px; min-width: 0; }
.ledger-item + .ledger-item { border-left: 1px solid var(--border); }
.ledger-key { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); color: var(--text-muted); }
.ledger-val { display: block; margin-top: 6px; font-size: var(--fs-fact); font-weight: var(--weight-strong); letter-spacing: var(--tracking-tight); }

/* 测评档案与平台页签。无脚本时正文面板仍然可读。 */
.tabs { min-width: 0; }
.tab-list, [role="tablist"] { display: flex; align-items: center; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; }
.tab, [role="tab"] {
  position: relative; flex-shrink: 0; min-height: 44px; padding: 12px 20px;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-nav); font-weight: var(--weight-semibold); text-align: left;
}
.tab:hover, [role="tab"]:hover { background: var(--bg-panel); color: var(--text); }
.tab[aria-selected="true"], [role="tab"][aria-selected="true"] { background: var(--accent-dark); color: var(--on-dark); border-color: var(--accent-dark); }
.tab-panel { margin-top: 24px; min-width: 0; }
.tab-panel:focus-visible { outline-offset: 6px; }
.archive-tabs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding: 40px; border-radius: var(--r-plate); background: var(--text); color: var(--on-dark); }
.archive-tabs [role="tablist"] { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; overflow: visible; }
.archive-tabs [role="tab"] { width: 100%; border: 0; background: var(--clear); color: var(--on-dark-soft); border-radius: var(--r-inset); padding: 16px 20px; }
.archive-tabs [role="tab"]:hover { background: var(--on-dark-fill); color: var(--on-dark); }
.archive-tabs [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--text); }
.archive-tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: 14px auto 14px 0; width: 3px; background: var(--accent-dark); border-radius: var(--r-pill); }
.archive-tabs .tab-panel { margin: 0; padding: 32px; border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.client-line { display: block; margin-bottom: 20px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.setting-path { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.setting-path .eyebrow { margin-bottom: 10px; }
.path-pill { display: inline-block; max-width: 100%; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--fs-ui); overflow-wrap: anywhere; }
.toc { position: sticky; top: 16px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); overscroll-behavior-x: contain; }
.toc a { flex-shrink: 0; padding: 8px 16px; min-height: 44px; border-radius: var(--r-pill); font-size: var(--fs-label); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel); color: var(--accent-dark); }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 20px 24px; list-style: none; font-weight: var(--weight-semibold); cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; flex-shrink: 0; color: var(--accent); font-family: var(--font-mono); font-size: var(--fs-h3); }
.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-dark); }
.term-card dt { margin-bottom: 12px; font-size: var(--fs-h3); font-weight: var(--weight-bold); }
.term-card dd { margin: 0; color: var(--text-muted); }
.term-card .mono { display: block; margin-bottom: 14px; font-size: var(--fs-xs); color: var(--text-muted); }
.badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag, .client-badge {
  display: inline-block; max-width: 100%; padding: 5px 12px; border: 1px solid var(--border);
  border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted);
  font-size: var(--fs-xs); font-weight: var(--weight-semibold); line-height: 1.5;
  white-space: normal; overflow-wrap: anywhere;
}
.badge-first { border-color: var(--accent-dark); background: var(--accent-dark); color: var(--on-dark); }
.badge-recommended { border-color: var(--accent); background: var(--bg); color: var(--accent); }
.badge-retired { border-color: var(--border-strong); background: var(--bg-panel-2); color: var(--text-muted); }
.client-card { padding: 32px; }
.client-card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.client-card-head h3 { margin: 0; }
.client-card .client-meta { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-muted); }
.client-card .cta-row { margin-top: 24px; }
.client-card-note { margin-top: 20px; margin-bottom: 0; color: var(--text-muted); font-size: var(--fs-label); }
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; font-size: var(--fs-xs); color: var(--text-muted); }
.article-card h3 { font-size: var(--fs-subtitle); }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { color: var(--text-muted); font-size: var(--fs-nav); }
.article-card .text-link { align-self: flex-start; margin-top: auto; font-size: var(--fs-label); }
.callout { margin: 28px 0; padding: 24px 28px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-inset); background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 10px; font-weight: var(--weight-bold); }
.callout-error { border-left-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-inset); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--fs-label); }
.data-table th, .data-table td, .prose th, .prose td, .article-body th, .article-body td {
  min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--border);
  overflow-wrap: normal; word-break: normal; vertical-align: top;
}
.data-table th, .prose th, .article-body th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose td, .article-body td { background: var(--bg); color: var(--text); }
.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; }
.prose table code, .article-body table code, .data-table code { overflow-wrap: anywhere; white-space: normal; }
.article-download { margin-top: 48px; padding: 32px; border-radius: var(--r-card); background: var(--accent-dark); color: var(--on-dark); }
.article-download p { color: var(--on-dark-soft); }
.article-download h2 { margin-top: 0; font-size: var(--fs-h3); }
.article-download a.btn { text-decoration: none; }
.article-download a.btn-solid { color: var(--accent-dark); }
.article-download a.btn-ghost { color: var(--on-dark); }
.dl-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 20;
  display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  min-height: 56px; padding: 12px 22px; border: 1px solid var(--on-dark-line);
  border-radius: var(--r-pill); background: var(--accent-dark); color: var(--on-dark);
}
.dl-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
.dl-fab strong { display: block; font-size: var(--fs-label); }
.dl-fab small { display: block; font-size: var(--fs-xs); color: var(--on-dark-soft); }
.dl-fab:hover { background: var(--accent); color: var(--on-dark); }
.has-dl-fab .site-footer { padding-bottom: 112px; }

/* 预览色板只使用命名令牌。 */
.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-inset); font-size: var(--fs-xs); min-width: 0; }
.swatch code { display: block; margin-top: 10px; }
.swatch-fill { height: 64px; border: 1px solid var(--border); border-radius: var(--r-field); }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel-2 { background: var(--bg-panel-2); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-border-strong { background: var(--border-strong); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--on-dark); }
.sw-navy { background: var(--accent-dark); color: var(--on-dark); }
.sw-text { background: var(--text); color: var(--on-dark); }
.sw-muted { background: var(--text-muted); color: var(--on-dark); }
.sw-success { background: var(--success); color: var(--on-dark); }
.sw-warn { background: var(--warn); color: var(--text); }
.sw-error { background: var(--error); color: var(--on-dark); }
.sw-white { background: var(--on-dark); color: var(--text); }
.sw-soft { background: var(--on-dark-soft); color: var(--text); }
.sw-mute { background: var(--on-dark-mute); color: var(--text); }
.sw-dark-ground { background: var(--accent-dark); color: var(--on-dark); padding: 8px; border-radius: var(--r-field); }
.sw-edge { background: var(--on-dark-edge); color: var(--text); }
.sw-line { background: var(--on-dark-line); color: var(--on-dark); }
.sw-hair { background: var(--on-dark-hair); color: var(--on-dark); }
.sw-fill { background: var(--on-dark-fill); color: var(--on-dark); }
.sw-fill-2 { background: var(--on-dark-fill-2); color: var(--on-dark); }
.sw-veil { background: var(--veil); color: var(--on-dark); }
.sw-clear { background: var(--clear); color: var(--text); }
.preview-dark { padding: 24px; border-radius: var(--r-card); background: var(--accent-dark); color: var(--on-dark); }
.preview-spacer { margin-top: 24px; }
@media (max-width: 1240px) {
  .hero-copy { padding-left: 64px; }
  .hero-stage { right: 32px; width: 500px; }
  .arch-halo, .arch { transform: scale(.92); transform-origin: 50% 100%; }
}
@media (max-width: 1040px) {
  .hero { height: auto; }
  .hero-copy { width: 100%; height: auto; padding: 56px 40px 40px; }
  .platforms { margin-top: 32px; }
  .hero-stage { position: relative; right: auto; width: 100%; height: 560px; }
  .arch-halo, .arch { transform: none; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .ledger-item:nth-child(3) { border-left: 0; }
  .archive-tabs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  .archive-tabs [role="tablist"] { flex-direction: row; overflow-x: auto; align-items: center; }
  .archive-tabs [role="tab"] { width: auto; white-space: nowrap; border-radius: var(--r-pill); }
  .archive-tabs [role="tab"][aria-selected="true"]::before { inset: auto 20px 5px; width: auto; height: 3px; }
}
@media (max-width: 720px) {
  .hero { border-radius: var(--r-plate); }
  .hero-copy { padding: 40px 22px 32px; }
  .hero-title { font-size: var(--fs-mobile-h1); margin: 26px 0 18px; letter-spacing: var(--tracking-cjk); }
  .hero-lede { font-size: var(--fs-mobile-body); }
  .hero-stage { height: 500px; overflow: hidden; }
  .arch-halo { width: 420px; height: 440px; margin-left: -210px; }
  .arch { width: 360px; height: 420px; margin-left: -180px; }
  .rig { width: 316px; margin-left: -168px; bottom: 36px; }
  .set-name { font-size: var(--fs-xs); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger-item + .ledger-item { border-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .badge { gap: 8px; font-size: var(--fs-xs); }
  .badge-star { width: 28px; }
  .hero .cta-row { gap: 10px; }
  .hero .btn { min-height: 48px; padding: 11px 18px; font-size: var(--fs-label); }
  .hero-lede { margin-bottom: 24px; }
  .proto { gap: 6px; margin-top: 22px; }
  .proto-chip { padding-inline: 9px; font-size: var(--fs-xs); }
  .platforms { gap: 14px; }
  .plat-list { gap: 12px 18px; }
  .plat { gap: 6px; font-size: var(--fs-small); }
  .hero-stage { height: 480px; }
  .rig { width: min(316px, calc(100% - 42px)); margin-left: 0; left: 16px; right: 26px; margin-inline: auto; }
  .win-bar { grid-template-columns: 40px 1fr 20px; padding-inline: 10px; }
  .win-title { font-size: var(--fs-xs); }
  .win-body { padding-inline: 12px; }
  .set-row { gap: 6px; }
  .set-name, .radio { font-size: var(--fs-code); }
  .field { font-size: var(--fs-code); padding-inline: 6px; }
  .code { margin-inline: 12px; padding-inline: 8px; overflow-x: auto; }
  .archive-tabs { padding: 16px; }
  .archive-tabs .tab-panel { padding: 24px 20px; }
  .faq-item > summary { padding: 18px 20px; }
  .faq-answer { padding-inline: 20px; }
  .client-card, .article-download { padding: 24px; }
  .dl-fab { right: 16px; bottom: 16px; }
}