/* 异动雷达 TalentPulse —— 单屏指挥中心主题 + shadcn 融合层 */
:root {
  --bg: #0a0e17;
  --bg-soft: #0d1420;
  --panel: rgba(17, 26, 42, 0.82);
  --border: #1e2c44;
  --border-soft: #17223a;
  --text: #e5edf7;
  --muted: #8aa0b8;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.16);
  --confirmed: #34d399;
  --pending: #fbbf24;
  --c-bigtech: #38bdf8;
  --c-startup: #a78bfa;
  --c-embodied: #fbbf24;
  --c-other: #94a3b8;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  /* shadcn 融合层 token */
  --card: rgba(20, 30, 48, 0.72);
  --card-foreground: var(--text);
  --secondary: rgba(148, 163, 184, 0.14);
  --secondary-foreground: var(--text);
  --ring: var(--accent);
  --input: var(--border);
  --radius-card: 16px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.30), 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.65);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden 属性必须战胜组件的 display 设置 */
[hidden] { display: none !important; }

/* ===== 可滚动布局：整页可上下滚动，两栏 grid 等高对齐 ===== */
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(167, 139, 250, 0.06), transparent);
}

/* 全局焦点环（shadcn 风格） */
input:focus-visible, select:focus-visible, button:focus-visible,
.ghost-btn:focus-visible, .scan-btn:focus-visible, .tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.30);
}

/* ===== 顶栏 ===== */
.topbar {
  flex: none;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid; place-items: center;
  color: var(--accent); font-size: 19px;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35), inset 0 0 12px rgba(34, 211, 238, 0.15);
  animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse { 50% { box-shadow: 0 0 26px rgba(34, 211, 238, 0.55), inset 0 0 14px rgba(34, 211, 238, 0.22); } }
.brand-text h1 { font-size: 16px; letter-spacing: 0.5px; }
.tagline { font-size: 11px; color: var(--muted); margin-top: 1px; }

