/* WiseHub · 选模型 — shared styles (base copied from the IP tools site). Brand: 双勾 W mark, 甄选 warm palette. */
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url(/assets/fonts/outfit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url(/assets/fonts/outfit-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url(/assets/fonts/outfit-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "WiseHub Serif"; font-weight: 700; font-display: swap; src: url(/assets/fonts/noto-serif-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #FFFCF7;
  --bg-card: #FFFFFF;
  --bg-soft: #FFF7F0;
  --bg-hover: #FFF0E3;
  --border: #F0E6DA;
  --text: #1F1A17;
  --text-soft: #4A3F38;
  --text-muted: #6B5E55;
  --brand: #E8590C;            /* 印章橙: logo, rings, bars, fills without text */
  --accent: #B8460A;           /* same hue, AA on white and on --accent-soft: links, active states */
  --accent-soft: #FFE9D9;
  --btn-bg: #CB4E0A;           /* same hue as --brand, AA with white text */
  --btn-bg-hover: #B8460A;
  --btn-text: #FFFFFF;
  --good: #1E7A46;
  --good-soft: #E8F5EC;
  --ok: #2F8A4F;               /* large numbers / rings only */
  --warn: #9A5B00;
  --warn-soft: #FEF3E2;
  --bad: #B83224;
  --bad-soft: #FDF0EC;
  --info: #2563EB;
  --info-soft: #E8EFFE;
  --logo-bg: #1F1A17;
  --logo-w: #FFF6EC;
  --logo-ok: #F07A2E;
  --shadow: 0 1px 2px rgba(31, 26, 23, .04), 0 2px 8px rgba(31, 26, 23, .04);
  --radius: 18px;
  --radius-sm: 12px;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", var(--cjk);
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", var(--cjk);
  --brand-font: "WiseHub Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #16110E; --bg-card: #201A16; --bg-soft: #2A221D; --bg-hover: #332922; --border: #3A2F28;
  --text: #FFF6EC; --text-soft: #D9CCBF; --text-muted: #A8988A;
  --brand: #F07A2E; --accent: #FF9A5C; --accent-soft: #3A2516;
  --btn-bg: #FF8A47; --btn-bg-hover: #FFA36B; --btn-text: #1F1A17;
  --good: #4ADE80; --good-soft: #15291C; --ok: #A3E635; --warn: #FBBF24; --warn-soft: #33260F;
  --bad: #FF8266; --bad-soft: #3A1D16; --info: #7AA7FF; --info-soft: #1C2540;
  --logo-bg: #FFF6EC; --logo-w: #1F1A17; --logo-ok: #E8590C;
  --shadow: none; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16110E; --bg-card: #201A16; --bg-soft: #2A221D; --bg-hover: #332922; --border: #3A2F28;
    --text: #FFF6EC; --text-soft: #D9CCBF; --text-muted: #A8988A;
    --brand: #F07A2E; --accent: #FF9A5C; --accent-soft: #3A2516;
    --btn-bg: #FF8A47; --btn-bg-hover: #FFA36B; --btn-text: #1F1A17;
    --good: #4ADE80; --good-soft: #15291C; --ok: #A3E635; --warn: #FBBF24; --warn-soft: #33260F;
    --bad: #FF8266; --bad-soft: #3A1D16; --info: #7AA7FF; --info-soft: #1C2540;
    --logo-bg: #FFF6EC; --logo-w: #1F1A17; --logo-ok: #E8590C;
    --shadow: none; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14.5px/1.65 var(--font);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
code, .mono { font-family: var(--mono); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }

/* ---- Top bar ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark rect { fill: var(--logo-bg); }
.brand-mark path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .w { stroke: var(--logo-w); }
.brand-mark .ok { stroke: var(--logo-ok); }
.brand-name { font-family: var(--brand-font); font-weight: 700; font-size: 19px; letter-spacing: -.005em; }
.brand-sub { font-size: 12px; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 9px; margin-left: 1px; }
@media (max-width: 620px) { .brand-sub { display: none; } }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text-soft); padding: 6px 11px; border-radius: 999px; white-space: nowrap; font-size: 13.5px; }
.nav a:hover { background: var(--bg-hover); text-decoration: none; color: var(--text); }
.nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.theme-btn { border: 1px solid var(--border); background: var(--bg-card); color: var(--text-soft); border-radius: 999px; height: 34px; min-width: 34px; padding: 0 8px; font-size: 13px; }

/* ---- Headings ---- */
.page-head { padding: 26px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--text-muted); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 10px; }
.section-title h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 19px; }
.section-title .hint { color: var(--text-muted); font-size: 12.5px; }

/* ---- Cards & grids ---- */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h3 .sub { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* key-value rows */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 14px; margin: 0; }
.kv dt { color: var(--text-muted); white-space: nowrap; }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ---- Hero IP ---- */
.ip-big { font: 700 28px/1.25 var(--mono); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.ip-big a { color: var(--text); }
.ip-geo { color: var(--text-soft); margin-top: 4px; }
.ip-meta { color: var(--text-muted); font-size: 12.5px; margin-top: 4px; }
.label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }

/* ---- Flags & favicons ---- */
.flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); flex: none; }
.flag-lg { width: 28px; height: 21px; }
.fav { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; flex: none; }

