/* 对端 — 样式
   设计语言来自抓包工具：五个证据来源对应协议栈的五层，各有一种颜色和一种下划线样式，
   全站只有这一处用彩色，其余保持安静。 */

:root {
  --ground: #f2f4f6;
  --surface: #ffffff;
  --sunk: #f7f8fa;
  --ink: #17212b;
  --ink-2: #55616e;
  --ink-3: #8792a0;
  --line: #d6dce2;
  --line-2: #e7ebef;

  --tcp: #2b6cb8;
  --tls: #0f8577;
  --http: #b36b00;
  --js: #a2449a;
  --probe: #c9461a;

  --pass: #1c7a4c;
  --minor: #5f6b78;
  --warn: #a66200;
  --fail: #c02b36;
  --fail-bg: #fbecee;
  --warn-bg: #fbf3e4;
  --pass-bg: #e9f5ee;

  --sans: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --kai: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", "KaiTi_GB2312", "AR PL UKai CN", "Songti SC", "Noto Serif CJK SC", serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --w: 1120px;
  --text: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #11161b;
    --surface: #1a2027;
    --sunk: #151b21;
    --ink: #e7ecf1;
    --ink-2: #a7b1bc;
    --ink-3: #74808c;
    --line: #2e3842;
    --line-2: #242c35;
    --tcp: #77aef5;
    --tls: #45c9b6;
    --http: #ebaa45;
    --js: #dc8fd0;
    --probe: #f58a63;
    --pass: #55c38d;
    --minor: #97a3af;
    --warn: #e6a64a;
    --fail: #f27a80;
    --fail-bg: #3a2023;
    --warn-bg: #352a17;
    --pass-bg: #18301f;
  }
}
:root[data-theme="dark"] {
  --ground: #11161b;
  --surface: #1a2027;
  --sunk: #151b21;
  --ink: #e7ecf1;
  --ink-2: #a7b1bc;
  --ink-3: #74808c;
  --line: #2e3842;
  --line-2: #242c35;
  --tcp: #77aef5;
  --tls: #45c9b6;
  --http: #ebaa45;
  --js: #dc8fd0;
  --probe: #f58a63;
  --pass: #55c38d;
  --minor: #97a3af;
  --warn: #e6a64a;
  --fail: #f27a80;
  --fail-bg: #3a2023;
  --warn-bg: #352a17;
  --pass-bg: #18301f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--ink-3); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: currentColor; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tcp); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--surface); padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ── 页头 ─────────────────────────────────────────────── */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: var(--w); margin: 0 auto; padding: 0 1.25rem; height: 3.5rem; display: flex; align-items: center; gap: 1.75rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 650; font-size: 1.1rem; text-decoration: none; letter-spacing: 0.04em; }
.brand-mark { width: 28px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.brand-mark .b2 { stroke: var(--probe); }
.nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; min-width: 0; }
.nav > a, .menu > summary { padding: 0.35rem 0.7rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); white-space: nowrap; font-size: 0.95rem; }
.nav > a:hover, .menu > summary:hover { color: var(--ink); background: var(--ground); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.4em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-0.2em) rotate(45deg); }
.menu-list { position: absolute; top: calc(100% + 0.4rem); left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); display: flex; align-items: flex-start; gap: 0.5rem 1rem; width: max-content; max-width: min(48rem, calc(100vw - 2rem)); max-height: calc(100vh - 5rem); overflow-y: auto; }
/* 靠右的两个菜单向左展开，免得伸出屏幕。 */
.menu:nth-last-of-type(-n + 2) .menu-list { left: auto; right: 0; }
.menu-sec { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(8.5rem, max-content)); align-content: start; gap: 0 0.25rem; }
.menu-sec:has(a:nth-of-type(9)) { --cols: 2; }
.menu-sec:has(a:nth-of-type(17)) { --cols: 3; }
.menu-sec b { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 500; color: var(--ink-3); padding: 0.15rem 0.7rem 0.3rem; }
.menu-list a { padding: 0.4rem 0.7rem; border-radius: 5px; text-decoration: none; font-size: 0.93rem; white-space: nowrap; }
.menu-list a:hover { background: var(--ground); }
.menu-list a[aria-current="page"] { box-shadow: none; background: var(--ground); font-weight: 600; }
.icon-btn { border: 0; background: none; padding: 0.4rem; border-radius: 6px; display: grid; flex: none; }
.icon-btn:hover { background: var(--ground); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; }
.theme-btn .half { fill: var(--ink-2); stroke: none; }
.account-link { font-size: 0.9rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; }
.account-link:hover { color: var(--ink); border-color: var(--ink-3); }

.search { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(36rem, calc(100vw - 2rem)); margin-top: 12vh; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / 0.25); }
.search::backdrop { background: rgb(10 15 20 / 0.45); }
.search form { padding: 1rem 1.2rem 1.1rem; display: grid; gap: 0.7rem; }
.search input { width: 100%; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: none; font: 1.2rem var(--mono); padding: 0.35rem 0; }
.search input::placeholder { font-family: var(--sans); color: var(--ink-3); }
.search-hint { color: var(--ink-2); font-size: 0.88rem; }

