/* ============================================================
 * AI 战略投资雷达智能体 · 浅色现代 SaaS 设计系统 v4
 * 基调：白底浅灰画布 / 深商务蓝 #2563eb / 柔和阴影 / 精致边框
 * ============================================================ */
:root {
  --bg0: #f4f6fb;
  --bg1: #ffffff;
  --card: #ffffff;
  --card2: #f8fafc;
  --line: #e9edf5;
  --line2: #dbe2ee;
  --tx: #0f172a;
  --tx2: #475569;
  --tx3: #94a3b8;
  --cy: #2563eb;          /* 主色（原青色变量名保留，语义为主蓝） */
  --cy-dim: #eaf1fe;
  --am: #d97706;
  --am-dim: #fef3e2;
  --gr: #059669;
  --gr-dim: #e7f8f1;
  --rd: #dc2626;
  --rd-dim: #fdeeee;
  --pu: #7c3aed;
  --pu-dim: #f3efff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .28);
  --r: 14px;
  --side-w: 244px;
  --side-w-mini: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 90% -8%, rgba(37, 99, 235, .05), transparent 60%),
    radial-gradient(700px 380px at -6% 108%, rgba(124, 58, 237, .035), transparent 55%),
    var(--bg0);
  color: var(--tx);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(37, 99, 235, .18); }
