/* ==========================================================
   Neo路由小镇 · 站点样式（深空暗黑 / Bolt 风格）
   改颜色只需改 :root 中的变量
   ========================================================== */
:root, [data-theme="dark"] {
  --bg: #09090B;                       /* zinc-950 */
  --surface: rgba(24, 24, 27, .5);      /* zinc-900/50 */
  --surface-solid: #111113;
  --surface-2: rgba(39, 39, 42, .45);   /* zinc-800/45 */
  --code-bg: #0C0C0E;
  --border: rgba(255, 255, 255, .08);
  --border-hover: rgba(255, 255, 255, .18);
  --ring: inset 0 1px 0 0 rgba(255, 255, 255, .04);
  --text: #F4F4F5;                      /* zinc-100 */
  --muted: #A1A1AA;                     /* zinc-400 */
  --dim: #85858F;                       /* 提示文字（比 zinc-500 略亮以满足对比度） */
  --accent: #5EEAD4;
  --accent-strong: #2DD4BF;
  --accent-ink: #042F2A;
  --accent-soft: rgba(94, 234, 212, .10);
  --glow: rgba(45, 212, 191, .13);
  --heading-grad: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, .68) 100%);
  --danger: #FCA5A5;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
[data-theme="light"] {
  --bg: #FAFAFA;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #FFFFFF;
  --surface-2: rgba(244, 244, 245, .9);
  --code-bg: #18181B;
  --border: rgba(9, 9, 11, .09);
  --border-hover: rgba(9, 9, 11, .2);
  --ring: inset 0 1px 0 0 rgba(255, 255, 255, .6);
  --text: #18181B;
  --muted: #52525B;
  --dim: #6B6B74;
  --accent: #0F766E;
  --accent-strong: #0D9488;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(13, 148, 136, .09);
  --glow: rgba(13, 148, 136, .10);
  --heading-grad: linear-gradient(180deg, #09090B 0%, #3F3F46 100%);
  --danger: #B91C1C;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img, video { max-width: 100%; height: auto; }
::selection { background: rgba(94, 234, 212, .25); }
.mono, .site-eyebrow, time, .kbd { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-wrap.is-narrow { max-width: 820px; }
.site-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.text-muted { color: var(--muted); }
.grad-title { background: var(--heading-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 基础组件 ---------- */
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 500 14.5px/1 inherit; font-family: inherit; letter-spacing: -.005em;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: all .2s var(--ease); box-shadow: var(--ring);
}
.ui-btn:hover { border-color: var(--border-hover); background: var(--surface-2); color: var(--text); }
.ui-btn:active { transform: scale(.98); }
.ui-btn svg { flex: none; transition: transform .2s var(--ease); }
.ui-btn:hover svg.arrow { transform: translateX(2px); }
.ui-btn-primary {
  background: linear-gradient(180deg, #7FF3E0 0%, var(--accent-strong) 100%);
  color: var(--accent-ink); border-color: rgba(255, 255, 255, .25); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(45, 212, 191, .25), 0 8px 28px -10px rgba(45, 212, 191, .55);
}
[data-theme="light"] .ui-btn-primary { background: linear-gradient(180deg, #14B8A6 0%, #0F766E 100%); border-color: transparent; }
.ui-btn-primary:hover { color: var(--accent-ink); background: linear-gradient(180deg, #99F6E4 0%, #2DD4BF 100%); border-color: rgba(255, 255, 255, .35); }
[data-theme="light"] .ui-btn-primary:hover { background: linear-gradient(180deg, #2DD4BF 0%, #0D9488 100%); color: #fff; }
.ui-btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.ui-btn-block { width: 100%; }
.ui-icon-btn { width: 40px; min-height: 40px; padding: 0; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }

.ui-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); white-space: nowrap; transition: all .2s var(--ease); }
a.ui-pill:hover { border-color: var(--border-hover); color: var(--text); }
.ui-pill.is-accent { color: var(--accent); border-color: rgba(94, 234, 212, .22); background: var(--accent-soft); }
.status-light { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 10px var(--accent); }
.kbd { font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); color: var(--dim); background: var(--surface); }

.panel-box { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--ring); transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
a.panel-box:hover, .panel-box.is-hover:hover { border-color: var(--border-hover); }

/* 骨架屏 */
.skeleton { display: inline-block; min-width: 72px; height: 1em; border-radius: 5px; vertical-align: middle; background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; color: transparent !important; }
[data-theme="light"] .skeleton { background-image: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.10), rgba(0,0,0,.05)); }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: fadeIn .45s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 顶栏 ---------- */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.site-brand img { width: 30px; height: 30px; display: block; }
.site-brand:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; flex: 1; }
.site-nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); border: 1px solid transparent; transition: all .2s var(--ease); }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); border-color: var(--border); background: var(--surface); box-shadow: var(--ring); }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-trigger { min-width: 190px; justify-content: space-between; color: var(--dim); font-weight: 400; }
.search-trigger span { display: inline-flex; align-items: center; gap: 8px; }
.only-mobile { display: none !important; }

/* ---------- Hero ---------- */
.hero-zone { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-zone::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }
.hero-zone::after { content: ""; position: absolute; left: 50%; bottom: -260px; width: 1100px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px); }
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); }
.flow-canvas.is-on { opacity: 1; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: 96px; padding-bottom: 88px; }
.hero-inner h1 { margin: 0; font-size: clamp(40px, 6.6vw, 68px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.hero-lead { margin: 0; max-width: 620px; font-size: 17.5px; color: var(--muted); }
.hero-search { width: min(640px, 100%); margin-top: 12px; position: relative; }
.hero-search::before { content: ""; position: absolute; inset: -1px; border-radius: 17px; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 50%, rgba(94,234,212,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero-search-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--surface-solid); box-shadow: 0 0 0 1px var(--border), 0 0 80px -20px var(--glow), var(--ring); transition: box-shadow .2s var(--ease); }
.hero-search-box:focus-within { box-shadow: 0 0 0 1px var(--border-hover), 0 0 90px -16px var(--glow), var(--ring); }
.hero-search-box svg { color: var(--dim); flex: none; }
.hero-search-box input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.hero-search-box input::placeholder { color: var(--dim); }
.hero-hot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--dim); align-items: center; }

