/* PadCheck · site styles（tokens、页头页脚、按钮、测试区外框、摇杆图、广告位、正文） */
/* ============ tokens ============ */
:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --sunken: #eeeeea;
  --line: #e3e2dc;
  --line-2: #d0cfc7;
  --ink: #141416;
  --ink-2: #52524c;
  --ink-3: #8a8a82;
  --acc: #2b4cff;           /* 唯一强调色：钴蓝 */
  --acc-ink: #ffffff;
  --acc-soft: rgba(43, 76, 255, .09);
  --pass: #146e3c;
  --warn: #865208;
  --fail: #b02f1b;
  --shadow: 0 14px 34px rgba(20, 20, 22, .08);
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sans: 'Instrument Sans', -apple-system, 'PingFang SC', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}
[data-theme="dark"] {
  --bg: #0e0f11;
  --surface: #16171a;
  --surface-2: #1b1c20;
  --sunken: #111214;
  --line: #26272c;
  --line-2: #383940;
  --ink: #ececE8;
  --ink-2: #a9a9a2;
  --ink-3: #74746e;
  --acc: #7d90ff;
  --acc-ink: #0b0d1a;
  --acc-soft: rgba(125, 144, 255, .13);
  --pass: #45c27c;
  --warn: #e2a640;
  --fail: #f06d58;
  --shadow: 0 14px 34px rgba(0, 0, 0, .4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background .2s; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }

/* ============ header ============ */
header.site { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
header.site .wrap { height: 62px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.015em; white-space: nowrap; }
.logo svg { flex: none; }
.logo span em { font-style: normal; color: var(--ink-3); font-weight: 500; }
nav.main { display: flex; gap: 2px; align-items: center; }
nav.main > a, .dd > button { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; color: var(--ink-2); padding: 7px 12px; border-radius: var(--r-sm); font-weight: 500; }
nav.main > a:hover, .dd > button:hover, .dd.open > button { color: var(--ink); background: var(--sunken); }
nav.main > a.cur { color: var(--ink); }
nav.main > a.cur::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); margin-left: 2px; }
.dd { position: relative; }
.dd > button svg { transition: transform .15s; }
.dd.open > button svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 8px); left: -6px; min-width: 268px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: none; }
.dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.dd:hover .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: grid; gap: 1px; padding: 9px 11px; border-radius: var(--r-sm); }
.dd-menu a:hover { background: var(--surface-2); }
.dd-menu a b { font-weight: 600; font-size: 14px; }
.dd-menu a small { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.dd-menu .soon { padding: 8px 11px 6px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); margin-top: 4px; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.burger:hover { background: var(--sunken); }
.mnav { display: none; }
@media (max-width: 820px) {
  nav.main { display: none; }
  .burger { display: inline-flex; }
  header.site.open .mnav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
  .mnav .nh { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 6px; }
  .mnav a { display: block; padding: 9px 0; font-size: 15.5px; border-bottom: 1px solid var(--line); }
  .mnav a:last-child { border-bottom: 0; }
}

/* ============ intro ============ */
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-top: 34px; padding-bottom: 22px; flex-wrap: wrap; }
.intro h1 { font-size: 38px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.intro .lede { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; max-width: 640px; line-height: 1.55; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; font-size: 13.5px; color: var(--ink-2); padding-bottom: 4px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.trust svg { color: var(--ink-3); }
@media (max-width: 640px) { .intro { padding-top: 24px; padding-bottom: 16px; } .intro h1 { font-size: 30px; } .intro .lede { font-size: 15.5px; } .trust { gap: 6px 14px; font-size: 13px; } }

/* ============ buttons / chips ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 14px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.btn.pri:hover { filter: brightness(1.06); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sunken); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); padding: 5px 8px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.pass { color: var(--pass); }
.chip.warn { color: var(--warn); }
.chip.fail { color: var(--fail); }
.chip.plain::before { display: none; }

/* ---- a11y：状态词与 Provisional 标签保证 ≥4.5:1（与主题色共用 token） ---- */
body .st { background: var(--sunken); color: var(--ink-2); }
body .st.set { background: var(--sunken); color: var(--ink); }
body .st.prov { background: var(--sunken); color: var(--warn); }
body .ok { background: transparent; color: var(--pass); }
body .no { background: transparent; color: var(--ink-2); }
body .mb { background: transparent; color: var(--ink-2); }

/* ============ tester card ============ */
.tester { padding-bottom: 0; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.02); }

.dev { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dev-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pl { font: 600 12px/1 var(--mono); padding: 7px 9px; border-radius: 7px; background: var(--ink); color: var(--bg); flex: none; }
.dev-id { display: grid; min-width: 0; }
.dev-id b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-id span { font: 12px/1.5 var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-r { display: flex; align-items: center; gap: 14px; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pass) 18%, transparent); }
[data-state="waiting"] .conn i, [data-state="notfound"] .conn i { background: var(--ink-3); box-shadow: none; animation: blink 1.6s ease-in-out infinite; }
[data-state="check"] .conn i { background: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 640px) { .dev { padding: 12px 14px; } .dev-r { width: 100%; justify-content: space-between; } .dev-r .btn { flex: 1; } }

/* banners inside card */
.band { display: none; border-bottom: 1px solid var(--line); padding: 12px 18px; font-size: 14px; }
.tip { background: var(--sunken); color: var(--ink); align-items: center; gap: 10px; }
.tip svg { color: var(--warn); flex: none; }
.tip a { color: var(--acc); font-weight: 500; white-space: nowrap; }
[data-browser="firefox"] .tip { display: flex; }
[data-state="waiting"] .tip, [data-state="notfound"] .tip { display: none; }

/* panels grid（各页自己定 grid-template） */
.pgrid { position: relative; display: grid; gap: 1px; background: var(--line); }
.cell { background: var(--surface); padding: 18px; min-width: 0; }
.cell-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 24px; }
.cell-h h3 { font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.stick .cell-h { flex-wrap: wrap; gap: 6px 10px; }
.cell-h h3 small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.cell-h .reset { font-size: 12px; color: var(--ink-3); padding: 2px 4px; }
.cell-h .reset:hover { color: var(--ink); }

/* waiting overlay */
.wait { display: none; grid-column: 1 / -1; z-index: 3; place-items: center; padding: 24px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(1.5px); }
[data-state="waiting"] .wait, [data-state="notfound"] .wait { display: grid; }
[data-state="waiting"] .cell, [data-state="notfound"] .cell { pointer-events: none; }
[data-state="waiting"] .cell > *, [data-state="notfound"] .cell > * { opacity: .5; }
.wait-box { text-align: center; max-width: 520px; display: grid; justify-items: center; gap: 10px; }
.press { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--ink); font: 600 18px/1 var(--mono); margin-bottom: 6px; }
.press::before, .press::after { content: ''; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--acc); animation: ring 2.2s ease-out infinite; opacity: 0; }
.press::after { animation-delay: 1.1s; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
.wait-box h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; line-height: 1.25; }
.wait-box p { color: var(--ink-2); font-size: 14.5px; }
.wait-box .works { font-size: 13px; color: var(--ink-3); }
.wait-box .nf-link { font-size: 14px; color: var(--acc); font-weight: 500; margin-top: 4px; }
.trouble { display: none; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-top: 6px; box-shadow: var(--shadow); }
[data-state="notfound"] .trouble { display: block; }
[data-state="notfound"] .nf-link { display: none; }
.trouble h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.trouble ol { margin-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 5px; }
.trouble ol b { color: var(--ink); font-weight: 600; }
.trouble a { display: inline-block; margin-top: 10px; color: var(--acc); font-size: 14px; font-weight: 500; }

