/* ============================================================
   星探 · 未来价值 — 共享设计系统（静态，无构建）
   深色科技感 · 背景 #0a0e1a · 主色 #00d4ff
   ============================================================ */

:root {
  --bg-0: #060a13;
  --bg-1: #0a0e1a;
  --bg-2: #0f1626;
  --card: rgba(255, 255, 255, 0.04);
  --card-2: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(0, 212, 255, 0.28);
  --accent: #00d4ff;
  --accent-2: #4facfe;
  --accent-3: #7c5cff;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --text: #e6edf7;
  --text-2: #9fb0cc;
  --text-3: #7d8ca3;
  --grad: linear-gradient(135deg, #00d4ff 0%, #4facfe 45%, #7c5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(124, 92, 255, 0.14));
  --glow: 0 0 18px rgba(0, 212, 255, 0.28), 0 0 46px rgba(0, 212, 255, 0.10);
  --glow-soft: 0 0 14px rgba(0, 212, 255, 0.14);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(120, 140, 180, 0.28); border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 背景光效 ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 560px at 88% -10%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(900px 620px at -8% 24%, rgba(124, 92, 255, 0.10), transparent 58%),
    radial-gradient(760px 500px at 55% 115%, rgba(0, 212, 255, 0.06), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 14%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 42%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 78%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 92%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 8%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 58%, rgba(255,255,255,.28) 50%, transparent 51%);
  background-size: 480px 480px;
  opacity: .5;
}

/* ---------- 布局壳（星探 2.0：左导航 + 右内容，方案见 reports/ui_compare_0926/REPORT.md 3.2） ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 50;
  background: rgba(6, 10, 19, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 20px 14px 16px; overflow-y: auto;
}
.main { flex: 1; margin-left: 264px; min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 26px 40px; }

/* 品牌区（侧栏顶部） */
.sidebar .brand { padding: 2px 6px 18px; }
.sidebar .brand:hover { text-shadow: none; opacity: .92; }

/* ---------- 侧栏导航：图标 + 文字 + active 泛青 ---------- */
.sidebar .nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px 8px 14px; border-radius: 10px;
  color: var(--text-2); font-size: 15px; border: 1px solid transparent;
  transition: all .18s ease; white-space: normal; line-height: 1.35;
}
.nav-item:hover { color: var(--text); background: var(--card-2); text-shadow: none; }
.nav-item.active {
  color: var(--accent); border-color: var(--line-strong);
  background: rgba(0, 212, 255, 0.08); text-shadow: 0 0 8px rgba(0, 212, 255, 0.35);
}
.nav-item .nav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nav-item .nav-label { font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: .02em; }
.nav-item .nav-desc {
  font-size: 12.5px; line-height: 1.5; color: var(--text-3); font-weight: 400;
  letter-spacing: .01em; text-shadow: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
.nav-item:hover .nav-desc { color: var(--text-2); }
.nav-item.active .nav-desc { color: rgba(0, 212, 255, 0.78); text-shadow: none; -webkit-line-clamp: 3; }
.nav-icon { width: 22px; text-align: center; font-size: 17px; flex-shrink: 0; }
.nav-sep {
  margin-top: 16px; padding: 0 12px 5px;
  font-size: 12px; color: var(--text-3); letter-spacing: .18em;
}
.sidebar .nav + .nav-sep { margin-top: 14px; }
.nav-sep + .nav { margin-top: 2px; }
.sidebar-foot {
  margin-top: auto; padding: 12px; font-size: 12.5px; color: var(--text-3);
  line-height: 1.9; border-top: 1px solid var(--line);
}
.nav-keys {
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px; padding: 1px 5px; font-size: 9.5px; color: var(--text-2);
}

/* ---------- 侧栏「我要找代言」CTA（独立 SaaS 主行动，16 页统一） ---------- */
.nav-cta {
  display: flex; align-items: center; gap: 9px; margin: 2px 0 12px;
  padding: 9px 12px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.16), rgba(124, 92, 255, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.42);
  box-shadow: var(--glow-soft); transition: all .18s ease;
}
.nav-cta:hover { border-color: var(--accent); background: linear-gradient(120deg, rgba(0, 212, 255, 0.24), rgba(124, 92, 255, 0.18)); box-shadow: var(--glow); text-shadow: none; }
.nav-cta .nc-icon { font-size: 17px; flex-shrink: 0; }
.nav-cta .nc-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nav-cta .nc-txt b { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: .02em; }
.nav-cta .nc-txt small { font-size: 11px; color: rgba(0, 212, 255, 0.85); line-height: 1.4; }
.nav-cta .nc-go { color: var(--accent); font-size: 13px; flex-shrink: 0; }