.tabs { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.tab {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: 5px 16px; border-radius: var(--radius-md); cursor: pointer;
  font-size: 13px; font-family: var(--font); transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--card); color: var(--accent); border-color: rgba(34, 211, 238, 0.25); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  color: var(--confirmed); border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08); border-radius: 999px; padding: 3px 9px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--confirmed);
  box-shadow: 0 0 8px var(--confirmed); animation: live-blink 1.6s ease-in-out infinite;
}
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.scan-btn {
  border: none; cursor: pointer; font-family: var(--font);
  background: linear-gradient(135deg, #0ea5b7, #22d3ee);
  color: #04222b; font-weight: 700; font-size: 13px;
  padding: 8px 18px; border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 18px rgba(34, 211, 238, 0.28);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s, filter 0.15s;
}
.scan-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 24px rgba(34, 211, 238, 0.45); }
.scan-btn:disabled { opacity: 0.55; cursor: wait; transform: none; }
.scan-btn.scanning { background: linear-gradient(135deg, #334155, #475569); color: #cbd5e1; filter: none; }

/* ===== Hero：恢复为舒展横幅（可滚动布局下不再挤占高度） ===== */
.hero {
  position: relative; overflow: hidden;
  flex: none;
  height: clamp(220px, 30vh, 340px);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: saturate(1.05) contrast(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,14,23,0.95) 0%, rgba(10,14,23,0.72) 48%, rgba(10,14,23,0.28) 100%),
    linear-gradient(180deg, rgba(10,14,23,0.30) 0%, rgba(10,14,23,0.55) 100%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 140% at 30% 40%, transparent 45%, rgba(10,14,23,0.45) 100%);
}
.hero-scanline {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background: repeating-linear-gradient(0deg, rgba(34,211,238,0.05) 0px, rgba(34,211,238,0.05) 1px, transparent 2px, transparent 4px);
  mix-blend-mode: screen;
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding: 0 32px;
}
.hero-main { max-width: 660px; min-width: 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(34,211,238,0.4);
}
.hero-title {
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: 1px; line-height: 1.1;
  background: linear-gradient(120deg, #e5edf7 0%, #22d3ee 60%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(34,211,238,0.25);
}
.hero-sub { font-size: 12.5px; color: #b8c6d9; margin-top: 6px; line-height: 1.6; }
.hero-kpis { display: flex; gap: 24px; flex-wrap: wrap; flex: none; }
.hkpi { display: flex; flex-direction: column; gap: 2px; }
.hkpi-num {
  font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(34,211,238,0.35); line-height: 1;
}
.hkpi-label { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.hero-c { position: absolute; width: 16px; height: 16px; border: 2px solid rgba(34,211,238,0.55); z-index: 3; pointer-events: none; }
.hero-c.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.hero-c.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.hero-c.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.hero-c.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* ===== 统计条（紧凑单行） ===== */
.stats-bar {
  flex: none;
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 22px 8px;
}
.chip {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 7px 13px;
  display: flex; flex-direction: column; gap: 1px; min-width: 96px;
  box-shadow: var(--shadow-card);
}
.chip-num { font-size: 17px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.chip-num.sm { font-size: 12px; font-weight: 600; color: var(--text); }
.chip-label { font-size: 10px; color: var(--muted); }
.chip-budget .chip-num { color: var(--c-startup); }

/* ===== HUD 角标 ===== */
.hud { position: relative; }
.hud-c { position: absolute; width: 12px; height: 12px; border: 2px solid rgba(34,211,238,0.45); pointer-events: none; z-index: 1; }
.hud-c.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.hud-c.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.hud-c.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.hud-c.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.modal-card.hud .hud-c { border-color: rgba(34,211,238,0.30); }

/* ===== 主布局：两栏 grid，列等高 → 左右底边自然对齐 ===== */
.layout {
  display: grid; grid-template-columns: minmax(340px, 560px) 1fr;
  align-items: stretch;
  gap: 14px; padding: 12px 22px 14px;
}
.panel {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-card); padding: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.panel-head { flex: none; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.panel-head h2 { font-size: 14px; letter-spacing: 1px; }
.panel-hint { font-size: 11px; color: var(--muted); }
.head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; max-width: 60%; }
.panel-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  color: var(--accent); border: 1px solid rgba(34,211,238,0.3);
  border-radius: 4px; padding: 2px 8px; background: rgba(34,211,238,0.06);
}

/* ===== 雷达：canvas 由 JS 取面板剩余空间的最大正方形 ===== */
.radar-wrap {
  position: relative;
  flex: 1 1 auto; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
#radar { display: block; cursor: crosshair; }
.radar-empty {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  color: var(--muted); font-size: 14px; line-height: 1.9; pointer-events: none;
}
.radar-empty span { font-size: 12px; opacity: 0.75; }
.radar-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: rgba(8, 14, 26, 0.95); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px; font-size: 12px; max-width: 240px;
  box-shadow: var(--shadow-card);
}
.radar-tip .t-name { font-weight: 700; color: var(--text); }
.radar-tip .t-move { color: var(--accent); margin-top: 2px; }
.radar-tip .t-date { color: var(--muted); margin-top: 2px; font-size: 11px; }

.radar-legend {
  flex: none;
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  font-size: 12px; color: var(--muted); padding: 8px 0 2px;
}
.radar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.ring { border: 1.5px dashed var(--pending); background: transparent; }

.timeline { flex: none; display: flex; align-items: flex-end; gap: 8px; height: 50px; padding: 8px 4px 0; border-top: 1px dashed var(--border-soft); margin-top: 6px; }
.tl-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.tl-bar { width: 100%; max-width: 42px; background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(34, 211, 238, 0.08)); border-radius: 4px 4px 0 0; min-height: 2px; transition: height 0.4s; }
.tl-label { font-size: 10px; color: var(--muted); }
.tl-count { font-size: 10px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ===== 列表：自然展开，整页滚动（不再面板内滚动） ===== */
.filters { flex: none; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filters input, .filters select {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-md); padding: 7px 10px; font-size: 12.5px; font-family: var(--font);
  outline: none; min-width: 0; transition: border-color 0.15s;
}
.filters input:focus, .filters select:focus { border-color: var(--accent); }
.filters input[type="text"] { flex: 1 1 130px; }
.filters input[type="date"] { flex: 0 1 124px; color-scheme: dark; }
.ghost-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: var(--radius-md); padding: 7px 13px; font-size: 12.5px; cursor: pointer; font-family: var(--font);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ghost-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(34, 211, 238, 0.06); }

/* 时间范围快捷预设（默认 / 近1年 / 近2年 / 全部） */
.range-presets {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}
.preset-btn {
  background: transparent; border: none; color: var(--muted);
  padding: 4px 9px; font-size: 11.5px; cursor: pointer; font-family: var(--font);
  border-radius: calc(var(--radius-md) - 2px);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.preset-btn:hover { color: var(--accent); }
.preset-btn.active { color: var(--accent); background: rgba(34, 211, 238, 0.12); }
.preset-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.30); }

.event-list {
  display: flex; flex-direction: column; gap: 10px;
  padding-right: 4px;
}

.event-card {
  flex: none;
  background: var(--card); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--c-other);
  border-radius: 12px; padding: 11px 14px; cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.2s;
  animation: cardIn 0.45s cubic-bezier(.2,.7,.3,1) both;
  animation-delay: calc(min(var(--i, 14), 14) * 35ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.event-card:hover { border-color: var(--accent); transform: translateX(2px); box-shadow: 0 6px 22px rgba(34,211,238,0.12); }
.event-card.t-bigtech { border-left-color: var(--c-bigtech); }
.event-card.t-startup { border-left-color: var(--c-startup); }
.event-card.t-embodied_ai { border-left-color: var(--c-embodied); }
.event-card.t-other { border-left-color: var(--c-other); }
.ec-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.ec-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ec-name { font-weight: 700; font-size: 14px; }
.ec-title { font-size: 12px; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; line-height: 1;
  padding: 3px 8px; border-radius: 999px; border: 1px solid transparent;
}
.badge.confirmed { color: var(--confirmed); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.10); }
.badge.pending { color: var(--pending); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.badge.type { color: var(--muted); border-color: var(--border); }
/* 日期待确认：信源无结构化发布日（防旧闻新报防火墙的可见标记） */
.badge.date-unverified { color: #f87171; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); cursor: help; }
/* 独立源小字（badge 内「· N 独立源」） */
.bi-src { font-style: normal; font-size: 10px; opacity: 0.8; font-weight: 400; }
.ec-move { font-size: 13px; line-height: 1.55; display: flex; align-items: center; flex-wrap: wrap; }
.ec-move .arrow {
  color: var(--accent); margin: 0 8px; font-weight: 700;
  text-shadow: 0 0 10px rgba(34,211,238,0.6); animation: arrowFlow 2.4s ease-in-out infinite;
}
@keyframes arrowFlow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; transform: translateX(2px); } }
.ec-move .org { color: var(--text); font-weight: 600; }
.ec-move .org.raw { font-weight: 500; color: #b8c6d9; border-bottom: 1px dotted var(--muted); }
.ec-move .none { color: var(--muted); font-style: italic; }
.ec-meta { display: flex; gap: 12px; margin-top: 7px; font-size: 11.5px; color: var(--muted); }

/* 置信度条（shadcn progress 风格） */
.ec-bar { height: 5px; border-radius: 999px; background: rgba(34, 211, 238, 0.14); margin-top: 10px; overflow: hidden; }
.ec-bar-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--c-bigtech), var(--accent));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
  transform-origin: left; animation: barGrow 0.7s cubic-bezier(.2,.7,.3,1) both;
}
.ec-bar-fill.low { background: linear-gradient(90deg, var(--pending), #f59e0b); box-shadow: 0 0 10px rgba(251,191,36,0.4); }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.list-empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 14px; line-height: 2; }
.list-footer { flex: none; display: flex; justify-content: center; padding-top: 8px; }

/* ===== 弹窗（shadcn dialog 风格） ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(4, 8, 16, 0.72); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; width: min(560px, calc(100vw - 40px)); max-height: 82vh; overflow: auto;
  background: #0e1626; border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1;
  border-radius: 6px; opacity: 0.75; transition: opacity 0.15s, color 0.15s;
}
.modal-close:hover { color: var(--text); opacity: 1; }
.d-title { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.d-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.d-flow { font-size: 16px; line-height: 1.8; margin-bottom: 14px; }
.d-flow .arrow { color: var(--accent); margin: 0 8px; }
.d-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.d-src-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.d-src { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.d-src a {
  color: var(--accent); font-size: 13px; text-decoration: none;
  border: 1px solid var(--border-soft); border-radius: 8px; padding: 8px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-src a:hover { border-color: var(--accent); }
.d-snippet {
  font-size: 12.5px; color: var(--muted); line-height: 1.8;
  background: var(--bg-soft); border-radius: 10px; padding: 12px;
  border: 1px dashed var(--border-soft);
}

/* 详情弹窗纠错按钮（反馈闭环 3.6） */
.d-feedback { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
.d-fb-label { font-size: 12px; color: var(--muted); }
.d-fb-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-md); padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-family: var(--font);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.d-fb-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(34, 211, 238, 0.06); }
.d-fb-btn.fb-false:hover { border-color: #f87171; color: #f87171; background: rgba(248,113,113,0.08); }
.d-fb-btn.fb-submit { border-color: var(--accent); color: var(--accent); }
.d-fb-btn.fb-submit:hover { background: rgba(34, 211, 238, 0.12); }
.d-fb-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 反馈表单（替代 window.prompt）===== */
#fb-form { border-top: 1px dashed var(--border); margin-top: 14px; padding-top: 14px; }
.fb-form { display: flex; flex-direction: column; gap: 10px; }
.fb-form-title { font-size: 13px; font-weight: 600; color: var(--accent); }
.fb-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.fb-form input, .fb-form textarea {
  background: var(--surface, #0e1626); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-md); padding: 8px 10px; font-size: 13px; font-family: var(--font);
  resize: vertical;
}
.fb-form input:focus, .fb-form textarea:focus { outline: none; border-color: var(--accent); }
.fb-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ===== 运维指标折叠（内部指标不默认裸露）===== */
.chip-ops { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.chip-ops-toggle {
  background: transparent; border: 1px dashed var(--border); cursor: pointer;
  font-size: 11px; color: var(--muted); padding: 6px 10px; border-radius: 999px; font-family: var(--font);
}
.chip-ops-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: #0e1626; border: 1px solid var(--accent); color: var(--text);
  border-radius: 12px; padding: 12px 20px; font-size: 14px; z-index: 200;
  box-shadow: 0 10px 40px rgba(34, 211, 238, 0.25);
}
.toast.error { border-color: #f87171; box-shadow: 0 10px 40px rgba(248, 113, 113, 0.2); }

/* ===== 页脚（压成一行，不挤占主区） ===== */
.footer {
  flex: none;
  padding: 7px 22px 9px; color: var(--muted); font-size: 11px; line-height: 1.6;
  border-top: 1px solid var(--border-soft);
}
.footer b { color: var(--text); }
.footer p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 规则进化面板 ===== */
.evo-panel { margin: 0 22px 14px; }
.evo-stats { flex: none; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.evo-stats .chip { flex: 0 1 auto; }
.evo-cols { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; }
.evo-col h3 { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 8px; font-weight: 600; }
.evo-count { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.evo-rules, .evo-log {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 260px; overflow-y: auto; padding-right: 4px;
}
.evo-rule, .evo-log-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 7px 10px; font-size: 12px;
}
.evo-rule code { font-family: var(--mono); color: var(--accent); font-size: 12px; }
.evo-ev, .evo-date, .evo-log-date { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.evo-kind {
  flex: none; font-size: 10px; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.5px;
  border: 1px solid var(--border); color: var(--muted);
}
.evo-kind.k-junk { color: #34d399; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.evo-kind.k-fill_cn, .evo-kind.k-verb_cn, .evo-kind.k-verb_en { color: var(--pending); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.evo-log-row.auto { border-left: 2px solid #34d399; }
.evo-log-action { flex: none; color: var(--text); font-weight: 600; font-size: 11.5px; min-width: 76px; }
.evo-log-payload { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-empty { color: var(--muted); font-size: 12px; padding: 14px 4px; }
.evo-foot { flex: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-soft); }
.evo-hint { font-size: 11px; color: var(--muted); }
@media (max-width: 980px) {
  .evo-panel { margin: 0 12px 12px; }
  .evo-cols { grid-template-columns: 1fr; }
  .evo-rules, .evo-log { max-height: 200px; }
}

/* ===== 响应式：窄屏恢复自然滚动 ===== */
@media (max-width: 980px) {
  body { display: block; overflow: auto; height: auto; }
  .layout { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .panel { display: block; overflow: visible; }
  .radar-wrap { aspect-ratio: 1; max-width: 560px; margin: 0 auto; display: block; }
  .event-list { overflow: visible; }
  .event-card { animation-delay: 0ms; }
  .topbar { gap: 10px; }
  .brand-text h1 { font-size: 15px; }
  .hero { height: auto; padding: 40px 0; }
  .hero-content { flex-direction: column; align-items: flex-start; padding: 0 18px; gap: 18px; }
  .hero-kpis { gap: 18px; }
  .footer p { white-space: normal; }
}
@media (max-width: 560px) {
  .stats-bar { padding: 10px 12px 6px; }
  .chip { min-width: 88px; padding: 7px 11px; }
  .chip-num { font-size: 16px; }
  .topbar { padding: 10px 12px; }
  .scan-btn { padding: 8px 13px; }
  .head-right { max-width: 100%; }
  .hkpi-num { font-size: 20px; }
}

/* ===== 双轨 / 导航 / 新增组件 ===== */
.dual-banner {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 7px 22px; font-size: 12.5px; color: var(--text);
  background: linear-gradient(90deg, rgba(251,191,36,0.14), rgba(34,211,238,0.06));
  border-bottom: 1px solid rgba(251,191,36,0.25);
}
.dual-banner a { color: var(--accent); text-decoration: none; font-weight: 600; }
.dual-banner a:hover { text-decoration: underline; }
.dual-banner.unlocked {
  background: linear-gradient(90deg, rgba(52,211,153,0.16), rgba(34,211,238,0.06));
  border-bottom: 1px solid rgba(52,211,153,0.3);
}
.nav-link {
  font-size: 12.5px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--accent); border-color: var(--accent); background: rgba(34,211,238,0.06); }
.scan-btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.scan-btn.ghost:hover { color: var(--accent); border-color: var(--accent); background: rgba(34,211,238,0.06); }
.mini-btn {
  font-size: 12px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 5px 11px; cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.mini-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(34,211,238,0.06); }

/* 浮层通用 */
.aux-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.aux-title.sm { font-size: 12.5px; margin-top: 16px; }
.aux-sub { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.aux-btn {
  font-size: 12.5px; color: var(--accent); background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.3); border-radius: var(--radius-md);
  padding: 6px 13px; cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.aux-btn:hover { background: rgba(34,211,238,0.16); }
.aux-btn.sm { padding: 4px 10px; font-size: 11.5px; }
.aux-btn.danger { color: #f87171; background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.35); }
.aux-btn.danger:hover { background: rgba(248,113,113,0.16); }

/* 人物档案 */
.ec-name-link { cursor: pointer; border-bottom: 1px dotted var(--accent); }
.ec-name-link:hover { color: var(--accent); }
.pm-stats { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.pm-stats b { color: var(--text); }
.pm-orgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.org-tag { font-size: 11px; color: var(--accent); border: 1px solid rgba(34,211,238,0.3); background: rgba(34,211,238,0.06); border-radius: 999px; padding: 3px 10px; }
.pm-moves { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.pm-move { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 10px 12px; }
.pm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.pm-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-sources { font-size: 11px; color: var(--muted); margin-left: auto; }
.pm-flow { font-size: 13.5px; color: var(--text); }
.pm-flow .arrow { color: var(--accent); margin: 0 8px; }
.pm-wl { margin-top: 6px; }
.wl-on { font-size: 11px; color: var(--confirmed); border: 1px solid rgba(52,211,153,0.4); background: rgba(52,211,153,0.08); border-radius: 999px; padding: 2px 9px; }

/* 盯梢名单 */
.wl-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wl-add select, .wl-add input {
  background: var(--surface, #0e1626); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-md); padding: 7px 10px; font-size: 12.5px; font-family: var(--font);
}
.wl-add input { flex: 1 1 160px; min-width: 120px; }
.wl-add select:focus, .wl-add input:focus { outline: none; border-color: var(--accent); }
.wl-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 8px; }
.wl-row { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 8px 11px; font-size: 13px; }
.wl-kind { font-size: 10px; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border); color: var(--muted); text-transform: uppercase; }
.wl-kind.k-company { color: var(--c-bigtech); border-color: rgba(56,189,248,0.4); }
.wl-kind.k-person { color: var(--c-startup); border-color: rgba(167,139,250,0.4); }
.wl-kind.k-sector { color: var(--c-embodied); border-color: rgba(251,191,36,0.4); }
.wl-val { font-weight: 600; color: var(--text); }
.wl-note { font-size: 11px; color: var(--muted); }
.wl-row .aux-btn { margin-left: auto; }
.al-list { display: flex; flex-direction: column; gap: 5px; }
.al-row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.al-ok { font-weight: 700; }
.al-ok.ok { color: var(--confirmed); }
.al-ok.fail { color: #f87171; }
.al-target { color: var(--text); }
.al-time { margin-left: auto; font-variant-numeric: tabular-nums; }

/* 复核队列 */
.rv-tools { margin-bottom: 12px; }
.rv-list { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.rv-row { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 11px 13px; }
.rv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.rv-name { font-weight: 600; color: var(--text); font-size: 13.5px; }
.rv-date { margin-left: auto; font-size: 11px; color: var(--muted); }
.rv-flow { font-size: 13px; color: var(--text); }
.rv-flow .arrow { color: var(--accent); margin: 0 8px; }
.rv-snippet { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 6px 0 9px; max-height: 48px; overflow: hidden; }
.rv-actions { display: flex; gap: 8px; }
.flag { font-size: 10px; padding: 2px 7px; border-radius: 4px; border: 1px solid rgba(251,191,36,0.4); color: var(--pending); background: rgba(251,191,36,0.08); }
.flag.warn { border-color: rgba(248,113,113,0.4); color: #f87171; background: rgba(248,113,113,0.08); }

/* ===== 人物主页 / GitHub 链接（名字右侧）===== */
.plink {
  display: inline-flex; align-items: center; gap: 1px;
  margin-left: 7px; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.5; text-decoration: none;
  color: var(--accent); background: rgba(56,189,248,0.10);
  border: 1px solid rgba(56,189,248,0.28); vertical-align: middle;
  white-space: nowrap;
}
.plink:hover { background: rgba(56,189,248,0.20); border-color: rgba(56,189,248,0.5); text-decoration: none; }
.plink-fallback { color: var(--muted); background: rgba(148,163,184,0.10); border-color: rgba(148,163,184,0.28); }
.plink-fallback:hover { background: rgba(148,163,184,0.18); }
.plink-hp { color: #c4b5fd; background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.30); }
.plink-hp:hover { background: rgba(167,139,250,0.20); }
.aux-title .plink { font-size: 11px; margin-left: 8px; }
