/* NetKit v3 设计系统 —— 统一令牌（源自新版首页设计稿）
   分区：令牌 / 基础 / 顶栏 / 首页 Hero / 终端 / 工具网格 / 信任区 / 命令面板
        / 工具页兼容层(43 片段) / 体检页(ck-) / Listing 页 / 响应式 */

/* ============ 令牌 ============ */
:root {
  color-scheme: light dark;
  --bg: #e9edf3;
  --bg-soft: #dde5ee;
  --panel: #fbfcfe;
  --panel-2: #e3e9f0;
  --line: #aebfd3;
  --line-soft: #cbd6e3;
  --text: #27364a;
  --text-strong: #101b2b;
  --muted: #4b5e74;
  --faint: #64778d;
  --accent: #047857;
  --accent-hover: #036648;
  --accent-dim: #d9eee7;
  --accent-ink: #ffffff;
  --accent-text: #047857;
  --accent-2: #0f766e;
  --cyan: #0e7490;
  --warn-bg: #fff6dc;
  --amber: #94620a;
  --red: #b94747;
  --term-bg: #0a1220;
  --term-line: #26364a;
  --shadow: 0 18px 48px rgba(15, 32, 55, .09);
  --shadow-sm: 0 8px 24px rgba(15, 32, 55, .07);
  --radius: 18px;

  /* 旧片段兼容别名（43 个工具片段沿用旧变量名） */
  --tx: var(--text-strong);
  --tx2: var(--muted);
  --card: var(--panel);
  --acc: var(--accent);
  --acc2: var(--accent-2);
  --ok: #15803d;
  --warn: var(--amber);
  --bad: var(--red);
  --grad: linear-gradient(120deg, #047857 0%, #0d9488 55%, #0e7490 100%);
  --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  --sh-sm: var(--shadow-sm);
  --sh-md: var(--shadow);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-lg: var(--radius);
  --r-md: 12px;
}
[data-theme="dark"] {
  --bg: #070d18;
  --bg-soft: #0a1220;
  --panel: #0d1729;
  --panel-2: #111f34;
  --line: #26364a;
  --line-soft: #1b2a3d;
  --text: #e6eef8;
  --text-strong: #f4f8fd;
  --muted: #9bacc2;
  --faint: #71839b;
  --accent: #34d399;
  --accent-hover: #6ee7b7;
  --accent-dim: #11392f;
  --accent-ink: #061a13;
  --accent-text: #6ee7b7;
  --accent-2: #2dd4bf;
  --cyan: #34d399;
  --warn-bg: #342b16;
  --amber: #e7b85a;
  --red: #ed8585;
  --term-bg: #0a1220;
  --term-line: #223047;
  --shadow: 0 20px 60px rgba(0, 0, 0, .3);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .22);
  --ok: #4ade80;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d18;
    --bg-soft: #0a1220;
    --panel: #0d1729;
    --panel-2: #111f34;
    --line: #26364a;
    --line-soft: #1b2a3d;
    --text: #e6eef8;
    --text-strong: #f4f8fd;
    --muted: #9bacc2;
    --faint: #71839b;
    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --accent-dim: #11392f;
    --accent-ink: #061a13;
    --accent-text: #6ee7b7;
    --accent-2: #2dd4bf;
    --cyan: #34d399;
    --warn-bg: #342b16;
    --amber: #e7b85a;
    --red: #ed8585;
    --term-bg: #0a1220;
    --term-line: #223047;
    --shadow: 0 20px 60px rgba(0, 0, 0, .3);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, .22);
    --ok: #4ade80;
  }
}

