:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #1f2d3d;
  --muted: #6b7a8d;
  --line: #e3e8ef;
  --accent: #2f6fed;
  --h: #f39c12;   /* 热度 */
  --sub: #8e44ad; /* 订阅 */
  --c: #e74c3c;   /* 抱怨 */
  --e: #16a085;   /* 高频低评 */
  --o: #2f6fed;   /* 综合 */
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.container { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
header h1 { margin: 0 0 4px; font-size: 24px; }
header p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 20px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .num { font-size: 26px; font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: 12px; margin-top: 2px; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filters select, .filters a.btn { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.filters a.btn { text-decoration: none; }
.filters .spacer { flex: 1; }
button.act { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 16px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f0f3f8; color: var(--muted); font-weight: 600; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.rank { font-weight: 700; color: var(--muted); }
.chartrank { white-space: nowrap; }
.chartrank .crk { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.name { font-weight: 600; }
.sub { color: var(--muted); font-size: 12px; }
.bar { background: #eef1f6; border-radius: 6px; height: 14px; width: 140px; position: relative; overflow: hidden; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--o); border-radius: 6px; }
.metrics { display: flex; flex-direction: column; gap: 3px; }
.mbar { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.mbar .track { flex: 1; height: 8px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.mbar .track > i { display: block; height: 100%; }
.mbar .v { width: 30px; text-align: right; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 12px; }
.b-sub { background: var(--c); }
.b-grow { background: #27ae60; }
.b-disrupt { background: var(--e); }
.b-watch { background: #95a5a6; }
.signal { color: var(--ink); font-size: 12px; max-width: 320px; }
.conf { font-weight: 600; }
a.detail { color: var(--accent); text-decoration: none; }
a.dl { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--accent); }
a.dl:hover { color: var(--accent); }
.btn-dl { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 8px; font-size: 13px; margin-top: 6px; }
.btn-dl:hover { opacity: 0.9; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.note { color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ---------- 融资风向面板（参考信号，不参与 O 评分） ---------- */
.fund-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px 16px; margin: 0 0 16px;
}
.fund-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fund-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.tag-ref {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: #eef3ff; color: var(--accent); font-size: 11px; font-weight: 600; vertical-align: middle;
}
.fund-kpi { margin-left: auto; display: flex; gap: 16px; color: var(--muted); font-size: 12px; }
.fund-kpi b { color: var(--ink); font-size: 15px; }
.fund-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; }
.fund-col-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.fund-heat { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.fund-heat-name { width: 76px; color: var(--ink); flex: none; }
.fund-heat-track { flex: 1; height: 10px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.fund-heat-track > i {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #7f9cf5, var(--accent));
}
.fund-heat-val { width: 118px; text-align: right; color: var(--muted); flex: none; }
.fund-list { list-style: none; margin: 0; padding: 0; max-height: 210px; overflow-y: auto; }
.fund-list li { font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.fund-list li:last-child { border-bottom: 0; }
.fund-list a { color: var(--accent); text-decoration: none; font-weight: 600; }
.fund-list a:hover { text-decoration: underline; }
.fund-round {
  display: inline-block; margin: 0 6px; padding: 0 7px; border-radius: 999px;
  font-size: 11px; color: #fff; background: #8e44ad;
}
.fund-round.rB { background: #2f6fed; }
.fund-amount { font-weight: 600; color: var(--ink); }
.fund-meta { color: var(--muted); margin-left: 6px; }
.fund-sectors { margin-top: 10px; font-size: 11px; color: var(--muted); line-height: 1.9; }
.fund-chip {
  display: inline-block; margin: 0 4px 2px 0; padding: 1px 8px; border-radius: 999px;
  background: #f0f3f8; color: var(--ink); font-size: 11px;
}
.fund-empty { color: var(--muted); font-size: 12px; padding: 8px 0 2px; }
.fund-tag {
  display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px;
  background: #fff7e6; color: #b9770e; font-size: 11px; border: 1px solid #ffe3ab;
  white-space: nowrap; cursor: help;
}
.fund-note {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 12px;
  background: #fff7e6; color: #b9770e; border: 1px solid #ffe3ab;
}
@media (max-width: 900px) {
  .fund-body { grid-template-columns: 1fr; }
  .fund-heat-val { width: 96px; }
}

/* ---------- 一人公司门槛（视图过滤，不参与 F1-F5 与 O 评分） ---------- */
.barriercell { white-space: nowrap; max-width: 190px; }
.barrier-tag {
  display: inline-block; margin: 0 4px 2px 0; padding: 1px 8px; border-radius: 6px;
  background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0;
  font-size: 11px; line-height: 1.7; white-space: nowrap;
}
.barrier-none {
  display: inline-block; color: var(--muted); font-size: 11px;
  padding: 1px 8px; border-radius: 6px; background: #f0f3f8; border: 1px solid var(--line);
}
/* 巨头：与门槛区分开（深色实心，一眼看出不是"品类门槛"而是"做不起"） */
.barrier-tag-giant {
  background: #34495e; color: #fff; border-color: #2c3e50;
}
.hype-badge-giant {
  background: #34495e; color: #fff; border-color: #2c3e50;
}
.barrier-note {
  margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; font-size: 12px;
  background: #fff4e5; color: #b9560e; border: 1px solid #ffdcb3; line-height: 1.9;
}
.barrier-hint { color: var(--muted); font-size: 11px; margin-left: 4px; }
/* 当前生效的筛选开关（如「只看一人可做」） */
.filters a.btn-on {
  background: #eef3ff; border-color: #c7d8ff; color: var(--accent); font-weight: 600;
}

/* ---------- 🔥 今日热门榜（独立板块，榜位即热度） ---------- */
/* 头部导航：机会雷达 <-> 热门榜 互跳 */
.hype-nav { margin-top: 10px; }
.hype-nav a.btn {
  display: inline-block; padding: 7px 14px; border-radius: 8px; text-decoration: none;
  background: var(--accent); color: #fff; font-size: 13px;
}
.hype-nav a.btn:hover { opacity: 0.9; }

/* 首日无历史数据时的提示条 */
.hype-note {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 12px; line-height: 1.8;
  background: #eef3ff; color: #1f4fbf; border: 1px solid #c7d8ff;
}

/* 势头：按中国股市习惯，上升=红色，下降=绿色 */
.trend { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend-up { color: #c0392b; }
.trend-down { color: #1e8449; }
.trend-new { color: var(--accent); }
.trend-flat { color: #95a5a6; }

/* 热度条 */
.heat-bar {
  background: #eef1f6; border-radius: 6px; height: 14px; width: 120px;
  position: relative; overflow: hidden;
}
.heat-bar > span {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px;
  background: linear-gradient(90deg, #ffb457, #f39c12);
}
.heat-val { margin-top: 4px; font-weight: 600; color: #b9770e; font-variant-numeric: tabular-nums; }

/* 徽章 */
.hype-badges { max-width: 220px; line-height: 1.9; }
.hype-badge {
  display: inline-block; margin: 0 4px 2px 0; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; background: #fff7e6; color: #b9770e; border: 1px solid #ffe3ab;
  white-space: nowrap;
}
.hype-badge-dim { background: #f0f3f8; color: var(--muted); border-color: var(--line); }
.hype-count, .hype-rating { font-variant-numeric: tabular-nums; }
.hype-actions { margin-top: 14px; display: flex; align-items: center; gap: 12px; }

/* 🌐 工具网站榜：站点简介限两行（表格行高不至于被长描述撑爆） */
.tool-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-width: 620px; margin-top: 2px; line-height: 1.5;
}

@media (max-width: 900px) {
  .heat-bar { width: 90px; }
  .tool-desc { max-width: 280px; }
}

