/* 功能导航 Mini App — 科技感卡片界面 */
:root {
  --bg: #0b0c0e;
  --bg2: #121316;
  --card: linear-gradient(160deg, #2a2d33 0%, #1b1d21 55%, #16181b 100%);
  --card-solid: #1c1e22;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .16);
  --text: #eceef2;
  --dim: #9ba1ad;
  --faint: #6a707c;
  --accent: #d9dde5;
  --accent2: #8e95a3;
  --ok: #46d39a;
  --warn: #f2c14e;
  --bad: #ff6b7d;
  --glow: 0 1px 0 rgba(255,255,255,.09) inset, 0 -1px 0 rgba(0,0,0,.55) inset, 0 10px 24px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.6);
  --radius: 18px;
  --tab-h: 64px;
}
:root[data-theme="light"] {
  --bg: #dfe2e7;
  --bg2: #cfd3da;
  --card: linear-gradient(160deg, #ffffff 0%, #eef0f3 100%);
  --card-solid: #f4f5f7;
  --line: rgba(0, 0, 0, .08);
  --line2: rgba(0, 0, 0, .18);
  --text: #16181c;
  --dim: #565c68;
  --faint: #8b919d;
  --accent: #2b2f36;
  --accent2: #6b7280;
  --ok: #12a870;
  --warn: #c98a00;
  --bad: #e0344f;
  --glow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(0,0,0,.08) inset, 0 8px 18px rgba(0,0,0,.14), 0 2px 3px rgba(0,0,0,.10);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 12px);
  overflow-x: hidden;
}
body::before {            /* 背景光晕 + 网格 */
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 320px at 85% -5%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(480px 360px at -10% 8%, rgba(255,255,255,.04), transparent 70%),
    linear-gradient(var(--bg), var(--bg2));
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .35;
  -webkit-mask-image: linear-gradient(#000, transparent 55%);
  mask-image: linear-gradient(#000, transparent 55%);
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

#app { max-width: 720px; margin: 0 auto; padding: 14px 14px 0; }
.page { animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- 卡片 ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glow);
  position: relative;
}
.card.pad0 { padding: 0; overflow: hidden; }
.card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.card h3 .sp { flex: 1; }
.card h3 button { text-transform: none; letter-spacing: 0; }
.hero {
  background: linear-gradient(135deg, rgba(210, 214, 222, .18), rgba(160, 166, 178, .20)), var(--card);
  border-color: var(--line2);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 214, 222, .35), transparent 70%); filter: blur(6px);
}
.hero .hi { font-size: 13px; color: var(--dim); }
.hero .name { font-size: 24px; font-weight: 700; margin: 2px 0 6px; letter-spacing: .01em; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px;
  background: rgba(210, 214, 222, .10); border: 1px solid var(--line); color: var(--dim);
}
.pill.ok { color: var(--ok); border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .08); }
.pill.warn { color: var(--warn); border-color: rgba(255, 200, 87, .35); background: rgba(255, 200, 87, .08); }
.pill.bad { color: var(--bad); border-color: rgba(255, 107, 129, .35); background: rgba(255, 107, 129, .08); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.grid { display: grid; gap: 10px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: 12px 6px; }
.stat b { display: block; font-size: 26px; font-weight: 700; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: ui-monospace, Menlo, monospace; }
.stat span { font-size: 12px; color: var(--dim); }

/* ---- 按钮 / 输入 ---- */
.btn {
  border: 1px solid var(--line2); background: rgba(210, 214, 222, .08); color: var(--accent);
  border-radius: 12px; padding: 9px 16px; cursor: pointer; transition: transform .1s, background .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #04101e; border: 0; font-weight: 700; box-shadow: 0 6px 20px rgba(210, 214, 222, .28); }
.btn.danger { color: var(--bad); border-color: rgba(255, 107, 129, .4); background: rgba(255, 107, 129, .08); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--dim); }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.input {
  width: 100%; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
:root[data-theme="light"] .input { background: rgba(255, 255, 255, .8); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(210, 214, 222, .15); }
textarea.input { resize: vertical; min-height: 90px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .input { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  border: 1px solid var(--line); background: rgba(210, 214, 222, .06); color: var(--dim);
  border-radius: 99px; padding: 4px 12px; font-size: 13px; cursor: pointer;
}
.chip.on { color: #04101e; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.seg button { flex: 1; border: 0; background: transparent; color: var(--dim); padding: 7px 4px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.seg button.on { background: linear-gradient(135deg, rgba(210, 214, 222, .28), rgba(160, 166, 178, .28)); color: var(--text); }

/* ---- 底部标签栏 ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  padding: 0 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
  pointer-events: none;
}
.tabbar nav {
  pointer-events: auto; display: flex; width: 100%; max-width: 520px; height: var(--tab-h);
  background: var(--card-solid); border: 1px solid var(--line2); border-radius: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45), var(--glow); overflow: hidden;
}
.tabbar button {
  flex: 1; border: 0; background: transparent; color: var(--faint); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: 11px; cursor: pointer; position: relative;
}
.tabbar button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--accent); }
.tabbar button.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ---- 页头 ---- */
.top { display: flex; align-items: center; gap: 10px; margin: 4px 2px 14px; }
.top h1 { margin: 0; font-size: 20px; flex: 1; letter-spacing: .02em; }
.top .back { border: 1px solid var(--line); background: var(--card); border-radius: 12px; width: 36px; height: 36px; cursor: pointer; color: var(--text); }

/* ---- 网站导航 ---- */
.cat-title { display: flex; align-items: center; gap: 8px; margin: 18px 4px 8px; font-weight: 600; }
.cat-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent2)); }
.cat-title .sp { flex: 1; }
.site {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .12s, border-color .2s;
  position: relative;
}
.site:active { transform: scale(.97); border-color: var(--accent); }
.site .ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  color: #04101e; background: linear-gradient(135deg, var(--accent), var(--accent2)); overflow: hidden;
}
.site .ico img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.site .t { min-width: 0; }
.site .t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site .t span { display: block; font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site .x { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; }
.site .x button { border: 0; background: rgba(0, 0, 0, .35); color: #fff; width: 24px; height: 24px; border-radius: 8px; font-size: 12px; cursor: pointer; }

/* ---- 工具入口 ---- */
.tool {
  padding: 16px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); cursor: pointer;
  position: relative; overflow: hidden; transition: transform .12s, border-color .2s; text-align: left;
}
.tool:active { transform: scale(.97); border-color: var(--accent); }
.tool::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, var(--tc, var(--accent)), transparent 70%); opacity: .25; }
.tool .ti { font-size: 26px; display: block; margin-bottom: 8px; }
.tool b { display: block; font-size: 15px; }
.tool span { font-size: 12px; color: var(--dim); }