/* ============ 基础 ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.mono, code, kbd, pre { font-family: var(--mono); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.14; letter-spacing: -.04em; color: var(--text-strong); font-weight: 800; margin: 18px 0; }
h1 .hl { color: var(--accent-text); }
h2 { color: var(--text-strong); letter-spacing: -.02em; }
img { max-width: 100%; }
kbd { font-size: 10.5px; background: var(--panel-2); border: 1px solid var(--line); border-bottom-color: color-mix(in srgb, var(--line) 70%, #888); border-radius: 4px; padding: 1px 5px; color: var(--muted); }
pre { background: var(--term-bg); color: #c7d3cf; border: 1px solid var(--term-line); border-radius: 10px; padding: 13px 15px; overflow: auto; font-size: 12.8px; line-height: 1.7; }
code { background: var(--panel-2); border-radius: 5px; padding: 1px 6px; font-size: .92em; }
pre code { background: none; padding: 0; }
mark { background: var(--warn-bg); color: var(--amber); border-radius: 4px; padding: 0 3px; }

/* 表单 */
input, select, textarea {
  font: inherit; color: var(--text-strong); background: var(--panel);
  border: 1.5px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
input[type="file"] { padding: 8px; }
textarea { resize: vertical; width: 100%; }
input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="datetime-local"], input:not([type]) { width: 100%; }
input::placeholder, textarea::placeholder { color: var(--faint); }
label.chk { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
label.chk input { width: auto; }

/* 主按钮（沿用旧片段的 button 默认为主色） */
button, .btn {
  appearance: none; background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 10px; padding: 10px 18px;
  font-size: 14px; font-weight: 650; letter-spacing: .2px;
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: .15s;
}
button:hover, .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); filter: none; }
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
button.ghost, .btn.ghost, .btn-ghost2 { background: var(--panel); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { background: var(--accent-dim); transform: none; }

.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--line) 72%, transparent) 1px, transparent 1.2px);
  background-size: 24px 24px; opacity: .34;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 68%);
}
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff;
  background: linear-gradient(145deg, #059669 0%, #047857 58%, #03664b 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 72%, #001f17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 3px 9px rgba(4, 120, 87, .18);
}
.brand-mark::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #a7f3d0; box-shadow: 0 0 0 2px rgba(3, 102, 72, .9); }
.brand-word { font-family: var(--mono); font-size: 16px; line-height: 1; letter-spacing: -.05em; font-weight: 750; }
.brand-word .suffix { color: var(--accent); font-weight: 650; }
.topnav { display: flex; gap: 6px; }
.topnav a { color: var(--muted); font-size: 14px; padding: 7px 10px; border-radius: 8px; transition: color .18s, background .18s; }
.topnav a:hover { color: var(--text-strong); background: var(--panel-2); text-decoration: none; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cmdk-btn {
  display: flex; align-items: center; gap: 9px; min-width: 170px; padding: 8px 10px 8px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  color: var(--muted); font-size: 13.5px; box-shadow: none; font-weight: 500;
}
.cmdk-btn:hover, .theme-btn:hover { color: var(--text-strong); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); background: var(--panel); transform: none; }
.cmdk-btn > .keys { margin-left: auto; display: flex; gap: 3px; }
.theme-btn { width: 38px; height: 38px; display: grid; place-items: center; background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); padding: 0; box-shadow: none; }

/* 语言切换器 */
.langs { display: inline-flex; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; white-space: nowrap; line-height: 1; }
.langs a { color: var(--muted); padding: 0 2px; }
.langs a:hover { color: var(--accent-text); text-decoration: none; }
.langs b { color: var(--accent-text); font-weight: 650; }

/* 移动端汉堡 */
.menu-btn { display: none; appearance: none; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 90%, transparent); color: var(--text-strong);
  width: 38px; height: 38px; border-radius: 9px; padding: 0; box-shadow: none; align-items: center; justify-content: center; flex: 0 0 auto; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn:hover { transform: none; background: var(--panel); }
@media (max-width: 860px) {
  .topnav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 16px 14px; box-shadow: var(--shadow); }
  .topnav.open { display: flex; }
  .topnav a { padding: 11px 12px; border-radius: 10px; font-size: 15px; color: var(--text); }
  .menu-btn { display: inline-flex; }
  .cmdk-btn { min-width: 0; }
  .cmdk-btn > .lbl, .cmdk-btn > .keys { display: none; }
  .cmdk-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .langs { padding-left: 0; border-left: 0; }
  .langs a:first-child { display: none; }
}