/* ---------- 首页「我要寻找代言人」首屏主行动（index.html） ---------- */
.find-cta { margin-top: 14px; padding: 18px 22px; border: 1px solid rgba(0, 212, 255, 0.35); background: linear-gradient(120deg, rgba(0, 212, 255, 0.10), rgba(124, 92, 255, 0.08) 60%, var(--card)); }
.find-cta-body { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.find-cta-title { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.find-cta-sub { font-size: 12.5px; color: var(--text-2); margin: 6px 0 12px; line-height: 1.7; max-width: 760px; }
.find-cta-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-cta {
  border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.07); color: var(--text-2);
  border-radius: 999px; padding: 5px 13px; font-size: 12px; cursor: pointer; transition: all .15s ease;
}
.chip-cta:hover { color: var(--accent); border-color: var(--accent); background: rgba(0, 212, 255, 0.13); }
.find-cta-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 15px; font-weight: 800; color: #04121a; text-decoration: none;
  background: var(--grad); border-radius: 999px; padding: 13px 26px;
  box-shadow: var(--glow); transition: all .18s ease; white-space: nowrap;
}
.find-cta-btn:hover { filter: brightness(1.12); box-shadow: var(--glow), 0 0 30px rgba(0, 212, 255, 0.25); color: #04121a; text-shadow: none; }
@media (max-width: 720px) {
  .find-cta-body { flex-direction: column; align-items: stretch; }
  .find-cta-btn { justify-content: center; }
}

/* ---------- 内容区顶栏（页标题 + ⌘K 提示 + 账户区） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 10, 19, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 26px; height: 58px; flex: none;
}
.topbar-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.topbar-title::before {
  content: ""; width: 4px; height: 15px; border-radius: 3px;
  background: var(--grad); box-shadow: var(--glow-soft); flex-shrink: 0;
}
.topbar-right { display: flex; align-items: center; gap: 14px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: .04em; color: var(--text); white-space: nowrap; }
.brand .logo {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad); box-shadow: var(--glow-soft);
  display: grid; place-items: center; font-size: 13px; color: #04121a; font-weight: 800;
}
.brand small { color: var(--text-3); font-weight: 500; }
.kbd-hint { font-size: 11px; color: var(--text-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
}
@media (max-width: 720px) {
  .kbd-hint { display: none; }
  .topbar { padding: 0 14px; gap: 8px; height: 52px; }
  .topbar-right { gap: 8px; }
  .topbar-title { font-size: 13.5px; }
  .content { padding: 0 14px 36px; }
  .page-title { font-size: 19px; }
  .kpi .k-value { font-size: 24px; }
}

/* ---------- 账户区（整站 Gate：已登录账户胶囊 + 退出，无登录按钮） ---------- */
.auth-area { display: flex; align-items: center; gap: 10px; flex: none; }
.auth-user {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text); padding: 3px 6px 3px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  white-space: nowrap;
}
.auth-user .au-name { font-weight: 600; font-variant-numeric: tabular-nums; }
.auth-logout { border: none; background: transparent; color: var(--text-3); font-size: 12.5px; cursor: pointer; padding: 4px 9px; border-radius: 999px; }
.auth-logout:hover { color: var(--danger); background: rgba(248, 113, 113, 0.08); }
.auth-loading { font-size: 12px; color: var(--text-3); padding: 3px 8px; }

/* ---------- 卡片 ---------- */


.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(3, 7, 18, 0.45);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: rgba(0, 212, 255, 0.22); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.card-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
}
.card-title::before {
  content: ""; width: 4px; height: 15px; border-radius: 3px;
  background: var(--grad); box-shadow: var(--glow-soft);
}
.card-sub { font-size: 12.5px; color: var(--text-3); }
.muted { color: var(--text-3); }