/* ---- 全球 Ping 节点 ---- */
.nodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.node {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; font-size: 13px;
  background: rgba(0, 0, 0, .16); border: 1px solid var(--line); position: relative; overflow: hidden;
}
:root[data-theme="light"] .node { background: rgba(255, 255, 255, .6); }
.node .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .ms { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 13px; }
.node.wait { color: var(--faint); }
.node.run { border-color: var(--accent); }
.node.run::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(210, 214, 222, .18), transparent); animation: sweep 1.2s infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.node.ok .ms { color: var(--ok); }
.node.ok.mid .ms { color: var(--warn); }
.node.ok.slow .ms { color: var(--bad); }
.node.fail .ms { color: var(--bad); }
.node.fail { border-color: rgba(255, 107, 129, .25); }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .4s ease; }
.bar.ok > i { background: linear-gradient(90deg, var(--ok), var(--accent)); }
.bar.warn > i { background: linear-gradient(90deg, var(--warn), #ff9f43); }
.bar.bad > i { background: linear-gradient(90deg, var(--bad), #ff9f43); }

/* ---- IP 卡 / 键值 ---- */
.kv { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--dim); flex: none; width: 5.2em; }
.kv > span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.ipcard { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: rgba(0, 0, 0, .14); }
:root[data-theme="light"] .ipcard { background: rgba(255, 255, 255, .6); }
.ipcard .ip { font-weight: 700; font-size: 15px; word-break: break-all; }
.ipcard .sub { color: var(--dim); font-size: 13px; margin-top: 3px; }
.mapimg { width: 100%; border-radius: 14px; display: block; border: 1px solid var(--line); cursor: zoom-in; }

/* ---- 路由 ---- */
.hops { position: relative; padding-left: 4px; }
.hop { display: flex; gap: 12px; padding-bottom: 12px; position: relative; }
.hop::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: linear-gradient(var(--line2), transparent); }
.hop:last-child::before { display: none; }
.hop .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line2); background: var(--card-solid); color: var(--accent); z-index: 1; }
.hop.none .n { color: var(--faint); border-style: dashed; }
.hop .b { flex: 1; min-width: 0; }
.hop .ip { font-size: 13px; word-break: break-all; }
.hop .pl { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.hop .r { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--accent); text-align: right; flex: none; }
.verdict { padding: 10px 12px; border-radius: 12px; background: rgba(210, 214, 222, .08); border: 1px solid var(--line); font-size: 14px; white-space: pre-line; margin-bottom: 12px; }

