/* ============================================================
   不可视界线 · 主样式（骨架 / 毛玻璃 / 控件 / 响应式）
   ============================================================ */

/* ---------- 1. 应用骨架 ---------- */
#app { min-height: 100vh; }
.ih-app {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  background: var(--bg-abyss);
  isolation: isolate;
}
.ih-app.is-blank { grid-template-columns: minmax(0, 1fr); }

/* ---------- 2. 背景：星云 + 星盘 + 星尘 ---------- */
.ih-nebula {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(109, 40, 217, 0.18), transparent 60%),
    radial-gradient(90% 80% at 100% 0%, rgba(225, 29, 72, 0.12), transparent 62%),
    var(--bg-abyss);
}
.ih-nebula .blob {
  position: absolute;
  width: 62vw; height: 62vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  will-change: transform;
}
.ih-nebula .blob-a {
  left: -18vw; top: -22vw;
  background: radial-gradient(circle at 50% 50%, var(--bg-nebula-violet), transparent 68%);
  animation: nebula-drift-a 62s var(--ease-in-out) infinite alternate;
}
.ih-nebula .blob-b {
  right: -20vw; bottom: -26vw;
  background: radial-gradient(circle at 50% 50%, var(--bg-nebula-crimson), transparent 68%);
  animation: nebula-drift-b 78s var(--ease-in-out) infinite alternate;
}
@keyframes nebula-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, 9vw, 0) scale(1.04); }
}
@keyframes nebula-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); }
  50%  { transform: translate3d(-7vw, -5vw, 0) scale(1); }
  100% { transform: translate3d(4vw, -10vw, 0) scale(1.14); }
}
.ih-nebula .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 40%, transparent 40%, rgba(4, 3, 7, 0.72) 100%);
}
.ih-nebula .starfield { position: absolute; inset: 0; opacity: 0.55; }
.ih-nebula .compass {
  position: absolute;
  right: -14vmin; top: 50%;
  width: min(74vmin, 820px); height: min(74vmin, 820px);
  translate: 0 -50%;
  opacity: 0.16;
  animation: compass-turn 120s linear infinite;
}
@keyframes compass-turn { to { rotate: 360deg; } }

/* ---------- 3. 侧边栏 / Rail ---------- */
.ih-sidebar {
  position: sticky; top: 0;
  z-index: var(--z-nav);
  height: 100vh;
  display: flex; flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-4) var(--sp-5);
  background: linear-gradient(180deg, rgba(19, 17, 28, 0.82), rgba(11, 10, 17, 0.72));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-right: 1px solid var(--border-glass);
  overflow: hidden auto;
}
.ih-sidebar::after {
  content: '';
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.5), rgba(139, 92, 246, 0.4), transparent);
}
.ih-brand { display: grid; gap: 6px; padding: 0 var(--sp-2); }
.ih-brand-mark { display: flex; align-items: center; gap: 10px; }
.ih-brand-mark svg { width: 26px; height: 26px; color: var(--accent-rose); filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.45)); }
.ih-brand-title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--text-primary);
  white-space: nowrap;
}
.ih-brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ih-nav { display: grid; gap: 4px; }
.ih-nav-item {
  position: relative;
  display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.ih-nav-item svg { width: 20px; height: 20px; justify-self: center; }
.ih-nav-item .nav-label { display: grid; gap: 1px; min-width: 0; }
.ih-nav-item .nav-cn { font-size: 13.5px; letter-spacing: 0.08em; }
.ih-nav-item .nav-en { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.13em; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ih-nav-item:hover { color: var(--text-primary); background: var(--glass-hover); transform: translateX(2px); }
.ih-nav-item.is-active {
  color: var(--text-primary);
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.16), rgba(139, 92, 246, 0.10) 62%, transparent);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.20);
}
.ih-nav-item.is-active::before {
  content: '';
  position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-rose), var(--accent-violet));
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.75);
}
.ih-sidebar-foot { margin-top: auto; display: grid; gap: 10px; padding: 0 var(--sp-2); }
.ih-sign { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.18em; color: var(--text-muted); }
.ih-sign b { color: var(--accent-rose); font-weight: 600; }

/* ---------- 4. 主区与顶栏 ---------- */
.ih-main { position: relative; z-index: var(--z-content); min-width: 0; display: flex; flex-direction: column; }
.ih-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 0 clamp(16px, 2.4vw, 34px);
  background: linear-gradient(180deg, rgba(9, 8, 13, 0.86), rgba(9, 8, 13, 0.42) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ih-header .h-title { display: grid; gap: 0; min-width: 0; }
.ih-header .h-cn { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.16em; }
.ih-header .h-en { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--text-muted); text-transform: uppercase; }
.ih-header .h-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ih-clock { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-secondary); }
.ih-shell { flex: 1; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--sp-5) clamp(16px, 2.4vw, 34px) var(--sp-8); }
.ih-shell.is-wide { max-width: none; }

/* 状态药丸 */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-glass);
  background: var(--glass-subtle);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-up); box-shadow: 0 0 8px currentColor; }
.status-pill.is-warn .dot { background: var(--status-degraded); }
.status-pill.is-down .dot { background: var(--status-down); }
.status-pill.is-idle .dot { background: var(--status-skipped); }

/* ---------- 5. 毛玻璃卡片 ---------- */
.glass, .panel {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--glass-panel), var(--glass-panel)) padding-box,
    linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(139, 92, 246, 0.08) 46%, rgba(255, 255, 255, 0.03)) border-box;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-panel);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.panel { padding: var(--sp-5); display: grid; gap: var(--sp-4); align-content: start; }
.panel.is-tight { padding: var(--sp-4); gap: var(--sp-3); }
.panel.is-flush { padding: 0; gap: 0; overflow: hidden; }
.panel:hover { box-shadow: var(--shadow-panel), 0 0 0 1px rgba(255, 255, 255, 0.05); }
.panel.is-hoverable:hover { transform: translateY(-2px); }
.panel-head { display: flex; align-items: flex-start; gap: var(--sp-3); }
.panel-head .ph-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.panel-title { font-family: var(--font-display); font-size: 14.5px; letter-spacing: 0.12em; color: var(--text-primary); }
.panel-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.panel-head .ph-extra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.panel-divider { height: 1px; background: linear-gradient(90deg, var(--border-glass), transparent); }