/* ============ 首页 Hero ============ */
.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(400px, 1.06fr); gap: 56px; padding: 68px 0 40px; align-items: center; }
.status-line { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 82%, transparent); border-radius: 999px; padding: 6px 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.hero .h1 { margin: 20px 0 16px; }
.hero-sub { color: var(--muted); font-size: 16.5px; margin: 0 0 26px; max-width: 32em; line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.btn-scan { display: inline-flex; align-items: center; gap: 9px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); font-weight: 700; font-size: 15.5px; padding: 13px 21px; box-shadow: 0 8px 20px rgba(11, 21, 38, .16); }
.btn-scan:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); text-decoration: none; }
.btn-browse { display: inline-flex; align-items: center; gap: 9px; border-radius: 12px; background: var(--accent-dim); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); padding: 12px 16px; font-size: 14px; font-weight: 600; }
.btn-browse:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent-dim) 78%, var(--panel)); text-decoration: none; transform: none; }
.hero-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 19px; color: var(--muted); font-size: 13.5px; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--accent); flex: none; }
.trust-badge { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-text); font-size: 13px; font-weight: 600; margin-top: 20px; }
.trust-badge small { color: var(--faint); font-weight: 400; }

/* 终端演示 */
.terminal { background: var(--term-bg); border: 1px solid var(--term-line); border-radius: var(--radius); box-shadow: 0 28px 70px rgba(11, 21, 38, .18); overflow: hidden; font-family: var(--mono); }
.term-head { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--term-line); }
.tdot { width: 9px; height: 9px; border-radius: 50%; }
.tdot.r { background: #df7777; } .tdot.y { background: #d8ad55; } .tdot.g { background: #55b897; }
.term-title { margin-left: 8px; font-size: 11.5px; color: #85958f; }
.term-tag { margin-left: auto; font-size: 10px; letter-spacing: .04em; color: #ddbc72; border: 1px solid #594c2d; border-radius: 4px; padding: 2px 7px; }
.term-body { padding: 18px 20px 9px; min-height: 300px; font-size: 12.8px; line-height: 1.95; color: #c7d3cf; white-space: pre-wrap; word-break: break-all; }
.term-body > .cmd { color: #f0f7ff; } .term-body > .dim { color: #71839b; } .term-body > .ok { color: #34d399; } .term-body > .warn { color: #e4ba61; } .term-body > .ip { color: #6ee7b7; }
.cursor { display: inline-block; width: 7px; height: 14px; background: #34d399; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-progress { height: 2px; background: #132034; }
.term-progress > div { height: 100%; width: 0%; background: #34d399; transition: width .3s ease; }
.term-foot { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 15px 13px; border-top: 1px solid var(--term-line); }
.term-chip { font-size: 10.5px; color: #879791; border: 1px solid var(--term-line); border-radius: 5px; padding: 3px 8px; }
.term-chip b { color: #34d399; font-weight: 500; }

/* 首页报告卡（一键体检结果） */
.results { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; box-shadow: var(--shadow-sm); }
.results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 24px 26px; border-bottom: 1px solid var(--line-soft); }
.score-ring { position: relative; width: 104px; height: 104px; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font-family: var(--mono); font-size: 32px; color: var(--text-strong); line-height: 1; }
.ring-num span { font-size: 11px; color: var(--muted); margin-top: 4px; }
/* listing 质量分数字（静态） */
.score-num { font-family: var(--mono); font-size: 22px; font-weight: 800; line-height: 1; color: var(--text-strong); }
.results-head h2 { margin: 0 0 5px; font-size: 21px; color: var(--text-strong); letter-spacing: -.02em; }
.results-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 43em; }
.btn-copy { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; box-shadow: none; font-weight: 500; }
.btn-copy:hover { border-color: var(--accent); color: var(--accent-text); background: var(--panel); transform: none; }
.result-groups { display: grid; grid-template-columns: repeat(4, 1fr); }
.rgroup { padding: 20px 22px 22px; border-right: 1px solid var(--line-soft); }
.rgroup:last-child { border-right: none; }
.rgroup h3 { margin: 0 0 12px; font-size: 10.5px; letter-spacing: .13em; color: var(--faint); font-family: var(--mono); font-weight: 600; }
.ritem { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.ritem:last-child { border-bottom: none; }
.ritem > .k { color: var(--muted); flex: none; }
.ritem > .v { margin-left: auto; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--text-strong); word-break: break-all; }
.deep-row { margin: 0; padding: 14px 26px; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.deep-row a { color: var(--accent-text); font-weight: 600; }

/* ============ 区块与工具网格 ============ */
.section { padding: 56px 0 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 22px; }
.section-head h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.25; }
.section-head > div > .sub, .sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.spacer { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; box-shadow: none; font-weight: 500; }
.chip:hover { color: var(--text-strong); background: var(--panel-2); transform: none; border-color: transparent; }
.chip.on { background: var(--panel); border-color: var(--line); color: var(--text-strong); font-weight: 650; }
.flagship-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcard { text-align: left; background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; color: var(--text); display: flex; flex-direction: column; gap: 7px; min-width: 0; transition: border-color .18s, transform .18s, box-shadow .18s, background .18s; }
.tcard:hover { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-sm); background: var(--panel); text-decoration: none; }
.tcard .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-text); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.tcard .ic svg { width: 19px; height: 19px; }
.tcard h3 { margin: 2px 0 0; font-size: 15px; color: var(--text-strong); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tcard p { margin: 0; font-size: 12.7px; color: var(--muted); line-height: 1.58; flex: 1; }
.tcard .meta { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.hot { font-size: 9.5px; color: var(--amber); background: var(--warn-bg); border-radius: 999px; padding: 1px 7px; font-family: var(--mono); font-weight: 700; }
.local-tag { color: var(--accent-text); }
.flagship-tool { position: relative; min-height: 150px; padding: 22px; background: var(--panel); overflow: hidden; }
.flagship-tool::after { content: ""; position: absolute; width: 120px; height: 120px; right: -65px; top: -65px; border: 24px solid var(--accent-dim); border-radius: 50%; opacity: .9; pointer-events: none; }
.flagship-tool:nth-child(2)::after { border-color: color-mix(in srgb, var(--cyan) 12%, transparent); }
.flagship-tool h3 { font-size: 18px; }
.flagship-tool .meta { margin-top: 7px; color: var(--accent-text); font-family: inherit; font-size: 13px; }
.flagship-arrow { margin-left: auto; font-size: 18px; color: var(--accent-text); }
.empty-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 36px 0; font-size: 14px; }

/* 信任区 */
.trust-strip { margin-top: 60px; border: 1px solid #1d2d44; border-radius: var(--radius); background: #0b1526; color: #e6eef8; padding: 34px 34px 31px; box-shadow: var(--shadow); }
.trust-strip h2 { margin: 0 0 7px; font-size: 21px; color: #fff; display: flex; align-items: center; gap: 10px; }
.trust-strip h2 svg { color: #34d399; }
.trust-strip > p { margin: 0 0 24px; color: #aab8cb; font-size: 14px; max-width: 55em; }
.trust-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #2b3a50; padding-top: 24px; }
.trust-cols > div { padding: 0 24px; border-right: 1px solid #2b3a50; }
.trust-cols > div:first-child { padding-left: 0; }
.trust-cols > div:last-child { border-right: 0; padding-right: 0; }
.trust-cols h3 { margin: 0 0 6px; font-size: 13px; color: #e6eef8; font-family: var(--mono); font-weight: 600; }
.trust-cols p { margin: 0; font-size: 13px; color: #9aabc0; line-height: 1.7; }

/* ============ 页脚 ============ */
.foot { margin-top: 58px; border-top: 1px solid var(--line); padding: 24px 0 44px; color: var(--faint); font-size: 12.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent-text); }

/* ============ 命令面板 ============ */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(8, 17, 14, .56); backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.overlay[hidden] { display: none; }
.palette { width: 100%; max-width: 620px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 28px 80px rgba(8, 18, 33, .28); overflow: hidden; }
.palette-input-row { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line-soft); }
.palette-input-row svg { color: var(--faint); flex: none; }
.palette input { flex: 1; background: none; border: none; outline: none; color: var(--text-strong); font-size: 16px; min-width: 0; padding: 0; border-radius: 0; }
.palette input:focus { box-shadow: none; }
.palette-list { list-style: none; margin: 0; padding: 7px; max-height: 46vh; overflow-y: auto; }
.palette-list li { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 8px; cursor: pointer; }
.palette-list li .ic { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent-text); font-family: var(--mono); font-size: 12px; font-weight: 700; flex: none; }
.palette-list li .nm { color: var(--text-strong); font-size: 14.5px; }
.palette-list li .ds { color: var(--faint); font-size: 11.5px; margin-left: auto; text-align: right; font-family: var(--mono); }
.palette-list li.sel, .palette-list li:hover { background: var(--panel-2); }
.palette-list li.sel .nm { color: var(--accent-text); }
.palette-none { padding: 26px; text-align: center; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; gap: 16px; padding: 10px 17px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 11.5px; align-items: center; }

/* ============ 工具页（兼容层：43 个片段沿用旧类名） ============ */
.crumb { font-size: 13px; color: var(--faint); margin: 22px 0 14px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent-text); }
.crumb span { color: var(--text-strong); }
.tool { position: relative; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.tool-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.tool-ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-text); }
.tool-ic svg { width: 26px; height: 26px; }
.tool-tt h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 14.5px; margin: 0; }
.howto { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 16px; color: var(--muted); font-size: 14px; }
.howto h2 { font-size: 15px; margin: 0 0 6px; color: var(--text-strong); }
.howto p { margin: 0; }
.related { margin-top: 34px; }
.related h2 { font-size: 17px; margin: 0 0 12px; }

/* 静态页 */
.page { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow-sm); margin-top: 24px; }
.page h1 { font-size: 26px; margin: 0 0 14px; }
.page h2 { font-size: 19px; margin: 22px 0 8px; }
.page p, .page li { color: var(--text); font-size: 14.5px; }
.page a { color: var(--accent-text); }

/* 结果区 / 表格 / 状态徽章（旧片段词汇） */
.out { background: var(--term-bg); color: #c7d3cf; border: 1px solid var(--term-line); border-radius: 10px; padding: 13px 15px; overflow: auto; font-family: var(--mono); font-size: 12.8px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; color: var(--text-strong); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.row .grow { flex: 1; min-width: 200px; }
.bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line-soft); }
.bar > i { display: block; height: 100%; background: var(--accent-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.tbl tr:last-child td { border-bottom: none; }
.badge { display: inline-block; flex: none; font-size: 11px; border-radius: 999px; padding: 2px 9px; font-weight: 650; font-family: var(--mono); }
.badge.ok { color: var(--accent-text); background: var(--accent-dim); }
.badge.warn { color: var(--amber); background: var(--warn-bg); }
.b-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.b-warn { color: var(--amber); background: var(--warn-bg); }
.b-bad { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.b-mut { color: var(--muted); background: var(--panel-2); }
.err { color: var(--red); font-size: 13.5px; }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--accent-dim); color: var(--accent-text); }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; }
.card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-text); }
.chk { margin: 6px 0; }
legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
fieldset { border: 1px solid var(--line-soft); border-radius: 10px; }
/* 修复：closed details 的子元素带 display 样式时会击穿 Chromium 折叠隐藏而泄漏渲染 */
details:not([open]) > *:not(summary) { display: none !important; }

/* ============ 体检页（check / ck-） ============ */
.ck-hero { position: relative; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw);
  border-bottom: 1px solid var(--line); border-radius: 0; }
.ck-hero-bg { position: absolute; inset: 0; opacity: .16; pointer-events: none; }
.ck-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ck-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; padding: 40px 0 30px; align-items: center; }
.ck-hero-in h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 14px 0; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 20px; }
.stat { background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; }
.stat b { font-size: 17px; display: block; line-height: 1.3; color: var(--text-strong); }
.stat span { font-size: 12px; color: var(--muted); }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.report { padding: 18px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.score-wrap { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.ring { width: 92px; height: 92px; flex: none; }
.ring-bg { fill: none; stroke: var(--panel-2); stroke-width: 10; }
.ring-val { fill: none; stroke: var(--accent-2); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .8s ease; }
.ckv { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; }
.ckv label { font-size: 12px; color: var(--muted); display: block; }
.ckv b { font-size: 14px; color: var(--text-strong); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); background: var(--panel); }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.pill.warn { color: var(--amber); background: var(--warn-bg); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.pill.bad { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.pill.accent { color: var(--accent-text); background: var(--accent-dim); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.demo { border: 1px solid var(--line); background: var(--panel); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.demo-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.demo-head strong { color: var(--text-strong); }
.demo-body { display: grid; grid-template-columns: 360px 1fr; min-height: 380px; }
.steps { border-right: 1px solid var(--line); padding: 16px; background: color-mix(in srgb, var(--panel-2) 55%, var(--panel)); }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid transparent; }
.step.active { border-color: var(--line); background: var(--panel); }
.step.done { opacity: .85; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; flex: none; background: var(--panel); color: var(--muted); }
.step.done .dot { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.step b { color: var(--text-strong); font-size: 14px; }
.step .sdesc { font-size: 12.5px; color: var(--muted); }
.result { padding: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tab { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--panel); font-weight: 650; color: var(--muted); box-shadow: none; }
.tab:hover { transform: none; color: var(--text-strong); }
.tab.active { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }
.tabpanel { margin-top: 14px; padding: 18px; }
.cktool { padding: 16px; }
.cktool h3 { margin: 8px 0 6px; font-size: 15.5px; color: var(--text-strong); }
.cktool p { margin: 0; color: var(--muted); font-size: 13.5px; }
.iconbox { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-dim); display: grid; place-items: center; font-size: 17px; color: var(--accent-text); }
.tools3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.price { padding: 18px; position: relative; }
.price.featured { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.price ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.price .amount { font-size: 34px; font-weight: 800; line-height: 1.15; color: var(--text-strong); }
.ckfaq { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; margin-top: 14px; }
.ckfaq-item { border-bottom: 1px solid var(--line-soft); }
.ckfaq-item:last-child { border-bottom: none; }
.ckfaq-item > button { width: 100%; text-align: left; background: var(--panel); border: 0; border-radius: 0; padding: 14px 16px; font-weight: 650; display: flex; justify-content: space-between; gap: 10px; color: var(--text-strong); box-shadow: none; font-size: 14.5px; }
.ckfaq-item > button:hover { transform: none; background: var(--panel-2); }
.ckfaq-item .ans { padding: 0 16px 14px; color: var(--muted); display: none; font-size: 13.5px; }
.ckfaq-item.open .ans { display: block; }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.day { padding: 14px; }
.day b { font-size: 13px; color: var(--accent-text); }
.day h3 { margin: 6px 0; font-size: 15px; color: var(--text-strong); }
.day p { margin: 0; color: var(--muted); font-size: 13.5px; }
.notice { font-size: 13px; color: var(--muted); background: color-mix(in srgb, var(--panel-2) 60%, var(--panel)); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.error-card { margin-top: 14px; border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 7%, var(--panel)); border-radius: 14px; padding: 14px; }
.error-card h4 { margin: 0 0 6px; font-size: 15px; color: var(--text-strong); }
.error-card p, .error-card li { font-size: 13px; color: var(--muted); }
.error-card ul { margin: 6px 0 10px; padding-left: 18px; }
.source-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.source-dot { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--panel); color: var(--muted); font-family: var(--mono); }
.source-dot.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.source-dot.fail { opacity: .6; text-decoration: line-through; }
.sharebox { margin-top: 14px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; }
.sharebox input { background: var(--panel); font-size: 12.5px; }

/* ============ Listing 页 ============ */
.ls-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: 30px 0 26px; }
.ls-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 480px at 12% -12%, color-mix(in srgb, var(--amber) 13%, transparent) 0%, transparent 58%),
    radial-gradient(1000px 460px at 88% -10%, color-mix(in srgb, var(--accent-2) 14%, transparent) 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
.ls-hero > * { position: relative; }
.ls-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 650; color: var(--text); }
.ls-badge i { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.ls-hero h1 { margin: 16px 0 14px; }
.ls-hero h1 span { color: var(--accent-text); background: linear-gradient(transparent 62%, var(--warn-bg) 62%); padding: 0 4px; }
.ls-hero .lead { font-size: clamp(15px, 2.2vw, 18px); max-width: 46em; }
.tool-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; margin: 14px 0 10px; }
/* listing 片段的 section 内自带一层 .wrap，与外层 main.wrap 叠加会双重缩进——解除内层限宽 */
main .tool-wrap > .wrap, main .section > .wrap { max-width: none; padding: 0; margin: 0; }
.ls-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 45%, var(--panel)); }
.ls-card-head h2 { margin: 0; font-size: 18px; }
.ls-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.ls-layout { display: grid; grid-template-columns: 420px 1fr; min-height: 640px; }
.form-pane { padding: 18px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 40%, var(--panel)); }
.result-pane { padding: 18px; background: color-mix(in srgb, var(--bg-soft) 55%, var(--bg)); display: flex; flex-direction: column; }
.field { margin-bottom: 14px; }
.field label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-strong); }
.field label small { font-weight: 550; color: var(--faint); }
.samples { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; align-items: center; }
.samples .slbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); border-radius: 10px; padding: 9px 10px; }
.result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.result-top .rt { font-weight: 750; font-size: 16px; color: var(--text-strong); }
.score { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px 12px; }
.score-num { font-size: 22px; font-weight: 800; line-height: 1; color: var(--text-strong); font-family: var(--mono); }
.score-bar { width: 110px; height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--accent-2); width: 0%; transition: width .4s ease; }
.output { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.block { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.block-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--panel-2) 45%, var(--panel)); gap: 8px; }
.block-head b { font-size: 13px; color: var(--text-strong); }
.block-head span { font-size: 12px; color: var(--faint); font-weight: 600; font-family: var(--mono); }
.block-body { padding: 12px 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.block-body ul { margin: 0; padding-left: 18px; }
.block-body li { margin: 6px 0; }
.copy-btn { border: 1px solid var(--line-soft); background: var(--panel); color: var(--text); padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: none; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent-text); transform: none; background: var(--panel); }
.empty { border: 1.5px dashed var(--line); border-radius: 16px; padding: 22px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.empty h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--text-strong); }
.empty p { color: var(--muted); margin: 0 0 10px; font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-accent { background: var(--amber); border-color: var(--amber); color: #fff; }
[data-theme="dark"] .btn-accent, :root:not([data-theme="light"]) .btn-accent { color: #231600; background: var(--amber); border-color: var(--amber); }
.btn-accent:hover { filter: brightness(1.06); }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.example { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.example img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-soft); }
.example h3 { margin: 12px 0 6px; font-size: 16px; color: var(--text-strong); }
.example p { margin: 0; color: var(--muted); font-size: 13.5px; }
.example .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.features { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.feature-list { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; padding: 18px; }
.feature-list h2 { font-size: 20px; margin: 0 0 6px; }
.feature-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.feature-item:last-child { border-bottom: 0; }
.feature-item .ficon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-dim); font-size: 17px; }
.feature-item b { display: block; color: var(--text-strong); }
.feature-item p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.feature-inv { background: var(--accent-2); color: #fff; border-color: transparent; }
.feature-inv h2 { color: #fff; }
.feature-inv .stepnum { margin: 10px 0 0; padding-left: 20px; line-height: 2; font-size: 14px; }
.feature-inv .fquote { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: 12px; margin-top: 14px; font-size: 13.5px; }
.ls-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 20px; padding: 20px; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price-card .phead { display: flex; justify-content: space-between; align-items: center; color: var(--text-strong); }
.price-card .amount { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); margin: 6px 0; }
.price-card .amount small { font-size: 13px; color: var(--muted); font-weight: 650; }
.checklist { list-style: none; padding: 0; margin: 12px 0 16px; }
.checklist li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 13.5px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-2); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; }
.ls-faq { border-top: 1px solid var(--line-soft); margin-top: 14px; }
.ls-faq details { border-bottom: 1px solid var(--line-soft); padding: 13px 0; }
.ls-faq summary { cursor: pointer; font-weight: 650; color: var(--text-strong); }
.ls-faq p { color: var(--muted); margin: 8px 0 0; font-size: 13.5px; }
.footer-cta { background: #0f172a; color: #fff; border-radius: 20px; padding: 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.footer-cta .fct { font-weight: 800; font-size: 19px; }
.footer-cta p { color: #cbd5e1; margin: 4px 0 0; font-size: 13.5px; }
.small { font-size: 12px; color: var(--faint); }
.progress { height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--amber); width: 0%; transition: .3s; }
.api-box { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.api-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.api-box-head b { font-size: 14px; color: var(--text-strong); }
.api-status { font-size: 12.5px; font-weight: 550; color: var(--muted); background: color-mix(in srgb, var(--panel-2) 55%, var(--panel)); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 10px; margin-top: 10px; }
.api-status.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line-soft)); }
.api-status.err { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line-soft)); }
.kbd { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* Toast（新页面 JS 使用） */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px); background: var(--text-strong); color: var(--bg); border-radius: 9px; padding: 10px 16px; font-size: 13.5px; z-index: 120; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 50px; }
  .terminal { max-width: 720px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .result-groups { grid-template-columns: repeat(2, 1fr); }
  .rgroup { border-bottom: 1px solid var(--line-soft); }
  .trust-cols { grid-template-columns: 1fr; gap: 16px; }
  .trust-cols > div, .trust-cols > div:first-child, .trust-cols > div:last-child { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid #2b3a50; }
  .trust-cols > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .ck-hero-in { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .steps { border-right: 0; border-bottom: 1px solid var(--line); }
  .tools3, .prices, .roadmap { grid-template-columns: 1fr 1fr; }
  .examples { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .ls-layout { grid-template-columns: 1fr; }
  .form-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .ls-pricing { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-in { height: 56px; padding: 0 14px; gap: 8px; }
  .kv { grid-template-columns: 108px 1fr; }
  .tool { padding: 18px; }
  .page { padding: 22px 18px; }
  .grid, .flagship-grid, .tools3, .prices, .roadmap, .stats, .grid2 { grid-template-columns: 1fr; }
  .result-groups { grid-template-columns: 1fr; }
  .rgroup { border-right: none; }
  .hero { padding-top: 34px; gap: 28px; }
  .hero .h1 { font-size: 34px; }
  .term-body { min-height: 250px; font-size: 11.8px; padding-inline: 15px; }
  .section { padding-top: 44px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head .spacer { display: none; }
  .chips { width: 100%; }
  .chip { flex: 1 1 auto; }
  .trust-strip { padding: 24px 20px; }
  .palette-list li .ds { display: none; }
  .langs { display: none; }
  .topnav.open .langs { display: inline-flex; margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
  .tcard, .btn-scan { transition: none; }
}