/* stick plots */
.plot { display: block; width: 100%; max-width: 204px; margin: 0 auto; aspect-ratio: 1; overflow: visible; }
.p-ring { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; }
.p-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.p-limit { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2.5 2.5; opacity: .8; }
.p-limit.w { stroke: var(--warn); opacity: .55; }
.p-trace { fill: none; stroke: var(--acc); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.p-trace.full { fill: var(--acc-soft); }
.p-trail { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.p-vec { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.p-dot { fill: var(--acc); stroke: var(--surface); stroke-width: 2; }
.p-dot.pressed { fill: var(--ink); }
.readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 14px; }
.readout div { display: grid; gap: 1px; }
.readout dt { font-size: 12px; color: var(--ink-3); }
.readout dd { font: 500 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend { margin-top: 10px; font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.legend i { width: 14px; border-top: 1px dashed var(--ink-3); }
@media (max-width: 640px) {
  .cell { padding: 14px; }
  .readout { grid-template-columns: 1fr 1fr; gap: 6px 4px; }
  .legend { display: none; }
}

/* ============ ads（设计标注） ============ */
.ad-gap { position: relative; height: 150px; }
.ad-gap .dim { position: absolute; left: 50%; top: 12px; bottom: 12px; border-left: 1px dashed var(--acc); opacity: .7; }
.ad-gap .dim::before, .ad-gap .dim::after { content: ''; position: absolute; left: -5px; width: 9px; border-top: 1px solid var(--acc); }
.ad-gap .dim::before { top: 0; } .ad-gap .dim::after { bottom: 0; }
.ad-gap span { position: absolute; left: calc(50% + 10px); top: 50%; transform: translateY(-50%); font: 500 11.5px/1.4 -apple-system, 'PingFang SC', sans-serif; color: var(--acc); white-space: nowrap; }
.no-ads .ad-gap { height: 72px; }
.no-ads .ad-gap .dim, .no-ads .ad-gap span { display: none; }
.ad { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); text-align: center; padding: 16px;
  background: var(--surface-2); }
.ad .al { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ad .an { font: 500 12px/1.5 -apple-system, 'PingFang SC', sans-serif; color: var(--acc); }
.no-ads .ad { display: none; }
.ad-a { min-height: 280px; }
.ad-b { min-height: 250px; margin: 40px 0; }
.ad-c { min-height: 600px; position: sticky; top: 56px; }
@media (max-width: 640px) { .ad-a { min-height: 250px; } }

/* ============ content ============ */
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 72px; padding-bottom: 96px; }
.no-ads .body-grid { padding-top: 24px; }
.rail { display: none; }
@media (min-width: 1280px) {
  .body-grid { grid-template-columns: minmax(0, 740px) 300px; justify-content: space-between; gap: 64px; }
  .rail { display: block; }
  .no-ads .body-grid { grid-template-columns: minmax(0, 740px); }
}
.prose { max-width: 740px; }
.prose section + section { margin-top: 64px; }
.prose h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.prose h2 + p, .prose .lead { margin-top: 10px; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose a.il { color: var(--acc); font-weight: 500; }
.prose a.il:hover { text-decoration: underline; text-underline-offset: 3px; }

.howto { list-style: none; margin-top: 24px; display: grid; gap: 0; counter-reset: s; }
.howto li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: s; }
.howto li:last-child { border-bottom: 1px solid var(--line); }
.howto li::before { content: counter(s, decimal-leading-zero); font: 500 13px/1.7 var(--mono); color: var(--ink-3); }
.howto b { font-weight: 600; color: var(--ink); display: block; }
.howto span { color: var(--ink-2); }

.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.tcard-l { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, transform .15s; }
.tcard-l:hover { border-color: var(--ink-3); }
.tcard-l:hover .arr { color: var(--acc); transform: translateX(2px); }
.tcard-l .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--ink); }
.tcard-l .ic.tx { font: 600 11px/1 var(--mono); letter-spacing: .02em; }
.tcard-l b { font-weight: 600; font-size: 15px; display: block; color: var(--ink); }
.tcard-l small { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; display: block; margin-top: 2px; }
.tcard-l .arr { color: var(--ink-3); transition: transform .15s, color .15s; }
.sub-h { margin-top: 28px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sub-h + .tgrid { margin-top: 12px; }
.other { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) { .tgrid { grid-template-columns: 1fr; } .prose h2 { font-size: 23px; } }

.tbl { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tbl td { color: var(--ink-2); }
.tbl td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.tbl .mono { font-size: 13.5px; }
.y { color: var(--pass); font-weight: 600; } .n { color: var(--ink-3); }
.tbl.cmp td, .tbl.cmp th { text-align: center; padding-right: 8px; padding-left: 8px; }
.tbl.cmp td:first-child, .tbl.cmp th:first-child { text-align: left; padding-left: 0; white-space: normal; }
.tbl-wrap { overflow-x: auto; }
.fine { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.terms { margin-top: 22px; display: grid; gap: 20px; }
.terms div h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.terms div p { margin-top: 4px; }

.probs { list-style: none; margin-top: 20px; }
.probs li { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 4px; }
.probs li:last-child { border-bottom: 1px solid var(--line); }
.probs b { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.probs span { color: var(--ink-2); font-size: 15px; }
.probs a { color: var(--acc); font-weight: 500; font-size: 14.5px; justify-self: start; }

.faq { margin-top: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--ink-3); transition: transform .15s; margin-top: 3px; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 660px; }

/* ============ footer ============ */
footer.site { border-top: 1px solid var(--line); background: var(--surface-2); padding: 56px 0 28px; }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.fgrid .nh { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.fgrid ul { list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.fgrid ul a:hover { color: var(--ink); }
.fbrand p { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 260px; }
.fbot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px 24px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 95; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .press::before, .press::after, .motor.buzz svg, [data-state="waiting"] .conn i { animation: none; }
}

/* ============ 内页：面包屑、导航当前项 ============ */
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); padding-top: 22px; }
.crumb a:hover { color: var(--ink); }
.crumb [aria-current] { color: var(--ink-2); }
.crumb + .intro { padding-top: 10px; }
nav.main .dd.cur > button { color: var(--ink); }
nav.main .dd.cur > button::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.dd-menu a.cur b { color: var(--acc); }

/* 分段切换 */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sunken); gap: 2px; }
.seg button { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 0 0 1px var(--line); }

/* 滑块（测试器、振动测试页共用） */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p, 100%), var(--line-2) var(--p, 100%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); margin-top: -6px; }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); }