main { max-width: var(--w); margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }

.foot { border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 2rem 1.25rem 2.5rem; display: grid; gap: 0.25rem; }
.foot-src { color: var(--ink-3); }
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.4rem 1.5rem; padding-bottom: 1.6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line-2); }
.sitemap div { display: grid; gap: 0.25rem; align-content: start; }
.sitemap b { color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }
.sitemap a { text-decoration: none; color: var(--ink-2); }
.sitemap a:hover { color: var(--ink); text-decoration: underline; }

/* ── 工具页的通用部件 ─────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
.raw { font: 0.82rem/1.6 var(--mono); background: var(--sunk); border: 1px solid var(--line-2); border-radius: 6px; padding: 0.8rem 1rem; overflow: auto; white-space: pre; max-height: 30rem; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin-bottom: 1rem; }
.toolbar > span { color: var(--ink-2); font-size: 0.9rem; }
.field { display: grid; gap: 0.25rem; font-size: 0.9rem; color: var(--ink-2); }
.field input, .field select, .field textarea { padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 0.95rem; }
.field textarea { font-family: var(--mono); font-size: 0.88rem; min-height: 6rem; resize: vertical; }
.big-num { font: 700 3rem/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.big-num small { font-size: 1rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 0.3rem; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem 2rem; padding: 1.5rem 1.75rem; }
.meters .k { color: var(--ink-2); font-size: 0.88rem; margin-top: 0.2rem; }
.hash { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }
.copyable { cursor: copy; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 0.6rem; font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.pill.on { border-color: var(--pass); color: var(--pass); }
.pill.off { border-color: var(--line); color: var(--ink-3); }
.pill.bad { border-color: var(--fail); color: var(--fail); }
.graph { width: 100%; height: auto; display: block; }
.graph text { font: 11px var(--sans); fill: var(--ink-2); }
.graph .edge { stroke: var(--line); stroke-width: 1; }
.graph .node { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; }
.graph .node.me { fill: var(--ink); stroke: var(--ink); }
.graph .node.up { stroke: var(--tcp); }
.graph .node.down { stroke: var(--tls); }
.graph .node.peer { stroke: var(--http); }
.bars { display: grid; gap: 0.35rem; }
.bars > div { display: grid; grid-template-columns: minmax(6rem, 11rem) 1fr auto; gap: 0.75rem; align-items: center; font-size: 0.92rem; }
.bars i { display: block; height: 0.6rem; background: var(--ink-2); border-radius: 2px; min-width: 2px; }
.bars b { font-variant-numeric: tabular-nums; font-weight: 600; }
.formbox { display: grid; gap: 0.9rem; max-width: 24rem; padding: 1.5rem 1.75rem; }
.formbox .btn { justify-self: start; }
.formbox .msg { font-size: 0.9rem; color: var(--fail); min-height: 1.2em; }
.article { max-width: var(--text); }
.article h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.article h3 { font-size: 1.02rem; font-weight: 650; margin: 1.2rem 0 0.3rem; }
.article p, .article li { color: var(--ink-2); margin-bottom: 0.6rem; }

/* ── 标题区 ───────────────────────────────────────────── */
.head { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 2rem; align-items: end; margin-bottom: 1.5rem; }
.head h1 { font-size: 2.1rem; line-height: 1.25; font-weight: 700; letter-spacing: 0.01em; }
.head .lede { grid-column: 1; max-width: var(--text); color: var(--ink-2); font-size: 1.02rem; }
.head-side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.counts { color: var(--ink-3); font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.counts b { color: var(--ink-2); font-weight: 600; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

.btn { border: 1px solid var(--ink); background: var(--ink); color: var(--surface); padding: 0.45rem 1.05rem; border-radius: 7px; font-weight: 600; font-size: 0.95rem; line-height: 1.5; }
.btn:hover { opacity: 0.88; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.quiet { background: none; color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn.quiet:hover { border-color: var(--ink-3); opacity: 1; }
.btn.small { padding: 0.2rem 0.65rem; font-size: 0.85rem; }

.note { border: 1px dashed var(--ink-3); border-radius: 8px; padding: 0.6rem 0.9rem; margin-bottom: 1.25rem; color: var(--ink-2); font-size: 0.9rem; background: var(--sunk); }
.note b { color: var(--ink); }

.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.sec { margin-top: 2.75rem; }
.sec > h2, .sec-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.9rem; display: flex; align-items: baseline; gap: 0.75rem; }
.sec > h2 small, .sec-title small { font-size: 0.85rem; font-weight: 400; color: var(--ink-3); }
.sub { color: var(--ink-2); font-size: 0.92rem; max-width: var(--text); margin: -0.4rem 0 1rem; }

/* ── 五层证据 ─────────────────────────────────────────── */
.ev { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-skip-ink: none; cursor: help; border-radius: 2px; }
.ev:hover, .ev.on { background: var(--line-2); }
.ev[data-src="tcp"], .lyr[data-src="tcp"]::before { text-decoration-color: var(--tcp); --c: var(--tcp); }
.ev[data-src="tls"], .lyr[data-src="tls"]::before { text-decoration-color: var(--tls); --c: var(--tls); }
.ev[data-src="http"], .lyr[data-src="http"]::before { text-decoration-color: var(--http); --c: var(--http); }
.ev[data-src="js"], .lyr[data-src="js"]::before { text-decoration-color: var(--js); --c: var(--js); }
.ev[data-src="probe"], .lyr[data-src="probe"]::before { text-decoration-color: var(--probe); --c: var(--probe); }
.ev[data-src="tcp"] { text-decoration-style: solid; }
.ev[data-src="tls"] { text-decoration-style: double; }
.ev[data-src="http"] { text-decoration-style: dashed; }
.ev[data-src="js"] { text-decoration-style: dotted; text-decoration-thickness: 2.5px; }
.ev[data-src="probe"] { text-decoration-style: wavy; text-decoration-thickness: 1.5px; }

/* 图例与来源标记：一小段样式相同的线，后面跟名称 */
.lyr { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; font-size: 0.85rem; color: var(--ink-2); font-style: normal; }
.lyr::before { content: ""; width: 1.5em; height: 0; border-bottom: 2px solid var(--c, var(--ink-3)); }
.lyr[data-src="tls"]::before { border-bottom-style: double; border-bottom-width: 4px; }
.lyr[data-src="http"]::before { border-bottom-style: dashed; }
.lyr[data-src="js"]::before { border-bottom-style: dotted; border-bottom-width: 3px; }
.lyr[data-src="probe"]::before { height: 5px; border: 0; background: radial-gradient(circle at 25% 0, transparent 2.2px, var(--c) 2.3px 3.4px, transparent 3.5px) 0 2px / 6px 5px repeat-x; }

/* ── 状态记号 ─────────────────────────────────────────── */
.st { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; font-size: 0.8rem; font-weight: 700; line-height: 1; flex: none; border: 1.5px solid currentColor; }
.st-pass { color: var(--pass); }
.st-fail { color: var(--surface); background: var(--fail); border-color: var(--fail); }
.st-warn { color: var(--warn); background: var(--warn-bg); }
.st-minor { color: var(--minor); }
.st-info, .st-skip, .st-pending { color: var(--ink-3); border-style: dashed; }
.st-pending { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.35; } }

/* ── 标签页 ───────────────────────────────────────────── */
.tabs { display: flex; gap: 0.15rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 0 1.25rem; }
.tabs button { border: 0; background: none; padding: 0.65rem 0.8rem; color: var(--ink-2); font-size: 0.95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

/* ── A1：时间线与画像 ─────────────────────────────────── */
.tl { padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--line); }
.tl-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tl-clock { font: 600 1.35rem/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 7.5em; }
.tl-clock small { font-size: 0.8rem; font-weight: 400; color: var(--ink-3); margin-left: 0.3em; }
.tl-known { color: var(--ink-2); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.tl-status { color: var(--ink-3); font-size: 0.88rem; margin-left: auto; }
.badge { border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.tl-track { position: relative; height: 3.4rem; margin: 0.9rem 0 0.5rem; }
.tl-track svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tick { stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0.22; }
.tick.on { opacity: 1; }
.tick[data-src="tcp"] { stroke: var(--tcp); }
.tick[data-src="tls"] { stroke: var(--tls); }
.tick[data-src="http"] { stroke: var(--http); }
.tick[data-src="js"] { stroke: var(--js); }
.tick[data-src="probe"] { stroke: var(--probe); }
.tl-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tl-head { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tl-track input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tl-track:has(input:focus-visible) { outline: 2px solid var(--tcp); outline-offset: 4px; border-radius: 3px; }
.tl-scale { position: relative; height: 1.1rem; font: 0.72rem var(--mono); color: var(--ink-3); }
.tl-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin-top: 0.75rem; }

.story { padding: 1.6rem 1.75rem 2rem; min-height: 16rem; }
.story-prose { font-family: var(--kai); font-size: 1.32rem; line-height: 2.05; max-width: 40em; }
.story-prose p + p { margin-top: 0.9em; }
.story-prose .wait { color: var(--ink-3); }
.story-prose .wait::after { content: ""; display: inline-block; width: 0.5em; height: 1.05em; margin-left: 0.2em; vertical-align: -0.15em; background: var(--ink-3); animation: breathe 1s steps(2) infinite; }
.story-one { font-family: var(--kai); font-size: 1.9rem; line-height: 1.7; max-width: 26em; padding: 1.5rem 0; }
.story-notes { display: grid; gap: 0.9rem; max-width: 46em; counter-reset: n; }
.story-notes li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; counter-increment: n; }
.story-notes li::before { content: counter(n); font: 0.85rem/1.9 var(--mono); color: var(--ink-3); text-align: right; }
.story-notes .so { display: block; color: var(--ink-2); }
.story-notes .so::before { content: "∴ "; color: var(--ink-3); }
.story-file { display: grid; grid-template-columns: max-content 1fr; gap: 0; max-width: 46em; border-top: 1px solid var(--line); }
.story-file dt, .story-file dd { padding: 0.55rem 0; border-bottom: 1px solid var(--line-2); }
.story-file dt { color: var(--ink-3); padding-right: 2rem; font-size: 0.92rem; white-space: nowrap; }
.story-file dd.none { color: var(--ink-3); }
.story-log { font: 0.86rem/1.9 var(--mono); overflow-x: auto; white-space: pre; }
.story-log .ln { display: block; }
.story-log .t { color: var(--ink-3); }
.story-log .s { display: inline-block; width: 5.5em; }
.story-log .s[data-src="tcp"] { color: var(--tcp); }
.story-log .s[data-src="tls"] { color: var(--tls); }
.story-log .s[data-src="http"] { color: var(--http); }
.story-log .s[data-src="js"] { color: var(--js); }
.story-log .s[data-src="probe"] { color: var(--probe); }
.story-log .c { color: var(--ink-2); }
.story-ads { display: grid; gap: 0; max-width: 46em; }
.story-ads > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-2); }
.story-ads h3 { font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.story-ads .bid { font: 600 1.05rem var(--mono); }
.story-empty { color: var(--ink-3); }

.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
.cols h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; display: flex; align-items: baseline; gap: 0.6rem; }
.cols h2 small { font-size: 0.85rem; font-weight: 400; color: var(--ink-3); }
.gaps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.gap { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line-2); }
.gap h3 { font-size: 1rem; font-weight: 650; }
.gap p { grid-column: 2; color: var(--ink-2); font-size: 0.95rem; }
.gap .lyr-pair { grid-column: 2; display: flex; gap: 0.5rem; align-items: center; color: var(--ink-3); font-size: 0.8rem; margin-top: 0.15rem; }
.gaps-none { padding: 1rem 0; color: var(--ink-2); }