/* ---- Badges / tags ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; line-height: 18px; background: var(--bg-soft); color: var(--text-soft); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--accent-soft); color: var(--accent); }
.t-good { color: var(--good); } .t-ok { color: var(--text); } .t-warn { color: var(--warn); } .t-bad { color: var(--bad); } .t-muted { color: var(--text-muted); }

/* ---- Tables ---- */
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-muted); background: var(--bg-soft); padding: 9px 14px; white-space: nowrap; }
.tbl td { padding: 9px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: var(--bg-hover); }
.tbl .mono { font-size: 13px; }
@media (max-width: 620px) { .tbl th, .tbl td { padding: 8px 9px; font-size: 13px; } .hide-sm { display: none; } }

/* ---- Buttons / inputs ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 500; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 13.5px; white-space: nowrap; }
.btn:hover { background: var(--bg-hover); }
.btn-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.input { height: 42px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: 14px var(--mono); min-width: 0; }
.input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.search-row { display: flex; gap: 8px; }
.search-row .input { flex: 1; }

/* ---- Switch ---- */
.switch { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 13px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 34px; height: 20px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--btn-bg); }
.switch input:checked + .track::after { transform: translateX(14px); }

/* ---- Loading skeleton ---- */
.skel { display: inline-block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-hover) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; vertical-align: middle; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---- Latency dots ---- */
.dots { display: flex; gap: 3px; margin-top: 5px; }
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--bg-soft); }
.dot.good { background: var(--good); } .dot.warn { background: #a3d977; } .dot.slow { background: var(--warn); } .dot.fail { background: var(--bad); }
:root[data-theme="dark"] .dot.warn { background: #5d8a33; }

/* ---- Score gauge ---- */
.gauge { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #ef4444, #f59e0b 30%, #eab308 50%, #84cc16 70%, #16a34a); margin: 12px 0 6px; }
.gauge .needle { position: absolute; top: -5px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--bg-card); transition: left .6s; }
.gauge-scale { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 11px; }
.score-num { font: 800 44px/1 var(--display); }

/* ---- Alerts ---- */
.alert { border-radius: 10px; padding: 10px 14px; margin: 12px 0; border: 1px solid transparent; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert.good { background: var(--good-soft); color: var(--good); }

/* ---- Misc ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--bg-card); color: var(--text-soft); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.chip.on, .chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
pre.raw { background: var(--bg-soft); border-radius: 8px; padding: 12px; overflow: auto; max-height: 420px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }
details > summary { cursor: pointer; color: var(--text-soft); }
.bar { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }

.footer { text-align: center; color: var(--text-muted); font-size: 12.5px; padding: 36px 16px 20px; display: grid; gap: 4px; }
.footer-brand { color: var(--text-soft); font-size: 13.5px; }
.footer .brand-name { font-size: 15px; }
.footer a { color: var(--text-muted); }

/* ---- Navigation: tools menu + terminal link ---- */
.topbar-inner { position: relative; }
.nav-tools, .nav-cli { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--text-soft); padding: 6px 11px; border-radius: 999px; white-space: nowrap; font-size: 13.5px; }
.nav-tools svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-tools:hover, .nav-cli:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.nav-tools.active, .nav-cli.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav-cli .mono { font-size: 12.5px; }
.tools-menu { position: absolute; top: calc(100% + 6px); right: 16px; z-index: 30; width: min(560px, calc(100vw - 32px)); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(31, 26, 23, .12); padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.tools-menu[hidden] { display: none; }
.tools-menu a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); }
.tools-menu a:hover, .tools-menu a.active { background: var(--bg-soft); text-decoration: none; }
.tools-menu a span { font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 620px) { .tools-menu { grid-template-columns: minmax(0, 1fr); right: 8px; } }

/* ---- Check status icons ---- */
.ck-icon { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.ck-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ck-icon.pass { background: var(--good-soft); color: var(--good); }
.ck-icon.warn { background: var(--warn-soft); color: var(--warn); }
.ck-icon.fail { background: var(--bad-soft); color: var(--bad); }
.ck-icon.unknown { background: var(--bg-soft); color: var(--text-muted); }
.ck-icon.pending { background: var(--bg-soft); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, .skel { animation: none; } }

/* ---- Shared page blocks for the AI checkup ---- */
.hero-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; box-shadow: var(--shadow); }
.hero-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-side { flex: 1 1 220px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.eyebrow { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 12px; border-radius: 999px; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 38px); line-height: 1.22; }
.hero-title .sub { display: block; }
.hero-title .sub.warn { color: var(--warn); } .hero-title .sub.fail { color: var(--bad); } .hero-title .sub.pass { color: var(--good); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.info-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 11px; font-size: 13.5px; background: var(--bg-card); }
.ring { --p: 0; --c: var(--good); width: 168px; height: 168px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-soft) 0); display: grid; place-items: center; }
.ring-inner { width: 134px; height: 134px; border-radius: 50%; background: var(--bg-card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num { font: 800 42px/1 var(--display); }
.ring-label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
@media (max-width: 400px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.check { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 15px 17px; display: flex; gap: 13px; align-items: flex-start; }
.check.warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--border)); }
.check.fail { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.check-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.check-title { font-weight: 700; }
.check-detail { font-size: 13.5px; color: var(--text-soft); }
.check-fix { font-size: 13.5px; font-weight: 500; }
.svc-table td.svc { font-weight: 700; vertical-align: top; white-space: nowrap; }
.svc-table tr.group-start td { border-top: 1px solid var(--border); }
.svc-table td { border-top-color: color-mix(in srgb, var(--border) 55%, transparent); }
.term { background: #1F1A17; color: #FFF6EC; border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; }
.term h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.term p { margin: 0; color: #D9CCBF; }
.term .cmd { display: flex; align-items: center; gap: 10px; background: #2A221D; border-radius: var(--radius-sm); padding: 10px 12px 10px 14px; font: 500 14.5px var(--mono); overflow: hidden; }
.term .cmd code { flex: 1; white-space: nowrap; min-width: 0; overflow-x: auto; }
.term .cmd button { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid #4A3F38; background: transparent; color: #FFF6EC; flex: none; }
.term .cmd button:hover { background: #3A2F28; }
.term pre { margin: 0; background: #16110E; border-radius: 16px; padding: 16px 18px; font: 12.5px/1.75 var(--mono); color: #D9CCBF; white-space: pre; overflow-x: auto; }
.term .muted { color: #A8988A; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.tool-card:hover { border-color: var(--accent); text-decoration: none; }
.tool-card span { font-size: 12.5px; color: var(--text-muted); }

/* ---- Service check pages (/claude/, /gpt/, /gemini/) ---- */
.ac-gap { margin-top: 20px; }
.card > h2, .fix-card h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.35; }
.card > h2 .sub, .env summary .sub { font-family: var(--font); font-weight: 400; font-size: 12.5px; color: var(--text-muted); margin-left: 6px; }
.hero-card .lede { margin: 0; color: var(--text-soft); max-width: 620px; }
.hero-btn { align-self: flex-start; height: 44px; padding: 0 20px; font-weight: 700; margin-top: 4px; }
.hero-kv { width: 100%; max-width: 280px; font-size: 13.5px; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.entry { display: flex; flex-direction: column; gap: 6px; }
.entry.diff { border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 55%, var(--border)); }
.entry.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.entry-ip { font: 700 19px/1.35 var(--mono); overflow-wrap: anywhere; }
.entry-ip a { color: var(--text); }
.entry-geo { color: var(--text-soft); font-size: 13.5px; }
.duo { display: flex; flex-wrap: wrap; gap: 20px; }
.duo > * { flex: 1 1 420px; min-width: 0; }
.duo.top { align-items: flex-start; }
.fix-card { display: flex; flex-direction: column; gap: 12px; }
.fix-card h2 { margin: 0; }
.fix-card p { margin: 0; }
.fix-card .chip { font: inherit; font-size: 13px; padding: 4px 12px; }
.fix-card .btn { align-self: flex-start; }
.rule-pre { margin: 0; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 16px; font: 13px/1.7 var(--mono); overflow-x: auto; white-space: pre; }
.term.fix-term { flex-direction: column; flex-wrap: nowrap; gap: 12px; padding: 24px; border-radius: 20px; }
.term.fix-term h2 { font-size: 18px; line-height: 1.35; }
.term.fix-term a { color: #FF9A5C; }
.risk-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--border); }
.risk-row:first-child { border-top: 0; padding-top: 0; }
.hist { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; font-size: 14px; }
.hist-cc { white-space: nowrap; }
.status-inc { margin: 10px 0 0; padding-left: 18px; }
.env > summary { font-family: var(--display); font-weight: 700; font-size: 15.5px; color: var(--text); }
.env[open] > summary { margin-bottom: 12px; }
@media (max-width: 520px) {
  .hero-card { padding: 22px 18px; }
  .fix-card, .term.fix-term { padding: 18px; }
  .hist { gap: 8px 10px; font-size: 13px; }
}

/* IPs and service names read as data, not as orange links (matches the brand board). */
a .ipv, .svc-table td.svc a { color: var(--text); }
a:hover .ipv, .svc-table td.svc a:hover { color: var(--accent); }

/* ======================================================================
   选模型 (models.wisehub.cc)
   ====================================================================== */
:root { --dot-other: #8C7F74; --ring: var(--bg-card); --grid-soft: #F5EEE5; }
:root[data-theme="dark"] { --dot-other: #7D6E62; --grid-soft: #2A221D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dot-other: #7D6E62; --grid-soft: #2A221D; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.theme-btn { display: inline-grid; place-items: center; flex: none; }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.theme-btn svg .fill { fill: currentColor; stroke: none; }
.nav-ext { color: var(--text-soft); font-size: 13.5px; white-space: nowrap; flex: none; }
.nav-ext:hover { color: var(--accent); }
@media (max-width: 760px) { .nav-ext { display: none; } }

.page { display: flex; flex-direction: column; gap: 28px; padding-top: 32px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.3; }
.page-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.2; }
.lede { margin: 0; color: var(--text-soft); max-width: 760px; font-size: 15px; }
.soft { color: var(--text-soft); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.note { border-top: 1px solid var(--border); padding-top: 18px; font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.note a { color: var(--text-muted); text-decoration: underline; }
.crumb { font-size: 14px; color: var(--text-muted); }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--accent); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.method p { margin: 0; color: var(--text-soft); }

/* Home hero */
.hero { display: flex; flex-direction: column; gap: 16px; max-width: 760px; padding-top: 12px; }
.home-title { font-size: clamp(30px, 5.4vw, 44px); line-height: 1.18; }
.hero .lede { font-size: 17px; }
.eyebrow { font-size: 13px; padding: 4px 12px; }

/* Toggle buttons (preference chips, view switch, filters) */
.pref { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.pref-label { font-size: 14px; color: var(--text-muted); margin-right: 4px; }
.pref-btn { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-soft); font-size: 14px; }
.pref-btn:hover { border-color: var(--accent); color: var(--accent); }
.pref-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pref-btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.seg { display: flex; gap: 6px; }

/* Task grid */
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.task-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; color: var(--text); display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); min-width: 0; }
.task-card:hover { border-color: var(--accent); text-decoration: none; }
.task-card.featured { border: 2px solid var(--brand); padding: 19px; }
.task-name { font-family: var(--display); font-weight: 800; font-size: 18px; }
.pick-lines { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pick-line { display: flex; gap: 12px; align-items: baseline; color: var(--text-soft); }
.pick-line .role { color: var(--text-muted); flex: none; min-width: 3em; }
.pick-line .name { min-width: 0; }
.pick-line.on { color: var(--text); font-weight: 700; }
.pick-line.on .role { color: var(--accent); }
.pick-line .badge { font-weight: 500; }
.task-foot { font-size: 12px; color: var(--text-muted); margin-top: auto; }

/* Landscape + subscription teaser */
.landscape { padding: 28px; border-radius: 20px; display: flex; flex-direction: column; gap: 16px; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.land-item { display: flex; flex-direction: column; gap: 4px; }
.land-item span { font-size: 14px; color: var(--text-soft); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.sub-card { background: var(--bg-soft); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text); border: 1px solid transparent; }
.sub-card:hover { border-color: var(--accent); text-decoration: none; }
.sub-name { font-family: var(--display); font-weight: 800; font-size: 18px; }

/* Task page: picks */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.pick-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.pick-card.wise { border: 2px solid var(--brand); padding: 21px; }
.pick-role { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.pick-badge { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--btn-text); background: var(--btn-bg); padding: 2px 10px; border-radius: 999px; }
.pick-name { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.pick-nums { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; font-family: var(--mono); color: var(--text-soft); }
.pick-nums strong { font-size: 22px; color: var(--text); }
.pick-card .badge { margin-left: 2px; }

/* Task page: chart */
.chart-card { padding: 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-wrap { position: relative; }
.pchart { display: block; max-width: 100%; height: auto; overflow: visible; }
.pchart text { font-family: var(--font); }
.pc-grid { stroke: var(--border); stroke-width: 1; }
.pc-grid.soft { stroke: var(--grid-soft); }
.pc-tick { font-size: 11px; fill: var(--text-muted); }
.pc-axis { font-size: 12px; fill: var(--text-soft); }
.pc-label { font-size: 12px; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: var(--bg-card); stroke-width: 3px; stroke-linejoin: round; }
.pc-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.pc-dot { stroke: var(--ring); }
.pc-dot.front { fill: var(--brand); stroke-width: 2; }
.pc-dot.other { fill: var(--dot-other); fill-opacity: .55; stroke-width: 1.5; }
.pc-hit { fill: transparent; stroke: none; cursor: pointer; }
.pc-hit:hover, .pc-hit:focus-visible { stroke: var(--accent); stroke-width: 2; outline: none; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(31, 26, 23, .14); padding: 9px 12px; font-size: 13px; line-height: 1.55; max-width: 280px; }
.chart-tip .tip-front { color: var(--accent); font-weight: 700; }
.chart-tip .badge { margin-left: 4px; }
.unpriced { display: flex; flex-direction: column; gap: 8px; }
.chip.static, .chip.static:hover { border-color: var(--border); color: var(--text-soft); }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; font-weight: 600; }
.th-sort.on { color: var(--accent); }
.tbl tr.front-row td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

/* Plain tables inside cards */
.tbl.plain th { background: none; padding: 6px 12px 6px 0; font-weight: 500; font-size: 13px; }
.tbl.plain td { padding: 9px 12px 9px 0; border-top-color: var(--border); }
.tbl.plain tr:hover td { background: none; }
.tbl.plain tr.hl td { background: var(--bg-soft); font-weight: 700; }
.tbl.plain tr.hl td:first-child { padding-left: 8px; }
.tbl.wide { min-width: 560px; }
.tbl.plain.wide th, .tbl.plain.wide td { padding-left: 12px; }
.tbl.plain.wide thead th { background: var(--bg-soft); }
.term.usage { flex-direction: column; flex-wrap: nowrap; gap: 12px; padding: 24px; border-radius: 20px; }
.term.usage h2 { font-size: 20px; }
.term.usage pre { background: #2A221D; border-radius: 12px; padding: 12px 16px; }
.term.usage a { color: #FF9A5C; }

/* Price table */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .input { font-family: var(--font); }
.filters #q { flex: 1 1 260px; }
.sort-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.select { height: 38px; padding: 0 10px; font-size: 13.5px; }
.price-tbl { min-width: 1080px; }
.price-tbl th.num, .price-tbl td.num { text-align: right; white-space: nowrap; }
.price-tbl th.on { color: var(--accent); }
.price-tbl td.strong { font-weight: 700; }
.price-tbl td.score { font-size: 12.5px; color: var(--text-soft); }
.price-tbl .model-name { font-weight: 600; white-space: nowrap; }
.price-tbl .sticky { position: sticky; left: 0; z-index: 1; background: var(--bg-card); }
.price-tbl th.sticky { background: var(--bg-soft); }
.price-tbl tr:hover td.sticky { background: var(--bg-hover); }
.price-tbl .badge { margin-left: 4px; }

/* Subscriptions */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.plan-card { display: flex; flex-direction: column; gap: 12px; }
.plan-name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.plan-name span { color: var(--text-soft); }
.plan-kv dd { text-align: left; }
.plan-link { align-self: flex-start; margin-top: auto; }

.empty-state { display: flex; flex-direction: column; gap: 14px; padding: 48px 0; max-width: 640px; }

@media (max-width: 520px) {
  .page { gap: 22px; padding-top: 22px; }
  .chart-card, .landscape { padding: 16px; }
  .pick-card { padding: 18px; } .pick-card.wise { padding: 17px; }
  .task-card { padding: 16px; } .task-card.featured { padding: 15px; }
}