/* ============ articles ============ */
/* Gamepad Tester 设计稿 · 文章页共用样式（文章头、Quick answer、工具引导框、提示框、步骤、相关文章） */
nav.main > a.cur { color: var(--ink); }

/* article head */
.art-head { max-width: 760px; padding-top: 14px; padding-bottom: 4px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.art-head h1 { margin-top: 14px; font-size: 42px; line-height: 1.12; letter-spacing: -.03em; font-weight: 600; }
.dek { margin-top: 14px; font-size: 18.5px; line-height: 1.55; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.byline b { font-weight: 500; color: var(--ink-2); }
@media (max-width: 640px) { .art-head h1 { font-size: 31px; } .dek { font-size: 16.5px; } }

/* grid */
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 34px; padding-bottom: 88px; }
@media (min-width: 1280px) {
  .art-grid { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 64px; }
  .no-ads .art-grid { grid-template-columns: minmax(0, 720px); }
}

/* article body */
.article { max-width: 720px; font-size: 17px; line-height: 1.72; }
.article p { color: var(--ink-2); }
.article p + p { margin-top: 16px; }
.article section { scroll-margin-top: 24px; }
.article section + section { margin-top: 60px; }
.article h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; color: var(--ink); }
.article h2 .num { font: 500 14px/1 var(--mono); color: var(--ink-3); margin-right: 10px; vertical-align: 4px; }
.article h2 + p { margin-top: 14px; }
.article h3 { margin-top: 28px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.article h3 + p { margin-top: 6px; }
.article strong { color: var(--ink); font-weight: 600; }
.article a.il { color: var(--acc); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acc) 35%, transparent); text-underline-offset: 3px; }
.article a.il:hover { text-decoration-color: var(--acc); }
.article ul.ul { margin: 14px 0 0 20px; display: grid; gap: 8px; color: var(--ink-2); }
.article ul.ul li::marker { color: var(--ink-3); }
@media (max-width: 640px) { .article { font-size: 16.5px; } .article h2 { font-size: 23px; } }