/* ---- IP 质量 ---- */
.score { display: flex; align-items: center; gap: 14px; }
.score .em { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; border: 2px solid var(--c, var(--ok)); box-shadow: 0 0 20px color-mix(in srgb, var(--c, var(--ok)) 40%, transparent); }
.score b { font-size: 18px; }
.qrow { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; align-items: flex-start; }
.qrow:last-child { border-bottom: 0; }
.qrow .ic { flex: none; width: 1.6em; text-align: center; }
.qrow .lb { flex: none; width: 3.2em; color: var(--dim); }
.qrow .vl { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---- 主机状态 ---- */
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gauge { text-align: center; }
.gauge svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.gauge .bg { stroke: rgba(255, 255, 255, .14); }
.gauge .fg { transition: stroke-dashoffset .6s ease, stroke .3s; filter: drop-shadow(0 0 5px currentColor); }
.gauge .v { margin-top: -62px; height: 62px; font-weight: 700; font-size: 18px; font-family: ui-monospace, Menlo, monospace; display: grid; place-items: center; }
.gauge .l { font-size: 12px; color: var(--dim); }
.gauge .s { font-size: 11px; color: var(--faint); }
.speed { display: flex; justify-content: space-around; text-align: center; }
.speed b { display: block; font-size: 18px; font-family: ui-monospace, Menlo, monospace; }
.speed span { font-size: 12px; color: var(--dim); }

/* ---- 笔记 ---- */
.note { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .14); margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
:root[data-theme="light"] .note { background: rgba(255, 255, 255, .6); }
.note pre { margin: 0; flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 ui-monospace, Menlo, monospace; }
.note small { display: block; color: var(--faint); margin-top: 3px; font-family: inherit; }
.note .del { flex: none; border: 0; background: transparent; color: var(--bad); cursor: pointer; font-size: 16px; }
.empty { text-align: center; padding: 30px 10px; color: var(--faint); }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; opacity: .8; }
.tabs-x { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.tabs-x::-webkit-scrollbar { display: none; }

/* ---- 弹层 / 提示 ---- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 560px; background: var(--card-solid); border: 1px solid var(--line2); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 18px); animation: up .25s both;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { margin: 0 0 12px; font-size: 17px; }
.sheet .f { margin-bottom: 10px; }
.sheet .f label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.sheet .acts { display: flex; gap: 8px; margin-top: 14px; }
.sheet .acts .btn { flex: 1; }
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); transform: translateX(-50%); z-index: 99;
  max-width: 90%; padding: 10px 16px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5); font-size: 14px; animation: drop .25s both;
}
.toast.err { border-color: rgba(255, 107, 129, .5); color: var(--bad); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }
.zoom { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .92); display: grid; place-items: center; overflow: auto; }
.zoom img { max-width: 100%; max-height: 100%; }
.skeleton { height: 70px; border-radius: var(--radius); margin-bottom: 12px; background: linear-gradient(90deg, var(--card), rgba(255, 255, 255, .14), var(--card)); background-size: 200% 100%; animation: shine 1.3s infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.spin { width: 16px; height: 16px; border: 2px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.hint { font-size: 12px; color: var(--faint); margin-top: 8px; }
.lock { text-align: center; padding: 60px 20px; }
.lock .big { font-size: 56px; }
@media (min-width: 560px) { .nodes { grid-template-columns: repeat(3, 1fr); } .g3m { grid-template-columns: repeat(3, 1fr); } }

.site.ed .t { padding-right: 50px; }

/* ================= 黑灰立体质感覆盖 ================= */
.card, .tool, .site, .node, .ipcard, .note, .tabbar nav, .sheet, .toast, .input, .seg, .pill, .chip {
  border-color: rgba(255,255,255,.07);
}
:root[data-theme="light"] .card, :root[data-theme="light"] .tool, :root[data-theme="light"] .site, :root[data-theme="light"] .tabbar nav { border-color: rgba(0,0,0,.08); }
.card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.tool, .site {
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 -1px 0 rgba(0,0,0,.5) inset, 0 6px 14px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.6);
}
:root[data-theme="light"] .tool, :root[data-theme="light"] .site { box-shadow: 0 1px 0 #fff inset, 0 6px 12px rgba(0,0,0,.12); }
.tool:active, .site:active, .btn:active {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 2px 6px rgba(0,0,0,.6) inset, 0 1px 0 rgba(255,255,255,.04);
}
.hero {
  background: linear-gradient(145deg, #3a3e46 0%, #23262b 50%, #17181c 100%);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 -2px 0 rgba(0,0,0,.5) inset, 0 16px 30px rgba(0,0,0,.6), 0 3px 6px rgba(0,0,0,.6);
}
:root[data-theme="light"] .hero { background: linear-gradient(145deg, #ffffff, #d9dce2); }
.hero::after { background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); }
.stat b { background: linear-gradient(180deg, #ffffff 0%, #9aa0ac 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
:root[data-theme="light"] .stat b { background: linear-gradient(180deg, #2b2f36, #6b7280); -webkit-background-clip: text; background-clip: text; }
/* 按钮：金属凸起 */
.btn {
  background: linear-gradient(180deg, #34373d 0%, #232529 100%);
  border: 1px solid rgba(255,255,255,.12); color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 4px 10px rgba(0,0,0,.5);
}
:root[data-theme="light"] .btn { background: linear-gradient(180deg, #fff, #e6e8ec); box-shadow: 0 1px 0 #fff inset, 0 3px 8px rgba(0,0,0,.14); }
.btn.primary {
  background: linear-gradient(180deg, #f2f4f8 0%, #b9bec9 100%); color: #101215; border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 6px 14px rgba(0,0,0,.55);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.btn.danger { background: linear-gradient(180deg, #3a2a2e, #2a1d20); color: var(--bad); border-color: rgba(255,107,125,.35); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--dim); }
/* 输入框：凹陷 */
.input { background: #0e0f11; box-shadow: 0 2px 6px rgba(0,0,0,.7) inset, 0 1px 0 rgba(255,255,255,.06); }
:root[data-theme="light"] .input { background: #eceef1; box-shadow: 0 2px 5px rgba(0,0,0,.15) inset, 0 1px 0 #fff; }
.input:focus { border-color: rgba(255,255,255,.4); box-shadow: 0 2px 6px rgba(0,0,0,.7) inset, 0 0 0 3px rgba(255,255,255,.08); }
.seg { background: #0e0f11; box-shadow: 0 2px 6px rgba(0,0,0,.7) inset; }
.seg button.on { background: linear-gradient(180deg, #3b3e45, #2a2c31); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 3px 8px rgba(0,0,0,.5); }
.chip { background: linear-gradient(180deg, #2e3035, #212327); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 5px rgba(0,0,0,.4); }
.chip.on { background: linear-gradient(180deg, #f2f4f8, #b9bec9); color: #101215; border-color: transparent; }
.pill { background: linear-gradient(180deg, #2c2e33, #202226); box-shadow: 0 1px 0 rgba(255,255,255,.07) inset; }
.pill.ok { background: rgba(70,211,154,.10); } .pill.warn { background: rgba(242,193,78,.10); } .pill.bad { background: rgba(255,107,125,.10); }
/* 站点图标、节点、IP 卡、笔记：凸起小块 */
.site .ico { background: linear-gradient(145deg, #f2f4f8, #9aa0ac); color: #15171a; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 3px 6px rgba(0,0,0,.5); }
.node, .ipcard, .note { background: linear-gradient(180deg, #202226, #17181b); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 3px 8px rgba(0,0,0,.4); }
:root[data-theme="light"] .node, :root[data-theme="light"] .ipcard, :root[data-theme="light"] .note { background: linear-gradient(180deg,#fff,#eceef1); }
.node.run { border-color: rgba(255,255,255,.35); }
.node.run::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent); }
/* 进度条：凹槽 + 金属填充 */
.bar { background: #0c0d0f; box-shadow: 0 1px 3px rgba(0,0,0,.8) inset; height: 7px; }
.bar > i { background: linear-gradient(180deg, #f2f4f8, #9aa0ac); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.bar.ok > i { background: linear-gradient(180deg, #7ff0c3, #2fae80); }
.bar.warn > i { background: linear-gradient(180deg, #ffd978, #d49a1e); }
.bar.bad > i { background: linear-gradient(180deg, #ff9aa6, #d6455a); }
/* 底部导航：悬浮金属条 */
.tabbar nav { background: linear-gradient(180deg, #2b2d32, #18191c); border-color: rgba(255,255,255,.12); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 14px 34px rgba(0,0,0,.7), 0 3px 8px rgba(0,0,0,.6); }
:root[data-theme="light"] .tabbar nav { background: linear-gradient(180deg,#fff,#e4e6ea); }
.tabbar button.on { color: #fff; }
:root[data-theme="light"] .tabbar button.on { color: #111; }
.tabbar button.on::before { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); }
/* 仪表环、图标发光改白色 */
.gauge .bg { stroke: #0c0d0f; }
.gauge .fg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
.gauge svg { filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.cat-title::before { background: linear-gradient(#fff, #7b818d); }
.verdict { background: linear-gradient(180deg,#1a1b1e,#141517); box-shadow: 0 2px 6px rgba(0,0,0,.6) inset; }
.hop .n { background: linear-gradient(180deg,#34373d,#202226); color: var(--text); box-shadow: 0 2px 5px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.1) inset; }
.hop .r { color: var(--text); }
.top .back { background: linear-gradient(180deg,#34373d,#222428); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 3px 8px rgba(0,0,0,.5); }
.sheet { background: linear-gradient(180deg, #2a2c31, #1a1b1e); box-shadow: 0 -10px 40px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.1) inset; }
.toast { background: linear-gradient(180deg,#34373d,#222428); }
.dot { background: var(--ok); }
.spin { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
.skeleton { background: linear-gradient(90deg, #1c1e22, #2a2d33, #1c1e22); background-size: 200% 100%; }
.tool::after { background: radial-gradient(circle, rgba(255,255,255,.55), transparent 70%); opacity: .08; }
.tool { background: linear-gradient(160deg, #2c2f35 0%, #1a1c20 100%); }
:root[data-theme="light"] .tool { background: linear-gradient(160deg,#fff,#e9ebef); }

/* ================= 主机状态仪表（动态分色） ================= */
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gauge { text-align: center; position: relative; --gc: rgba(46,230,166,.5); --ga: #2ee6a6; }
.gauge svg { width: 100%; max-width: 112px; height: auto; transform: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); overflow: visible; }
.gauge .trk { stroke: #0b0c0e; stroke-width: 9; filter: drop-shadow(0 1px 0 rgba(255,255,255,.06)); }
.gauge .val { filter: drop-shadow(0 0 6px var(--gc)); transition: stroke-dasharray .8s cubic-bezier(.22,1,.36,1); }
.gauge .tk { stroke: rgba(255,255,255,.14); stroke-width: 1.6; stroke-linecap: round; transition: stroke .5s, opacity .5s; }
.gauge .num { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; max-width: 112px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 1px; pointer-events: none; padding-bottom: 6px; }
.gauge .num b { font-size: 22px; font-weight: 700; font-family: ui-monospace, Menlo, monospace; color: var(--ga); text-shadow: 0 0 12px var(--gc); transition: color .5s; letter-spacing: -.02em; }
.gauge .num small { font-size: 11px; color: var(--dim); margin-top: 5px; }
.gauge .l { font-size: 13px; font-weight: 600; color: var(--text); margin-top: -2px; }
.gauge .s { font-size: 11px; color: var(--faint); margin-top: 1px; line-height: 1.35; }
.speed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; text-align: left; }
.speed > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: linear-gradient(180deg,#17181b,#1d1f23); box-shadow: 0 2px 6px rgba(0,0,0,.65) inset, 0 1px 0 rgba(255,255,255,.05); }
:root[data-theme="light"] .speed > div { background: linear-gradient(180deg,#e6e8ec,#f3f4f6); box-shadow: 0 2px 5px rgba(0,0,0,.12) inset; }
.speed .ar { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #101215; }
.speed .ar.up { background: linear-gradient(180deg,#ffd08a,#ff9f43); box-shadow: 0 0 12px rgba(255,159,67,.45); }
.speed .ar.dn { background: linear-gradient(180deg,#8ff0c8,#2fc58f); box-shadow: 0 0 12px rgba(46,230,166,.4); }
.speed b { display: block; font-size: 16px; font-family: ui-monospace, Menlo, monospace; }
.speed b.up { color: #ffb454; } .speed b.dn { color: #46d39a; }
.speed span:not(.ar) { font-size: 11px; color: var(--dim); }
.trend { margin-top: 14px; padding: 10px 12px 6px; border-radius: 14px; background: linear-gradient(180deg,#141518,#1a1c1f); box-shadow: 0 2px 6px rgba(0,0,0,.65) inset, 0 1px 0 rgba(255,255,255,.05); }
:root[data-theme="light"] .trend { background: #eceef1; }
.trend .tl { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.trend .tl em { font-style: normal; color: var(--faint); }
.trend .lg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 3px 0 6px; }
.trend .lg i.u { background: #ffb454; } .trend .lg i.d { background: #46d39a; }
.spark { width: 100%; height: 54px; display: block; }
.trend .two { position: relative; height: 54px; }
.trend .two .spark { position: absolute; inset: 0; }

/* ================= 最近记录（下拉） ================= */
.rec { margin-top: 12px; border-radius: 14px; background: linear-gradient(180deg,#141518,#1a1c1f); box-shadow: 0 2px 6px rgba(0,0,0,.65) inset, 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
:root[data-theme="light"] .rec { background: #eceef1; box-shadow: 0 2px 5px rgba(0,0,0,.12) inset, 0 1px 0 #fff; }
.rec-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: transparent; border: 0; cursor: pointer; color: var(--dim); font-size: 14px; }
.rec-h .tt { color: var(--text); }
.rec-h .cnt { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--dim); }
.rec-h .sp { flex: 1; }
.rec-h .arr { font-size: 18px; line-height: 1; transition: transform .25s; color: var(--dim); }
.rec.open .rec-h .arr { transform: rotate(180deg); }
.rec-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.rec.open .rec-body { grid-template-rows: 1fr; }
.rec-list { overflow: hidden; min-height: 0; }
.rec.open .rec-list { overflow-y: auto; max-height: 252px; border-top: 1px solid var(--line); }
.rec-i { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--text); }
.rec-i:last-child { border-bottom: 0; }
.rec-i:active { background: rgba(255,255,255,.06); }
.rec-i .m { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-i .x { flex: none; font-size: 11px; color: var(--dim); padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.07); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.pill{font:inherit;font-size:12px;cursor:pointer;border:1px solid var(--line,#333);background:transparent;color:inherit}

/* 顶部汇率 */
.card.fx { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; margin-bottom: 12px; position: relative; overflow: hidden; }
.card.fx::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 0% 0%, rgba(70, 211, 154, .10), transparent 55%); pointer-events: none; }
.fx-l, .fx-r { position: relative; z-index: 1; }
.fx-pair { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.fx-pair i { font-style: normal; color: var(--faint); font-size: 12px; }
.fx-pair em { font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--dim); margin-left: 4px; padding: 2px 7px; border: 1px solid var(--line2); border-radius: 999px; }
.fx-main { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.fx-sym { font-size: 13px; color: var(--dim); }
.fx-num { font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: linear-gradient(180deg, #ffffff 0%, #b7beca 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 10px rgba(255, 255, 255, .08); }
:root[data-theme="light"] .fx-num { background: linear-gradient(180deg, #3a3f48 0%, #16181c 100%); -webkit-background-clip: text; background-clip: text; }
.fx-chg { font-size: 12px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.fx-chg.up { color: var(--bad); }
.fx-chg.dn { color: var(--ok); }
.fx-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fx-time { font-size: 11px; color: var(--faint); }

/* ============ 中性黑灰主题：黑灰底 + 银白高光（不带蓝） ============ */
:root {
  --accent: #eceef2;
  --accent2: #9aa0aa;
  --sig: 236, 238, 242;            /* 信号青的 rgb，给半透明用 */
}
:root[data-theme="light"] {
  --accent: #2b2f36;
  --accent2: #6b7280;
  --sig: 50, 54, 62;
}
body::before {
  background:
    radial-gradient(560px 360px at 88% -6%, rgba(var(--sig), .16), transparent 70%),
    radial-gradient(460px 340px at -12% 12%, rgba(255, 255, 255, .04), transparent 70%),
    linear-gradient(var(--bg), var(--bg2));
}
body::after {
  background-image:
    linear-gradient(rgba(var(--sig), .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--sig), .10) 1px, transparent 1px);
}

/* 首页第一块：问候 + 雷达扫描（整页唯一一处持续动画） */
.hero {
  background:
    linear-gradient(135deg, rgba(var(--sig), .14) 0%, rgba(255, 255, 255, .03) 55%, transparent 100%),
    linear-gradient(160deg, #1b1b1b 0%, #0f0f0f 100%);
  border-color: rgba(var(--sig), .30);
  box-shadow: 0 1px 0 rgba(var(--sig), .35) inset, 0 -1px 0 rgba(0,0,0,.6) inset, 0 14px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4);
}
:root[data-theme="light"] .hero { background: linear-gradient(135deg, rgba(var(--sig), .16), rgba(255,255,255,.03)), linear-gradient(160deg,#fff,#e8e9ec); }
.hero::before {
  content: ""; position: absolute; right: -46px; top: -34px; width: 210px; height: 210px; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 34% 40%, rgba(var(--sig), 1) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 62%, rgba(var(--sig), .85) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(var(--sig), .9) 0 3px, transparent 4px),
    repeating-radial-gradient(circle, transparent 0 25px, rgba(var(--sig), .22) 25px 26px);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}
.hero::after {
  right: -46px; top: -34px; width: 210px; height: 210px; border-radius: 50%; filter: none; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(var(--sig), 0) 0deg, rgba(var(--sig), .38) 62deg, rgba(var(--sig), 0) 63deg);
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 72%); mask-image: radial-gradient(circle, #000 52%, transparent 72%);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.hero .hi { color: var(--accent); font-size: 13px; letter-spacing: .04em; }
.hero .name { font-size: 26px; margin: 4px 0 10px; }
.hero .meta { position: relative; z-index: 1; }

/* 汇率：仪表读数 */
.card.fx { border-color: rgba(var(--sig), .22); background: linear-gradient(160deg, #171717 0%, #0f0f0f 100%); }
:root[data-theme="light"] .card.fx { background: linear-gradient(160deg,#fff,#eceef1); }
.card.fx::before { background: radial-gradient(120% 160% at 0% 0%, rgba(var(--sig), .16), transparent 58%); }
.fx-pair em { color: var(--accent); border-color: rgba(var(--sig), .35); background: rgba(var(--sig), .08); }
.fx-num { background: linear-gradient(180deg, #ffffff 0%, #a9aeb8 100%); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 0 10px rgba(var(--sig), .35)); }
:root[data-theme="light"] .fx-num { background: linear-gradient(180deg, #16181c, #4a505a); -webkit-background-clip: text; background-clip: text; filter: none; }

/* 快捷工具：图标放进发光的方块里 */
.tool { border-color: rgba(var(--sig), .14); }
.tool .ti {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px; margin-bottom: 10px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(var(--sig), .26), rgba(255, 255, 255, .04));
  border: 1px solid rgba(var(--sig), .32);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 16px rgba(var(--sig), .18);
}
.tool::after { background: radial-gradient(circle, rgba(var(--sig), .9), transparent 70%); opacity: .14; }
.tool:active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(var(--sig), .5), 0 0 22px rgba(var(--sig), .25); }

/* 卡片小标题、底部导航、主按钮统一用信号青 */
.card h3 { color: var(--dim); }
.card h3::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent2)); box-shadow: 0 0 8px rgba(var(--sig), .6); }
.tabbar button.on { color: var(--accent); }
:root[data-theme="light"] .tabbar button.on { color: var(--accent); }
.tabbar button.on::before { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.btn.primary { color: #0b0c0e; box-shadow: 0 6px 20px rgba(var(--sig), .30); }
.btn.sm.ghost { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

/* ============ 纯黑版：OLED 黑底，卡片只靠细亮边和内高光显立体 ============ */
:root:not([data-theme="light"]) {
  --bg: #000000;
  --bg2: #000000;
  --card: linear-gradient(170deg, #121212 0%, #080808 100%);
  --card-solid: #080808;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .15);
  --glow: 0 1px 0 rgba(255,255,255,.10) inset, 0 0 0 1px rgba(0,0,0,.9), 0 14px 30px rgba(0,0,0,.85);
}
:root:not([data-theme="light"]) body::before {
  background:
    radial-gradient(520px 300px at 90% -8%, rgba(var(--sig), .13), transparent 70%),
    radial-gradient(420px 300px at -14% 16%, rgba(255, 255, 255, .03), transparent 70%),
    #000;
}
:root:not([data-theme="light"]) body::after { opacity: .22; }
:root:not([data-theme="light"]) .card { border-color: rgba(255,255,255,.09); }
:root:not([data-theme="light"]) .hero {
  background: linear-gradient(135deg, rgba(var(--sig), .13) 0%, rgba(255,255,255,.03) 50%, transparent 100%), linear-gradient(170deg, #101010, #060606);
  border-color: rgba(var(--sig), .32);
  box-shadow: 0 1px 0 rgba(var(--sig), .40) inset, 0 0 0 1px #000, 0 14px 32px rgba(0,0,0,.9), 0 0 36px rgba(var(--sig), .07);
}
:root:not([data-theme="light"]) .card.fx { background: linear-gradient(170deg, #0e0e0e, #060606); border-color: rgba(var(--sig), .24); }
:root:not([data-theme="light"]) .tool { background: linear-gradient(165deg, #161616 0%, #090909 100%); border-color: rgba(255,255,255,.10); box-shadow: 0 1px 0 rgba(255,255,255,.09) inset, 0 0 0 1px #000, 0 8px 16px rgba(0,0,0,.8); }
:root:not([data-theme="light"]) .tool:active { border-color: var(--accent); }
:root:not([data-theme="light"]) .tabbar nav { background: linear-gradient(180deg, #121212, #040404); border-color: rgba(255,255,255,.11); box-shadow: 0 1px 0 rgba(255,255,255,.09) inset, 0 0 0 1px #000, 0 14px 34px rgba(0,0,0,.95); }
:root:not([data-theme="light"]) .input, :root:not([data-theme="light"]) .seg { background: #000; box-shadow: 0 2px 6px rgba(0,0,0,.9) inset, 0 0 0 1px rgba(255,255,255,.08); }
:root:not([data-theme="light"]) .seg button.on { background: linear-gradient(180deg, rgba(var(--sig), .28), rgba(255,255,255,.08)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 0 0 1px rgba(var(--sig), .45); }
:root:not([data-theme="light"]) .chip, :root:not([data-theme="light"]) .pill { background: linear-gradient(180deg, #181818, #0b0b0b); box-shadow: 0 1px 0 rgba(255,255,255,.07) inset; }
:root:not([data-theme="light"]) .chip.on { background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #0b0c0e; }
:root:not([data-theme="light"]) .pill.ok { background: rgba(61, 220, 151, .09); }
:root:not([data-theme="light"]) .node, :root:not([data-theme="light"]) .ipcard, :root:not([data-theme="light"]) .note { background: linear-gradient(180deg, #111111, #090909); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 1px #000; }
:root:not([data-theme="light"]) .speed > div, :root:not([data-theme="light"]) .trend, :root:not([data-theme="light"]) .rec, :root:not([data-theme="light"]) .verdict { background: #000; box-shadow: 0 2px 6px rgba(0,0,0,.9) inset, 0 0 0 1px rgba(255,255,255,.07); }
:root:not([data-theme="light"]) .bar { background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
:root:not([data-theme="light"]) .sheet { background: linear-gradient(180deg, #141414, #060606); box-shadow: 0 -10px 40px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.12) inset; }
:root:not([data-theme="light"]) .toast, :root:not([data-theme="light"]) .top .back, :root:not([data-theme="light"]) .hop .n { background: linear-gradient(180deg, #1c1c1c, #0d0d0d); }
:root:not([data-theme="light"]) .skeleton { background: linear-gradient(90deg, #080808, #151515, #080808); background-size: 200% 100%; }
:root:not([data-theme="light"]) .btn { background: linear-gradient(180deg, #181818, #0b0b0b); }
:root:not([data-theme="light"]) .btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
:root:not([data-theme="light"]) .btn.danger { background: rgba(255,107,125,.08); }

/* ---------- 多服务器监控 ---------- */
.srv-tile { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.srv-tile:active { transform: scale(.985); }
.st-ic { font-size: 26px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--sig), .08); border: 1px solid rgba(var(--sig), .14); flex: none; }
.st-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.st-tx b { font-size: 16px; }
.st-sub { font-size: 12px; color: var(--dim); }
.st-go { font-size: 24px; color: var(--dim); }
.sv { display: flex; flex-direction: column; gap: 7px; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; margin: 0; padding: 12px; min-width: 0; }
.sv:active { transform: scale(.98); }
.sv.off { opacity: .55; }
.sv-h { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sv-h b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.sv-ip { font-size: 10px; color: var(--dim); }
.sd { width: 8px; height: 8px; border-radius: 50%; background: #5a5d66; display: inline-block; flex: none; margin-right: 2px; }
.sd.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.mb { display: grid; grid-template-columns: 28px 1fr 32px; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.mb em { font-style: normal; text-align: right; color: inherit; }
.mb .bar { height: 5px; }
.sv-n { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 2px; }
.sv-n .up { color: #ffb454; } .sv-n .dn { color: #46d39a; }
.sv-off { font-size: 12px; color: var(--dim); padding: 14px 0 6px; }
.cmdbox { word-break: break-all; padding: 10px 12px; border-radius: 10px; background: #0c0d0f; border: 1px solid rgba(255,255,255,.08); font-size: 12px; line-height: 1.5; user-select: all; -webkit-user-select: all; }
:root[data-theme="light"] .cmdbox { background: #eef0f3; border-color: rgba(0,0,0,.1); }
.acts-row { display: flex; flex-wrap: wrap; gap: 8px; }
h3 .sd { margin-right: 6px; }

.sv-ip { font-size: 10px; color: var(--dim); margin: -3px 0 1px 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sv-h b { min-width: 0; }

/* 服务器卡片 v2：整行卡片，三条进度横排，不显示 IP */
.sv-grid { grid-template-columns: 1fr; }
.sv { gap: 12px; padding: 14px; }
.sv-h b { font-size: 15px; }
.sv-n { margin: 0; gap: 10px; font-size: 12px; flex: none; }
.sv-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mb { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.mt { display: flex; justify-content: space-between; align-items: baseline; color: var(--dim); }
.mt em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--fg, inherit); }
.mb .bar { height: 6px; }
.sv-off { padding: 2px 0 0; }
.sv { align-items: stretch; }
.sv-m { width: 100%; }
.mb { min-width: 0; }
.mb .bar { width: 100%; }
.mt { gap: 6px; }

.st-ic svg { width: 26px; height: 26px; fill: none; stroke: rgb(var(--sig)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.h3i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; flex: none; }

/* 服务器卡片：回到两列小方块 */
.sv-grid { grid-template-columns: 1fr 1fr; }
.sv { gap: 8px; padding: 12px; align-items: stretch; }
.sv-h b { font-size: 14px; }
.sv-n { display: flex; justify-content: space-between; font-size: 11px; gap: 6px; margin-top: 2px; }
.sv-m { display: block; }
.mr { display: grid; grid-template-columns: 28px 1fr 32px; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.mr em { font-style: normal; text-align: right; color: inherit; }
.mr .bar { height: 5px; width: 100%; }
.sv-off { padding: 14px 0 6px; }

.tool .ti svg { width: 26px; height: 26px; fill: none; stroke: rgb(var(--sig)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 记事本：下拉式（默认收起，只显示第一行） */
.note.nitem { display: block; padding: 0; cursor: default; overflow: hidden; }
.nh { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.nh .nt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh .nc { flex: none; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--dim); }
.nh .arr { flex: none; font-size: 18px; line-height: 1; color: var(--dim); transition: transform .25s; }
.nitem.open .nh .arr { transform: rotate(180deg); }
.nb { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.nitem.open .nb { grid-template-rows: 1fr; }
.nbi { overflow: hidden; min-height: 0; }
.nbc { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.nbc pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 ui-monospace, Menlo, monospace; user-select: text; -webkit-user-select: text; }
.nbc .nm { display: block; color: var(--faint); margin-top: 6px; }

/* 服务器卡片上的「被抢 x%」小标签 */
.pill.st-tag { flex: none; padding: 1px 7px; font-size: 10px; line-height: 1.5; }

/* ============ 浅色主题修正：之前一些控件沿用了深色的渐变，浅色下显得发黑 ============ */
:root[data-theme="light"] .pill { background: linear-gradient(180deg, #ffffff, #eceef1); color: #4a505a; border-color: rgba(0,0,0,.10); box-shadow: 0 1px 0 #fff inset, 0 1px 3px rgba(0,0,0,.08); }
:root[data-theme="light"] .pill.ok { background: rgba(18,168,112,.10); color: #0d8a5c; border-color: rgba(18,168,112,.30); }
:root[data-theme="light"] .pill.warn { background: rgba(201,138,0,.10); color: #a56f00; border-color: rgba(201,138,0,.32); }
:root[data-theme="light"] .pill.bad { background: rgba(224,52,79,.09); color: #c42a43; border-color: rgba(224,52,79,.30); }
:root[data-theme="light"] .top .back { background: linear-gradient(180deg, #ffffff, #e6e8ec); color: #16181c; border-color: rgba(0,0,0,.10); box-shadow: 0 1px 0 #fff inset, 0 3px 8px rgba(0,0,0,.14); }
:root[data-theme="light"] .chip { background: linear-gradient(180deg, #ffffff, #eceef1); color: #4a505a; border-color: rgba(0,0,0,.10); box-shadow: 0 1px 0 #fff inset, 0 2px 5px rgba(0,0,0,.10); }
:root[data-theme="light"] .chip.on { background: linear-gradient(180deg, #3a3f48, #1d2026); color: #fff; border-color: transparent; }
:root[data-theme="light"] .bar { background: #dfe2e8; box-shadow: 0 1px 3px rgba(0,0,0,.18) inset; }
:root[data-theme="light"] .bar > i { background: linear-gradient(180deg, #5b6270, #2b2f36); box-shadow: none; }
:root[data-theme="light"] .bar.ok > i { background: linear-gradient(180deg, #34d399, #12a870); }
:root[data-theme="light"] .bar.warn > i { background: linear-gradient(180deg, #f6c453, #d99a12); }
:root[data-theme="light"] .bar.bad > i { background: linear-gradient(180deg, #ff8a9a, #e0344f); }
:root[data-theme="light"] .gauge .trk { stroke: #dde0e6; filter: none; }
:root[data-theme="light"] .gauge .tk { stroke: rgba(0,0,0,.16); }
:root[data-theme="light"] .gauge svg { filter: drop-shadow(0 3px 5px rgba(0,0,0,.12)); }
:root[data-theme="light"] .gauge .l { color: var(--text); }
:root[data-theme="light"] .sheet { background: linear-gradient(180deg, #ffffff, #eceef1); box-shadow: 0 -10px 40px rgba(0,0,0,.25), 0 1px 0 #fff inset; border-color: rgba(0,0,0,.08); }
:root[data-theme="light"] .toast { background: linear-gradient(180deg, #ffffff, #eceef1); color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
:root[data-theme="light"] .toast.err { color: var(--bad); }
:root[data-theme="light"] .verdict { background: #eceef1; box-shadow: 0 2px 5px rgba(0,0,0,.10) inset; }
:root[data-theme="light"] .hop .n { background: linear-gradient(180deg, #ffffff, #e6e8ec); color: var(--text); box-shadow: 0 1px 0 #fff inset, 0 2px 5px rgba(0,0,0,.14); }
:root[data-theme="light"] .skeleton { background: linear-gradient(90deg, #e3e5ea, #f4f5f7, #e3e5ea); background-size: 200% 100%; }
:root[data-theme="light"] .seg { background: #e3e5ea; box-shadow: 0 2px 5px rgba(0,0,0,.12) inset; }
:root[data-theme="light"] .seg button.on { background: linear-gradient(180deg, #ffffff, #eceef1); color: var(--text); box-shadow: 0 1px 0 #fff inset, 0 2px 6px rgba(0,0,0,.14); }
:root[data-theme="light"] .btn.primary { background: linear-gradient(180deg, #3a3f48, #1d2026); color: #fff; text-shadow: none; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 14px rgba(0,0,0,.28); }
:root[data-theme="light"] .btn.danger { background: rgba(224,52,79,.08); color: #c42a43; }
:root[data-theme="light"] .nh .nc, :root[data-theme="light"] .rec-h .cnt { background: rgba(0,0,0,.07); }
:root[data-theme="light"] .tabbar nav { box-shadow: 0 1px 0 #fff inset, 0 8px 22px rgba(0,0,0,.18); }
:root[data-theme="light"] .card { box-shadow: 0 1px 0 #fff inset, 0 6px 16px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.08); }
:root[data-theme="light"] .trend, :root[data-theme="light"] .rec { box-shadow: 0 1px 4px rgba(0,0,0,.10) inset; border: 1px solid rgba(0,0,0,.06); }

/* ---- 首页运行总览 ---- */
.ov { padding: 12px; }
.ov-h { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.ov-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(74,222,128,.14); box-shadow: inset 0 0 0 1px rgba(74,222,128,.35); }
.ov.warn .ov-ic { background: rgba(251,191,36,.14); box-shadow: inset 0 0 0 1px rgba(251,191,36,.4); }
.ov.bad .ov-ic { background: rgba(248,113,113,.14); box-shadow: inset 0 0 0 1px rgba(248,113,113,.4); }
.ov-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ov-tx b { font-size: 15px; }
.ov-sub { font-size: 12px; color: var(--dim); }
.ov-list { display: flex; flex-direction: column; margin-top: 2px; }
.ov-list:empty { display: none; }
.ov-row { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; font-size: 13px; padding: 9px 2px; text-align: left; }
button.ov-row { cursor: pointer; } button.ov-row:active { opacity: .7; }
.ov-row .sp { flex: 1; }
.ov-d { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.ov-row.bad .ov-d { background: #f87171; box-shadow: 0 0 8px #f87171; }
.ov-t { color: #fbbf24; font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-row.bad .ov-t { color: #f87171; }
.ov-more { font-size: 12px; color: var(--dim); text-align: center; padding: 6px 0 0; border-top: 1px solid var(--line); }
:root[data-theme="light"] .ov-t { color: #d97706; }
:root[data-theme="light"] .ov-row.bad .ov-t { color: #dc2626; }

.fx-pair { justify-content: flex-start; }
.fx-pair em { margin-left: 0; font-size: 12px; letter-spacing: .08em; }

/* 汇率卡：标签与「实时」同一行，数字在下一行 */
.card.fx { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; }
.fx-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.fx-main { position: relative; z-index: 1; margin-top: 0; }
/* 快捷工具标题：去掉前面的竖条 */
.card h3.nobar::before { display: none; }
.h3i.nobar svg { color: var(--accent); }

/* 服务器监控状态标：渐变框 + 立体圆点 */
.ov { --c: #4ade80; --r: 74, 222, 128; }
.ov.warn { --c: #fbbf24; --r: 251, 191, 36; }
.ov.bad { --c: #f87171; --r: 248, 113, 113; }
.ov.load { --c: #8a8f99; --r: 138, 143, 153; }
:root[data-theme="light"] .ov { --c: #16a34a; --r: 22, 163, 74; }
:root[data-theme="light"] .ov.warn { --c: #d97706; --r: 217, 119, 6; }
:root[data-theme="light"] .ov.bad { --c: #dc2626; --r: 220, 38, 38; }
:root[data-theme="light"] .ov.load { --c: #8a8f99; --r: 138, 143, 153; }
.ov .ov-ic, .ov.warn .ov-ic, .ov.bad .ov-ic { border-radius: 12px; background: linear-gradient(145deg, rgba(var(--r), .22), rgba(var(--r), .05)); box-shadow: inset 0 0 0 1px rgba(var(--r), .45), 0 4px 14px rgba(var(--r), .18); }
.ov-ic i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), var(--c) 55%); box-shadow: 0 0 12px var(--c); }

/* 角色标签：灰白线条图标 */
.pill.role svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-right: 5px; flex: none; }
.pill.role.own { color: #f2f3f5; }
.pill.role.usr { color: #9ba1ad; }

/* 顶部卡片：英文标语 */
.hero-cap { position: relative; z-index: 1; font-size: 11px; letter-spacing: .28em; color: var(--faint); margin-bottom: 6px; }
.hero-t { position: relative; z-index: 1; font-size: 32px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; margin: 0 0 14px; background: linear-gradient(180deg, #ffffff, #9aa0ab); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 全站统一的状态圆点 */
.qrow .ic { display: inline-flex; align-items: center; justify-content: center; height: 1.4em; }
.sdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; --c: #4ade80; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), var(--c) 58%); box-shadow: 0 0 9px var(--c); }
.sdot.warn { --c: #fbbf24; }
.sdot.bad { --c: #f87171; }

/* 汇率数字：缩小、变细、去掉渐变，和顶部标语区分开 */
.fx-num { font-size: 20px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: #c8ccd3 !important; margin-left: 5px; filter: none !important; text-shadow: none !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.fx-main { align-items: baseline; gap: 8px; }
.fx-chg { font-size: 12px; font-weight: 500; margin-left: 0; }
.card.fx { gap: 8px; padding: 12px 16px 14px; }

/* 运营商选择：柔和圆点 */
.seg button.seg-b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cdots { display: inline-flex; align-items: center; gap: 3px; }
.cdots .sdot { width: 10px; height: 10px; box-shadow: 0 0 7px var(--c); opacity: .9; }
.cdots:has(.sdot + .sdot) .sdot { width: 7px; height: 7px; box-shadow: 0 0 5px var(--c); }

/* 首页读秒时钟 */
.clock { margin-top: 20px; text-align: center; }
.clock-r { display: flex; justify-content: center; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.clock .cu { min-width: 40px; padding: 8px 0 6px; line-height: 1.2; font-size: 21px; font-weight: 600; color: #d5d8de; border-radius: 10px; background: linear-gradient(180deg, #1b1c1f, #101113); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 4px 10px rgba(0,0,0,.55); }
.clock .cu.s { color: #4ade80; }
.clock .cc { color: #6c717c; font-size: 17px; font-weight: 700; }
.clock-d { line-height: 1.2; margin-top: 8px; font-size: 11px; color: var(--faint); letter-spacing: .2em; font-variant-numeric: tabular-nums; }

/* IP 信息 / IP 质量：黑白线条小图标 */
.ipcard .sub svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 8px; opacity: .85; }
.qrow .ic svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 文字里的柔和圆点 / 黑白警示图标 */
.sdot.inl { width: 12px; height: 12px; margin: 0 7px 0 1px; vertical-align: -1px; box-shadow: 0 0 6px var(--c); }
.sdot.blue { --c: #60a5fa; }
.wi { display: inline-flex; vertical-align: -3px; margin-right: 7px; color: var(--dim); }
.wi svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.big.wi { display: block; margin: 0 auto 6px; } .big.wi svg { width: 34px; height: 34px; }

/* 路由追踪逐跳延迟条：柔和色（只作用于 .hops，不影响服务器监控） */
:root:not([data-theme="light"]) .hops .bar.ok > i { background: linear-gradient(90deg, #4c9a78, #6dbd96); box-shadow: none; }
:root:not([data-theme="light"]) .hops .bar.warn > i { background: linear-gradient(90deg, #b8964a, #d3b468); box-shadow: none; }
:root:not([data-theme="light"]) .hops .bar.bad > i { background: linear-gradient(90deg, #b3636d, #cf8790); box-shadow: none; }
.hops .bar > i { opacity: .92; }

/* 全球 Ping 测试中：数值位骨架条缓慢呼吸（替换原来的斜向光块） */
.node.run::after { display: none !important; }
.node.run { border-color: rgba(255, 255, 255, .18); }
.node.run .ms { display: inline-block; width: 34px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); font-size: 0; color: transparent; animation: skel 1.8s ease-in-out infinite; }
@keyframes skel { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* 服务器列表/详情的资源条：柔和玻璃质感 */
:root:not([data-theme="light"]) .mr .bar, :root:not([data-theme="light"]) .mb .bar { background: rgba(255,255,255,.07); box-shadow: 0 1px 2px rgba(0,0,0,.55) inset, 0 0 0 1px rgba(255,255,255,.06); }
:root:not([data-theme="light"]) .mr .bar > i, :root:not([data-theme="light"]) .mb .bar > i { opacity: 1; box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 0 0 1px rgba(255,255,255,.10) inset; }
:root:not([data-theme="light"]) .mr .bar.ok > i, :root:not([data-theme="light"]) .mb .bar.ok > i { background: linear-gradient(180deg, rgba(150,220,190,.62), rgba(80,170,135,.50)); }
:root:not([data-theme="light"]) .mr .bar.warn > i, :root:not([data-theme="light"]) .mb .bar.warn > i { background: linear-gradient(180deg, rgba(235,205,130,.62), rgba(195,155,70,.50)); }
:root:not([data-theme="light"]) .mr .bar.bad > i, :root:not([data-theme="light"]) .mb .bar.bad > i { background: linear-gradient(180deg, rgba(235,150,160,.62), rgba(190,95,108,.50)); }

/* 服务器卡片：上传/下载 = 数字 + 渐隐细线（高度和原来的一行文字一样，不撑大卡片） */
.sv-n2 { display: flex; gap: 12px; margin-top: 2px; }
.sv-n2 .nt { flex: 1; min-width: 0; --c: 216,178,122; }
.sv-n2 .nt.dn { --c: 127,194,163; }
.sv-n2 .nv { font-size: 11px; line-height: 13px; color: #d5d8de; margin-bottom: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sv-n2 .nt.up .nv::first-letter { color: rgb(var(--c)); } .sv-n2 .nt.dn .nv::first-letter { color: rgb(var(--c)); }
.sv-n2 .ntr { height: 2px; border-radius: 2px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.sv-n2 .ntr i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(var(--c), .1), rgba(var(--c), .85)); transition: width .4s ease; }

/* ============ 黑白切换：时钟后面的按钮 + 浅色细节 ============ */
.clock-r { gap: 6px; }
.clock .tg { margin-left: 8px; width: 40px; height: auto; align-self: stretch; border-radius: 10px; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; color: #c8ccd3; background: linear-gradient(180deg, #1b1c1f, #101113); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 4px 10px rgba(0,0,0,.55); -webkit-appearance: none; appearance: none; }
.clock .tg:active { transform: scale(.94); }
.clock .tg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:root[data-theme="light"] .clock .cu { color: #2b2f36; background: linear-gradient(180deg, #ffffff, #eceef1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07), 0 1px 0 #fff inset, 0 4px 10px rgba(0,0,0,.12); }
:root[data-theme="light"] .clock .cu.s { color: #12935f; }
:root[data-theme="light"] .clock .cc { color: #9aa0ab; }
:root[data-theme="light"] .clock .tg { color: #4a505a; background: linear-gradient(180deg, #ffffff, #eceef1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07), 0 1px 0 #fff inset, 0 4px 10px rgba(0,0,0,.12); }

/* 首页大标题 / 角色标签 */
:root[data-theme="light"] .hero-t { background: linear-gradient(180deg, #1d2026, #5b6270); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .pill.role.own { color: #2b2f36; }
:root[data-theme="light"] .pill.role.usr { color: #6b7280; }
:root[data-theme="light"] .hero .hi, :root[data-theme="light"] .hero .meta { color: var(--dim); }
:root[data-theme="light"] .fx-num { color: #2b2f36 !important; }

/* 仪表盘数字、上传下载文字：浅色下加深，避免荧光色发白 */
:root[data-theme="light"] .gauge .num b { filter: brightness(.6) saturate(1.3); text-shadow: none; }
:root[data-theme="light"] .gauge .val { filter: none; }
:root[data-theme="light"] .speed b.up { color: #c9791a; }
:root[data-theme="light"] .speed b.dn { color: #0f9b6a; }
:root[data-theme="light"] .speed .ar.up, :root[data-theme="light"] .speed .ar.dn { box-shadow: 0 2px 5px rgba(0,0,0,.16); }
:root[data-theme="light"] .sv-n2 .nt { --c: 190,128,46; } :root[data-theme="light"] .sv-n2 .nt.dn { --c: 36,150,108; }
:root[data-theme="light"] .sv-n2 .nv { color: #4a505a; }
:root[data-theme="light"] .sv-n2 .ntr { background: rgba(0,0,0,.08); }
:root[data-theme="light"] .sv-n2 .ntr i { background: linear-gradient(90deg, rgba(var(--c), .15), rgba(var(--c), .9)); }

/* 柔和圆点 / 状态条 / 跳数条：浅色版 */
:root[data-theme="light"] .sdot { box-shadow: 0 1px 3px rgba(0,0,0,.22); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), var(--c) 62%); }
:root[data-theme="light"] .sdot.inl, :root[data-theme="light"] .cdots .sdot { box-shadow: 0 1px 2px rgba(0,0,0,.2); }
:root[data-theme="light"] .mr .bar, :root[data-theme="light"] .mb .bar { background: rgba(0,0,0,.07); box-shadow: 0 1px 2px rgba(0,0,0,.12) inset; }
:root[data-theme="light"] .mr .bar > i, :root[data-theme="light"] .mb .bar > i { box-shadow: 0 1px 0 rgba(255,255,255,.55) inset; }
:root[data-theme="light"] .mr .bar.ok > i, :root[data-theme="light"] .mb .bar.ok > i { background: linear-gradient(180deg, rgba(120,208,172,.85), rgba(66,160,120,.78)); }
:root[data-theme="light"] .mr .bar.warn > i, :root[data-theme="light"] .mb .bar.warn > i { background: linear-gradient(180deg, rgba(236,200,110,.9), rgba(204,158,56,.82)); }
:root[data-theme="light"] .mr .bar.bad > i, :root[data-theme="light"] .mb .bar.bad > i { background: linear-gradient(180deg, rgba(238,140,152,.88), rgba(204,92,108,.8)); }
:root[data-theme="light"] .hops .bar.ok > i { background: linear-gradient(90deg, #6cc4a0, #4aa683); box-shadow: none; }
:root[data-theme="light"] .hops .bar.warn > i { background: linear-gradient(90deg, #e6c36a, #cfa13c); box-shadow: none; }
:root[data-theme="light"] .hops .bar.bad > i { background: linear-gradient(90deg, #e49aa5, #cc6877); box-shadow: none; }
:root[data-theme="light"] .node.run .ms { background: rgba(0,0,0,.14); }
:root[data-theme="light"] .wi { color: #6b7280; }