/* ---------- 按钮 / 下拉 / 输入 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--accent);
  background: rgba(0, 212, 255, 0.08); font-size: 13px; font-family: var(--font);
  transition: all .2s ease; user-select: none; white-space: nowrap;
}
.btn:hover { background: rgba(0, 212, 255, 0.16); box-shadow: var(--glow-soft); }
.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #4facfe);
  color: #04121a; border: none; font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(135deg, #2adcff, #6ab7ff); box-shadow: var(--glow); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }

select, input[type="text"], input[type="search"], input:not([type]) {
  padding: 8px 12px; font-size: 13px; font-family: var(--font);
  background: rgba(6, 10, 19, 0.75); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:focus, input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.10); }
select option { background: var(--bg-2); color: var(--text); }
.field { display: inline-flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; color: var(--text-2); }

/* ---------- KPI ---------- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
  margin: 20px 0;
}
.kpi {
  padding: 16px 18px; position: relative; overflow: hidden;
  container-type: inline-size;
}
.kpi .k-label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi .k-value {
  font-size: 28px; font-weight: 700; letter-spacing: .01em; margin-top: 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kpi .k-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.kpi .k-glow { position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.14), transparent 70%); pointer-events: none; }
.kpi.plain .k-value {
  background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: currentColor;
  color: var(--text);
}

/* 指标排版：重要指标用色彩变体（老站 style.css L268-336 顶边 2px 着色），核心加大、次要降级 */
.kpi.cyan  { border-top: 2px solid rgba(0, 212, 255, 0.75); }
.kpi.purple{ border-top: 2px solid rgba(124, 92, 255, 0.75); }
.kpi.amber { border-top: 2px solid rgba(251, 191, 36, 0.75); }
.kpi.green { border-top: 2px solid rgba(52, 211, 153, 0.75); }
.kpi.cyan .k-glow  { background: radial-gradient(circle, rgba(0, 212, 255, 0.16), transparent 70%); }
.kpi.purple .k-glow{ background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 70%); }
.kpi.amber .k-glow { background: radial-gradient(circle, rgba(251, 191, 36, 0.16), transparent 70%); }
.kpi.green .k-glow { background: radial-gradient(circle, rgba(52, 211, 153, 0.16), transparent 70%); }
.kpi.lg .k-value { font-size: min(34px, 13cqw); }
.kpi.lg .k-sub { font-size: 12.5px; }
.kpi.sm .k-value { font-size: min(21px, 8.8cqw); }
.kpi.sm .k-value .suffix { font-size: 12.5px; }
.kpi.sm .k-sub { font-size: 12px; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2); background: var(--card-2);
  white-space: nowrap;
}
.badge.accent { color: var(--accent); border-color: var(--line-strong); background: rgba(0, 212, 255, 0.08); }
.badge.ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.badge.warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.badge.danger { color: var(--danger); border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }
.badge.gray-red { color: #cbd5e1; border-color: rgba(248, 113, 113, 0.35); background: rgba(120, 113, 108, 0.14); }
.badge.purple { color: #a78bfa; border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.08); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 780px; font-size: 13px; }
.tbl th {
  text-align: left; padding: 10px 12px; font-size: 12.5px; color: var(--text-2);
  font-weight: 600; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02); white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.08); vertical-align: top; }