/* quick answer */
.quick { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.quick .lbl { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.quick p { margin-top: 10px; color: var(--ink); font-size: 17px; }
.quick ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 6px; }
.quick ol li { counter-increment: q; display: grid; grid-template-columns: 26px 1fr; font-size: 15.5px; color: var(--ink-2); }
.quick ol li::before { content: counter(q); font: 500 12px/1 var(--mono); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--ink); margin-top: 3px; }
.quick ol a { color: var(--ink); font-weight: 500; }
.quick ol a:hover { color: var(--acc); }

/* tool callout */
.toolbox { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; margin-top: 26px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.toolbox svg.mini { width: 64px; height: 64px; }
.toolbox .lbl { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.toolbox b { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.toolbox small { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 640px) { .toolbox { grid-template-columns: 48px 1fr; } .toolbox svg.mini { width: 48px; height: 48px; } .toolbox .btn { grid-column: 1 / -1; } }

/* callouts */
.note { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: var(--r); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.note svg { margin-top: 3px; }
.note b { color: var(--ink); font-weight: 600; }
.note.tip { background: var(--acc-soft); }
.note.tip svg { color: var(--acc); }
.note.warn { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.note.warn svg { color: var(--warn); }

/* steps */
.steps { list-style: none; margin-top: 18px; counter-reset: st; display: grid; gap: 0; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(st); font: 500 12.5px/1 var(--mono); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); margin-top: 1px; }
.steps b { color: var(--ink); font-weight: 600; }

/* tables */
.article .tbl { font-size: 15px; }
.article .tbl td:first-child { white-space: normal; }
.fixes td:first-child { font-weight: 600; color: var(--ink); min-width: 120px; }

/* end */
.rel { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rel a { display: grid; align-content: start; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.rel a:hover { border-color: var(--ink-3); }
.rel .k { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rel b { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.rel small { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .rel { grid-template-columns: 1fr; } }
.art-foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.art-foot a { color: var(--acc); }
.ad-b { margin: 48px 0; }

/* 文中三联示意图 */
.fig3 { margin: 22px 0 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trio div { display: grid; justify-items: center; gap: 6px; }
.trio .plot { max-width: 150px; }
.trio b { font-size: 18px; }
.fig3 figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

.article > .toolbox { margin-top: 40px; }
.article > .toolbox + section { margin-top: 56px; }

.tbl td a.il { white-space: nowrap; }


/* ---- from 03-机型页-ps5-controller-test.html ---- */
  .tbl.feat td:first-child { white-space: normal; width: 36%; }
  .tbl.feat td:nth-child(2), .tbl.feat th:nth-child(2) { text-align: center; width: 72px; }

/* ---- from 05-说明页-how-we-test.html ---- */
  .meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
  .meta-line b { font-weight: 500; color: var(--ink-2); }

  /* layout */
  .doc { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: 72px; padding-top: 28px; padding-bottom: 96px; }
  .toc { position: sticky; top: 60px; align-self: start; }
  .toc .nh, .toc-m summary { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .toc .nh { margin-bottom: 12px; }
  .toc a { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); padding: 6px 0 6px 13px; border-left: 1.5px solid var(--line); transition: color .15s, border-color .15s; }
  .toc a:hover { color: var(--ink); }
  .toc a.on { color: var(--ink); border-left-color: var(--acc); font-weight: 500; }
  .toc-m { display: none; }
  @media (max-width: 1079px) {
    .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .toc { display: none; }
    .toc-m { display: block; margin-bottom: 36px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 14px 16px; }
    .toc-m summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
    .toc-m summary::-webkit-details-marker { display: none; }
    .toc-m ol { margin: 12px 0 2px 18px; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
  }
  .p-method .prose section { scroll-margin-top: 64px; }

  /* short version */
  .sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
  .sum div { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .sum svg { color: var(--ink); }
  .sum b { display: block; margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.35; }
  .sum p { margin-top: 6px; font-size: 14px; line-height: 1.55; }
  @media (max-width: 760px) { .sum { grid-template-columns: 1fr; } }

  .p-method .prose ul.dots { margin: 14px 0 0 18px; display: grid; gap: 8px; color: var(--ink-2); }
  .p-method .prose ul.dots b, .p-method .prose ol.method b { color: var(--ink); font-weight: 600; }
  .p-method .prose ol.method { margin: 16px 0 0 20px; display: grid; gap: 8px; color: var(--ink-2); }
  .p-method .prose h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-top: 26px; }
  .p-method .prose h3 + p { margin-top: 6px; }
  .p-method .prose code { font: 13.5px var(--mono); background: var(--sunken); padding: 1px 5px; border-radius: 5px; color: var(--ink); }

  /* formula */
  .formula { margin-top: 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font: 13.5px/1.9 var(--mono); color: var(--ink); overflow-x: auto; white-space: pre; font-variant-numeric: tabular-nums; }
  .formula i { font-style: normal; color: var(--ink-3); }
  .formula em { font-style: normal; color: var(--acc); }

  /* limit line */
  .limit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
  .limit b { color: var(--ink); font-weight: 600; }
  .limit .li { display: inline-flex; gap: 6px; align-items: baseline; }
  .limit .li + .li::before { content: ''; width: 1px; height: 14px; background: var(--line-2); margin-right: 6px; align-self: center; }
  .limit .st { margin-left: auto; }
  .st { display: inline-flex; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .04em; padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
  .st.set { color: var(--ink); background: var(--sunken); }
  .st.prov { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }

  /* figures */
  .fig { margin: 24px 0 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .fig figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
  .fig figcaption b { color: var(--ink-2); font-weight: 600; }
  .fig-row { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
  .fig-row svg.plot { width: 100%; max-width: 240px; margin: 0; }
  .fig-key { display: grid; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
  .fig-key div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
  .fig-key svg { margin-top: 2px; }
  @media (max-width: 640px) { .fig { padding: 16px; } .fig-row { grid-template-columns: 1fr; gap: 18px; } .fig-row svg.plot { margin: 0 auto; } }
  .cloud { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; opacity: .42; }
  .rest-c { fill: none; stroke: var(--ink); stroke-width: 1.4; }
  .rest-l { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
  .rl { font: 500 8.5px var(--mono); fill: var(--ink-3); }
  .rl.w { fill: var(--warn); }
  .slice { stroke: var(--line-2); stroke-width: .5; opacity: .45; }
  .ideal { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
  .wedge { fill: var(--acc); opacity: .18; }
  .wedge-l { stroke: var(--acc); stroke-width: 1.2; }
  .reach-dot { fill: var(--acc); stroke: var(--surface); stroke-width: 1.5; }
  .p-trace { fill: var(--acc-soft); stroke: var(--acc); stroke-width: 1.3; stroke-linejoin: round; }

  /* pipeline */
  .pipe { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 8px; }
  .pipe .node { padding: 14px 14px 12px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; align-content: start; gap: 4px; }
  .pipe .node b { font-size: 14px; font-weight: 600; color: var(--ink); }
  .pipe .node small { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
  .pipe .node.us { background: var(--acc-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 35%, transparent); }
  .pipe .ar { display: grid; place-items: center; color: var(--ink-3); }
  .pipe-data { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .pipe-data span { font: 12px var(--mono); padding: 4px 8px; border-radius: 6px; background: var(--sunken); color: var(--ink-2); }
  @media (max-width: 760px) {
    .pipe { grid-template-columns: 1fr; }
    .pipe .ar { transform: rotate(90deg); height: 18px; }
    .pipe-data { justify-content: flex-start; }
  }

  /* can't measure */
  .cant { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
  .cant li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .cant li svg { color: var(--ink-3); margin-top: 2px; }
  .cant b { display: block; color: var(--ink); font-weight: 600; }
  .cant span { color: var(--ink-2); font-size: 15px; }

  /* limits table */
  .tbl.lim td, .tbl.lim th { padding-right: 12px; }
  .tbl.lim td:first-child { white-space: normal; min-width: 140px; }
  .tbl.lim td { font-size: 14px; }
  .tbl.lim td.mono { font-size: 13px; }

  /* change log */
  .log { list-style: none; margin-top: 18px; border-left: 1.5px solid var(--line); margin-left: 5px; }
  .log li { position: relative; padding: 0 0 22px 22px; }
  .log li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--acc); }
  .log li.future::before { box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .log time { font: 500 12.5px var(--mono); color: var(--ink-3); }
  .log b { display: block; margin-top: 2px; color: var(--ink); font-weight: 600; }
  .log p { margin-top: 4px; font-size: 14.5px; }
  .log li.future b, .log li.future p { color: var(--ink-3); }

  .report-box { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .report-box p { max-width: 460px; font-size: 14.5px; }

/* ---- from 07-文章目录页-guides.html ---- */
  nav.main > a.cur { color: var(--ink); }

  .filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .filters button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .filters button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
  .filters button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
  .filters button span { font: 500 11.5px/1 var(--mono); opacity: .65; }

  .gx { padding-top: 26px; padding-bottom: 96px; }

  /* featured */
  .feat { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s; }
  .feat:hover { border-color: var(--ink-3); }
  .feat .txt { padding: 30px 32px; display: grid; align-content: center; gap: 10px; }
  .feat .k { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
  .feat h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
  .feat p { color: var(--ink-2); font-size: 16px; max-width: 480px; }
  .feat .go { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--acc); font-weight: 600; font-size: 15px; }
  .feat .art { display: grid; place-items: center; padding: 26px; border-left: 1px solid var(--line); background-color: var(--surface-2); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 16px 16px; }
  .feat .art svg { width: 100%; max-width: 230px; }
  @media (max-width: 760px) { .feat { grid-template-columns: 1fr; } .feat .art { border-left: 0; border-top: 1px solid var(--line); order: -1; padding: 22px; } .feat .art svg { max-width: 130px; } .feat .txt { padding: 22px 20px; } .feat h2 { font-size: 24px; } }
  .cloud { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; opacity: .42; }
  .rest-c { fill: none; stroke: var(--ink); stroke-width: 1.4; }
  .rest-l { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2.5; }

  /* groups */
  .grp-s { margin-top: 56px; }
  .grp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .grp-h h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
  .grp-h p { font-size: 14.5px; color: var(--ink-3); }
  .gl { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  @media (max-width: 760px) { .gl { grid-template-columns: 1fr; } }
  .gc { display: grid; align-content: start; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
  .gc:hover { border-color: var(--ink-3); }
  .gc:hover b { color: var(--acc); }
  .gc .k { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .gc b { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; color: var(--ink); transition: color .15s; }
  .gc p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
  .gc .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
  .pair { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--sunken); color: var(--ink-2); font-size: 12px; }
  .pair svg { color: var(--acc); }
  .hidden { display: none !important; }

  .ad-b { margin: 56px 0 0; }

  /* test first */
  .tf { margin-top: 64px; padding: 26px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
  .tf h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
  .tf > p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
  .tf .tgrid { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
  @media (max-width: 900px) { .tf .tgrid { grid-template-columns: 1fr; } }
  @media (max-width: 640px) { .tf { padding: 18px; } }

/* ---- from 08-说明页-compatibility.html ---- */
  .meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
  .meta-line b { font-weight: 500; color: var(--ink-2); }
  .cx { padding-top: 22px; padding-bottom: 96px; }
  .cx > section + section { margin-top: 64px; }
  .cx h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
  .cx h2 + p, .cx .lead { margin-top: 10px; color: var(--ink-2); max-width: 720px; }
  .cx .fine { max-width: 860px; }

  /* your browser */
  .you { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
  .you .l { padding: 24px 26px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 8px; }
  .you .k { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .you .l b { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
  .you .l p { font-size: 14px; color: var(--ink-2); }
  .you .pad { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
  .you .pad i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); animation: blink 1.6s ease-in-out infinite; }
  .you .pad.on i { background: var(--pass); animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pass) 18%, transparent); }
  .you ul { list-style: none; padding: 10px 26px; display: grid; }
  .you li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .you li:last-child { border-bottom: 0; }
  .you li small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.45; margin-top: 1px; }
  .ok, .no, .mb { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--mono); }
  .ok { background: color-mix(in srgb, var(--pass) 14%, transparent); color: var(--pass); }
  .no { background: var(--sunken); color: var(--ink-3); }
  .mb { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
  .you .warn-box { display: none; margin: 0 26px 18px; padding: 12px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: 14px; color: var(--ink-2); }
  .you .warn-box b { color: var(--ink); }
  .you.inapp .warn-box { display: block; }
  .you.inapp .pad { display: none; }
  @media (max-width: 860px) { .you { grid-template-columns: 1fr; } .you .l { border-right: 0; border-bottom: 1px solid var(--line); } }
  @media (max-width: 640px) { .you .l, .you ul { padding-left: 18px; padding-right: 18px; } .you .warn-box { margin: 0 18px 16px; } }

  /* matrix */
  .mx-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
  .mx { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
  .mx th, .mx td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
  .mx tr:last-child td { border-bottom: 0; }
  .mx thead th { font: 500 11.5px/1.35 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); }
  .mx thead th small { display: block; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 12px; margin-top: 3px; color: var(--ink-3); }
  .mx th:first-child, .mx td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
  .mx thead th:first-child { background: var(--surface-2); }
  .mx td:first-child { font-weight: 500; color: var(--ink); min-width: 190px; }
  .mx td:first-child small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
  .c { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
  .c b { font-weight: 600; }
  .c.y b { color: var(--pass); }
  .c.n { color: var(--ink-3); }
  .c.q b { color: var(--warn); }
  .c sup { font: 500 10px var(--mono); color: var(--ink-3); }
  .foot { margin-top: 12px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
  .foot span sup { font: 500 10px var(--mono); margin-right: 4px; }

  .lgd { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
  .lgd span { display: inline-flex; align-items: center; gap: 8px; }
  .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
  .dot.s { background: var(--pass); }
  .dot.r { background: conic-gradient(var(--warn) 0 50%, transparent 50% 100%); box-shadow: inset 0 0 0 1.5px var(--warn); }
  .dot.x { background: var(--fail); opacity: .85; }
  .dot.t { box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .pc { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }
  .pc .dot { width: 14px; height: 14px; }
  .pending-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
  [data-ctl="sample"] .pending-note { display: none; }

  .cx .probs { max-width: 760px; }
  .how { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 860px; }
  .how div { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .how b { font-weight: 600; font-size: 15.5px; }
  .how p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
  .how time { display: block; margin-top: 10px; font: 12px var(--mono); color: var(--ink-3); }
  @media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* ---- from 10-站点页-about-contact-privacy-terms-404.html ---- */
  .pg { display: none; }
  body[data-page="about"] #pg-about, body[data-page="contact"] #pg-contact, body[data-page="privacy"] #pg-privacy, body[data-page="terms"] #pg-terms, body[data-page="404"] #pg-404 { display: block; }
  .meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
  .meta-line b { font-weight: 500; color: var(--ink-2); }
  .sp-body { padding-top: 26px; padding-bottom: 96px; }
  .sp-body .prose { max-width: 720px; }
  .prose a.il { color: var(--acc); font-weight: 500; }

  /* about */
  .prin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .prin div { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .prin svg { color: var(--ink); }
  .prin b { display: block; margin-top: 10px; font-weight: 600; color: var(--ink); }
  .prin p { margin-top: 4px; font-size: 14.5px; }
  @media (max-width: 640px) { .prin { grid-template-columns: 1fr; } }

  /* contact */
  .mail { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .mail .k { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .mail a.addr { display: block; margin-top: 8px; font: 500 22px/1.2 var(--mono); color: var(--ink); letter-spacing: -.01em; word-break: break-all; }
  .mail a.addr:hover { color: var(--acc); }
  .mail .acts { display: flex; gap: 8px; }
  .check { list-style: none; margin-top: 16px; display: grid; gap: 0; }
  .check li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
  .check li:last-child { border-bottom: 1px solid var(--line); }
  .check li svg { color: var(--pass); margin-top: 4px; }
  .check b { color: var(--ink); font-weight: 600; }

  /* legal */
  .summary { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .summary .k { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .summary ul { margin: 12px 0 0 18px; display: grid; gap: 6px; color: var(--ink); font-size: 15.5px; }
  .legal section + section { margin-top: 40px; }
  .legal h2 { font-size: 20px; letter-spacing: -.015em; }
  .legal h2 .n { font: 500 13px/1 var(--mono); color: var(--ink-3); margin-right: 10px; vertical-align: 2px; }
  .legal ul.ul { margin: 10px 0 0 20px; display: grid; gap: 6px; color: var(--ink-2); }
  .legal .summary + section { margin-top: 40px; }

  /* 404 */
  .nf { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 56px 0 96px; text-align: center; }
  .nf-in { display: grid; justify-items: center; gap: 12px; max-width: 520px; }
  .nf svg.plot { max-width: 220px; overflow: visible; margin-bottom: 8px; }
  .nf .code { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--ink-3); }
  .nf h1 { font-size: 38px; line-height: 1.12; letter-spacing: -.03em; font-weight: 600; }
  .nf p { color: var(--ink-2); font-size: 16px; }
  .nf .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
  .nf .quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 18px; font-size: 14px; }
  .nf .quick a { color: var(--ink-2); }
  .nf .quick a:hover { color: var(--acc); }
  .lost-trail { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 3 4; stroke-linecap: round; opacity: .6; }
  .lost-dot { fill: var(--acc); }
  @media (max-width: 640px) { .nf h1 { font-size: 30px; } }

/* ============ PadCheck additions (not in the design files) ============ */
/* theme toggle, sits left of the burger on mobile and after the nav on desktop */
.theme-btn { margin-left: auto; width: 40px; height: 40px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.theme-btn:hover { background: var(--sunken); color: var(--ink); }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (max-width: 820px) { .theme-btn + .burger { margin-left: 4px; } }
/* compatibility tip and helper bands toggled by tools */
.tcard[data-tip="1"]:not([data-state="waiting"]):not([data-state="notfound"]) .tip { display: flex; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