/* 十字星芒装饰 */
.star-mark { position: absolute; color: var(--accent-rose); font-size: 11px; opacity: 0.6; }
.panel::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(140% 90% at 8% -20%, rgba(255, 255, 255, 0.07), transparent 42%);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: var(--glass-subtle);
  --btn-fg: var(--text-primary);
  --btn-bd: var(--border-glass);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px; letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--border-glass-strong); background: rgba(255, 255, 255, 0.06); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  --btn-fg: #fff;
  --btn-bd: transparent;
  background: linear-gradient(135deg, #F43F5E, #E11D48 44%, #8B5CF6 130%);
  box-shadow: 0 10px 30px -16px rgba(225, 29, 72, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #FB7185, #E11D48 44%, #8B5CF6 130%); box-shadow: var(--shadow-crimson); }
.btn-violet {
  --btn-fg: #fff; --btn-bd: transparent;
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  box-shadow: 0 10px 30px -16px rgba(109, 40, 217, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-outline { --btn-bg: transparent; --btn-bd: var(--border-crimson-glow); color: var(--accent-rose); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; color: var(--text-secondary); }
.btn-ghost:hover:not(:disabled) { color: var(--text-primary); }
.btn-danger { --btn-bg: rgba(244, 63, 94, 0.12); --btn-bd: rgba(244, 63, 94, 0.4); color: #FDA4AF; }
.btn-danger:hover:not(:disabled) { background: rgba(244, 63, 94, 0.2); color: #fff; }
.btn-sm { min-height: 30px; padding: 0 12px; font-size: 12px; gap: 6px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-icon { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: var(--r-sm); }
.btn-icon.btn-sm { width: 30px; height: 30px; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 1.6px solid rgba(255, 255, 255, 0.28); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-copied { color: var(--status-up) !important; border-color: rgba(16, 185, 129, 0.5) !important; }

/* ---------- 7. 表单控件 ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: 12px; letter-spacing: 0.06em; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.field-label .req { color: var(--accent-rose); }
.field-hint { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-glass);
  background: var(--glass-inset);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.textarea { min-height: 96px; padding: 10px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-glass-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.13), inset 0 0 24px rgba(225, 29, 72, 0.06);
  background: rgba(12, 10, 18, 0.72);
}
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select option { background: #171322; color: var(--text-primary); }
.input.mono, .textarea.mono { font-family: var(--font-mono); font-size: 12.5px; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: relative; width: 42px; height: 24px; flex: none;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #CBD5E1;
  transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base) var(--ease-out);
}
.switch input:checked + .track { background: linear-gradient(135deg, rgba(225, 29, 72, 0.85), rgba(139, 92, 246, 0.8)); border-color: transparent; box-shadow: 0 0 18px -6px rgba(225, 29, 72, 0.8); }
.switch input:checked + .track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid rgba(244, 63, 94, 0.7); outline-offset: 2px; }
.switch .sw-label { font-size: 12.5px; color: var(--text-secondary); }

/* 滑块 */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, rgba(244, 63, 94, 0.7), rgba(139, 92, 246, 0.55)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-crimson); box-shadow: 0 0 14px rgba(244, 63, 94, 0.65); }
.slider::-moz-range-track { height: 4px; border-radius: 99px; background: rgba(139, 92, 246, 0.5); }
.slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-crimson); }

/* 复选框（节点胶囊/列表）*/
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--text-secondary); }
.checkbox input { appearance: none; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--border-glass-strong); background: var(--glass-subtle); display: grid; place-content: center; cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.checkbox input::after { content: ''; width: 8px; height: 8px; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: #fff; transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring); }
.checkbox input:checked { background: linear-gradient(135deg, #E11D48, #8B5CF6); border-color: transparent; }
.checkbox input:checked::after { transform: scale(1); }

/* ---------- 8. 徽章 / 标签 / 胶囊 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-glass);
  background: var(--glass-subtle);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
.badge.is-v4 { color: #7DD3FC; border-color: rgba(56, 189, 248, 0.34); background: rgba(56, 189, 248, 0.1); }
.badge.is-v6 { color: #C4B5FD; border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.12); }
.badge.is-icmp { color: #6EE7B7; border-color: rgba(16, 185, 129, 0.34); background: rgba(16, 185, 129, 0.1); }
.badge.is-accent { color: var(--accent-rose); border-color: var(--border-crimson-glow); background: rgba(244, 63, 94, 0.12); }
.badge.is-violet { color: #C4B5FD; border-color: var(--border-violet-glow); background: rgba(139, 92, 246, 0.14); }
.badge.is-up { color: #6EE7B7; border-color: rgba(16, 185, 129, 0.34); background: rgba(16, 185, 129, 0.1); }
.badge.is-warn { color: #FCD34D; border-color: rgba(245, 158, 11, 0.36); background: rgba(245, 158, 11, 0.12); }
.badge.is-down { color: #FDA4AF; border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.13); }
.badge.is-skip { color: var(--text-secondary); border-color: var(--border-glass); background: rgba(100, 116, 139, 0.16); }

/* 斜纹跳过徽章 */
.badge.is-striped {
  color: #CBD5E1;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  background: repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.13) 0 6px, transparent 6px 12px);
  text-transform: none; letter-spacing: 0.04em; font-family: var(--font-sans);
}

/* 节点胶囊（多选）*/
.node-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.node-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-glass);
  background: var(--glass-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.node-pill .flag { font-size: 14px; line-height: 1; filter: saturate(1.1); }
.node-pill .cap { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em; padding: 0 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.node-pill .cap.on { color: #7DD3FC; background: rgba(56, 189, 248, 0.14); }
.node-pill .cap.v6.on { color: #C4B5FD; background: rgba(139, 92, 246, 0.16); }
.node-pill:hover { border-color: var(--border-glass-strong); color: var(--text-primary); transform: translateY(-1px); }
.node-pill.is-on { border-color: rgba(244, 63, 94, 0.5); background: rgba(244, 63, 94, 0.10); color: var(--text-primary); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08); }
.node-pill.is-offline { opacity: 0.42; filter: grayscale(0.6); }

/* ---------- 9. 数据排版 ---------- */
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.055); font-size: 12.5px; flex-wrap: wrap; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--text-muted); flex: none; }
/* dd 必须允许收缩并强制断词：WHOIS 之类会出现超长连续串，
   否则 flex 子项按内容撑开会顶出卡片、盖住相邻元素。 */
.kv dd { margin: 0; color: var(--text-primary); text-align: right; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
/* 探针卡片兜底：任何长串都不得撑破卡片（卡片本体是 .panel.tight） */
.probe-cards > .panel { min-width: 0; overflow-wrap: anywhere; }
.probe-cards > .panel * { min-width: 0; }
.probe-cards .table-scroll { max-width: 100%; }
/* 超长值（注册商/状态/NS 串）折叠为 3 行，完整内容走 title 提示 */
.kv dd.is-clamp {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.kv dd.num { font-size: 12.5px; }
.kv-list { margin: 0; }

.payload-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.payload-table th {
  text-align: left; padding: 8px 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}
.payload-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); color: var(--text-secondary); vertical-align: middle; }
.payload-table tr:last-child td { border-bottom: 0; }
.payload-table tr:hover td { background: var(--glass-subtle); color: var(--text-primary); }
.payload-table .strong { color: var(--text-primary); }
.payload-table .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table-scroll { overflow: auto; max-width: 100%; border-radius: var(--r-sm); }
.table-scroll.has-shadow { box-shadow: inset -14px 0 18px -14px rgba(0, 0, 0, 0.9); }

/* 空态 */
.empty { display: grid; place-items: center; gap: var(--sp-3); padding: var(--sp-7) var(--sp-4); text-align: center; color: var(--text-muted); }
.empty svg { width: 42px; height: 42px; opacity: 0.5; }
.empty p { font-size: 12.5px; letter-spacing: 0.06em; }

/* 骨架屏 */
.skeleton { border-radius: var(--r-sm); background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------- 10. 分段控件（挡位 / 时间跨度）---------- */
.segmented { position: relative; display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--glass-inset); border: 1px solid var(--border-glass); }
.segmented .seg { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: var(--r-pill); font-size: 12.5px; color: var(--text-secondary); transition: color var(--dur-base) var(--ease-out); white-space: nowrap; }
.segmented .seg:hover { color: var(--text-primary); }
.segmented .seg.is-active { color: var(--text-primary); }
.segmented .seg-glider {
  position: absolute; top: 4px; bottom: 4px; left: 0; z-index: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.30), rgba(139, 92, 246, 0.26));
  border: 1px solid rgba(244, 63, 94, 0.34);
  box-shadow: 0 6px 18px -10px rgba(225, 29, 72, 0.9);
  transition: transform var(--dur-slow) var(--ease-spring), width var(--dur-slow) var(--ease-spring);
}

/* ---------- 11. Toast ---------- */
.toast-host {
  position: fixed; z-index: var(--z-toast);
  right: 18px; bottom: 18px;
  display: grid; gap: 10px; justify-items: end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: min(88vw, 380px);
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: var(--glass-elevated);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-float);
  color: var(--text-primary);
  font-size: 12.5px; line-height: 1.55;
  pointer-events: auto;
}
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.toast.is-success { border-color: rgba(16, 185, 129, 0.42); }
.toast.is-success svg { color: var(--status-up); }
.toast.is-error { border-color: rgba(244, 63, 94, 0.46); }
.toast.is-error svg { color: var(--status-down); }
.toast.is-info svg { color: var(--accent-violet); }
.toast-enter-active, .toast-leave-active { transition: all var(--dur-base) var(--ease-spring); }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(10px) scale(0.97); }

