/* ============================================================================
 * 民企500强网络安全市场机会 · 站点样式
 * 视觉规范沿用门户既有科技蓝白体系（交付方案 §2.5）
 * 响应式断点 768px；无外部依赖；可离线
 * ==========================================================================*/

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-deep: #0B4FD9;
  --blue-soft: #EFF6FF;
  --blue-line: #DBEAFE;
  --navy: #0B1221;
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --tx: #1E293B;
  --tx2: #334155;
  --mu: #64748B;
  --mu2: #94A3B8;
  --line: #E2E8F0;
  --line2: #EEF2F7;
  --ok: #059669;
  --ok-soft: #ECFDF5;
  --warn: #D97706;
  --warn-soft: #FFFBEB;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, .12);
  --maxw: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--tx);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 顶部导航 */
.topbar {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  flex: 0 0 auto;
}
.brand small {
  color: #8FA3BF;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .3px;
}
.nav {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav a {
  color: #B7C6DB;
  padding: 6px 11px;
  border-radius: var(--radius-s);
  font-size: 13px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav a.on { background: var(--blue); color: #fff; }
.env-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #9FB3CE;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 页头 */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #14213A 100%);
  color: #fff;
  padding: 30px 0 26px;
}
.hero .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.hero .eyebrow {
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6E88AB;
  margin-bottom: 8px;
}
.hero h1 {
  font-size: 25px;
  line-height: 1.35;
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: .2px;
}
.hero .sub {
  font-size: 13px;
  color: #A9BCD4;
  max-width: 900px;
  line-height: 1.8;
}
.hero .sub b { color: #E3EBF6; font-weight: 600; }

/* ---------------------------------------------------------------- 布局 */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 22px 18px 60px; }
.section { margin-bottom: 30px; }
.section-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.section-h h2 {
  font-size: 16.5px;
  margin: 0;
  font-weight: 650;
  letter-spacing: .2px;
}
.section-h .hint { font-size: 12px; color: var(--mu); margin-left: auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 16px 18px; }
.card-h {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line2);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-h .tag { font-weight: 400; font-size: 11.5px; color: var(--mu); margin-left: auto; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- KPI 卡 */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue);
}
.kpi.k2::before { background: var(--blue-deep); }
.kpi.k3::before { background: #60A5FA; }
.kpi.k4::before { background: var(--mu2); }
.kpi .k-label {
  font-size: 12px; color: var(--mu); margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
}
.kpi .k-value {
  font-size: 27px; font-weight: 680; letter-spacing: -.6px;
  line-height: 1.15; color: var(--tx); font-variant-numeric: tabular-nums;
}
.kpi .k-value .u { font-size: 14px; font-weight: 500; color: var(--mu); margin-left: 3px; letter-spacing: 0; }
.kpi .k-sub { font-size: 11.5px; color: var(--mu); margin-top: 7px; line-height: 1.6; }

/* ---------------------------------------------------------------- 徽标 */
.est {
  display: inline-block;
  font-size: 10px;
  line-height: 1.5;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid #FDE68A;
  vertical-align: 1px;
  font-weight: 500;
  white-space: nowrap;
}
.pill {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--tx2);
  white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: #A7F3D0; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: #FDE68A; }
.pill.mute { background: #F1F5F9; color: var(--mu); }
.pill.blue { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue-line); }

.tier-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 1px 9px; border-radius: 999px; color: #fff;
  white-space: nowrap;
}
.tier-chip.A { background: #0B4FD9; }
.tier-chip.B { background: #2563EB; }
.tier-chip.C { background: #7CA9F5; }
.tier-chip.D { background: #B6C2D4; }

/* ---------------------------------------------------------------- 表格 */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.tbl th, table.tbl td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}
table.tbl th {
  background: #F8FAFC;
  font-weight: 600;
  font-size: 12px;
  color: var(--mu);
  position: sticky; top: 0; z-index: 2;
  border-bottom: 1px solid var(--line);
}
table.tbl tbody tr:hover { background: #F8FAFC; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl td.wrapcell { white-space: normal; min-width: 180px; }
table.tbl caption {
  caption-side: top; text-align: left; font-size: 11.5px; color: var(--mu);
  padding: 0 0 8px;
}

/* ---------------------------------------------------------------- 图表 */
.chart { width: 100%; display: block; }
.chart text { font-family: var(--font); }

.stackbar { display: flex; height: 30px; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
.stackbar > div { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; font-weight: 600; transition: filter .15s; }
.stackbar > div:hover { filter: brightness(1.08); }

.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 11px; font-size: 12px; color: var(--tx2); }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* ---------------------------------------------------------------- 抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(11, 18, 33, .42);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200;
}
.drawer-mask.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 94vw);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform .24s cubic-bezier(.32, .72, 0, 1);
  z-index: 201;
  display: flex; flex-direction: column;
}
.drawer.on { transform: translateX(0); }
.drawer-h {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 10px;
}
.drawer-h h3 { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
.drawer-h .meta { font-size: 12px; color: var(--mu); }
.drawer-x {
  margin-left: auto; border: 1px solid var(--line); background: #fff;
  width: 28px; height: 28px; border-radius: var(--radius-s);
  cursor: pointer; color: var(--mu); font-size: 15px; line-height: 1; flex: 0 0 auto;
}
.drawer-x:hover { background: var(--bg); color: var(--tx); }
.drawer-b { padding: 16px 18px 40px; overflow-y: auto; flex: 1; }

.kv { display: grid; grid-template-columns: 108px 1fr; gap: 7px 12px; font-size: 13px; }
.kv dt { color: var(--mu); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

.sub-t { font-size: 12.5px; font-weight: 600; color: var(--mu); margin: 18px 0 8px; letter-spacing: .3px; }
.sub-t:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- 表单 */
.filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input {
  font-family: var(--font); font-size: 13px;
  padding: 6px 9px; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: #fff; color: var(--tx);
  min-width: 120px;
}
.filters input { min-width: 200px; }
.filters select:focus, .filters input:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.filters .count { font-size: 12px; color: var(--mu); margin-left: auto; }

/* ---------------------------------------------------- 检索入口：档位快捷条 */
.quickbar { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-bottom: 9px; }
.quickbar .qc {
  font-family: var(--font); font-size: 12.5px; cursor: pointer;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--tx2);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.quickbar .qc:hover { border-color: var(--blue-line); background: var(--blue-soft); }
.quickbar .qc.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.quickbar .qc .qn { font-variant-numeric: tabular-nums; font-weight: 600; opacity: .92; }
.quickbar .qc.on .qn { opacity: 1; }

/* ---------------------------------------------------- 检索入口：搜索联想 */
.search-wrap { position: relative; display: inline-block; }
.sug {
  position: absolute; z-index: 40; left: 0; top: calc(100% + 4px);
  min-width: 340px; max-width: 460px; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-s); box-shadow: 0 8px 24px rgba(15,23,42,.10);
  padding: 4px; display: none;
}
.sug.on { display: block; }
.sug .si {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 9px; border-radius: 6px; font-size: 13px; color: var(--tx);
}
.sug .si:hover, .sug .si.cur { background: var(--blue-soft); }
.sug .si .sr { font-size: 11px; color: var(--mu2); font-variant-numeric: tabular-nums; min-width: 40px; }
.sug .si .sn { font-weight: 600; }
.sug .si .sc { font-size: 11.5px; color: var(--mu); margin-left: auto; white-space: nowrap; }
.sug .si .k { color: var(--blue-dark); font-weight: 700; }
.sug .sh { padding: 6px 9px; font-size: 11.5px; color: var(--mu2); border-bottom: 1px solid var(--line); margin-bottom: 3px; }

/* ------------------------------------------ 活感条（L2 信号流水 · 总览页页头） */
.freshbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  background: linear-gradient(180deg, #FBFDFF, #F5F9FF);
  border: 1px solid var(--blue-line); border-radius: var(--radius);
  padding: 9px 14px; margin: 0 0 14px;
  font-size: 12.5px; color: var(--tx2);
}
.freshbar:empty { display: none; }
.fb-i { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fb-i b { color: var(--blue-dark); font-variant-numeric: tabular-nums; font-weight: 700; }
.fb-i.mute { color: var(--mu); }
.fb-i.mute b { color: var(--tx2); }
.fb-i.warn { color: var(--warn); font-weight: 600; }
.fb-i.warn b { color: var(--warn); }
.fb-sep {
  width: 1px; height: 13px; background: var(--line);
  display: inline-block; margin: 0 11px; flex: none;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; flex: none;
}
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off { background: var(--mu2); box-shadow: 0 0 0 3px var(--line2); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.freshbar a { color: var(--blue-dark); text-decoration: none; font-weight: 600; }
.freshbar a:hover { text-decoration: underline; }

/* ------------------------------------------- 采集运行状态（页脚 · 全站） */
.runstatus {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--mu); line-height: 1.9;
}
.runstatus:empty { display: none; }
.runstatus b { color: var(--tx2); font-weight: 600; }
.run-i {
  display: inline-flex; align-items: center; gap: 4px;
  margin-right: 12px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.run-d {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block; flex: none;
}

/* ------------------------------------------- 企业详情 · 近期动态时间轴（P3） */
.tl-meta {
  font-size: 12px; color: var(--mu); margin-bottom: 10px;
  padding: 7px 10px; background: var(--blue-soft);
  border: 1px solid var(--blue-line); border-radius: var(--radius-s);
}
.tl-meta b { color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.tl { position: relative; padding-left: 15px; }
.tl::before {
  content: ''; position: absolute; left: 4px; top: 5px; bottom: 5px;
  width: 2px; background: var(--line); border-radius: 1px;
}
.tl-day { position: relative; margin-bottom: 13px; }
.tl-day::before {
  content: ''; position: absolute; left: -14px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.tl-date {
  font-size: 12.5px; font-weight: 700; color: var(--tx);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 7px;
}
.tl-n {
  font-size: 10.5px; font-weight: 600; color: var(--mu);
  background: var(--line2); border-radius: 999px; padding: 1px 7px;
}
.tl-list { list-style: none; margin: 6px 0 0; padding: 0; }
.tl-list li {
  padding: 7px 0 7px 0; border-bottom: 1px dashed var(--line2);
  font-size: 13px; line-height: 1.55;
}
.tl-list li:last-child { border-bottom: none; }
.tl-list a { color: var(--blue-dark); text-decoration: none; }
.tl-list a:hover { text-decoration: underline; }
.tl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; }
.tl-tag {
  font-size: 10.5px; padding: 1px 6px; border-radius: 3px;
  background: var(--blue-soft); color: var(--blue-dark); border: 1px solid var(--blue-line);
}
.tl-tag.k2 { background: var(--ok-soft); color: var(--ok); border-color: #C7EEDD; }
.tl-tag.k3 { background: var(--line2); color: var(--mu); border-color: var(--line); }
.tl-src { font-size: 10.5px; color: var(--mu2); margin-left: auto; }
.tl-empty {
  padding: 15px 14px; font-size: 12.5px; color: var(--mu);
  background: #FCFDFE; border: 1px dashed var(--line); border-radius: var(--radius-s);
  line-height: 1.7;
}
.tl-empty b { color: var(--tx2); }

/* ---------------------------------------------------------------- 空态 */
.empty {
  padding: 34px 20px; text-align: center; color: var(--mu); font-size: 13px;
  background: #FCFDFE; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty b { display: block; color: var(--tx2); font-size: 14px; margin-bottom: 6px; font-weight: 600; }

/* ---------------------------------------------------------------- 卡片流（移动端） */
.cards-m { display: none; }
.mini {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 9px;
}
.mini-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.mini-h b { font-size: 14.5px; font-weight: 620; }
.mini-h .rank { font-size: 11px; color: var(--mu2); font-variant-numeric: tabular-nums; }
.mini-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; }
.mini-g .l { color: var(--mu); font-size: 11px; }
.mini-g .v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 声明与页脚 */
.notice {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  font-size: 12.5px;
  color: #1E40AF;
  line-height: 1.75;
}
.notice.warn { background: var(--warn-soft); border-color: #FDE68A; border-left-color: var(--warn); color: #92400E; }
.notice.mute { background: #F8FAFC; border-color: var(--line); border-left-color: var(--mu2); color: var(--tx2); }
.notice b { font-weight: 650; }

footer.foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 18px 34px;
  font-size: 11.5px;
  color: var(--mu);
  line-height: 1.85;
}
footer.foot .inner { max-width: var(--maxw); margin: 0 auto; }
footer.foot b { color: var(--tx2); }

/* ---------------------------------------------------------------- 工具 */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sp { margin-left: auto; }
.mb0 { margin-bottom: 0; }
.mt12 { margin-top: 12px; }
.mt18 { margin-top: 18px; }
.small { font-size: 12px; color: var(--mu); }
.mono { font-family: var(--mono); font-size: 12px; }
.hidden { display: none !important; }
.center { text-align: center; }

.loading { padding: 40px; text-align: center; color: var(--mu); font-size: 13px; }

/* ================================================================ P 脉冲观测层 */
.obs-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  color: var(--blue-dark); background: var(--blue-soft);
  border: 1px solid var(--blue-line); padding: 1px 8px; border-radius: 20px;
  white-space: nowrap;
}
.obs-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex: none;
}
.obs-tag.live::before { background: var(--ok); }

.dchip {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: 20px; border: 1px solid var(--line);
  white-space: nowrap;
}
.dchip.up { color: var(--blue-dark); background: var(--blue-soft); border-color: var(--blue-line); }
.dchip.down { color: var(--mu); background: #F8FAFC; border-color: var(--line); }
.dchip.flat { color: var(--tx2); background: #F8FAFC; border-color: var(--line); }
.dchip.mute { color: var(--mu2); background: #F8FAFC; border-color: var(--line2); }

.kpi .pulse-line {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2);
  font-size: 11.5px; color: var(--mu);
}
.kpi .pulse-line b { color: var(--tx2); font-weight: 600; }

.th-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px 14px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 7px;
}
.th-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.th-name { font-size: 13.5px; font-weight: 650; color: var(--tx); }
.th-n {
  font-size: 21px; font-weight: 680; letter-spacing: -.4px;
  line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--tx);
}
.th-n small { font-size: 11.5px; font-weight: 500; color: var(--mu); margin-left: 4px; letter-spacing: 0; }
.th-opps { font-size: 12px; color: var(--mu); line-height: 1.8; }
.th-opps b { color: var(--tx2); font-weight: 600; }
.th-opps em { font-style: normal; color: var(--mu2); }
.th-sig {
  font-size: 12px; color: var(--tx2); line-height: 1.6;
  border-top: 1px dashed var(--line2); padding-top: 8px; margin-top: 1px;
}
.th-sig a { color: var(--blue); text-decoration: none; }
.th-sig a:hover { text-decoration: underline; }
.th-sig .d { color: var(--mu2); margin-right: 5px; font-variant-numeric: tabular-nums; }

.legend-lite { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--mu); }
.legend-lite i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* 热度条行：标签 / 条形 / 数值 */
.hb { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.hb + .hb { border-top: 1px dashed var(--line2); }
.hb-l { flex: 0 0 250px; font-size: 12.5px; color: var(--tx2); line-height: 1.4; }
.hb-l b { color: var(--mu); font-weight: 600; font-family: var(--mono); font-size: 11.5px; margin-right: 6px; }
.hb-t { flex: 1 1 auto; min-width: 36px; height: 8px; background: #F1F5F9; border-radius: 4px; overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.hb-t i.z { background: #CBD5E1; }
.hb-v { flex: 0 0 auto; font-size: 12px; color: var(--tx2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-v em { font-style: normal; color: var(--mu2); }

/* ================================================================ 响应式 */
@media (max-width: 1024px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  body { font-size: 13.5px; }
  /* 顶栏：品牌 + 访问状态一行，导航另起一行平铺 */
  .topbar .inner { padding: 8px 13px 0; gap: 0 8px; min-height: 0; }
  .brand { font-size: 14px; order: 1; }
  .brand small { display: none; }
  .env-badge { order: 2; margin-left: auto; }
  /* 导航：换行平铺，9 个标签完整呈现（不横滑、不截断、每项 nowrap） */
  .nav {
    order: 3; margin-left: 0; width: 100%;
    overflow: visible; flex-wrap: wrap;
    gap: 4px; padding: 7px 0 9px;
  }
  .nav a { padding: 5px 7px; font-size: 12.5px; }

  .hero { padding: 20px 0 18px; }
  .hero h1 { font-size: 19px; }
  .hero .sub { font-size: 12px; }

  /* 总览页（hero-lite）：窄屏隐藏「总览」标题与其下导引段，首屏直入数据 */
  .hero-lite { padding: 11px 0 12px; }
  .hero-lite .eyebrow { margin-bottom: 0; font-size: 11px; letter-spacing: .9px; }
  .hero-lite h1, .hero-lite .sub { display: none; }
  .wrap { padding: 15px 13px 44px; }

  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi { padding: 12px 12px 11px; }
  .kpi .k-value { font-size: 22px; }
  .kpi .k-label { font-size: 11px; }
  .kpi .k-sub { font-size: 10.5px; }

  /* 活感条：窄屏改为两行堆叠，分隔符换行 */
  .freshbar { padding: 8px 11px; font-size: 12px; gap: 3px 0; }
  .fb-sep { margin: 0 8px; }
  .runstatus { line-height: 2; }
  .run-i { margin-right: 9px; }

  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .section-h { flex-wrap: wrap; }
  .section-h .hint { margin-left: 0; width: 100%; }

  /* 宽表改卡片流 */
  .tbl-only { display: none !important; }
  .cards-m { display: block; }

  .filters { gap: 7px; }
  .filters select, .filters input { min-width: 0; flex: 1 1 46%; font-size: 13px; }

  .drawer { width: 100vw; }
  .kv { grid-template-columns: 96px 1fr; }

  .legend { font-size: 11.5px; gap: 9px; }

  /* P 脉冲观测层：窄屏收紧 */
  .obs-tag { font-size: 10.5px; padding: 1px 7px; }
  .kpi .pulse-line { font-size: 11px; gap: 5px; }
  .th-card { padding: 12px 13px; }
  .th-n { font-size: 19px; }
  .th-opps { line-height: 1.7; }
  /* 热度条：窄屏改为两行——标签独占一行，条形与数值同行 */
  .hb { flex-wrap: wrap; row-gap: 4px; padding: 7px 0; }
  .hb-l { flex: 1 1 100%; font-size: 12px; }
  .hb-t { flex: 1 1 auto; }
  .hb-v { flex: 0 0 auto; font-size: 11.5px; }
}

@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr; }
  .mini-g { grid-template-columns: repeat(2, 1fr); }
  /* 小屏进一步收紧标签，保证 9 项完整且排布不拥挤 */
  .nav a { padding: 5px 6px; font-size: 12px; }
  .brand { font-size: 13px; }
}

/* ================================================================ 打印 */
@media print {
  :root { --bg: #fff; }
  body { background: #fff; font-size: 10.5pt; }
  .topbar, .nav, .drawer, .drawer-mask, .filters, .no-print { display: none !important; }
  .hero { background: #fff; color: #000; border-bottom: 2px solid #000; padding: 0 0 10px; }
  .hero .eyebrow, .hero .sub { color: #333; }
  .hero h1 { font-size: 16pt; color: #000; }
  .wrap { padding: 0; max-width: none; }
  .card, .kpi { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .section { break-inside: avoid; margin-bottom: 14pt; }
  .section-h h2 { font-size: 12pt; }
  table.tbl { font-size: 9pt; }
  table.tbl th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tbl-wrap { overflow: visible !important; }
  .tbl-only { display: block !important; }
  .cards-m { display: none !important; }
  .est { border: 1px solid #666; background: #fff !important; color: #333 !important; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  .tier-chip { border: 1px solid #333; color: #000 !important; background: #fff !important; }
  .stackbar > div { color: #000 !important; }
}