.tags { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 2rem; }
.tag { display: grid; grid-template-columns: auto 1fr; gap: 0 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.tag b { font-weight: 600; }
.tag small { grid-column: 2; color: var(--ink-3); font-size: 0.82rem; line-height: 1.5; }
.dots { display: inline-flex; gap: 3px; transform: translateY(-1px); }
.dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.dots i.f { background: var(--ink-2); }
.scenes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.scene { padding: 0.6rem 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.2rem 0.8rem; }
.scene b { font-weight: 600; }
.scene small { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.88rem; }
.lvl { font-size: 0.88rem; font-weight: 600; }
.lvl-good { color: var(--pass); }
.lvl-ok { color: var(--warn); }
.lvl-poor { color: var(--fail); }

.ai { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; gap: 0.8rem; max-width: var(--text); }
.ai-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ai-head p { color: var(--ink-2); font-size: 0.9rem; }
.ai-out { font-size: 1.02rem; line-height: 1.9; white-space: pre-wrap; }
.ai-out.err { color: var(--fail); }

.ledger { margin-top: 2.5rem; }
.ledger > summary { cursor: pointer; font-weight: 600; padding: 0.7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ledger td { padding: 0.4rem 0.75rem 0.4rem 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ledger td:nth-child(1) { white-space: nowrap; width: 1%; }
.ledger td:nth-child(2) { color: var(--ink-2); white-space: nowrap; width: 1%; }
.ledger td:nth-child(3) { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }
.ledger td:nth-child(4) { font: 0.8rem var(--mono); color: var(--ink-3); text-align: right; white-space: nowrap; width: 1%; padding-right: 0; }

.pop { position: absolute; z-index: 30; max-width: 22rem; background: var(--ink); color: var(--surface); border-radius: 8px; padding: 0.7rem 0.85rem; font: 0.86rem/1.55 var(--sans); box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); }
.pop .lyr { color: inherit; opacity: 0.85; font-size: 0.78rem; }
.pop dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 0.7rem; margin-top: 0.4rem; }
.pop dt { opacity: 0.65; }
.pop dd { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; }
.pop .when { opacity: 0.65; font: 0.75rem var(--mono); margin-top: 0.4rem; }

/* ── A2：环境检测 ─────────────────────────────────────── */
.summary { padding: 1.5rem 1.75rem; display: grid; gap: 1.4rem; }
.scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.score-num { font: 700 3.4rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.5rem; }
.score-num small { font-size: 1.1rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.score-num.wait { color: var(--ink-3); }
.score-label { font-weight: 600; margin-top: 0.5rem; }
.score p { color: var(--ink-2); font-size: 0.88rem; margin-top: 0.15rem; }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: center; }
.tally div { padding: 0.6rem 0.5rem; text-align: center; border-left: 1px solid var(--line); }
.tally div:first-child { border-left: 0; }
.tally b { display: block; font: 700 1.5rem/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.tally span { font-size: 0.8rem; color: var(--ink-2); }
.tally .t-fail b { color: var(--fail); }
.tally .t-warn b { color: var(--warn); }
.tally .t-pass b { color: var(--pass); }
.progress { height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.25s; }

.plat { display: grid; gap: 0.6rem; border-top: 1px solid var(--line-2); padding-top: 1.2rem; }
.plat-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.plat-row > span { color: var(--ink-2); font-size: 0.9rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.seg button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 0.15rem 0.8rem; font-size: 0.88rem; color: var(--ink-2); }
.seg button:hover { border-color: var(--ink-3); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.verdict { font-size: 1.05rem; max-width: var(--text); }
.verdict ul { margin-top: 0.4rem; display: grid; gap: 0.2rem; color: var(--ink-2); font-size: 0.95rem; }
.verdict li { padding-left: 1.1em; position: relative; }
.verdict li::before { content: ""; position: absolute; left: 0.15em; top: 0.75em; width: 0.4em; height: 1.5px; background: var(--ink-3); }
.exit { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; border-top: 1px solid var(--line-2); padding-top: 1.1rem; font-size: 0.92rem; }
.exit div { display: grid; }
.exit dt, .exit .k { color: var(--ink-3); font-size: 0.8rem; }

.dims { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.dims a { padding: 0.6rem 0.8rem; text-decoration: none; border-left: 1px solid var(--line); display: grid; gap: 0.1rem; }
.dims a:first-child { border-left: 0; }
.dims a:hover { background: var(--sunk); }
.dims b { font-size: 0.92rem; font-weight: 600; }
.dims span { font-size: 0.8rem; color: var(--ink-3); }
.dims span.bad { color: var(--fail); font-weight: 600; }
.dims span.mid { color: var(--warn); font-weight: 600; }
.dims span.good { color: var(--pass); }

.checks { border-top: 1px solid var(--line); }
.check { border-bottom: 1px solid var(--line-2); }
.check > summary { display: grid; grid-template-columns: 1.4rem minmax(9rem, 14rem) minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.7rem 0.25rem; cursor: pointer; list-style: none; }
.check > summary::-webkit-details-marker { display: none; }
.check > summary:hover { background: var(--sunk); }
.check-title { font-weight: 600; }
.check-sum { color: var(--ink-2); font-size: 0.93rem; min-width: 0; }
.check[data-status="fail"] .check-sum { color: var(--fail); }
.check[data-status="warn"] .check-sum { color: var(--warn); }
.check-pair { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-3); font-size: 0.8rem; }
.check-pair .x { font-size: 0.75rem; }
.check-body { padding: 0.2rem 0.25rem 1.1rem 2.55rem; display: grid; gap: 0.6rem; max-width: 52rem; }
.check-body p { color: var(--ink-2); font-size: 0.93rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; font-size: 0.88rem; background: var(--sunk); border-radius: 6px; padding: 0.6rem 0.8rem; }
.kv dt { color: var(--ink-3); }
.kv dd { font-family: var(--mono); font-size: 0.84rem; word-break: break-all; }
.pts { font: 0.78rem var(--mono); color: var(--ink-3); }

.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.next a { padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line-2); text-decoration: none; display: grid; }
.next a b { font-weight: 600; text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 0.22em; }
.next a:hover b { text-decoration-color: currentColor; }
.next a span { color: var(--ink-2); font-size: 0.88rem; }

/* ── A3：IP 报告 ──────────────────────────────────────── */
.q { display: flex; gap: 0.5rem; }
.q input { width: min(22rem, 60vw); padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-family: var(--mono); font-size: 0.92rem; }
.q input::placeholder { font-family: var(--sans); color: var(--ink-3); }

.ipcard { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ipcard-main { padding: 1.5rem 1.75rem; border-right: 1px solid var(--line); min-width: 0; }
.ipcard-score { padding: 1.5rem 1.75rem; }
.ip-addr { font: 600 2rem/1.25 var(--mono); word-break: break-all; letter-spacing: -0.01em; }
.ip-sub { color: var(--ink-2); font-size: 0.92rem; margin-top: 0.2rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2rem; margin-top: 1.4rem; }
.facts div { min-width: 0; }
.facts dt { color: var(--ink-3); font-size: 0.8rem; }
.facts dd { font-size: 0.98rem; overflow-wrap: anywhere; }
.facts dd small { color: var(--ink-3); font-size: 0.82rem; display: block; }
.grade { font: 700 4.2rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 0.7rem; }
.grade small { font-size: 1.6rem; letter-spacing: 0; padding: 0 0.5rem; border: 2px solid currentColor; border-radius: 6px; line-height: 1.35; }
.scale { position: relative; height: 2.2rem; margin-top: 1rem; }
.scale-bar { position: absolute; left: 0; right: 0; top: 0.55rem; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--fail) 0 40%, var(--warn) 40% 70%, var(--pass) 70% 100%); opacity: 0.35; }
.scale-pin { position: absolute; top: 0; width: 2px; height: 1.25rem; background: var(--ink); transform: translateX(-1px); }
.scale-marks { position: absolute; left: 0; right: 0; top: 1.25rem; font: 0.7rem var(--mono); color: var(--ink-3); }
.scale-marks span { position: absolute; transform: translateX(-50%); }
.score-note { color: var(--ink-2); font-size: 0.88rem; margin-top: 0.6rem; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.usage-bar { display: flex; height: 0.9rem; border-radius: 4px; overflow: hidden; background: var(--line-2); gap: 2px; }
.usage-bar i { display: block; height: 100%; }
.u-isp { background: var(--tls); }
.u-mobile { background: var(--tcp); }
.u-dc { background: var(--probe); }
.u-biz { background: var(--http); }
.u-edu { background: var(--js); }
.usage-key { display: grid; gap: 0.3rem; margin-top: 0.8rem; font-size: 0.92rem; }
.usage-key li { display: grid; grid-template-columns: 0.8rem 1fr auto; gap: 0.6rem; align-items: center; }
.usage-key i { width: 0.8rem; height: 0.8rem; border-radius: 2px; }
.usage-key b { font-variant-numeric: tabular-nums; font-weight: 600; }
.why { color: var(--ink-2); font-size: 0.88rem; margin-top: 0.8rem; display: grid; gap: 0.15rem; }
.why li { padding-left: 1.1em; position: relative; }
.why li::before { content: ""; position: absolute; left: 0.15em; top: 0.75em; width: 0.4em; height: 1.5px; background: var(--ink-3); }

.parts { border-top: 1px solid var(--line); }
.parts li { display: grid; grid-template-columns: 3.2rem 6.5rem 1fr; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line-2); font-size: 0.92rem; align-items: baseline; }
.parts .p { font: 600 0.95rem var(--mono); color: var(--fail); }
.parts .th { font-weight: 600; }
.parts .y { color: var(--ink-2); }
.parts-none { padding: 0.8rem 0; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }

.scn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.scn > div { padding: 0.9rem 1rem; border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); margin: -1px 0 0 -1px; display: grid; gap: 0.15rem; align-content: start; }
.scn h3 { font-size: 0.98rem; font-weight: 650; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.scn p { color: var(--ink-2); font-size: 0.85rem; line-height: 1.55; }

.flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
.flag-group h3 { font-size: 0.98rem; font-weight: 650; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.flag-group h3 small { font-weight: 400; color: var(--ink-3); font-size: 0.8rem; }
.flag { display: grid; grid-template-columns: 1.4rem 6.2rem 1fr; gap: 0.7rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line-2); align-items: baseline; font-size: 0.92rem; }
.flag .st { align-self: center; }
.flag b { font-weight: 600; }
.flag span { color: var(--ink-2); font-size: 0.88rem; }
.flag[data-state="hit"] span { color: var(--fail); }
.flag[data-state="unknown"] b { color: var(--ink-2); }

.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 0.8rem; padding: 0.4rem 1rem 0.4rem 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl td.num { font-family: var(--mono); font-size: 0.85rem; }
.tbl .dim { color: var(--ink-3); }
.tbl .bad { color: var(--fail); font-weight: 600; }
.tbl .good { color: var(--pass); }

.defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
.defs div { min-width: 0; }
.defs dt { color: var(--ink-3); font-size: 0.8rem; }
.defs dd { overflow-wrap: anywhere; }
.defs dd.mono { font-size: 0.9rem; }
.defs dd small { display: block; color: var(--ink-3); font-size: 0.82rem; font-family: var(--sans); }

.spark { width: 100%; height: 5rem; display: block; }
.spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--ink); }
.spark line { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-x { display: flex; justify-content: space-between; font: 0.72rem var(--mono); color: var(--ink-3); }

.verdict-box { padding: 1.5rem 1.75rem; display: grid; gap: 0.5rem; }
.verdict-box .big { font-size: 1.7rem; font-weight: 700; line-height: 1.35; }
.verdict-box .big.good { color: var(--pass); }
.verdict-box .big.bad { color: var(--fail); }
.verdict-box .big.mid { color: var(--warn); }
.verdict-box p { color: var(--ink-2); max-width: var(--text); }

.loading { color: var(--ink-3); padding: 2rem 0; }
.error { color: var(--fail); padding: 1rem 0; }

/* ── 说明文字与常见问题 ───────────────────────────────── */
.prose { max-width: var(--text); display: grid; gap: 0.9rem; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin-top: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.02rem; font-weight: 650; margin-top: 0.5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.steps { display: grid; gap: 0.9rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 1.8rem 1fr; gap: 0.75rem; counter-increment: step; }
.steps li::before { content: counter(step); font: 600 0.9rem/1.9 var(--mono); color: var(--ink-3); text-align: right; }
.steps b { color: var(--ink); display: block; font-weight: 650; }
.steps b .lyr { font-size: 1rem; color: var(--ink); font-weight: 650; }
.bullets { display: grid; gap: 0.35rem; }
.bullets li { padding-left: 1.2em; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0.2em; top: 0.8em; width: 0.45em; height: 1.5px; background: var(--ink-3); }
.faq { border-top: 1px solid var(--line); max-width: var(--text); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 0.8rem 1.5rem 0.8rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.7rem; color: var(--ink-3); font-weight: 400; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1rem; color: var(--ink-2); display: grid; gap: 0.6rem; }

.share-pop { position: absolute; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.14); display: grid; min-width: 12rem; }
.share-pop button { border: 0; background: none; text-align: left; padding: 0.5rem 0.7rem; border-radius: 5px; font-size: 0.93rem; }
.share-pop button:hover { background: var(--ground); }
.toast { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9rem; z-index: 40; }

/* ── 窄屏 ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  /* 导航横向滚动；“专题”菜单改为相对整条页头定位，否则会被滚动容器裁掉。 */
  .top-in { gap: 0.5rem; padding: 0 0.75rem; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .menu { position: static; }
  .menu-list, .menu:nth-last-of-type(-n + 2) .menu-list { left: 0.75rem; right: 0.75rem; top: calc(100% + 0.25rem); width: auto; max-width: none; flex-wrap: wrap; }
  .menu-sec { --cols: 2 !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .menu-list a { white-space: normal; }
  .theme-btn { flex: none; }
  main { padding: 1.5rem 0.9rem 3rem; }
  .head { grid-template-columns: 1fr; }
  .head h1 { font-size: 1.7rem; }
  .head-side { grid-column: 1; grid-row: auto; align-items: flex-start; }
  .actions { justify-content: flex-start; }
  .cols, .two, .flags, .ipcard { grid-template-columns: 1fr; }
  .ipcard-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .scores { grid-template-columns: 1fr 1fr; }
  .tally { grid-column: 1 / -1; }
  .dims { grid-template-columns: repeat(3, 1fr); }
  .dims a:nth-child(4) { border-left: 0; }
  .dims a:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .scn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check > summary { grid-template-columns: 1.4rem 1fr; }
  .check-sum, .check-pair { grid-column: 2; }
  .check-body { padding-left: 2.3rem; }
  .story { padding: 1.25rem 1.1rem 1.5rem; }
  .story-prose { font-size: 1.15rem; line-height: 1.95; }
  .story-one { font-size: 1.45rem; }
  .story-ads > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .summary, .ipcard-main, .ipcard-score, .verdict-box { padding: 1.1rem; }
  .tabs { padding: 0 0.5rem; overflow-x: auto; flex-wrap: nowrap; }
  .tabs button { white-space: nowrap; }
  .nav > a, .menu > summary { padding: 0.35rem 0.5rem; }
  .ip-addr { font-size: 1.45rem; }
  .parts li { grid-template-columns: 3rem 1fr; }
  .parts .y { grid-column: 2; }
  .flag { grid-template-columns: 1.4rem 1fr; }
  .flag span { grid-column: 2; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .score-num { font-size: 2.6rem; }
  .grade { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- 查询工具 ---- */
.q select { padding: 0.45rem 0.5rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; }
.examples { color: var(--ink-2); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: baseline; }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-family: var(--mono); font-size: 0.9em; color: var(--tcp); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
ul.plain code { font-family: var(--mono); font-size: 0.88em; }
ul.plain .bad { color: var(--fail); }
ul.plain .mid { color: var(--warn); }
ul.hostlist { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.3rem 1.5rem; font-family: var(--mono); font-size: 0.88rem; }
.tbl .ok { color: var(--pass); }
.tbl .bad { color: var(--fail); }
.tbl .hl { font-weight: 700; }
.tbl .recs { display: grid; gap: 0.15rem; }
.tbl td small { font-family: var(--mono); font-size: 0.82em; }
.bits { font-family: var(--mono); font-size: 0.95rem; word-spacing: 0.3em; overflow-wrap: anywhere; }
.bits b { color: var(--tcp); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.bits span { color: var(--ink-3); }

.timeline { position: relative; padding-top: 1.6rem; overflow-x: auto; }
.tl-axis { position: relative; height: 1.2rem; margin-left: 6.5rem; border-bottom: 1px solid var(--line); margin-top: -1.6rem; margin-bottom: 0.5rem; }
.tl-axis span { position: absolute; bottom: 2px; transform: translateX(-50%); font: 0.75rem var(--mono); color: var(--ink-3); }
.tl-row { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; min-height: 1.5rem; }
.tl-name { font: 0.82rem var(--mono); color: var(--ink-2); }
.tl-track { position: relative; height: 0.7rem; background: var(--sunk); border-radius: 2px; min-width: 20rem; }
.tl-track i { position: absolute; top: 0; bottom: 0; background: var(--tcp); border-radius: 2px; opacity: 0.85; }
.tl-row:first-of-type .tl-track i { background: var(--probe); }

.asgraph { overflow-x: auto; }
.asgraph svg { width: 100%; min-width: 640px; height: auto; display: block; }
.asgraph .ge { stroke: var(--line); }
.asgraph .ge.up { stroke: var(--tcp); opacity: 0.55; }
.asgraph .ge.down { stroke: var(--tls); opacity: 0.55; }
.asgraph .ge.peer { stroke: var(--http); opacity: 0.45; stroke-dasharray: 5 4; }
.asgraph .gn rect { fill: var(--surface); stroke: var(--ink-3); stroke-width: 1; }
.asgraph .gn.up rect { stroke: var(--tcp); }
.asgraph .gn.down rect { stroke: var(--tls); }
.asgraph .gn.peer rect { stroke: var(--http); stroke-dasharray: 4 3; }
.asgraph .gn.self rect { fill: var(--ink); stroke: var(--ink); }
.asgraph .gn text { fill: var(--ink); stroke: none; }
.asgraph .gn .as { font: 600 12px var(--mono); }
.asgraph .gn .nm { font: 10px var(--sans); fill: var(--ink-2); }
.asgraph .gn.self text { fill: var(--surface); }
.asgraph .gn.self .as { font-size: 15px; }
.asgraph .gn.self .nm { fill: var(--line); font-size: 11px; }
.asgraph a.gn:hover rect, .asgraph a.gn:focus-visible rect { stroke-width: 2.5; }
.asgraph .band { font: 12px var(--sans); fill: var(--ink-3); }

.ipcard-canvas { width: 100%; max-width: 760px; height: auto; display: block; border: 1px solid var(--line); margin-bottom: 1rem; }
.field.check { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink); }

/* ---- 数据页 ---- */
.hbars { display: grid; gap: 0.45rem; max-width: 46rem; }
.hbar { display: grid; grid-template-columns: 11rem 1fr auto; gap: 0.75rem; align-items: center; font-size: 0.92rem; }
.hbar-l { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-t { height: 0.7rem; background: var(--sunk); border-radius: 2px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; background: var(--tcp); border-radius: 2px; }
.hbar-v { font: 0.85rem var(--mono); color: var(--ink-2); min-width: 4.5rem; text-align: right; }
.vbars { display: flex; align-items: flex-end; gap: 2px; height: 9rem; position: relative; padding-bottom: 1.6rem; flex-wrap: nowrap; }
.vbar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.vbar i { display: block; width: 100%; background: var(--tcp); border-radius: 2px 2px 0 0; }
.vbar.we i { opacity: 0.5; }
.vbars-x { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 0.75rem var(--mono); color: var(--ink-3); }
.toolbar .seg { margin: 0; }

/* ---- 帮助与列表 ---- */
.article-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0; max-width: var(--text); }
.article-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.article-list span { color: var(--ink-3); font-size: 0.88rem; }
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem 2rem; }
.listing { border-top: 2px solid var(--ink); padding-top: 0.7rem; }
.listing h3 { font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.listing p { color: var(--ink-2); font-size: 0.93rem; margin-bottom: 0.5rem; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.88rem; margin-bottom: 0.4rem; }
.proscons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.proscons .pros li::before { content: "＋ "; color: var(--pass); }
.proscons .cons li::before { content: "－ "; color: var(--fail); }
.pill.warn { border-color: var(--warn); color: var(--warn); }
@media (max-width: 640px) {
  .hbar { grid-template-columns: 6.5rem 1fr auto; }
  .article-list li { grid-template-columns: 1fr; gap: 0.1rem; }
  .proscons { grid-template-columns: 1fr; }
}

/* ---- 账号与套餐 ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; max-width: 46rem; margin-bottom: 2rem; }
.plan { border: 1px solid var(--line); border-top: 3px solid var(--ink-3); border-radius: 0 0 8px 8px; padding: 1.1rem 1.25rem 1.25rem; background: var(--surface); display: grid; gap: 0.6rem; align-content: start; }
.plan.mine { border-top-color: var(--pass); }
.plan h3 { font-size: 1.05rem; font-weight: 650; }
.plan-price { font: 700 2rem/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 0.9rem; font-weight: 400; color: var(--ink-2); }
.plan-sum { color: var(--ink-2); font-size: 0.92rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 0.4rem; display: grid; gap: 0.25rem; font-size: 0.92rem; }
.plan li::before { content: "· "; color: var(--ink-3); }
.plan .btn { justify-self: start; text-decoration: none; }
.wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: var(--text); }
.wall li { padding: 0.8rem 0; border-bottom: 1px solid var(--line-2); }
.wall p { font-family: var(--kai); font-size: 1.05rem; margin-bottom: 0.2rem; }
#tool > .seg, #tool > div > .seg { margin: 0 0 1.75rem; }
.sec .formbox { padding: 0; }
.sec .formbox.sheet { padding: 1.5rem 1.75rem; }
table.tbl th, section > table.tbl td:first-child { white-space: nowrap; }
.q { flex-wrap: wrap; max-width: 100%; }
.q input { flex: 1 1 11rem; min-width: 0; }
.q .btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 640px) { .head-side { max-width: 100%; } .q { width: 100%; } }