/* ---------- 12. 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center;
  padding: clamp(12px, 4vw, 40px);
  background: rgba(4, 3, 7, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal {
  position: relative;
  width: min(100%, 640px);
  max-height: min(88vh, 900px);
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass-elevated), var(--glass-elevated)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(139, 92, 246, 0.14) 50%, rgba(244, 63, 94, 0.16)) border-box;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.modal.is-wide { width: min(100%, 860px); }
/* 表单型弹窗：内容区允许独立滚动，不撑破视口 */
.modal .modal-body { min-height: 0; overscroll-behavior: contain; }
/* 手机端把宽弹窗降级为底部抽屉，避免被固定侧栏/底部胶囊遮挡 */
@media (max-width: 640px) {
  .modal-mask { padding: 0; place-items: end stretch; }
  .modal, .modal.is-wide {
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .modal-head, .modal-body, .modal-foot { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .modal-foot {
    padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
  }
  .modal-foot .ml { flex: 1 1 100%; order: 2; }
  .modal-enter-from .modal { transform: translateY(24px); }
  /* 弹窗内表单在手机上强制单列，避免双列挤压成"看不见的窄条" */
  .modal .grid-2, .modal .grid-3, .modal .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .modal .row { flex-wrap: wrap; }
  .modal .mini-field .input, .modal .field .input { width: 100% !important; }
  .modal .field-hint { font-size: 11px; }
}
.modal-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border-glass); }
.modal-head .mt { display: grid; gap: 1px; }
.modal-head h3 { font-size: 15px; letter-spacing: 0.12em; }
.modal-head .ms { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; }
.modal-head .btn-icon { margin-left: auto; }
.modal-body { padding: var(--sp-5); overflow: auto; display: grid; gap: var(--sp-4); }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border-glass); background: rgba(9, 8, 13, 0.42); }
.modal-foot .ml { margin-right: auto; font-size: 11.5px; color: var(--text-muted); }
.modal-enter-active, .modal-leave-active { transition: opacity var(--dur-base) var(--ease-out); }
.modal-enter-from, .modal-leave-to { opacity: 0; }
.modal-enter-active .modal { transition: transform var(--dur-base) var(--ease-spring); }
.modal-enter-from .modal { transform: translateY(14px) scale(0.97); }

/* ---------- 13. 顶部 flourish / 提示条 ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: var(--glass-subtle);
  font-size: 12px; line-height: 1.6; color: var(--text-secondary);
}
.notice svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent-violet); }
.notice.is-warn { border-color: rgba(245, 158, 11, 0.34); background: rgba(245, 158, 11, 0.08); }
.notice.is-warn svg { color: var(--status-degraded); }
.notice.is-down { border-color: rgba(244, 63, 94, 0.36); background: rgba(244, 63, 94, 0.08); }
.notice.is-down svg { color: var(--status-down); }
.notice code, .code-inline { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-rose); background: rgba(244, 63, 94, 0.1); padding: 1px 5px; border-radius: 4px; }

/* 代码块（安装命令）*/
.code-block {
  position: relative;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: rgba(5, 4, 9, 0.72);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7;
  color: #CBD5E1;
  white-space: pre-wrap; word-break: break-all;
  overflow: auto;
}
.code-block .hl { color: var(--accent-rose); }

/* ---------- 14. 网格助手 ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.row.is-nowrap { flex-wrap: nowrap; }
.row .grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: var(--sp-4); }
.stack-sm { display: grid; gap: 8px; }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.accent { color: var(--accent-rose); }
.violet { color: #C4B5FD; }
.up { color: var(--status-up); }
.warn { color: var(--status-degraded); }
.down { color: var(--status-down); }
.tnum { font-variant-numeric: tabular-nums; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-any { word-break: break-anywhere; overflow-wrap: anywhere; }

/* 发光小标题（双语）*/
.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.eyebrow::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-glass), transparent); }
.display-title { font-family: var(--font-display); letter-spacing: 0.14em; }