a { color: var(--cy); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 布局外壳 ============ */
.shell { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--side-w); flex: none;
  background: var(--bg1);
  border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  z-index: 40;
  transition: width .22s ease, transform .25s ease;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 18px 16px 14px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; letter-spacing: 1px;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .55);
}
.brand-title { font-weight: 700; font-size: 14.5px; letter-spacing: .2px; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--tx3); margin-top: 1px; white-space: nowrap; }
.side-collapse {
  margin-left: auto; flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line2); background: var(--bg1); color: var(--tx3);
  cursor: pointer; font-size: 12px; line-height: 1;
  transition: all .15s; display: grid; place-items: center;
}
.side-collapse:hover { color: var(--cy); border-color: #bfd3f7; background: var(--cy-dim); }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; }
.nav-group { font-size: 10.5px; color: var(--tx3); letter-spacing: 2px; padding: 16px 10px 6px; font-weight: 600; white-space: nowrap; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px 11px; margin-bottom: 2px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--tx2); font-size: 13.5px;
  transition: all .15s; text-align: left; white-space: nowrap; position: relative;
}
.nav-item:hover { background: #f1f5f9; color: var(--tx); }
.nav-item.on { background: var(--cy-dim); color: var(--cy); font-weight: 600; }
.nav-item.on::before {
  content: ""; position: absolute; left: -12px; top: 22%; bottom: 22%;
  width: 3px; border-radius: 3px; background: var(--cy);
}
.nav-item .ico { width: 20px; text-align: center; font-size: 14.5px; opacity: .85; flex: none; }
.nav-item .bdg { margin-left: auto; font-size: 10.5px; background: #eef2f7; color: var(--tx2); padding: 1px 8px; border-radius: 20px; font-weight: 600; }
.nav-item.on .bdg { background: rgba(37, 99, 235, .14); color: var(--cy); }
.side-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
}
.side-user .nm { font-size: 13px; font-weight: 600; white-space: nowrap; }
.side-user .rl { font-size: 10.5px; color: var(--tx3); white-space: nowrap; }
.btn-exit { margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--tx3); font-size: 11px; padding: 4px 9px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.btn-exit:hover { color: var(--rd); border-color: #f3c1c1; background: var(--rd-dim); }

/* 折叠态 */
.shell.mini .sidebar { width: var(--side-w-mini); }
.shell.mini .brand { padding: 18px 12px 14px; justify-content: center; flex-wrap: wrap; }
.shell.mini .brand > div:not(.brand-mark) { display: none; }
.shell.mini .brand-title, .shell.mini .brand-sub { display: none; }
.shell.mini .side-collapse { position: absolute; right: -13px; top: 24px; z-index: 5; transform: rotate(180deg); background: var(--bg1); box-shadow: var(--shadow); }
.shell.mini .nav-item { justify-content: center; padding: 9px 0; }
.shell.mini .nav-item span:not(.ico) { display: none; }
.shell.mini .nav-group { font-size: 0; padding: 14px 0 4px; text-align: center; }
.shell.mini .nav-group::before { content: "·"; font-size: 16px; letter-spacing: 0; }
.shell.mini .nav-item .bdg { display: none; }
.shell.mini .side-foot { padding: 12px 8px; }
.shell.mini .side-user { flex-direction: column; gap: 6px; }
.shell.mini .side-user > div:not(.avatar) { display: none; }
.shell.mini .btn-exit { margin-left: 0; padding: 4px 0; width: 100%; text-align: center; }

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hamburger { display: none; }
.crumb { font-size: 15px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.crumb .sep { color: #cbd5e1; font-weight: 400; }
.crumb .sub {
  color: var(--tx3); font-weight: 400; font-size: 11px;
  border: 1px solid var(--line2); background: var(--card2);
  padding: 2px 9px; border-radius: 20px;
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.net-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--tx2); background: var(--gr-dim); border: 1px solid #c7ecd9; padding: 4px 11px; border-radius: 20px; }
.net-dot i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 55% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); } }
.content { flex: 1; padding: 24px 28px 48px; max-width: 1480px; width: 100%; margin: 0 auto; }
.side-mask { display: none; }

/* ============ 通用组件 ============ */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: .2px; color: var(--tx); }
.page-head .desc { color: var(--tx3); font-size: 13px; margin-top: 6px; max-width: 920px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 15px; font-weight: 700; }
.card-head .sub { color: var(--tx3); font-size: 12px; }
.card-head .end { margin-left: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line2); background: var(--bg1);
  color: var(--tx2); font-size: 12.5px; padding: 7px 14px; font-weight: 500;
  border-radius: 9px; cursor: pointer; transition: all .15s;
}
.btn:hover { border-color: #bfd3f7; color: var(--cy); background: #f7faff; }
.btn.pri {
  background: linear-gradient(135deg, #3b82f6, #2563eb); border: 0; color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .55);
}
.btn.pri:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 6px 16px -4px rgba(37, 99, 235, .6); }
.btn.gr { background: linear-gradient(135deg, #10b981, #059669); border: 0; color: #fff; font-weight: 600; box-shadow: 0 4px 12px -4px rgba(5, 150, 105, .5); }
.btn.gr:hover { filter: brightness(1.08); color: #fff; }
.btn.danger { color: var(--rd); border-color: #f3c6c6; background: var(--bg1); }
.btn.danger:hover { background: var(--rd-dim); border-color: #ef9a9a; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }

/* ---------- 表单 ---------- */
.input, select.input, textarea.input {
  background: var(--bg1); border: 1px solid var(--line2);
  color: var(--tx); border-radius: 9px; padding: 8px 12px; font-size: 13px;
  font-family: inherit; outline: none; transition: all .15s; width: 100%;
}
.input::placeholder { color: #a8b3c5; }
.input:hover { border-color: #c3cede; }
.input:focus { border-color: var(--cy); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
textarea.input { resize: vertical; min-height: 74px; line-height: 1.6; }
label.fl { display: block; font-size: 12px; color: var(--tx2); font-weight: 600; margin: 12px 0 5px; }
label.fl b { color: var(--rd); font-weight: 400; }
input[type="range"] { accent-color: var(--cy); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 20px;
  background: #eef2f7; color: var(--tx2); border: 1px solid transparent; white-space: nowrap;
}
.tag.cy { background: var(--cy-dim); color: #1d4ed8; }
.tag.am { background: var(--am-dim); color: #b45309; }
.tag.gr { background: var(--gr-dim); color: #047857; }
.tag.rd { background: var(--rd-dim); color: #b91c1c; }
.tag.pu { background: var(--pu-dim); color: #6d28d9; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; color: var(--tx3); font-weight: 700;
  padding: 8px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; letter-spacing: 1px; text-transform: uppercase;
}
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #f8fafc; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1250px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px 13px;
  position: relative; overflow: hidden; box-shadow: var(--shadow); transition: all .18s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(15, 23, 42, .05), 0 14px 30px -14px rgba(15, 23, 42, .18); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--k, var(--cy)); opacity: .9; }
.kpi .k-v { font-size: 25px; font-weight: 800; letter-spacing: .3px; font-variant-numeric: tabular-nums; color: var(--tx); }
.kpi .k-v small { font-size: 12px; font-weight: 500; color: var(--tx3); margin-left: 2px; }
.kpi .k-n { font-size: 11.5px; color: var(--tx3); margin-top: 2px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button {
  background: none; border: 0; color: var(--tx2); font-size: 13.5px; padding: 9px 16px;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
  transition: all .15s; border-radius: 8px 8px 0 0;
}
.tabs button:hover { color: var(--tx); background: #f8fafc; }
.tabs button.on { color: var(--cy); border-color: var(--cy); font-weight: 600; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar .input { width: auto; min-width: 170px; }
.toolbar .cnt { margin-left: auto; color: var(--tx3); font-size: 12px; }
.muted { color: var(--tx3); font-size: 12px; }

/* ---------- 进度条 ---------- */
.progress { height: 6px; background: #eef2f7; border-radius: 6px; overflow: hidden; flex: 1; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #2563eb); transition: width .4s; }
.progress i.am { background: linear-gradient(90deg, #f59e0b, #d97706); }
.progress i.gr { background: linear-gradient(90deg, #34d399, #059669); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: var(--tx3); padding: 36px 0; font-size: 13px; }
.empty .ico {
  font-size: 16px; display: grid; place-items: center; margin: 0 auto 10px;
  width: 46px; height: 46px; border-radius: 50%;
  background: #eef2f7; color: #a8b3c5;
}

/* ============ 雷达扫掠动画（浅色版） ============ */
.radar-wrap { position: relative; width: 100%; aspect-ratio: 1; max-width: 320px; margin: 0 auto; }
.radar-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(37, 99, 235, .07) 0%, transparent 70%),
    repeating-radial-gradient(circle at center, transparent 0 23%, rgba(37, 99, 235, .08) 23% 23.5%);
  border: 1px solid rgba(37, 99, 235, .22);
  overflow: hidden;
}
.radar-disc::before, .radar-disc::after { content: ""; position: absolute; background: rgba(37, 99, 235, .12); }
.radar-disc::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar-disc::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(37, 99, 235, .3), rgba(37, 99, 235, .05) 60deg, transparent 110deg);
  animation: sweep 4.2s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-blip { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); animation: blip 4.2s infinite; }
.radar-blip.cy { background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.radar-blip.gr { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
@keyframes blip { 0%, 12% { opacity: 0; } 16% { opacity: 1; } 60% { opacity: .9; } 75%, 100% { opacity: .2; } }
.radar-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.radar-center b { font-size: 26px; letter-spacing: 1px; color: var(--tx); }
.radar-center span { font-size: 11px; color: var(--tx3); letter-spacing: 2px; }

/* ============ 信号流 ============ */
.sig-item { display: flex; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.sig-item:last-child { border-bottom: 0; }
.sig-ico { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.sig-body { flex: 1; min-width: 0; }
.sig-title { font-weight: 600; font-size: 13.5px; }
.sig-title .dir { color: var(--tx3); font-weight: 400; font-size: 12px; margin-left: 8px; }
.sig-cont { color: var(--tx2); font-size: 12.5px; margin-top: 2px; }
.sig-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; align-items: center; font-size: 11px; color: var(--tx3); }
.sig-meta a { font-size: 11px; font-weight: 500; }
.meter { display: inline-flex; align-items: center; gap: 5px; }
.meter .bar { width: 52px; height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; }

/* AI 信号解读展示块 */
.sig-ai {
  margin-top: 8px; padding: 9px 13px;
  border-left: 3px solid var(--pu); background: var(--pu-dim);
  border-radius: 6px; font-size: 12.5px; color: #5b21b6;
  white-space: pre-wrap; line-height: 1.8;
}

/* ============ 方向卡片 ============ */
.dir-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 13px; background: var(--card); box-shadow: var(--shadow); transition: all .18s; }
.dir-card:hover { box-shadow: 0 4px 8px rgba(15, 23, 42, .05), 0 14px 30px -14px rgba(15, 23, 42, .18); }
.dir-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dir-top h3 { font-size: 15.5px; font-weight: 700; }
.heat { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.heat b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--tx); }
.heat .flame { width: 90px; }
.dir-sec { margin-top: 12px; font-size: 13px; }
.dir-sec .lb { font-size: 11px; color: var(--cy); letter-spacing: 1px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.dir-sec .lb::before { content: "▸"; }
.dir-sec p, .dir-sec li { color: var(--tx2); font-size: 12.8px; }
.dir-sec ul { padding-left: 18px; }

/* ============ 周报 ============ */
.rep-item { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; transition: background .15s; }
.rep-item:hover { background: #f8fafc; }
.rep-item:hover .wk { color: var(--cy); }
.rep-item .wk { font-weight: 700; font-size: 15px; width: 76px; flex: none; transition: color .15s; }
.rep-item .per { color: var(--tx2); font-size: 12.5px; width: 150px; flex: none; font-variant-numeric: tabular-nums; }
.rep-item .sum { flex: 1; color: var(--tx2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-doc { max-width: 980px; }
.report-doc h1 { font-size: 20px; margin-bottom: 4px; }
.report-doc .meta { color: var(--tx3); font-size: 12px; margin-bottom: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.report-doc h2 { font-size: 15px; margin: 22px 0 8px; padding-left: 10px; border-left: 3px solid var(--cy); }

/* ============ 企业卡片 ============ */
.com-card { border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; background: var(--card); cursor: pointer; transition: all .18s; box-shadow: var(--shadow); }
.com-card:hover { border-color: #bfd3f7; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(37, 99, 235, .25); }
.com-card .row1 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.com-card .row1 b { font-size: 14.5px; }
.com-card .score { margin-left: auto; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.com-card .score small { font-size: 10px; color: var(--tx3); font-weight: 400; }
.com-card .desc { color: var(--tx2); font-size: 12.3px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.com-card .meta { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.com-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
@media (max-width: 1100px) { .com-grid { grid-template-columns: 1fr; } }

/* ============ 抽屉 ============ */
.drawer-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .32); backdrop-filter: blur(2px); z-index: 60; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(760px, 94vw); z-index: 61;
  background: #fbfcfe; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: slidein .24s cubic-bezier(.22, .8, .36, 1);
}
@keyframes slidein { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-h { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg1); border-radius: 0; }
.drawer-h h2 { font-size: 17px; }
.drawer-h .sub { color: var(--tx3); font-size: 12px; margin-top: 2px; }
.drawer-x { margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--tx2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; transition: all .15s; flex: none; }
.drawer-x:hover { color: var(--rd); border-color: #f3c6c6; background: var(--rd-dim); }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }
.drawer-b .card { box-shadow: none; }
.fq-block { border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; margin-bottom: 11px; background: var(--bg1); }
.fq-block .q { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.fq-block .q .qn { background: var(--cy-dim); color: var(--cy); font-size: 10px; padding: 2px 8px; border-radius: 12px; letter-spacing: 1px; font-weight: 700; }
.fq-block p { color: var(--tx2); font-size: 12.8px; white-space: pre-wrap; }

/* ============ 模态 ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 70; display: grid; place-items: center; backdrop-filter: blur(3px); animation: fadein .2s ease; }
.modal {
  width: min(560px, 92vw); max-height: 86vh; overflow-y: auto;
  background: var(--bg1); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; box-shadow: var(--shadow-lg);
  animation: pop .2s cubic-bezier(.22, .8, .36, 1);
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 16px; margin-bottom: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ============ 登录页（左右分栏） ============ */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-left {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 52px; color: #eaf1ff;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(96, 165, 250, .28), transparent 60%),
    radial-gradient(700px 460px at 10% 95%, rgba(124, 58, 237, .22), transparent 55%),
    linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
}
.login-left::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 78% 32%, rgba(255, 255, 255, .1), transparent 42%);
}
.login-brandline { display: flex; align-items: center; gap: 12px; }
.login-brandline .brand-mark { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); color: #fff; }
.login-brandline b { font-size: 15px; letter-spacing: .5px; }
.login-brandline span { display: block; font-size: 11px; opacity: .65; }
.login-hero h1 { font-size: 30px; line-height: 1.4; font-weight: 800; letter-spacing: .5px; max-width: 480px; }
.login-hero p { margin-top: 12px; font-size: 13.5px; opacity: .78; max-width: 440px; }
.login-hero .tagline { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.login-hero .tagline span {
  font-size: 11.5px; padding: 4px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.login-left .radar-wrap { width: 210px; margin: 26px 0 0; }
.login-left .radar-disc { border-color: rgba(255, 255, 255, .28); }
.login-left .radar-disc::before, .login-left .radar-disc::after { background: rgba(255, 255, 255, .18); }
.login-left .radar-sweep { background: conic-gradient(from 0deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .04) 60deg, transparent 110deg); }
.login-left .radar-blip { background: #fde68a; box-shadow: 0 0 0 3px rgba(253, 230, 138, .25); }
.login-left .radar-blip.cy { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.login-left .radar-blip.gr { background: #a7f3d0; box-shadow: 0 0 0 3px rgba(167, 243, 208, .25); }
.login-left .radar-center b { color: #fff; }
.login-left .radar-center span { color: rgba(255, 255, 255, .65); }
.login-foot { font-size: 11px; opacity: .55; }
.login-right { display: grid; place-items: center; padding: 32px 24px; background: var(--bg0); }
.login-box { width: min(400px, 100%); }
.login-card {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 30px 26px; box-shadow: var(--shadow);
}
.login-card h1 { font-size: 20px; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.login-card .sub { color: var(--tx3); font-size: 12.5px; margin: 5px 0 20px; }
.login-mini-radar { display: none; }
.login-tip { margin-top: 16px; font-size: 11.5px; color: var(--tx3); border-top: 1px dashed var(--line2); padding-top: 12px; line-height: 1.9; }
.login-tip b { color: var(--tx2); }
.login-err { background: var(--rd-dim); border: 1px solid #f3c6c6; color: #b91c1c; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; margin-bottom: 12px; }
@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-mini-radar { display: block; width: 76px; height: 76px; margin: 0 auto 10px; }
}

/* ============ 能力图谱 ============ */
.unit-card { border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; background: var(--card); box-shadow: var(--shadow); }
.unit-card h3 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unit-card h3 .end { margin-left: auto; display: inline-flex; gap: 6px; }
.cap-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.8px; }
.cap-row:last-child { border-bottom: 0; }
.cap-row .nm { width: 150px; flex: none; font-weight: 600; color: var(--tx); }
.cap-row .ds { flex: 1; color: var(--tx3); font-size: 11.8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 维度评分：hover 名称弹出深色气泡显示评分依据 */
.dim-tip { position: relative; cursor: default; }
.dim-tip .tip-ico { font-style: normal; font-size: 11px; color: var(--tx3); margin-left: 2px; }
.dim-tip:hover .tip-ico { color: var(--cy); }
.dim-tip .tip-bubble {
  position: absolute; left: 0; top: calc(100% + 9px); z-index: 40;
  width: max-content; max-width: 300px;
  background: #1e293b; color: #fff; font-weight: 400; font-size: 11.8px; line-height: 1.55;
  padding: 7px 10px; border-radius: 6px; box-shadow: 0 6px 18px rgba(15, 23, 42, .28);
  white-space: normal; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}
.dim-tip .tip-bubble::before {
  content: ''; position: absolute; top: -4px; left: 14px;
  border: 4px solid transparent; border-top: 0; border-bottom-color: #1e293b;
}
.dim-tip:hover .tip-bubble { opacity: 1; visibility: visible; transform: translateY(0); }
.stars { display: inline-flex; gap: 2px; color: #f59e0b; font-size: 11px; flex: none; }
.stars .off { color: #dbe2ee; }

/* ============ 其他 ============ */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.notice { border: 1px solid #f5d9a8; background: var(--am-dim); border-radius: 11px; padding: 12px 15px; font-size: 12.8px; color: #92400e; }
.notice.gr { border-color: #bfe8d4; background: var(--gr-dim); color: #065f46; }
.notice.rd { border-color: #f3c6c6; background: var(--rd-dim); color: #991b1b; }
.notice b { font-weight: 700; }
.steps { counter-reset: st; list-style: none; }
.steps li { counter-increment: st; display: flex; gap: 12px; padding: 8px 0; font-size: 13px; color: var(--tx2); }
.steps li::before {
  content: counter(st, decimal-leading-zero); font-size: 11px; font-weight: 800; color: var(--cy);
  background: var(--cy-dim); border-radius: 7px; padding: 2px 7px; height: fit-content; margin-top: 2px; flex: none;
}
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: #0f172a; border: 1px solid #1e293b; color: #f1f5f9;
  padding: 10px 20px; border-radius: 11px; font-size: 13px; z-index: 99;
  opacity: 0; pointer-events: none; transition: all .25s; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mono { font-variant-numeric: tabular-nums; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mb14 { margin-bottom: 14px; }
.flex { display: flex; gap: 10px; align-items: center; } .flex1 { flex: 1; }
.chart-box { width: 100%; height: 300px; }
.fade-enter-active { transition: opacity .2s ease, transform .2s ease; }
.fade-enter-from { opacity: 0; transform: translateY(6px); }

/* ============ 响应式：移动端抽屉侧栏 ============ */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-102%); box-shadow: none; }
  .shell.side-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .shell.side-open .side-mask { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 39; animation: fadein .2s ease; }
  .side-collapse { display: none; }
  .shell.mini .sidebar { width: var(--side-w); }
  .shell.mini .brand > div:not(.brand-mark) { display: block; }
  .shell.mini .nav-item { justify-content: flex-start; padding: 8px 11px; }
  .shell.mini .nav-item span:not(.ico) { display: inline; }
  .shell.mini .nav-group { font-size: 10.5px; padding: 16px 10px 6px; }
  .shell.mini .nav-group::before { content: ""; }
  .shell.mini .nav-item .bdg { display: inline-block; }
  .shell.mini .side-user { flex-direction: row; gap: 10px; }
  .shell.mini .side-user > div:not(.avatar) { display: block; }
  .shell.mini .btn-exit { width: auto; padding: 4px 9px; margin-left: auto; }
  .hamburger {
    display: grid; place-items: center; width: 34px; height: 34px; flex: none;
    border: 1px solid var(--line2); background: var(--bg1); color: var(--tx2);
    border-radius: 9px; cursor: pointer; font-size: 15px;
  }
  .topbar { padding: 10px 16px; }
  .content { padding: 18px 16px 40px; }
  .crumb .sub { display: none; }
}