/* ---------- Bento ---------- */
.page-section { padding-top: 96px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.section-heading p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.more-link:hover { color: var(--text); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.bento > * { min-width: 0; }
.b-net { grid-column: span 4; grid-row: span 2; }
.b-stat { grid-column: span 2; }
.b-cat-a { grid-column: span 2; }
.b-cat-b { grid-column: span 4; }
.b-cat-c { grid-column: span 3; }
.b-cat-d { grid-column: span 3; }
.bento-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bento-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.bento-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.bento-card .card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--dim); }
.bento-card .card-foot svg { transition: transform .2s var(--ease); }
a.bento-card:hover .card-foot { color: var(--text); }
a.bento-card:hover .card-foot svg { transform: translateX(3px); }
.bento-card .cat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); margin-bottom: 6px; }
.stat-num { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 40px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.stat-num small { font-size: 15px; color: var(--dim); letter-spacing: 0; margin-left: 4px; }
.b-stat { justify-content: space-between; }
.cat-wide-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.net-card { padding: 0; }
.net-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.net-head b { font-size: 15px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.net-body { padding: 22px 24px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.net-kv { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.net-kv span { font-size: 12px; color: var(--dim); }
.net-kv b { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.net-pings { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.net-ping { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.net-ping span { font-size: 12px; color: var(--dim); }
.net-ping b { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 500; }
.is-good { color: var(--accent); }
.is-bad { color: var(--danger); }
.net-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 4px; font-size: 13px; color: var(--dim); }

/* ---------- 主次两栏 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.main-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.side-box { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.side-box h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: .04em; }
.rank-list { margin: 0; padding: 0; list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 4px; }
.rank-list li { counter-increment: r; }
.rank-list a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 8px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); transition: all .2s var(--ease); }
.rank-list a::before { content: counter(r, decimal-leading-zero); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--dim); padding-top: 2px; }
.rank-list a:hover { background: var(--surface-2); color: var(--text); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud small { color: var(--dim); }
.tool-box { padding: 22px; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.tool-box b { font-weight: 600; }
.tool-box span { font-size: 13.5px; color: var(--muted); }

.post-rows { overflow: hidden; }
.post-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--border); transition: background .2s var(--ease); }
.post-row:first-child { border-top: 0; }
.post-row time { font-size: 12.5px; color: var(--dim); }
.post-row-title { font-weight: 500; line-height: 1.5; letter-spacing: -.005em; }
.post-row .row-arrow { color: var(--dim); opacity: 0; transform: translateX(-6px); transition: all .2s var(--ease); }
.post-row:hover { background: var(--surface-2); }
.post-row:hover .row-arrow { opacity: 1; transform: none; color: var(--text); }

/* 服务 */
.svc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.svc-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.svc-card:nth-child(1) { grid-column: span 3; background: radial-gradient(90% 80% at 0% 100%, var(--accent-soft), transparent 70%), var(--surface); }
.svc-card:nth-child(2) { grid-column: span 2; }
.svc-card h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.svc-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14.5px; flex: 1; }
.svc-card li { display: flex; gap: 10px; align-items: flex-start; }
.svc-card li svg { color: var(--accent); margin-top: 4px; flex: none; }
.svc-card .svc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface-2); }

/* CTA */
.cta-panel { position: relative; overflow: hidden; padding: 56px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-panel::before { content: ""; position: absolute; left: 50%; top: 100%; width: 700px; height: 360px; transform: translate(-50%, -55%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.cta-panel > * { position: relative; }
.cta-panel h2 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.03em; font-weight: 600; }
.cta-panel p { margin: 0 0 8px; color: var(--muted); }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.contact-tile { padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.contact-tile h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.contact-value { margin: 0 0 8px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.contact-qr { width: 100%; max-width: 220px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }

/* ---------- 网络检测页 ---------- */
.ui-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--muted); min-height: 38px; }
.ui-switch input { position: absolute; opacity: 0; width: 36px; height: 20px; margin: 0; cursor: pointer; }
.ui-switch-track { width: 36px; height: 20px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border-hover); position: relative; transition: all .2s var(--ease); }
.ui-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform .2s var(--ease); }
.ui-switch input:checked + .ui-switch-track { background: var(--accent-strong); border-color: var(--accent-strong); }
.ui-switch input:checked + .ui-switch-track::after { transform: translateX(16px); background: #fff; }
.ui-switch input:focus-visible + .ui-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.nc-titlebar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.nc { padding-top: 32px; }
.nc-alert { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(250, 204, 21, .3); background: rgba(250, 204, 21, .07); color: #FDE68A; font-size: 14px; }
[data-theme="light"] .nc-alert { color: #854D0E; }
.nc-exits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.nc-exit { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nc-exit-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.nc-exit-ip { font-size: 21px; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; min-height: 1.4em; }
.nc-exit[data-exit="claude"] { background: radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.nc-exit[data-exit="claude"] .nc-exit-ip { color: var(--accent); }
.nc-exit-sub { font-size: 13px; color: var(--muted); min-height: 1.3em; }
.nc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.nc-box { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#nc-score { grid-column: span 5; grid-row: span 2; }
#nc-attr { grid-column: span 7; }
#nc-sec { grid-column: span 7; }
#nc-reach, #nc-dns, #nc-rtc { grid-column: span 4; }
#nc-dev { grid-column: span 8; }
#nc-hist { grid-column: span 4; }
.nc-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nc-box-head h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.nc-box-head h2 svg { color: var(--accent); }
.nc-hint { font-size: 12.5px; color: var(--dim); margin: 0; }
.nc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.nc-row:first-child { border-top: 0; padding-top: 0; }
.nc-row > span { color: var(--dim); flex: none; }
.nc-row > b { font-weight: 500; text-align: right; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.nc-row .skeleton { min-width: 90px; }
.nc-sub { color: var(--dim); font-weight: 400; font-size: 12px; }
.nc-dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.nc-dev-grid .nc-row:nth-child(2) { border-top: 0; padding-top: 0; }
.nc-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); white-space: nowrap; }
.nc-tag.is-good { color: var(--accent); border-color: rgba(94, 234, 212, .3); background: var(--accent-soft); }
.nc-tag.is-warn { color: #FACC15; border-color: rgba(250, 204, 21, .3); background: rgba(250, 204, 21, .08); }
.nc-tag.is-bad { color: #FCA5A5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .1); }
.nc-tag.is-neutral { color: var(--muted); }
[data-theme="light"] .nc-tag.is-warn { color: #A16207; }
[data-theme="light"] .nc-tag.is-bad { color: #B91C1C; }
.is-bad { color: var(--danger); }
.nc-gauge { position: relative; width: 190px; height: 190px; margin: 6px auto 0; }
.nc-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nc-ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.nc-ring { fill: none; stroke: var(--dim); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s var(--ease), stroke .4s var(--ease); filter: drop-shadow(0 0 8px rgba(94, 234, 212, .25)); }
.nc-gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.nc-gauge-num b { font-size: 52px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.nc-gauge-num span { font-size: 13px; color: var(--muted); }
.nc-region { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 13.5px; color: var(--muted); }
.nc-deduct { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nc-deduct li { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.nc-deduct li.nc-hint, .nc-deduct li.nc-ok { border: 0; padding: 4px 0; }
.nc-deduct li.nc-ok { color: var(--accent); }
.nc-deduct-head { display: flex; justify-content: space-between; gap: 10px; }
.nc-deduct-head b { color: #FCA5A5; font-weight: 500; }
.nc-deduct small { color: var(--dim); font-size: 12.5px; line-height: 1.55; }

/* ---------- 业务介绍落地页（文章内自定义 HTML 使用） ---------- */
.lp { display: flex; flex-direction: column; gap: 0; }
.lp-hero { position: relative; overflow: hidden; padding: 48px 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lp-hero::after { content: ""; position: absolute; right: -180px; bottom: -260px; width: 700px; height: 520px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero h2 { margin: 0; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.lp-lead { margin: 0; max-width: 680px; font-size: 16.5px; line-height: 1.8; color: var(--muted); }
.lp-stats { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 12px 0 0; border-top: 1px solid var(--border); padding-top: 22px; }
.lp-stats div { display: flex; flex-direction: column-reverse; gap: 6px; padding-right: 16px; }
.lp-stats div + div { padding-left: 20px; border-left: 1px solid var(--border); }
.lp-stats dt { font-size: 12.5px; color: var(--dim); }
.lp-stats dd { margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 17px; font-weight: 500; color: var(--text); }
.lp-section { padding-top: 80px; }
.lp-bento { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lp-span-3 { grid-column: span 3; }
.lp-span-2 { grid-column: span 2; }
.lp-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.lp-card h3, .lp-plan h3, .lp-step h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.lp-card p, .lp-plan > p, .lp-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.lp-card b, .lp-plan b { color: var(--text); font-weight: 600; }
.lp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-num { font-size: 12px; color: var(--accent); letter-spacing: .06em; }
.lp-glow { background: radial-gradient(90% 90% at 0% 100%, var(--accent-soft), transparent 70%), var(--surface); }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.lp-plan { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lp-plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; font-size: 14.5px; color: var(--muted); }
.lp-plan li { position: relative; padding-left: 24px; line-height: 1.6; }
.lp-plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.lp-plan-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-plan.is-featured { border-color: rgba(94, 234, 212, .35); background: radial-gradient(100% 70% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface); box-shadow: 0 0 0 1px rgba(94, 234, 212, .12), 0 30px 80px -40px rgba(45, 212, 191, .45), var(--ring); }
.lp-compare { overflow: hidden; }
.lp-compare-row { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.lp-compare-row:first-child { border-top: 0; }
.lp-compare-row > span { padding: 16px 20px; color: var(--muted); line-height: 1.6; }
.lp-compare-row > span:first-child { color: var(--dim); }
.lp-compare-row .is-ours { color: var(--text); background: var(--accent-soft); }
.lp-compare-head > span { font-size: 13px; font-weight: 600; color: var(--text) !important; }
.lp-compare-head .is-ours { color: var(--accent) !important; }
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.lp-step { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.lp .cta-panel { margin-top: 0; }
@media (max-width: 960px) {
  .lp-bento { grid-template-columns: minmax(0, 1fr); }
  .lp-span-3, .lp-span-2 { grid-column: auto; }
  .lp-plans, .lp-steps, .lp-steps.lp-steps-3, .lp-steps.lp-steps-2, .lp-checks, .lp-checks.lp-checks-3, .lp-split, .lp-os { grid-template-columns: minmax(0, 1fr); }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .lp-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .lp-hero { padding: 32px 22px; }
  .lp-compare-row { grid-template-columns: minmax(0, 1fr); }
  .lp-compare-row > span:first-child { padding-bottom: 0; }
  .lp-compare-head { display: none; }
  .lp-section { padding-top: 56px; }
}

.lp-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; color: var(--muted); transition: all .2s var(--ease); }
.lp-toc a span { font-size: 11px; color: var(--accent); }
.lp-toc a:hover { border-color: var(--border-hover); color: var(--text); }
.lp-url { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--code-bg); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.lp-os { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-os > div { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.lp-os > div > b { color: var(--text); font-size: 14.5px; }
.lp-os p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.lp-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-checks.lp-checks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-check { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lp-check h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.lp-check p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; flex: 1; }
.lp-check.is-featured, .lp-vendor.is-featured { border-color: rgba(94, 234, 212, .35); background: radial-gradient(100% 80% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.lp-flow { display: flex; flex-direction: column; gap: 22px; }
.lp-flow-group { display: flex; flex-direction: column; gap: 12px; }
.lp-flow-title { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.status-light.is-off { background: #FCA5A5; box-shadow: 0 0 0 3px rgba(248, 113, 113, .12), 0 0 10px rgba(248, 113, 113, .6); }
.lp-steps.lp-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-steps.lp-steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-step b { color: var(--text); }
.lp-warn { margin-top: 18px; padding: 20px 24px; border-color: rgba(248, 113, 113, .3); background: radial-gradient(80% 120% at 0% 0%, rgba(248, 113, 113, .09), transparent 70%), var(--surface); display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lp-warn > b { color: #FCA5A5; font-size: 15px; }
[data-theme="light"] .lp-warn > b { color: #B91C1C; }
.lp-warn p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.lp-warn p b { color: var(--text); }
.lp-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.lp-col { display: flex; flex-direction: column; gap: 12px; }
.lp-vendor { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.lp-vendor-head { display: flex; align-items: center; gap: 14px; }
.lp-vendor-head > div { flex: 1; min-width: 0; }
.lp-vendor-head h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }
.lp-vendor-head small { color: var(--dim); font-size: 12.5px; }
.lp-avatar { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface-2); color: var(--accent); font-weight: 600; }
.lp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.lp-list li { position: relative; padding-left: 18px; line-height: 1.6; }
.lp-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lp-list b { color: var(--text); font-weight: 600; }
.lp-vendor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--dim); }
.lp-price { display: flex; align-items: baseline; gap: 4px; color: var(--muted); }
.lp-price b { font-size: 46px; line-height: 1; color: var(--text); font-weight: 500; letter-spacing: -.04em; }
.lp-note { margin: 0; font-size: 13px; color: var(--dim); line-height: 1.7; }
.lp-col .lp-card h3 { font-size: 16px; }
.lp .btn-group { max-width: 100%; }
.lp-hero .ui-pill { white-space: normal; line-height: 1.45; max-width: 100%; }
@media (max-width: 960px) {
  .lp-checks, .lp-checks.lp-checks-3, .lp-split, .lp-os, .lp-steps.lp-steps-3, .lp-steps.lp-steps-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 广告位 ---------- */
.ad-slot { margin: 28px 0; min-height: 100px; }
.ad-slot-sidebar { margin: 0; min-height: 250px; }
.ad-slot-inArticle { min-height: 140px; }
.ad-tag { display: block; font-size: 11px; color: var(--dim); margin-bottom: 6px; letter-spacing: .06em; }
.ad-preview { border: 1px dashed var(--border-hover); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--dim); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; text-align: center; padding: 14px; background: var(--surface); }
.ad-preview small { font-size: 11px; opacity: .8; }

/* ---------- 列表页 ---------- */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 40px 0 44px; }
.page-head::after { content: ""; position: absolute; right: -200px; top: -240px; width: 640px; height: 480px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.page-head > * { position: relative; }
.page-head h1 { margin: 14px 0 10px; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.page-head p.lead { margin: 0; color: var(--muted); max-width: 640px; font-size: 16.5px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--muted); }
.segmented { display: inline-flex; gap: 2px; padding: 4px; margin-top: 28px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--ring); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: all .2s var(--ease); }
.segmented a small { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--dim); }
.segmented a:hover { color: var(--text); }
.segmented a[aria-current] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--border-hover), var(--ring); }
.article-cards { display: flex; flex-direction: column; gap: 12px; }
.article-card { display: block; padding: 24px 26px; }
.article-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12.5px; color: var(--dim); }
.article-card h2 { margin: 12px 0 8px; font-size: 19px; line-height: 1.45; letter-spacing: -.012em; font-weight: 600; }
.article-card p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty-note { padding: 40px; text-align: center; color: var(--dim); }

/* ---------- 文章页 ---------- */
.article-head { position: relative; padding: 40px 0 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 860px; }
.article-head h1 { margin: 0; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.22; letter-spacing: -.03em; font-weight: 600; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--dim); }
.article-meta span, .article-meta time { display: inline-flex; align-items: center; gap: 6px; }
.article-grid { display: grid; grid-template-columns: 210px minmax(0, 720px) minmax(260px, 1fr); gap: 48px; align-items: start; }
.article-grid.no-toc { grid-template-columns: minmax(0, 760px) minmax(260px, 1fr); }
.toc-rail { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; padding-bottom: 20px; }
.toc-rail h2 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: .06em; }
.toc-rail a { position: relative; padding: 6px 0 6px 14px; color: var(--dim); line-height: 1.45; border-left: 1px solid var(--border); transition: all .2s var(--ease); }
.toc-rail a.lv3 { padding-left: 26px; font-size: 13px; }
.toc-rail a:hover { color: var(--text); }
.toc-rail a.is-active { color: var(--text); border-left-color: var(--accent); }

.prose { min-width: 0; font-size: 16.5px; line-height: 1.88; color: #D4D4D8; overflow-wrap: anywhere; }
[data-theme="light"] .prose { color: #27272A; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--text); letter-spacing: -.02em; font-weight: 600; scroll-margin-top: 90px; }
.prose h2 { font-size: 25px; line-height: 1.35; margin: 52px 0 16px; }
.prose h3 { font-size: 20px; line-height: 1.45; margin: 38px 0 12px; }
.prose h4 { font-size: 17px; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(94, 234, 212, .55); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 5px 0; }
.prose li > p { margin: 0 0 6px; }
.prose li::marker { color: var(--dim); }
.prose img { display: block; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.prose figure { margin: 26px 0; display: flex; flex-direction: column; align-items: flex-start; }
.prose figcaption { font-size: 13px; color: var(--dim); margin-top: 10px; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 40px 0; }
.prose code { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.prose pre { position: relative; margin: 0 0 22px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--code-bg); color: #E4E4E7; overflow-x: auto; font-size: 13.5px; line-height: 1.75; box-shadow: var(--ring); }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.copy-code { position: absolute; top: 10px; right: 10px; min-height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); background: rgba(24,24,27,.8); color: #A1A1AA; font: 12px/1 inherit; font-family: inherit; cursor: pointer; opacity: 0; transition: all .2s var(--ease); }
.prose pre:hover .copy-code, .copy-code:focus-visible { opacity: 1; }
.copy-code:hover { color: #F4F4F5; border-color: rgba(255,255,255,.2); }
.table-scroll { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.6; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; white-space: nowrap; background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }
.article-summary { padding: 16px 20px; margin-bottom: 28px !important; font-size: 15px; color: var(--muted); line-height: 1.75; }
.article-summary b { color: var(--text); margin-right: 6px; }

.article-end { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.author-box { padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.author-box img { width: 52px; height: 52px; display: block; }
.author-box > div { flex: 1 1 240px; }
.author-box b { font-weight: 600; }
.author-box p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pager a { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.pager a.is-next { text-align: right; align-items: flex-end; }
.pager small { font-size: 12px; color: var(--dim); }

/* 自定义 HTML 页面（Claude 页、联系页、检测工具等）保持原样，仅做配色统一 */
.custom-html { max-width: 1200px; margin: 0 auto; padding: 0 24px; line-height: 1.6; }
.custom-html.is-tool { max-width: none; padding: 0; }
.custom-html .ipc-root { --bg-color: transparent; --card-bg: rgba(24, 24, 27, .5); --card-border: rgba(255, 255, 255, .08); --text-main: #F4F4F5; --text-muted: #A1A1AA; --accent-green: #5EEAD4; background: transparent !important; }
.custom-html .ipc-root .card { backdrop-filter: blur(12px); border-radius: 14px; transition: border-color .2s var(--ease); }
.custom-html .ipc-root .card:hover { border-color: rgba(255, 255, 255, .18); }
.custom-html .contact-terminal-card, .custom-html .nodes-terminal-card { background: rgba(24, 24, 27, .5) !important; border-color: rgba(255, 255, 255, .08) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important; backdrop-filter: blur(12px); }

/* ---------- 搜索面板 ---------- */
.search-modal { width: min(640px, calc(100% - 32px)); max-height: 72vh; padding: 0; margin: 12vh auto 0; border: 1px solid var(--border-hover); border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 92%, transparent); backdrop-filter: blur(20px); color: var(--text); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 30px 80px -20px rgba(0,0,0,.6); overflow: hidden; }
.search-modal[open] { animation: fadeIn .2s var(--ease); }
.search-modal::backdrop { background: rgba(9, 9, 11, .6); backdrop-filter: blur(4px); }
.search-head { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.search-head svg { color: var(--dim); flex: none; }
.search-head input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.search-head input::placeholder { color: var(--dim); }
.search-list { max-height: calc(72vh - 100px); overflow: auto; padding: 8px; }
.search-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; transition: background .15s var(--ease); }
.search-list a:hover, .search-list a.is-active { background: var(--surface-2); color: var(--text); }
.search-list a b { font-weight: 500; font-size: 15px; }
.search-list a small { color: var(--dim); font-size: 12.5px; }
.search-list p { margin: 0; padding: 18px 14px; color: var(--dim); font-size: 14px; }
.search-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--dim); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 120px; border-top: 1px solid var(--border); }
.footer-cols { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 56px 0 40px; font-size: 14px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h3 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--text); }
.footer-cols a { color: var(--dim); }
.footer-cols a:hover { color: var(--text); }
.footer-about p { margin: 6px 0 0; color: var(--dim); max-width: 320px; line-height: 1.7; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 32px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--dim); font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.footer-bar span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1140px) {
  .article-grid, .article-grid.no-toc { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .toc-rail { display: none; }
}
@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 12px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .only-mobile { display: inline-flex !important; }
  .only-desktop { display: none !important; }
  .split, .article-grid, .article-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-net, .b-cat-b { grid-column: span 2; grid-row: auto; }
  .b-stat, .b-cat-a, .b-cat-c, .b-cat-d { grid-column: span 1; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .nc-exits { grid-template-columns: minmax(0, 1fr); }
  .nc-grid { grid-template-columns: minmax(0, 1fr); }
  .nc-grid > .nc-box { grid-column: auto !important; grid-row: auto !important; }
  .nc-dev-grid { grid-template-columns: minmax(0, 1fr); }
  .nc-dev-grid .nc-row:nth-child(2) { border-top: 1px solid var(--border); padding-top: 9px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-wrap { padding: 0 16px; }
  .custom-html { padding: 0 12px; }
  .hero-inner { padding-top: 64px; padding-bottom: 60px; }
  .hero-search-box { padding-left: 14px; }
  .hero-search-box .ui-btn { padding: 0 14px; }
  .page-section { padding-top: 64px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; }
  .net-body { grid-template-columns: minmax(0, 1fr); }
  .net-pings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 18px; }
  .post-row .row-arrow, .post-row .ui-pill { display: none; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .cta-panel { padding: 40px 20px; }
}