/* ---------- 15. 动效工具类 ---------- */
@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.85; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--status-up); }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse-ring 2.4s var(--ease-out) infinite; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fade-up var(--dur-slow) var(--ease-out) both; }
@keyframes grow-in { from { opacity: 0; transform: translateY(6px) scale(0.985); } to { opacity: 1; transform: none; } }
.grow-in { animation: grow-in 180ms var(--ease-out) both; }
@keyframes breathe { 0%, 100% { opacity: 0.55; box-shadow: 0 0 0 0 currentColor; } 50% { opacity: 1; box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08); } }
.list-enter-active { animation: grow-in 180ms var(--ease-out) both; }
.flash-once { animation: flash-value 620ms var(--ease-out) 1; }
@keyframes flash-value { 0% { color: #fff; text-shadow: 0 0 12px rgba(251, 113, 133, 0.9); } 100% { text-shadow: none; } }

/* Border Beam（高级挡流光）*/
.beam-host { position: relative; }
.beam-host .beam {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 0 62%, rgba(139, 92, 246, 0.85) 74%, rgba(244, 63, 94, 0.95) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam-sweep 4.4s linear infinite;
  opacity: 0.9;
}
@keyframes beam-sweep { to { --beam-angle: 360deg; } }
@property --beam-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- 16. 移动端底部胶囊 Dock ---------- */
.ih-dock { display: none; }

/* ---------- 17. 响应式断点 ---------- */

/* 平板：收窄为 72px 图标 Rail */
@media (max-width: 1024px) and (min-width: 641px) {
  .ih-app { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .ih-sidebar { padding: var(--sp-5) 10px var(--sp-4); align-items: center; gap: var(--sp-4); }
  .ih-brand { justify-items: center; padding: 0; }
  .ih-brand .ih-brand-title, .ih-brand .ih-brand-sub, .ih-nav-item .nav-label, .ih-sign span.sign-cn { display: none; }
  .ih-nav { width: 100%; }
  .ih-nav-item { grid-template-columns: 1fr; justify-items: center; padding: 12px 0; }
  .ih-nav-item .nav-en { display: none; }
  .ih-nav-item::after { content: attr(data-rail); position: absolute; left: calc(100% + 10px); top: 50%; translate: 0 -50%; padding: 5px 10px; border-radius: 8px; background: var(--glass-elevated); border: 1px solid var(--border-glass); font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast); z-index: 5; }
  .ih-nav-item:hover::after { opacity: 1; }
  .ih-sidebar-foot { align-items: center; }
  .ih-sign { writing-mode: vertical-rl; font-size: 10px; }
}

/* 手机：顶部品牌条 + 底部毛玻璃胶囊 Dock */
@media (max-width: 640px) {
  .ih-app { grid-template-columns: minmax(0, 1fr); }
  .ih-sidebar { display: none; }
  .ih-header { height: 52px; padding: 0 14px; gap: 10px; }
  .ih-header .h-cn { font-size: 13.5px; }
  .ih-shell { padding: var(--sp-4) 14px calc(var(--dock-h) + 28px); }
  .ih-dock {
    position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); translate: -50% 0;
    z-index: var(--z-nav);
    display: flex; align-items: center; gap: 2px;
    padding: 6px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-glass);
    background: rgba(17, 15, 24, 0.86);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .ih-dock a {
    display: grid; place-items: center; gap: 2px;
    width: 52px; height: 48px; min-width: 44px;
    border-radius: var(--r-pill);
    color: var(--text-muted);
    font-size: 8.5px; letter-spacing: 0.04em;
    transition: all var(--dur-base) var(--ease-out);
  }
  .ih-dock a svg { width: 19px; height: 19px; }
  .ih-dock a.is-active { color: #fff; background: linear-gradient(135deg, rgba(225, 29, 72, 0.85), rgba(139, 92, 246, 0.7)); box-shadow: 0 8px 20px -10px rgba(225, 29, 72, 0.9); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast-host { left: 12px; right: 12px; bottom: calc(var(--dock-h) + 18px); justify-items: stretch; }
  .toast { max-width: none; }
}

@media (max-width: 420px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* 超宽屏：三/四列监控墙 */
@media (min-width: 1921px) {
  .ih-shell { max-width: 1760px; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   视图层样式（登录 / 探知 / 残响 / 视界 / 节点 / 设定）
   ============================================================ */

/* ---------- 视图切换动效 ---------- */
.view-enter-active, .view-leave-active { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.view-enter-from { opacity: 0; transform: translateY(8px); }
.view-leave-to { opacity: 0; transform: translateY(-6px); }

/* ============================ 1. 登录结界 ============================ */
.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  overflow: hidden;
}
.login-sigil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}
.login-sigil svg { width: min(86vmin, 760px); height: min(86vmin, 760px); opacity: 0.75; }
.sigil-outer { transform-origin: 300px 300px; animation: sigil-ccw 120s linear infinite; }
.sigil-inner { transform-origin: 300px 300px; animation: sigil-cw 96s linear infinite; }
.sigil-cross { transform-origin: 300px 300px; animation: sigil-breathe 8s var(--ease-in-out) infinite; }
@keyframes sigil-ccw { to { transform: rotate(-360deg); } }
@keyframes sigil-cw { to { transform: rotate(360deg); } }
@keyframes sigil-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.login-page.is-unlocking .login-sigil svg { transition: transform 900ms var(--ease-spring), opacity 900ms var(--ease-out); transform: scale(1.6); opacity: 0; }
.login-page.is-unlocking .login-panel { transition: transform 700ms var(--ease-spring), opacity 500ms; transform: scale(1.06); opacity: 0; }

.login-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--r-xl);
  display: grid;
  gap: var(--sp-5);
  background:
    linear-gradient(rgba(17, 15, 26, 0.82), rgba(13, 11, 19, 0.88)) padding-box,
    linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(139, 92, 246, 0.18) 45%, rgba(244, 63, 94, 0.24)) border-box;
  box-shadow: var(--shadow-float), 0 0 80px -40px rgba(225, 29, 72, 0.9);
}
.login-panel.is-shake { animation: shake 420ms var(--ease-out) 1; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}
.login-head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.login-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.3em;
  margin-left: 0.3em;
  background: linear-gradient(120deg, #FFF1F2, #FB7185 42%, #C4B5FD 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(244, 63, 94, 0.35));
}
.login-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--text-muted); text-transform: uppercase; }
.login-rule { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; }
.login-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.45), transparent); }
.login-rule span { color: var(--accent-rose); font-size: 10px; }
.login-form { display: grid; gap: var(--sp-4); }
.login-input { position: relative; }
.login-input .input { padding-right: 42px; height: 46px; background: rgba(6, 5, 10, 0.6); }
.login-underline {
  position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-violet));
  transition: left 320ms var(--ease-out), right 320ms var(--ease-out);
}
.login-input .input:focus ~ .login-underline { left: 0; right: 0; }
.pwd-eye { position: absolute; right: 4px; top: 50%; translate: 0 -50%; }
.login-error {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid rgba(244, 63, 94, 0.42);
  background: rgba(244, 63, 94, 0.1);
  color: #FDA4AF; font-size: 12px;
}
.login-error b { margin-left: auto; font-size: 11px; color: #FECDD3; }
.login-submit { height: 46px; font-size: 14px; letter-spacing: 0.18em; margin-top: 4px; }
.login-sign { text-align: center; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.16em; color: var(--text-muted); }
.login-sign b { color: var(--accent-rose); }
.login-foot {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  font-size: 9px; letter-spacing: 0.28em; color: rgba(100, 116, 139, 0.65);
}

/* ============================ 2. 境界探知 ============================ */
.probe-view { display: grid; gap: var(--sp-5); }
.hero { position: relative; padding: clamp(20px, 2.6vw, 32px); display: grid; gap: var(--sp-4); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -40% -10% auto -10%; height: 320px;
  background: radial-gradient(60% 100% at 30% 0%, rgba(225, 29, 72, 0.22), transparent 70%),
              radial-gradient(50% 100% at 78% 0%, rgba(109, 40, 217, 0.22), transparent 72%);
  pointer-events: none;
}
.hero-head { display: flex; align-items: flex-start; gap: var(--sp-4); position: relative; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.18em; margin: 2px 0 4px;
  background: linear-gradient(110deg, #F8FAFC, #FB7185 62%, #C4B5FD);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { font-size: 12.5px; color: var(--text-secondary); max-width: 52ch; }
.hero-stat {
  margin-left: auto; flex: none; font-size: 11px; color: var(--text-muted);
  padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-glass);
  background: var(--glass-subtle); white-space: nowrap;
}
.hero-stat .up { color: var(--status-up); font-weight: 600; }
.hero-input {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-glass);
  background: rgba(6, 5, 10, 0.62);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.hero-input:focus-within { border-color: rgba(244, 63, 94, 0.55); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12), 0 0 40px -18px rgba(225, 29, 72, 0.9); }
.hero-input .hi-icon { color: var(--text-muted); flex: none; }
.hero-field {
  flex: 1; min-width: 0; height: 44px; border: 0; background: transparent;
  font-family: var(--font-mono); font-size: 14.5px; letter-spacing: 0.02em; color: var(--text-primary);
}
.hero-field:focus { outline: none; }
.hero-field::placeholder { color: rgba(100, 116, 139, 0.8); font-size: 12.5px; }
.kind-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 26px; padding: 0 11px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--border-glass); background: var(--glass-subtle); color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-out);
}
.kind-badge .kb-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.kind-badge.kb-IPV4 { color: #7DD3FC; border-color: rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.1); }
.kind-badge.kb-IPV6 { color: #C4B5FD; border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.12); }
.kind-badge.kb-DOMAIN { color: #FB7185; border-color: rgba(244, 63, 94, 0.45); background: rgba(244, 63, 94, 0.1); }
.kind-badge.kb-URL { color: #A5B4FC; border-color: rgba(99, 102, 241, 0.45); background: rgba(99, 102, 241, 0.12); }
.hero-go { flex: none; height: 44px; padding: 0 22px; font-size: 13px; letter-spacing: 0.08em; }
.hero-examples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.chip {
  height: 26px; padding: 0 11px; border-radius: var(--r-pill);
  border: 1px solid var(--border-glass); background: var(--glass-subtle);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover:not(:disabled) { color: var(--text-primary); border-color: var(--border-glass-strong); transform: translateY(-1px); }
.chip.is-on { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgba(225, 29, 72, 0.8), rgba(139, 92, 246, 0.7)); }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }
.hero-controls { display: grid; gap: var(--sp-4); position: relative; }

/* 三挡位弹簧切换器 */
.tier-switch {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  width: min(100%, 460px);
  padding: 4px; border-radius: var(--r-pill);
  border: 1px solid var(--border-glass);
  background: rgba(6, 5, 10, 0.55);
  overflow: hidden;
}
.tier-switch.is-locked { opacity: 0.72; }
.tier-glider {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.55), rgba(139, 92, 246, 0.5));
  border: 1px solid rgba(251, 113, 133, 0.45);
  box-shadow: 0 8px 22px -12px rgba(225, 29, 72, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 520ms var(--ease-spring);
}
.tier-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 10px; border-radius: var(--r-pill);
  color: var(--text-secondary); font-size: 12.5px;
  transition: color var(--dur-base) var(--ease-out);
}
.tier-btn:hover:not(:disabled) { color: var(--text-primary); }
.tier-btn.is-active { color: #fff; }
.tier-btn.is-active svg { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55)); }
.tier-en { font-size: 8.5px; letter-spacing: 0.1em; opacity: 0.6; }
.tier-hint { font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.04em; }
.tier-beam {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 0 55%, rgba(139, 92, 246, 0.9) 70%, rgba(244, 63, 94, 0.95) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; animation: beam-sweep 3.6s linear infinite;
}
@keyframes beam-sweep { to { --beam-angle: 360deg; } }