.tbl tbody tr { cursor: pointer; transition: background .15s ease; }
.tbl tbody tr:hover { background: rgba(0, 212, 255, 0.05); }
.tbl tbody tr.dim { opacity: .55; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .pos { color: var(--ok); }
.tbl .neg { color: var(--danger); }
.tbl .fdr-hot { color: var(--danger); font-weight: 700; }
.tbl .fdr-warm { color: var(--warn); font-weight: 600; }
.tbl .link-cell { color: var(--accent); font-size: 12.5px; cursor: pointer; }
.tbl .link-cell:hover { text-decoration: underline; }

/* ---------- 进度条 ---------- */
.bar-row { margin-bottom: 14px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.bar-name { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.bar-meta { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 0 10px rgba(0, 212, 255, 0.25); }

/* ---------- 未来事件时间线 ---------- */
.evt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.evt-card { padding: 14px 16px; }
.evt-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evt-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.evt-cats { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 9px; }
.evt-cat { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 3px 0; color: var(--text-2); }
.evt-cat b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- 风险提示 ---------- */
.risk-list { list-style: none; }
.risk-list li {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 12px; margin-bottom: 8px; border-radius: 10px;
  background: rgba(248, 113, 113, 0.06); border: 1px solid rgba(248, 113, 113, 0.18);
  font-size: 13px; color: #fecaca;
}
.risk-list li:last-child { margin-bottom: 0; }
.risk-list li::before { content: "⚠"; flex-shrink: 0; }

/* ---------- 空态 / 错误 ---------- */
.empty-state {
  text-align: center; padding: 46px 20px; color: var(--text-2);
}
.empty-state .es-icon { font-size: 34px; margin-bottom: 10px; opacity: .8; }
.empty-state h3 { font-size: 15px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.empty-state p { font-size: 13px; color: var(--text-3); }
.loading-state { text-align: center; padding: 60px 20px; color: var(--text-2); font-size: 13px; }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.15); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 顶部标题区 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 26px 0 4px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 16px 0; }
.filters .spacer { flex: 1; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.section { margin-top: 22px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 3px; border-radius: 2px; }
.legend .sw.dash { height: 0; border-top: 2px dashed; }
.legend .sw.band { height: 9px; border-radius: 3px; background: rgba(0, 212, 255, 0.14); border: 1px solid rgba(0, 212, 255, 0.3); }

/* ---------- 布局网格 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 960px) { .grid-2, .grid-2-1 { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 7, 18, 0.66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 20px;
  opacity: 0; transition: opacity .18s ease; overflow-y: auto;
}
.modal-mask.show { opacity: 1; }
.modal {
  width: 100%; max-width: 620px; margin: auto 0;
  background: linear-gradient(180deg, #101a30, #0b1222);
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), var(--glow-soft);
  transform: translateY(14px) scale(.985); transition: transform .18s ease;
  overflow: hidden;
}
.modal-mask.show .modal { transform: none; }
.modal.wide { max-width: 860px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
}
.modal-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.modal-title::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: var(--grad); }
.modal-close {
  border: none; background: none; color: var(--text-2); font-size: 19px; cursor: pointer;
  line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.modal-close:hover { color: var(--text); background: var(--card-2); }
.modal-body { padding: 18px 20px; max-height: 62vh; overflow-y: auto; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.ml { margin-top: 12px; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.dl { display: grid; grid-template-columns: 84px 1fr; gap: 7px 12px; font-size: 13px; }
.dl dt { color: var(--text-2); }
.dl dd { color: var(--text); }
.dim-chip { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--card-2); margin-bottom: 8px; font-size: 13px; }
.dim-chip:last-child { margin-bottom: 0; }
.dim-chip b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- ⌘K 搜索 ---------- */
.cmdk-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 7, 18, 0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
  opacity: 0; transition: opacity .15s ease;
}
.cmdk-mask.show { opacity: 1; }
.cmdk {
  width: min(560px, 92vw);
  background: linear-gradient(180deg, #101a30, #0b1222);
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), var(--glow-soft);
  overflow: hidden;
  transform: translateY(10px) scale(.99); transition: transform .15s ease;
}
.cmdk-mask.show .cmdk { transform: none; }
.cmdk input {
  width: 100%; border: none; outline: none; background: transparent;
  color: var(--text); font-size: 15px; font-family: var(--font);
  padding: 17px 20px;
}
.cmdk-head { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.cmdk-search-icon { padding-left: 18px; color: var(--text-3); }
.cmdk-list { max-height: 44vh; overflow-y: auto; }
.cmdk-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.cmdk-item:hover, .cmdk-item.active { background: rgba(0, 212, 255, 0.07); }
.cmdk-item .ci-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cmdk-item .ci-tier { font-size: 12px; color: var(--text-2); }
.cmdk-empty { padding: 26px 20px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ---------- 页脚 ---------- */
.foot { max-width: 1480px; width: 100%; margin: 30px auto 0; padding: 16px 26px 8px; color: var(--text-3); font-size: 12.5px; border-top: 1px solid var(--line); }

/* ---------- 设置页 · 采集器状态中心（settings.html） ---------- */
.settings-entry {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  transition: all .18s ease; white-space: nowrap;
}
.settings-entry:hover { color: var(--accent); border-color: var(--line-strong); box-shadow: var(--glow-soft); }
.settings-entry.active { color: var(--accent); border-color: var(--line-strong); box-shadow: var(--glow-soft); }
.st-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--grad-soft); padding: 14px 18px; margin-bottom: 14px;
}
.st-hero .hero-main { display: flex; align-items: center; gap: 12px; }
.st-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 5px 14px;
}
.st-pill.ok { color: var(--ok); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); }
.st-pill.warn { color: var(--warn); background: rgba(251, 191, 36, 0.10); border: 1px solid rgba(251, 191, 36, 0.35); }
.st-pill.error { color: var(--danger); background: rgba(248, 113, 113, 0.10); border: 1px solid rgba(248, 113, 113, 0.35); }
.st-meta { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.st-dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.st-dot.warn { background: var(--warn); box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
.st-dot.error { background: var(--danger); box-shadow: 0 0 8px rgba(248, 113, 113, 0.8); }
.st-dot.na { background: var(--text-3); }
.lv-ok { color: var(--ok); }
.lv-warn { color: var(--warn); }
.lv-error { color: var(--danger); }
.collector-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  gap: 13px; margin-top: 4px;
}
.ccard {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 13px 15px 12px; position: relative;
  display: flex; flex-direction: column; gap: 9px; min-width: 0;
}
.ccard::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; }
.ccard.ok::before { background: var(--ok); }
.ccard.warn::before { background: var(--warn); }
.ccard.error::before { background: var(--danger); }
.ccard .c-head { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ccard .c-name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.ccard .c-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.c-badge { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.c-badge.ok { color: var(--ok); background: rgba(52, 211, 153, 0.10); border: 1px solid rgba(52, 211, 153, 0.3); }
.c-badge.warn { color: var(--warn); background: rgba(251, 191, 36, 0.10); border: 1px solid rgba(251, 191, 36, 0.3); }
.c-badge.error { color: var(--danger); background: rgba(248, 113, 113, 0.10); border: 1px solid rgba(248, 113, 113, 0.3); }
.kv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); }
.kv b { color: var(--text); font-weight: 600; }
.kv .cell { display: inline-flex; gap: 5px; align-items: baseline; }
.c-data {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px;
  font-size: 12.5px; background: rgba(255, 255, 255, 0.02);
}
.c-data .kv { color: var(--text-3); font-size: 12px; }
.c-reasons { display: flex; flex-direction: column; gap: 4px; }
.c-reason { font-size: 12.5px; line-height: 1.5; color: var(--text-2); display: flex; gap: 7px; }
.c-reason::before { content: "·"; color: var(--text-3); }
.prog { height: 6px; border-radius: 4px; background: rgba(148, 163, 184, 0.16); overflow: hidden; margin-top: 6px; }
.prog > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); }
.prog.pb-warn > i { background: linear-gradient(90deg, #f59e0b, var(--warn)); }
.prog.pb-error > i { background: linear-gradient(90deg, #ef4444, var(--danger)); }
.pending-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  font-size: 12.5px; color: var(--text-2);
}
.pending-chip.ok { border-color: rgba(52, 211, 153, 0.4); color: var(--ok); }
.pending-chip.warn { border-color: rgba(251, 191, 36, 0.4); color: var(--warn); }
.tbl.settings th { font-size: 12.5px; }
.tbl.settings td { font-size: 12.5px; vertical-align: middle; }
.scroll-x { overflow-x: auto; }
.th-note { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.login-note {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2);
  border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px 13px; margin-top: 10px;
}
.refresh-flash { color: var(--text-3); font-size: 12px; }

/* ============================================================
   登录页 · 整站 Gate（旧版 8000 loginView 复刻，2026-09-04）
   独立命名空间 login-*，仅 login.html 使用；视觉对齐旧版
   login-page/login-card/login-nebula，token 用星探 2.0 品牌色。
   ============================================================ */
.login-page {
  min-height: 100vh; display: grid; place-items: center; position: relative;
  padding: 24px 16px; overflow: hidden;
}
.login-nebula {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16), transparent 62%);
  top: -160px; left: -120px; pointer-events: none;
}
.login-nebula.b {
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 62%);
  top: auto; bottom: -200px; right: -140px; left: auto;
}
.login-nebula.c {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 60%);
  top: 40%; left: 58%; width: 420px; height: 420px;
}
.login-card {
  position: relative; z-index: 1; width: min(400px, 94vw);
  padding: 36px 34px 28px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 24, 44, 0.92), rgba(9, 15, 28, 0.94));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 46px rgba(0, 212, 255, 0.16),
    0 0 120px rgba(124, 92, 255, 0.12);
}
.login-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, transparent, #00d4ff, #7c5cff, transparent);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-mark {
  width: 46px; height: 46px; border-radius: 13px; background: var(--grad);
  box-shadow: var(--glow-soft); display: grid; place-items: center;
  font-size: 21px; font-weight: 800; color: #04121a; flex-shrink: 0;
}
.login-title { font-size: 20px; font-weight: 800; letter-spacing: 0.05em; }
.login-sub { font-size: 12px; color: var(--text-3); letter-spacing: 0.2em; margin-top: 3px; }
.login-tabs {
  display: flex; gap: 6px; margin-bottom: 20px; padding: 4px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.login-tab {
  flex: 1; padding: 9px 0; border: none; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: transparent; border-radius: 9px;
  transition: all 0.2s ease; letter-spacing: 0.06em; font-family: var(--font);
}
.login-tab:hover { color: var(--text); }
.login-tab.active {
  color: #04121a; background: linear-gradient(135deg, #00d4ff, #4facfe);
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.25);
}
.login-pane { animation: loginPane 0.2s ease; }
.login-pane[hidden] { display: none; }
@keyframes loginPane { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.login-field { margin-bottom: 15px; }
.login-field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; letter-spacing: 0.04em; }
.login-field input {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--text); font-size: 14px; outline: none; font-family: var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.login-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12), var(--glow-soft); }
.login-code-row { display: flex; gap: 8px; }
.login-code-row input { flex: 1; min-width: 0; }
.login-send {
  white-space: nowrap; height: 40px; align-self: center; min-width: 104px;
  border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.08);
  color: var(--accent); border-radius: 10px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease; font-family: var(--font);
}
.login-send:hover:not(:disabled) { background: rgba(0, 212, 255, 0.16); }
.login-send:disabled { opacity: 0.55; cursor: not-allowed; }
.login-err {
  margin-bottom: 12px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px;
  color: var(--danger); background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25);
}
.login-err.ok { color: var(--ok); background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.3); }
.login-err[hidden] { display: none; }
.login-btn {
  width: 100%; margin-top: 8px; padding: 12px; border-radius: 11px;
  border: none; cursor: pointer; font-size: 15px; font-weight: 700;
  color: #04121a; font-family: var(--font);
  background: linear-gradient(135deg, #00d4ff, #4facfe);
  box-shadow: 0 8px 26px rgba(0, 212, 255, 0.28);
  transition: all 0.2s ease; letter-spacing: 0.1em;
}
.login-btn:hover { box-shadow: 0 10px 34px rgba(0, 212, 255, 0.42); transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-hint {
  margin-top: 18px; padding: 10px 13px; border-radius: 10px;
  background: rgba(0, 212, 255, 0.06); border: 1px dashed rgba(0, 212, 255, 0.28);
  font-size: 12px; color: var(--text-2); text-align: center; line-height: 1.7;
}
.login-foot { margin-top: 22px; text-align: center; font-size: 11px; color: var(--text-3); letter-spacing: 0.12em; }
@media (max-width: 720px) {
  .login-card { padding: 28px 20px 22px; }
  .login-logo { gap: 9px; margin-bottom: 20px; }
  .login-title { font-size: 17px; }
  .login-sub { font-size: 11px; }
}

/* ---------- 设置页 · 舆情关注度口径（2026-09-12） ----------
   老板：「风险那个策略 OK，可以配置到设置里」。卡片由 settings.js 的
   renderOpinionPolicy() 驱动；视觉沿用设置页既有卡片风格。 */
.op-wrap { display: flex; flex-direction: column; gap: 14px; }
.op-note { font-size: 12.5px; color: var(--text-3, #8b93a7); line-height: 1.6; }
.op-block { border-top: 1px solid var(--line, rgba(255,255,255,.08)); padding-top: 12px; }
.op-bt { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.op-wins { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.op-win { font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.op-in {
  width: 68px; padding: 3px 7px; border-radius: 6px; font: inherit; font-size: 12.5px;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  background: var(--card-2, rgba(255,255,255,.04)); color: inherit;
  font-variant-numeric: tabular-nums;
}
.op-in:read-only { opacity: .55; }
.op-sub { font-size: 11.5px; color: var(--text-3, #8b93a7); }
.op-cat { margin-top: 10px; }
.op-cat-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; font-size: 12.5px; }
.op-cat-h .op-w { font-size: 12px; color: var(--text-3, #8b93a7); }
.op-txt {
  width: 100%; box-sizing: border-box; resize: vertical;
  padding: 7px 9px; border-radius: 7px; font: inherit; font-size: 12.5px; line-height: 1.7;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  background: var(--card-2, rgba(255,255,255,.04)); color: inherit;
}
.op-txt:read-only { opacity: .55; }
.op-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.op-hint { font-size: 12.5px; color: var(--text-3, #8b93a7); }
.op-hint.ok { color: #34d399; }
.op-hint.err { color: #f87171; }