.node-select { display: grid; gap: 8px; }
.ns-head { display: flex; align-items: center; gap: 10px; }
.ns-head .btn { margin-left: auto; }

/* 作战室 */
.war-room { display: grid; gap: var(--sp-4); }
.war-head {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-5);
  align-items: center; padding: var(--sp-5);
}
.war-title { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.12em; margin: 3px 0 6px; }
.war-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.war-stage { display: block; font-size: 11.5px; color: var(--text-secondary); margin-bottom: 8px; }
.war-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.war-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #F43F5E, #8B5CF6);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.75);
  transition: width 620ms var(--ease-out); position: relative;
}
.war-bar i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: war-sheen 1.9s linear infinite;
}
@keyframes war-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.war-node { padding: var(--sp-4); display: grid; gap: 10px; align-content: start; }
.war-node.is-up { box-shadow: var(--shadow-panel), 0 0 0 1px rgba(16, 185, 129, 0.16); }
.war-node.is-warn { box-shadow: var(--shadow-panel), 0 0 0 1px rgba(245, 158, 11, 0.18); }
.war-node.is-down { box-shadow: var(--shadow-panel), 0 0 0 1px rgba(244, 63, 94, 0.22); }
.wn-head { display: flex; align-items: center; gap: 10px; }
.wn-head .flag { font-size: 17px; }
.wn-name { display: grid; gap: 1px; min-width: 0; }
.wn-name b { font-size: 13px; }
.wn-name span { font-size: 9.5px; letter-spacing: 0.06em; }
.breath { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex: none; }
.breath.b-up { background: var(--status-up); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); animation: breathe 2.2s var(--ease-in-out) infinite; }
.breath.b-warn { background: var(--status-degraded); animation: breathe 1.4s var(--ease-in-out) infinite; }
.breath.b-down { background: var(--status-down); animation: breathe 1s var(--ease-in-out) infinite; }
.breath.b-muted { background: var(--status-skipped); opacity: 0.5; }
.wn-progress { display: flex; align-items: center; gap: 8px; }
.wn-pbar { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.wn-pbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #F43F5E, #8B5CF6); transition: width 480ms var(--ease-out); }
.wn-pbar i.is-violet { background: linear-gradient(90deg, #8B5CF6, #22D3EE); }
.wn-progress span { font-size: 10.5px; color: var(--text-secondary); width: 34px; text-align: right; }
.wn-stage { font-size: 10.5px; color: var(--text-secondary); min-height: 18px; }
.wn-probe { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.wn-live { border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.22); padding: 4px 6px 0; }
.wn-hops, .wn-ports { display: grid; gap: 3px; }
.wn-hops li, .wn-ports li {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; color: var(--text-secondary);
  padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.025);
}
.wn-hops li span:nth-child(2), .wn-ports li span:nth-child(2) { flex: 1; min-width: 0; }
.wn-ports li .badge { height: 17px; font-size: 8.5px; padding: 0 6px; }

/* 报告总览 */
.report-head {
  display: grid; grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 1fr); gap: var(--sp-5);
  padding: var(--sp-5); align-items: center;
}
.rh-host { font-family: var(--font-mono); font-size: clamp(19px, 2vw, 26px); letter-spacing: -0.01em; margin: 2px 0 10px; word-break: break-all; }
.rh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-geo { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--text-secondary); }
.rh-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.rh-score { display: grid; justify-items: center; gap: 6px; }
.rh-ring { position: relative; display: grid; place-items: center; }
.rh-score-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0; }
.rh-score-num {
  font-family: var(--font-mono); font-size: 42px; font-weight: 600; line-height: 1;
  background: linear-gradient(140deg, #FFF1F2, #FB7185 60%, #C4B5FD);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rh-score-label { font-size: 10px; letter-spacing: 0.22em; color: var(--text-muted); margin-top: 4px; }
.rh-score-hint { font-size: 10px; letter-spacing: 0.1em; }
.rh-verdict { display: grid; gap: 8px; align-content: start; }
.verdict-list { display: grid; gap: 7px; }
.verdict-list li { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.65; color: var(--text-secondary); }
.verdict-list .vm { color: var(--accent-rose); flex: none; font-size: 9px; margin-top: 4px; }
.rh-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-4); }
.rg-map { grid-column: 1 / -1; }
.radar-wrap { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }
.radar { flex: none; max-width: 100%; }
.radar-side { flex: 1; min-width: 190px; display: grid; gap: 10px; align-content: start; }
.radar-label { font-family: var(--font-sans); font-size: 10px; fill: var(--text-secondary); letter-spacing: 0.04em; }
.radar-value { font-size: 9.5px; fill: var(--accent-rose); font-family: var(--font-mono); }
.dim-list { display: grid; gap: 6px; }
.dim-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) 28px; align-items: center; gap: 8px; }
.dim-label { font-size: 11px; color: var(--text-muted); }
.dim-bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dim-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #F43F5E, #8B5CF6); transition: width 800ms var(--ease-out); }
.dim-val { font-size: 10.5px; color: var(--text-secondary); text-align: right; }

/* 节点深潜 */
.deep { display: grid; gap: var(--sp-4); }
.deep-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.deep-tab {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 34px; padding: 0 13px; border-radius: var(--r-pill);
  border: 1px solid var(--border-glass); background: var(--glass-subtle);
  font-size: 12px; color: var(--text-secondary); max-width: 240px;
  transition: all var(--dur-base) var(--ease-out);
}
.deep-tab .flag { font-size: 13px; }
.deep-tab .badge { height: 17px; font-size: 8.5px; padding: 0 6px; }
.deep-tab:hover { color: var(--text-primary); transform: translateY(-1px); }
.deep-tab.is-active { color: var(--text-primary); border-color: rgba(244, 63, 94, 0.5); background: rgba(244, 63, 94, 0.1); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08); }
.probe-cards { align-items: start; }
.probe-cards .panel { min-height: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-sm); overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.metric { display: grid; gap: 1px; padding: 8px 10px; background: rgba(12, 10, 18, 0.55); }
.metric span { font-size: 9.5px; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }
.metric b { font-size: 12.5px; font-weight: 500; color: var(--text-primary); word-break: break-all; }
.card-verdict { font-size: 11.5px; line-height: 1.6; color: var(--text-secondary); padding: 8px 10px; border-radius: var(--r-sm); background: rgba(139, 92, 246, 0.08); border-left: 2px solid var(--accent-violet); }
.dns-rows { display: grid; gap: 5px; max-height: 210px; overflow: auto; }
.dns-row { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.dns-row .badge { flex: none; }
.dns-vals { display: flex; flex-direction: column; gap: 1px; font-size: 11px; color: var(--text-secondary); min-width: 0; }
.intel-head { display: flex; align-items: center; gap: 10px; }
.intel-head b { font-size: 13px; }
.cert-box { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-sm); border: 1px solid rgba(139, 92, 246, 0.22); background: rgba(139, 92, 246, 0.06); }
.cert-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cert-head b { flex: 1; min-width: 0; }
.cert-head svg { color: var(--accent-violet); flex: none; }
.redirects { display: grid; gap: 4px; }
.redirect-row { display: flex; gap: 7px; align-items: center; font-size: 10.5px; color: var(--text-secondary); }
.redirect-row .badge { height: 18px; font-size: 9px; }
.probe-empty { display: grid; justify-items: center; gap: var(--sp-4); padding: var(--sp-8) var(--sp-4); text-align: center; }
.probe-empty h2 { font-size: 17px; color: var(--text-secondary); letter-spacing: 0.12em; }
.empty-features { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.empty-features .badge { gap: 5px; }

/* 环形进度 */
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1px; }
.ring-value { font-family: var(--font-mono); font-size: 24px; font-weight: 600; line-height: 1; color: var(--text-primary); }
.ring-value i { font-style: normal; font-size: 12px; opacity: 0.55; margin-left: 1px; }
.ring-label { font-size: 9px; letter-spacing: 0.14em; color: var(--text-muted); margin-top: 4px; }
.ring-sub { font-size: 9px; color: var(--text-muted); }

/* 打字机 */
.typer { display: inline-flex; align-items: baseline; gap: 6px; }
.typer-prefix { color: var(--accent-rose); font-size: 9px; }
.caret {
  display: inline-block; width: 1px; height: 1em; margin-left: 1px;
  background: var(--accent-rose); vertical-align: -0.16em;
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* 心跳胶囊 */
.hb-bar { display: flex; gap: 2px; align-items: flex-end; width: 100%; }
.hb-cell { flex: 1; min-width: 0; border-radius: 1.5px; background: rgba(255, 255, 255, 0.08); transition: transform var(--dur-fast) var(--ease-out); }
.hb-cell:hover { transform: scaleY(1.25); }
.hb-cell.st-up { background: linear-gradient(180deg, #34D399, #10B981); box-shadow: 0 0 6px -2px rgba(16, 185, 129, 0.8); }
.hb-cell.st-degraded { background: linear-gradient(180deg, #FCD34D, #F59E0B); }
.hb-cell.st-down { background: linear-gradient(180deg, #FB7185, #F43F5E); box-shadow: 0 0 6px -2px rgba(244, 63, 94, 0.9); }
.hb-cell.st-pending, .hb-cell.st-empty { background: rgba(148, 163, 184, 0.22); }

/* 折线图 */
.line-chart { position: relative; width: 100%; }
.line-chart svg { display: block; overflow: visible; }
.chart-axis { font-family: var(--font-mono); font-size: 9px; fill: var(--text-muted); letter-spacing: 0.04em; }
.chart-empty { display: grid; place-items: center; min-height: 160px; color: var(--text-muted); font-size: 11.5px; border: 1px dashed rgba(255, 255, 255, 0.08); border-radius: var(--r-md); }
.chart-tip {
  position: absolute; top: 8px; translate: -50% 0;
  display: grid; gap: 3px; min-width: 128px;
  padding: 8px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--border-glass-strong);
  background: rgba(12, 10, 18, 0.94);
  box-shadow: var(--shadow-float);
  pointer-events: none; font-size: 10.5px;
}
.tip-time { color: var(--text-muted); font-size: 9.5px; letter-spacing: 0.08em; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.tip-row b { margin-left: auto; color: var(--text-primary); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10.5px; color: var(--text-secondary); }
.lg-item { display: inline-flex; align-items: center; gap: 6px; }
.lg-item i { width: 9px; height: 3px; border-radius: 2px; background: currentColor; }
.lg-item i.lg-band { width: 14px; height: 8px; border-radius: 2px; background: rgba(139, 92, 246, 0.28); border: 1px solid rgba(139, 92, 246, 0.5); }
.lg-item i.lg-loss { width: 6px; height: 10px; border-radius: 1px; background: rgba(244, 63, 94, 0.42); }
.sparkline { display: block; }

/* 瀑布图 */
.waterfall { display: grid; gap: 6px; }
.wf-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) 62px; align-items: center; gap: 8px; }
.wf-label { font-size: 10.5px; color: var(--text-secondary); white-space: nowrap; }
.wf-track { position: relative; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.045); overflow: hidden; }
.wf-bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; opacity: 0.85; box-shadow: 0 0 10px -4px currentColor; }
.wf-dur { font-size: 10px; color: var(--text-secondary); text-align: right; }
.wf-axis { position: relative; height: 14px; margin-left: 90px; margin-right: 70px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.wf-axis span { position: absolute; top: 3px; translate: -50% 0; font-size: 8.5px; color: var(--text-muted); white-space: nowrap; }

/* MTR */
.mtr { display: grid; gap: 10px; }
.mtr-head { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; letter-spacing: 0.1em; color: var(--text-muted); }
.mtr-legend { display: inline-flex; align-items: center; gap: 5px; }
.mtr-legend .lg { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.mtr-list { display: grid; gap: 0; max-height: 420px; overflow: auto; padding-right: 4px; }
.mtr-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 7px 0; }
.mtr-row.is-timeout { opacity: 0.55; }
.mtr-rail { position: relative; display: grid; justify-items: center; }
.mtr-hop {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(244, 63, 94, 0.32); background: rgba(12, 10, 18, 0.9);
  font-size: 9.5px; color: var(--accent-rose); z-index: 1;
}
.mtr-line { position: absolute; top: 22px; bottom: -7px; width: 1px; background: linear-gradient(180deg, rgba(244, 63, 94, 0.4), rgba(139, 92, 246, 0.18)); }
.mtr-body { display: grid; gap: 3px; min-width: 0; }
.mtr-addr { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mtr-ip { font-size: 12px; color: var(--text-primary); }
.mtr-ptr { font-size: 10px; color: var(--text-muted); min-width: 0; }
.mtr-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mtr-org { font-size: 10px; color: var(--text-secondary); max-width: 220px; }
.mtr-metrics { display: grid; grid-template-columns: 72px 62px minmax(0, 1fr); align-items: center; gap: 8px; }
.mtr-bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.mtr-bar i { display: block; height: 100%; border-radius: 99px; transition: width 520ms var(--ease-out); }
.mtr-bar .bar-up { background: var(--status-up); }
.mtr-bar .bar-warn { background: var(--status-degraded); }
.mtr-bar .bar-down { background: var(--status-down); }
.mtr-avg { font-size: 10.5px; }
.mtr-sub { font-size: 9.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 飞线地图 */
.flight-map { width: 100%; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(80% 90% at 50% 40%, rgba(109, 40, 217, 0.10), transparent 70%); }
.flight-map svg { width: 100%; height: auto; display: block; }
.map-label { font-family: var(--font-mono); font-size: 8.5px; fill: var(--text-secondary); letter-spacing: 0.04em; }
.map-label.is-target { fill: #FB7185; font-size: 9.5px; }
.map-corner { font-family: var(--font-mono); font-size: 7.5px; fill: rgba(148, 163, 184, 0.5); letter-spacing: 0.14em; }

/* 对比矩阵 */
.matrix-wrap { overflow: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 620px; }
.matrix th, .matrix td { padding: 9px 12px; text-align: left; white-space: nowrap; }
.matrix thead th {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  border-bottom: 1px solid var(--border-glass);
  position: sticky; top: 0; background: rgba(19, 17, 28, 0.92); backdrop-filter: blur(8px); z-index: 1;
}
.matrix thead th.is-sortable { cursor: pointer; transition: color var(--dur-fast); }
.matrix thead th.is-sortable:hover, .matrix thead th.is-active { color: var(--accent-rose); }
.sort-caret { margin-left: 4px; font-size: 8px; }
.matrix tbody th {
  font-weight: 500; text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  display: flex; flex-direction: column; gap: 0; min-width: 120px;
}
.m-node { font-size: 12.5px; color: var(--text-primary); max-width: 170px; }
.m-sub { font-size: 9.5px; color: var(--text-muted); letter-spacing: 0.04em; }
.matrix td { border-bottom: 1px solid rgba(255, 255, 255, 0.045); font-variant-numeric: tabular-nums; }
.matrix tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.m-val { font-size: 11.5px; }
.cell-up .m-val { color: #6EE7B7; }
.cell-warn .m-val { color: #FCD34D; }
.cell-down .m-val { color: #FDA4AF; }
.cell-idle .m-val { color: var(--text-secondary); }
.matrix td::after { content: ''; }
.cell-up { background: rgba(16, 185, 129, 0.05); }
.cell-warn { background: rgba(245, 158, 11, 0.06); }
.cell-down { background: rgba(244, 63, 94, 0.07); }

/* 逐包波形 */
.ping-wave { display: grid; gap: 4px; }
.pw-foot { display: flex; gap: 10px; font-size: 9.5px; color: var(--text-muted); }
.pw-foot .down { color: var(--status-down); }

/* ============================ 3. 观测残响 ============================ */
.history-view { display: grid; gap: var(--sp-4); }
.filter-bar { padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.fb-row { display: flex; gap: var(--sp-3); align-items: flex-end; flex-wrap: wrap; }
.fb-row .field { width: 132px; }
.fb-row .field.fb-search { flex: 1; min-width: 220px; }
.fb-input { position: relative; display: flex; align-items: center; }
.fb-input svg { position: absolute; left: 12px; color: var(--text-muted); }
.fb-input .input { padding-left: 36px; }
.fb-actions { display: flex; gap: 6px; }
.fb-tools { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.fb-tools .row:last-child { margin-left: auto; }
.echo-list { display: grid; gap: 6px; }
.echo-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 11px 14px; border-radius: var(--r-md);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.022);
  transition: all var(--dur-base) var(--ease-out);
}
.echo-item:hover { transform: translateY(-2px); border-color: rgba(244, 63, 94, 0.22); background: rgba(244, 63, 94, 0.05); box-shadow: var(--shadow-panel); }
.echo-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.echo-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.echo-target { font-size: 13px; color: var(--text-primary); max-width: 340px; }
.echo-sub { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: 10.5px; color: var(--text-muted); }
.echo-actions { display: flex; gap: 4px; flex: none; }
.pager { display: flex; align-items: center; gap: 4px; justify-content: center; padding-top: var(--sp-3); flex-wrap: wrap; }
.pager-num {
  min-width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border-glass); background: var(--glass-subtle);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-secondary);
  transition: all var(--dur-fast);
}
.pager-num.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgba(225, 29, 72, 0.85), rgba(139, 92, 246, 0.7)); }
.pager-num:hover:not(.is-active) { color: var(--text-primary); }

/* ============================ 4. 永恒视界 ============================ */
.monitors-view { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.mon-list { position: sticky; top: calc(var(--header-h) + 8px); max-height: calc(100vh - var(--header-h) - 32px); display: flex; flex-direction: column; overflow: hidden; padding: var(--sp-3); }
.ml-head { display: flex; align-items: flex-start; gap: 10px; padding: 2px 4px 10px; }
.ml-head > div:first-child { flex: 1; min-width: 0; }
.ml-search { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: var(--r-pill); border: 1px solid var(--border-glass); background: rgba(6, 5, 10, 0.5); margin-bottom: 8px; }
.ml-search svg { color: var(--text-muted); flex: none; }
.ml-input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 12px; }
.ml-input:focus { outline: none; }
.ml-items { display: grid; gap: 4px; overflow: auto; padding-right: 2px; }
.ml-item {
  display: grid; gap: 5px;
  padding: 10px 11px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.ml-item:hover { background: rgba(255, 255, 255, 0.035); border-color: var(--border-glass); }
.ml-item.is-active { background: linear-gradient(120deg, rgba(225, 29, 72, 0.12), rgba(139, 92, 246, 0.08)); border-color: rgba(244, 63, 94, 0.35); }
.ml-row1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ml-row1 b { font-size: 12.5px; font-weight: 500; flex: 1; min-width: 0; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; animation: breathe 2.6s var(--ease-in-out) infinite; }
.ml-pct { font-size: 11px; flex: none; }
.ml-target { font-size: 10px; color: var(--text-muted); }
.ml-row3 { display: flex; align-items: center; gap: 6px; }
.ml-row3 .badge { height: 17px; font-size: 8.5px; padding: 0 6px; }
.mon-detail { display: grid; gap: var(--sp-4); min-width: 0; }
.mon-banner { display: flex; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); align-items: flex-start; position: relative; overflow: hidden; }
.mon-banner::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--status-pending); }
.mon-banner.st-up::before { background: var(--status-up); }
.mon-banner.st-degraded::before { background: var(--status-degraded); }
.mon-banner.st-down::before { background: var(--status-down); }
.mb-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mb-name { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.1em; }
.mb-target { font-size: 11.5px; color: var(--text-muted); word-break: break-all; }
.mb-stats { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: 4px; }
.mb-stat { display: grid; gap: 1px; }
.mb-stat span { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.mb-stat b { font-size: 13px; font-weight: 500; }
.mb-duration { display: grid; gap: 4px; margin-top: 8px; max-width: 420px; }
.mb-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.mon-back { display: none; }
.mon-chart .mon-nodes { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline { display: grid; gap: 0; max-height: 340px; overflow: auto; padding-left: 2px; }
.tl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 7px 0; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 30px; bottom: -7px; width: 1px; background: rgba(255, 255, 255, 0.07); }
.tl-node {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border-glass); background: rgba(12, 10, 18, 0.9); color: var(--text-secondary); z-index: 1;
}
.tl-node.sev-down { border-color: rgba(244, 63, 94, 0.5); color: #FDA4AF; }
.tl-node.sev-warn { border-color: rgba(245, 158, 11, 0.5); color: #FCD34D; }
.tl-node.sev-up { border-color: rgba(16, 185, 129, 0.5); color: #6EE7B7; }
.tl-body { display: grid; gap: 2px; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 8px; }
.tl-head b { font-size: 12px; font-weight: 500; }
.tl-head .badge { height: 17px; font-size: 8.5px; padding: 0 6px; }
.tl-diff { font-size: 10px; color: var(--text-muted); word-break: break-all; }
.tl-time { font-size: 9.5px; }
.ntfy-list { display: grid; gap: 4px; max-height: 340px; overflow: auto; }
.ntfy-list li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.025); font-size: 11.5px; }
.ntfy-list svg { color: var(--accent-violet); flex: none; }
.ntfy-list .badge { height: 17px; font-size: 8.5px; padding: 0 6px; }
.duration-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mini-field { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: var(--r-sm); border: 1px solid var(--border-glass); background: rgba(255, 255, 255, 0.02); font-size: 11px; color: var(--text-muted); }
.mini-field .input { min-height: 30px; width: 78px; padding: 0 8px; background: transparent; border: 0; font-size: 12px; }
.mini-field .input:focus { box-shadow: none; }
.mini-field i { font-style: normal; font-size: 10px; color: var(--text-muted); }
.window-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.wd-chip {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-glass);
  background: var(--glass-subtle); font-size: 10.5px; color: var(--text-muted);
  transition: all var(--dur-fast);
}
.wd-chip.is-on { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgba(225, 29, 72, 0.8), rgba(139, 92, 246, 0.65)); }

/* ============================ 5. 星辰节点 ============================ */
.nodes-view { display: grid; gap: var(--sp-4); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.stat-card { display: grid; gap: 3px; padding: var(--sp-4); align-content: start; }
.sc-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); margin-bottom: 6px; }
.sc-icon.up { color: #6EE7B7; background: rgba(16, 185, 129, 0.12); }
.sc-icon.violet { color: #C4B5FD; background: rgba(139, 92, 246, 0.14); }
.sc-icon.accent { color: #FDA4AF; background: rgba(244, 63, 94, 0.13); }
.sc-num { font-size: 24px; font-weight: 600; line-height: 1.1; }
.sc-num i { font-style: normal; font-size: 12px; color: var(--text-muted); margin-left: 2px; }
.sc-label { font-size: 10.5px; letter-spacing: 0.08em; color: var(--text-muted); }
.sc-btn { margin-bottom: 2px; }
.node-grid { align-items: start; }
.node-card { display: grid; gap: 10px; padding: var(--sp-4); }
.node-card.is-off { opacity: 0.62; }
.nc-head { display: flex; align-items: center; gap: 10px; }
.nc-head .flag { font-size: 20px; }
.nc-name { display: grid; gap: 0; min-width: 0; flex: 1; }
.nc-name b { font-size: 13.5px; }
.nc-name span { font-size: 9.5px; }
.nc-status { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--text-muted); flex: none; }
.nc-status.st-online { color: var(--status-up); }
.nc-status.st-degraded { color: var(--status-degraded); }
.nc-status.st-offline { color: var(--status-down); }
.dot-static { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nc-caps { display: flex; gap: 6px; flex-wrap: wrap; }
.cap-light { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--border-glass); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; color: var(--text-muted); }
.cap-light i { width: 5px; height: 5px; border-radius: 50%; background: rgba(148, 163, 184, 0.4); }
.cap-light.on { color: #7DD3FC; border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.08); }
.cap-light.on i { background: #38BDF8; box-shadow: 0 0 7px #38BDF8; }
.nc-metrics { display: grid; gap: 5px; }
.nc-metric { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--text-muted); }
.nc-metric b { font-size: 11.5px; color: var(--text-secondary); font-weight: 500; }
.nc-load { display: grid; gap: 5px; }
.load-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 56px; align-items: center; gap: 8px; font-size: 9.5px; color: var(--text-muted); }
.load-row .mono:last-child { text-align: right; }
.load-bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.load-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366F1, #8B5CF6); transition: width 520ms var(--ease-out); }
.load-bar i.is-hot { background: linear-gradient(90deg, #F59E0B, #F43F5E); }
.nc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.nc-foot .mono { font-size: 9.5px; }
.nc-ota { display: flex; align-items: center; gap: 8px; }
.nc-ota .mono { font-size: 9.5px; color: var(--text-secondary); }
.ota-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-4); }
.ota-list { display: grid; gap: 4px; }
.ota-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--border-glass); background: var(--glass-subtle);
  transition: all var(--dur-fast);
}
.ota-item:hover { border-color: rgba(244, 63, 94, 0.35); }
.ota-v { font-size: 12px; color: var(--text-primary); }
.ota-item .mono { font-size: 9.5px; }
.ota-upload { display: grid; gap: 8px; align-content: start; }
.file-drop {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px dashed rgba(148, 163, 184, 0.34); background: rgba(255, 255, 255, 0.02);
  font-size: 11.5px; color: var(--text-secondary); cursor: pointer;
  transition: all var(--dur-fast);
}
.file-drop:hover { border-color: rgba(244, 63, 94, 0.5); color: var(--text-primary); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop.is-sm { padding: 9px 12px; font-size: 11px; }
.ota-progress { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.ota-prow { display: flex; align-items: center; gap: 10px; }

/* ============================ 6. 秘仪设定 ============================ */
.settings-view { display: grid; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.sg-main, .sg-side { display: grid; gap: var(--sp-4); }
.brand-editor { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: var(--sp-5); }
.be-fields { display: grid; gap: var(--sp-3); }
.be-preview { display: grid; gap: 8px; align-content: start; }
.be-card {
  position: relative; display: grid; justify-items: center; gap: 6px;
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(17, 15, 26, 0.7), rgba(11, 10, 17, 0.82)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(139, 92, 246, 0.16) 50%, rgba(244, 63, 94, 0.2)) border-box;
  text-align: center;
}
.be-card svg { color: var(--accent-rose); }
.be-title { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.28em; margin-left: 0.28em;
  background: linear-gradient(120deg, #FFF1F2, #FB7185 50%, #C4B5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.be-sub { font-size: 9px; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }
.be-rule { width: 70%; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.5), transparent); margin: 4px 0; }
.be-sign { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.12em; color: var(--text-muted); }
.be-sign b { color: var(--accent-rose); }
.retention-grid { display: grid; gap: var(--sp-4); }
.retention-grid .row { gap: 10px; }
.switch .track.is-on { background: linear-gradient(135deg, rgba(225, 29, 72, 0.85), rgba(139, 92, 246, 0.8)); border-color: transparent; box-shadow: 0 0 18px -6px rgba(225, 29, 72, 0.8); }
.switch .track.is-on::after { transform: translateX(18px); background: #fff; }

/* ============================ 7. 断点适配 ============================ */
@media (max-width: 1280px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .rg-map { grid-column: auto; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .report-head { grid-template-columns: minmax(0, 1fr) auto; }
  .rh-verdict { grid-column: 1 / -1; }
}
@media (max-width: 1024px) and (min-width: 641px) {
  .monitors-view { grid-template-columns: 280px minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-editor { grid-template-columns: minmax(0, 1fr); }
  .probe-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-head { flex-direction: column; }
  .hero-stat { margin-left: 0; }
  .hero-input { flex-wrap: wrap; border-radius: var(--r-lg); padding: 10px; }
  .hero-field { flex: 1 1 100%; order: -1; }
  .hero-go { flex: 1; }
  .tier-switch { width: 100%; }
  .tier-en { display: none; }
  .war-head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .war-info { justify-items: center; }
  .war-meta { justify-content: center; }
  .report-head { grid-template-columns: minmax(0, 1fr); }
  .rh-score { justify-items: start; }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .probe-cards { grid-template-columns: minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-wrap { flex-direction: column; align-items: stretch; }
  .radar { align-self: center; }
  .mtr-metrics { grid-template-columns: 60px minmax(0, 1fr); }
  .mtr-sub { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-grid { grid-template-columns: minmax(0, 1fr); }
  .ota-grid { grid-template-columns: minmax(0, 1fr); }
  .monitors-view { grid-template-columns: minmax(0, 1fr); }
  .monitors-view.is-detail .mon-list { display: none; }
  .monitors-view:not(.is-detail) .mon-detail { display: none; }
  .mon-list { position: static; max-height: none; }
  .mon-back { display: inline-flex; }
  .mon-banner { flex-wrap: wrap; }
  .mb-actions { width: 100%; justify-content: flex-start; }
  .mon-bottom { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-editor { grid-template-columns: minmax(0, 1fr); }
  .fb-row .field { width: calc(50% - 6px); }
  .echo-item { flex-wrap: wrap; }
  .echo-actions { width: 100%; justify-content: flex-end; }
  .wf-row { grid-template-columns: 66px minmax(0, 1fr) 54px; }
  .wf-axis { margin-left: 74px; margin-right: 62px; }
}

/* ---------- 补充：设定页开关行 / 探知页脉冲条 / 登录收束 ---------- */
.switch.is-row { width: 100%; justify-content: space-between; }
.switch .sw-right { display: inline-flex; align-items: center; position: relative; }
.switch input:checked + .track + .sw-label { color: var(--text-primary); }

/* 搜索舱下方的流光脉冲条（任务进行中） */
.hero-pulse {
  position: relative; height: 2px; border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.35), rgba(139, 92, 246, 0.35), transparent);
}
.hero-pulse i {
  position: absolute; inset: 0 auto 0 0; width: 34%;
  background: linear-gradient(90deg, transparent, #FB7185, #C4B5FD, transparent);
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.9));
  animation: pulse-sweep 2.6s var(--ease-in-out) infinite;
}
@keyframes pulse-sweep {
  0% { transform: translateX(-40%); opacity: 0.35; }
  50% { opacity: 1; }
  100% { transform: translateX(310%); opacity: 0.35; }
}

/* 登录成功瞬间：法阵加速收束 */
.login-page.is-unlocking .sigil-outer { animation-duration: 4.5s; }
.login-page.is-unlocking .sigil-inner { animation-duration: 3.2s; }
.login-page.is-unlocking .login-sigil svg { filter: blur(1px) drop-shadow(0 0 40px rgba(244, 63, 94, 0.8)); }

/* 移动端：脉冲条更矮 */
@media (max-width: 640px) { .hero-pulse { height: 1.5px; } }

/* 窄屏（<420px）三/四列网格降为单列，避免 375px 溢出 */
@media (max-width: 420px) {
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .war-nodes { grid-template-columns: minmax(0, 1fr); }
  .metric-grid { grid-template-columns: minmax(0, 1fr); }
  .radar { width: 100%; }
}
