/* =====================================================================
   高校数据台 · 设计系统
   风格：专业科技（冷灰蓝 / 信息密度高 / 数字清楚）
   ===================================================================== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --ink: #0f172a;
  --ink-2: #344256;
  --muted: #55657d;
  --faint: #5f6f85;
  --line: #e2e8f0;
  --line-soft: #edf1f7;

  --primary: #2457f5;
  --primary-strong: #1d46cc;
  --primary-soft: #edf2ff;
  --accent: #0f8f8e;
  --accent-soft: #e6f5f2;
  --violet: #7c5cfc;
  --amber: #e08a2c;

  --danger: #b4281c;
  --danger-soft: #fdecea;
  --warn: #9a5b00;
  --warn-soft: #fff6dd;
  --ok: #0b7e6e;
  --ok-soft: #e9f6f2;

  --sidebar: #0b1424;
  --sidebar-hover: #15233a;
  --sidebar-active: #1b2a44;
  --sidebar-line: #1c2a42;
  --sidebar-ink: #b6c4d8;
  --sidebar-muted: #7f90a8;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-pop: 0 12px 32px rgba(15, 23, 42, 0.16);

  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
svg { display: block; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 图标 ---------- */
.icon {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }

/* =====================================================================
   骨架：侧边栏 / 顶栏 / 内容
   ===================================================================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 212px;
  flex: 0 0 212px;
  background: var(--sidebar);
  color: var(--sidebar-ink);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  flex: 0 0 32px;
}
.brand-text strong { display: block; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.brand-text span { display: block; font-size: 12px; color: var(--sidebar-muted); margin-top: 2px; }

.nav-group-label {
  font-size: 12px;
  color: var(--sidebar-muted);
  padding: 14px 10px 6px;
  letter-spacing: 0.04em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--sidebar-ink);
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.nav-item:hover { background: var(--sidebar-hover); color: #eef3fb; }
.nav-item.is-active { background: var(--sidebar-active); color: #fff; font-weight: 500; }
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: #6f92ff;
}
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; color: currentColor; }
.nav-item.is-active .nav-icon { color: #8fadff; }
.nav-label-text { flex: 1; }
.nav-badge {
  font-size: 12px;
  line-height: 18px;
  padding: 0 5px;
  border: 1px solid #2a3a56;
  color: var(--sidebar-muted);
  border-radius: 4px;
  font-weight: 400;
}
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sidebar-line); }
.user { display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  flex: 0 0 30px;
}
.user-text strong { display: block; font-size: 13px; color: #e7eefb; font-weight: 500; }
.user-text span { display: block; font-size: 12px; color: var(--sidebar-muted); margin-top: 1px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 64px;
  flex: 0 0 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-title { min-width: 0; }
.topbar-title h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 143, 142, 0.12);
  flex: 0 0 6px;
}
.source-pill {
  font-size: 12px;
  line-height: 18px;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid #bfe3d8;
  border-radius: 4px;
  padding: 0 6px;
}
.demo-pill {
  font-size: 12px;
  line-height: 18px;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid #f2deA6;
  border-radius: 4px;
  padding: 0 6px;
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content {
  width: 100%;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

.page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
  padding: 4px 2px 0;
}

/* ---------- 按钮 / 分段 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d8e0ea;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--surface-2); border-color: #c3cedc; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--muted);
  border: 1px solid transparent;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.is-busy .icon { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.seg {
  display: inline-flex;
  background: #f1f4f9;
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.seg button {
  height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.seg-sm button { height: 28px; font-size: 12px; padding: 0 9px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-head {
  padding: 16px 18px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.card-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.card-body { padding: 12px 18px 16px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-note {
  margin: 10px 18px 16px;
  padding: 10px 12px;
  background: #f6f9ff;
  border: 1px solid #e3ebff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.65;
  color: #3c5270;
}
.card-note b { color: var(--ink); font-weight: 600; }

/* =====================================================================
   指标卡
   ===================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 13px 15px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.kpi-top { display: flex; align-items: center; gap: 6px; }
.kpi-name { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-tag {
  font-size: 12px;
  line-height: 17px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: auto;
  flex: 0 0 auto;
}
.kpi-value {
  font-size: 26px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.kpi-unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; min-width: 0; }
.kpi-cmp { font-size: 12px; color: var(--faint); white-space: nowrap; }
.spark { margin-left: auto; width: 64px; height: 26px; flex: 0 0 auto; }
.delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.delta.up { color: var(--danger); }   /* 指标上升：红 */
.delta.down { color: var(--ok); }     /* 指标下降：绿 */
.delta.flat { color: var(--muted); }

/* =====================================================================
   KPI 上方的下钻路径 / 洞察
   ===================================================================== */
.drill-card { padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 12px; }
.drill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.drill-eyebrow { font-size: 12px; color: var(--faint); }
.drill-depth {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
}
.drill-actions { display: flex; gap: 8px; }
.drill-path { display: flex; align-items: flex-end; gap: 5px; flex-wrap: wrap; }
.drill-node { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.drill-cap { font-size: 12px; color: var(--faint); padding-left: 2px; }
.drill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed #d8e0ea;
  background: #fbfcfe;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drill-chip:hover:not(:disabled) { border-color: #9db4f9; color: var(--primary); background: #f6f9ff; }
.drill-chip.is-set { border: 1px solid #c9d8ff; background: var(--primary-soft); color: var(--primary-strong); }
.drill-chip.is-leaf { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: default; }
.drill-chip:disabled { cursor: default; }
.drill-chev { color: #b9c4d3; margin-bottom: 10px; flex: 0 0 auto; }
.drill-chip[data-menu] { cursor: pointer; }
.drill-chip[data-menu]::after {
  content: "";
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  margin-left: 3px;
  flex: 0 0 auto;
}
.drill-chip[data-menu]:hover::after { opacity: 0.9; }
.drill-chip.is-static { cursor: default; border: 1px solid #c9d8ff; background: var(--primary-soft); color: var(--primary-strong); }
.drill-menu {
  position: fixed;
  z-index: 120;
  min-width: 250px;
  max-width: min(380px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 6px;
}
.drill-menu-head { font-size: 12px; color: var(--faint); padding: 4px 10px 6px; }
.drill-menu-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 38px; padding: 6px 10px;
  border-radius: 5px; text-align: left;
  font-size: 13px; color: var(--ink-2);
}
.drill-menu-item:hover { background: var(--surface-2); }
.drill-menu-item.is-active { background: var(--primary-soft); color: var(--primary-strong); font-weight: 500; }
.drill-menu-item .menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drill-menu-item .menu-sub { flex: 0 0 auto; font-size: 12px; color: var(--faint); }
.drill-menu-item.is-active .menu-sub { color: var(--primary); }
.drawer-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; margin-bottom: 10px;
}
.drawer-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; }
.drawer-search .icon { color: var(--faint); }
.drawer-tip { font-size: 12px; color: var(--faint); padding: 2px 2px 8px; line-height: 1.6; }
.merchant-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 58px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 4px;
  text-align: left;
}
.merchant-list-row:hover { background: var(--surface-2); }
.merchant-list-row .ml-name { min-width: 0; }
.merchant-list-row .ml-name b {
  display: block; font-size: 13px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.merchant-list-row .ml-name span {
  display: block; font-size: 12px; color: var(--faint); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.merchant-list-row .ml-val { text-align: right; font-size: 13px; font-weight: 600; }
.merchant-list-row .ml-val small { display: block; font-size: 12px; color: var(--faint); font-weight: 400; }
.merchant-list-row .ml-delta { text-align: right; font-size: 12px; }
.insight {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}
.insight .icon { color: var(--primary); margin-top: 2px; flex: 0 0 16px; }
.insight b { color: var(--ink); font-weight: 600; }
.insight .up { color: var(--danger); }

/* ---------- 需关注 ---------- */
.alerts { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; flex-wrap: wrap; }
.alerts-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.alerts-label .icon { color: var(--warn); }
.alerts-count {
  min-width: 20px; height: 20px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  display: grid; place-items: center;
  padding: 0 6px;
}
.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #e9dedc;
  background: #fffbf8;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #4a3b36;
  text-align: left;
  line-height: 1.45;
}
.alert-chip:hover { background: #fff; border-color: #d9c6c2; }
.alert-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.alert-tag { font-size: 12px; color: #6e4b3e; background: #f6ede9; border-radius: 3px; padding: 0 4px; flex: 0 0 auto; }
.alert-chip .icon { color: #a08a80; width: 14px; height: 14px; flex: 0 0 14px; }

/* =====================================================================
   表格
   ===================================================================== */
.table-wrap { width: 100%; overflow-x: auto; padding: 6px 8px 8px; }
.table { width: 100%; font-size: 13px; }
.table th {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  background: var(--surface);
}
.table th:first-child { text-align: left; }
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  color: var(--ink-2);
  white-space: nowrap;
}
.table td:first-child { text-align: left; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .row-click { cursor: pointer; }
.table .row-click:hover td { background: var(--surface-2); }
.merchant-table th:nth-child(2), .merchant-table td:nth-child(2) { text-align: left; }
.table-compact th, .table-compact td { padding-left: 8px; padding-right: 8px; }
.merchant-table td:nth-child(2) .cell-name,
.merchant-table td:nth-child(2) .cell-sub {
  display: block; max-width: calc(100% - 10px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 1200px) {
  .merchant-top-table, .drop-table { table-layout: fixed; }
  .merchant-table th, .merchant-table td { overflow: hidden; text-overflow: ellipsis; }
}
.table .is-active td { background: #f2f6ff; }
.table .is-active .cell-name { color: var(--primary-strong); }
.cell-name { font-weight: 500; color: var(--ink); }
.cell-sub { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; font-weight: 400; }
.cell-bar { height: 3px; background: var(--line-soft); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.cell-bar i { display: block; height: 100%; background: var(--primary); border-radius: 2px; opacity: 0.55; }
.table-empty { padding: 28px 12px; text-align: center; font-size: 13px; color: var(--faint); }
.rank { color: var(--faint); font-weight: 500; }
.rank-top { color: var(--primary); font-weight: 600; }

/* =====================================================================
   图表通用
   ===================================================================== */
.chart-wrap { position: relative; width: 100%; }
.chart-svg { display: block; width: 100%; }
.axis-label { font-size: 12px; fill: var(--faint); font-family: var(--font); }
.grid-line { stroke: var(--line-soft); stroke-width: 1; }
.target-line { stroke: #d9a441; stroke-width: 1.5; stroke-dasharray: 4 4; }
.target-text { font-size: 12px; fill: #9a6a12; font-family: var(--font); }
.legend { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; border-top: 2px solid var(--primary); }
.legend i.dashed { border-top: 2px dashed #a6b3c6; }
.legend i.dot { width: 8px; height: 8px; border: 0; border-radius: 2px; background: var(--primary); }
.chart-tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
  transform: translate(-50%, -100%);
}
.chart-tip.is-show { opacity: 1; }
.tip-date { display: block; color: #a9b6c8; margin-bottom: 2px; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row b { margin-left: 10px; font-variant-numeric: tabular-nums; }
.tip-row i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.tip-delta { border-top: 1px solid #2a3a55; margin-top: 4px; padding-top: 4px; color: #a9b6c8; }

/* ---------- 环形图 ---------- */
.donut-wrap { position: relative; width: 168px; height: 168px; flex: 0 0 168px; }
.donut-svg { width: 168px; height: 168px; }
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
  pointer-events: none;
}
.donut-center strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.donut-center span { font-size: 12px; color: var(--faint); }

/* ---------- 图例列表（业务线 / 用户分层 / 归因） ---------- */
.list-rows { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 54px 56px;
  gap: 8px;
  align-items: center;
  height: 40px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 13px;
  text-align: left;
  color: var(--ink-2);
}
.list-row:hover { background: var(--surface-2); }
.list-row.is-active { background: var(--primary-soft); }
.list-row .dot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px; }
.list-row .l-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .l-val { text-align: right; font-weight: 600; font-size: 13px; }
.list-row .l-delta { text-align: right; font-size: 12px; }
.list-row .l-muted { text-align: right; font-size: 12px; color: var(--faint); }

/* =====================================================================
   业务看板：业务线 / 品类 / 订单分层 / 商户
   ===================================================================== */
.trend-body { padding: 10px 18px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.trend-sum { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.trend-sum-item { font-size: 12px; color: var(--faint); display: flex; align-items: baseline; gap: 6px; }
.trend-sum-item strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.biz-body { padding: 8px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.biz-body .list-rows { width: 100%; margin-top: auto; }
.biz-body .list-row { height: 36px; }
.cat-list { display: flex; flex-direction: column; padding: 6px 10px 10px; }
.cat-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 46px 54px;
  gap: 10px;
  align-items: center;
  height: 38px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 13px;
  text-align: left;
  color: var(--ink-2);
}
.cat-row:hover { background: var(--surface-2); }
.cat-row.is-active { background: var(--primary-soft); }
.cat-row .cat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-bar { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.cat-bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; opacity: 0.8; }
.cat-row.is-active .cat-bar i { opacity: 1; }
.cat-share { text-align: right; font-weight: 600; }
.cat-growth { text-align: right; font-size: 12px; }

.tier-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 8px 18px 4px; }
.tier-bar span { height: 100%; }
.tier-list { display: flex; flex-direction: column; padding: 4px 10px 0; }
.tier-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 46px 62px;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 13px;
  text-align: left;
}
.tier-row:hover { background: var(--surface-2); }
.tier-row.is-active { background: var(--primary-soft); }
.tier-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.tier-dot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px; }
.tier-track { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.tier-track i { display: block; height: 100%; border-radius: 3px; }
.tier-share { text-align: right; font-weight: 600; }
.tier-strategy { display: flex; flex-direction: column; gap: 8px; margin: 4px 18px 16px; }
.tier-strategy-row { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.55; color: var(--muted); }
.tier-strategy-row b { flex: 0 0 auto; color: var(--ink); font-weight: 600; }
.tier-strategy-row i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; }
.tier-growth { text-align: right; font-size: 12px; }

/* =====================================================================
   用户分层页
   ===================================================================== */
.user-donut-body { padding: 10px 18px 16px; display: flex; align-items: center; gap: 16px; flex: 1; flex-wrap: wrap; }
.user-donut-body .list-rows { flex: 1; min-width: 180px; }
.user-donut-body .list-row { grid-template-columns: 10px minmax(0, 1fr) 52px 50px; height: 38px; }
.freq-list { display: flex; flex-direction: column; gap: 14px; padding: 10px 18px 16px; flex: 1; justify-content: center; }
.freq-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13px; }
.freq-track { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.freq-track i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.freq-row:nth-child(2) .freq-track i { opacity: 0.85; }
.freq-row:nth-child(3) .freq-track i { opacity: 0.7; }
.freq-row:nth-child(4) .freq-track i { opacity: 0.55; }
.freq-row:nth-child(5) .freq-track i { opacity: 0.42; }
.freq-share { text-align: right; font-weight: 600; font-size: 13px; }

.funnel-body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; justify-content: center; }
.funnel-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13px; }
.funnel-label { color: var(--muted); }
.funnel-track { height: 22px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.funnel-track i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.funnel-row:nth-child(2) .funnel-track i { opacity: 0.82; }
.funnel-row:nth-child(3) .funnel-track i { opacity: 0.66; }
.funnel-row:nth-child(4) .funnel-track i { opacity: 0.5; }
.funnel-row:nth-child(5) .funnel-track i { opacity: 0.36; }
.funnel-val { text-align: right; font-weight: 600; }

/* =====================================================================
   物流履约页
   ===================================================================== */
.heat-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.heat-table th {
  font-weight: 500;
  color: var(--faint);
  text-align: center;
  padding: 4px 2px;
  white-space: nowrap;
  font-size: 12px;
}
.heat-table th:first-child { text-align: left; padding-left: 8px; }
.heat-table td { text-align: center; padding: 0; }
.heat-table td:first-child {
  text-align: left;
  font-size: 12px;
  color: var(--ink-2);
  padding: 0 8px 0 2px;
  white-space: nowrap;
}
.heat-cell {
  height: 38px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.reason-body { padding: 10px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.reason-body .donut-wrap { width: 148px; height: 148px; }
.reason-body .donut-svg { width: 148px; height: 148px; }
.reason-body .list-rows { width: 100%; margin-top: auto; }
.reason-body .list-row { grid-template-columns: 10px minmax(0, 1fr) 50px; height: 34px; }
.timing-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.timing-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.timing-track { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.timing-track i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.timing-val { text-align: right; color: var(--ink); font-weight: 500; }
.drop-insight-body { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.drop-insight-body .score-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drop-top3 { display: flex; flex-direction: column; gap: 6px; }
.drop-top3-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.drop-top3-row .idx { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: 0 0 18px; }
.drop-top3-row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.drop-top3-row b { color: var(--ok); font-weight: 600; }
.drop-campuses { display: flex; flex-direction: column; gap: 6px; }
.drop-campus-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 54px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.drop-campus-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-campus-row .track { height: 5px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.drop-campus-row .track i { display: block; height: 100%; background: var(--amber); border-radius: 3px; opacity: .8; }
.drop-campus-row b { text-align: right; color: var(--ok); font-weight: 600; white-space: nowrap; font-size: 12px; }
.month-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr); gap: 22px; padding: 8px 18px 16px; align-items: start; }
.month-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.month-table { width: 100%; font-size: 12px; }
.month-table th {
  font-size: 12px; font-weight: 500; color: var(--faint);
  text-align: right; padding: 7px 6px; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.month-table th:first-child { text-align: left; }
.month-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
.month-table td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.month-table tr:last-child td { border-bottom: 0; }
.month-table tr.is-current td { background: #f6f9ff; }
.month-pill {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 12px; color: var(--primary-strong);
  background: var(--primary-soft); border: 1px solid #dbe5ff;
  border-radius: 4px; padding: 3px 8px;
}
.advice-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 18px 16px; }
.advice-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.advice-item .advice-idx {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  display: grid; place-items: center;
  flex: 0 0 20px;
  margin-top: 1px;
}
.advice-item b { color: var(--ink); font-weight: 600; }

/* =====================================================================
   六力诊断页
   ===================================================================== */
.score-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.score-main { display: flex; align-items: flex-end; gap: 10px; }
.score-value { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.22; overflow: visible; }
.score-unit { font-size: 13px; color: var(--faint); padding-bottom: 6px; }
.grade {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.grade.good { background: var(--ok-soft); color: var(--ok); }
.grade.ok { background: var(--primary-soft); color: var(--primary-strong); }
.grade.warn { background: var(--warn-soft); color: var(--warn); }
.grade.bad { background: var(--danger-soft); color: var(--danger); }
.score-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.score-meta-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 9px 11px; }
.score-meta-item span { display: block; font-size: 12px; color: var(--faint); }
.score-meta-item strong { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
.campus-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.campus-chip {
  height: 30px;
  padding: 0 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--ink-2);
}
.campus-chip:hover { border-color: #b9c9f5; color: var(--primary); }
.campus-chip.is-active { background: var(--primary-soft); border-color: #c9d8ff; color: var(--primary-strong); font-weight: 500; }
.radar-body { padding: 10px 18px 18px; display: flex; align-items: center; gap: 20px; flex: 1; flex-wrap: wrap; }
.radar-wrap { flex: 0 0 360px; max-width: 100%; }
.radar-legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 10px; }
.radar-legend .legend { gap: 14px; }
.radar-note { font-size: 12px; line-height: 1.7; color: var(--muted); }
.force-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px 18px 16px; }
.force-tile {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 11px 12px; display: flex; flex-direction: column; gap: 6px;
  text-align: left; width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
button.force-tile { cursor: pointer; }
button.force-tile:hover { border-color: #c9d8ff; background: #fbfcff; }
.force-tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.force-tile-head span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.force-tile-head b { font-size: 15px; font-weight: 600; }
.force-track { height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.force-track i { display: block; height: 100%; border-radius: 2px; }
.force-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.matrix-table th, .matrix-table td { text-align: center; }
.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; }
.matrix-score { display: inline-grid; place-items: center; width: 40px; height: 26px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.state-pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px;
  border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.state-good { background: var(--ok-soft); color: var(--ok); }
.state-mid { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.state-bad { background: var(--danger-soft); color: var(--danger); }
.metric-table td:nth-child(2), .metric-table th:nth-child(2),
.metric-table td:nth-child(3), .metric-table th:nth-child(3),
.metric-table td:nth-child(4), .metric-table th:nth-child(4),
.metric-table td:nth-child(5), .metric-table th:nth-child(5),
.metric-table td:nth-child(6), .metric-table th:nth-child(6) { text-align: right; }
.metric-name { text-align: left !important; white-space: normal; line-height: 1.45; color: var(--ink-2); }
.layer-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: 4px; font-size: 12px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  margin-left: 6px; font-weight: 400;
}
.metric-note { font-size: 12px; color: var(--faint); line-height: 1.6; padding: 2px 18px 14px; max-width: 560px; }
.consult-body { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.consult-block { border-left: 2px solid var(--line); padding: 2px 0 2px 12px; }
.consult-block.strength { border-color: var(--ok); }
.consult-block.weak { border-color: var(--amber); }
.consult-block h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.consult-block p { font-size: 12px; line-height: 1.65; color: var(--muted); }
.consult-block b { color: var(--ink); font-weight: 600; }
.pri {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pri-high { background: var(--danger-soft); color: var(--danger); }
.pri-mid { background: var(--warn-soft); color: var(--warn); }
.pri-low { background: var(--primary-soft); color: var(--primary-strong); }
.def-list { display: flex; flex-direction: column; }
.def-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.def-row:last-child { border-bottom: 0; }
.def-row span { color: var(--muted); }
.def-row b { font-weight: 500; color: var(--ink-2); text-align: right; }

/* =====================================================================
   抽屉 / 弹层 / toast
   ===================================================================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 90;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 440px;
  max-width: 94vw;
  background: var(--surface);
  z-index: 100;
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 32px rgba(15, 23, 42, 0.18);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer.wide { width: 560px; }
.drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 0 0 auto;
}
.drawer-head h2 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.drawer-head p { font-size: 12px; color: var(--faint); margin-top: 4px; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.drawer-foot .btn { flex: 1; justify-content: center; }
.m-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  flex: 0 0 40px;
}
.drawer-section { display: flex; flex-direction: column; gap: 8px; }
.section-title { font-size: 13px; font-weight: 600; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-title span { font-size: 12px; color: var(--faint); font-weight: 400; }
.m-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-kpi { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.m-kpi span { font-size: 12px; color: var(--faint); }
.m-kpi strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.m-kpi em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--faint); margin-left: 2px; }
.meta-list { display: flex; flex-direction: column; }
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.meta-row:last-child { border-bottom: 0; }
.meta-row span { color: var(--faint); }
.meta-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.tier-mini { display: flex; flex-direction: column; gap: 8px; }
.tier-mini-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 12px; }
.tier-mini-row .bar { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.tier-mini-row .bar i { display: block; height: 100%; border-radius: 3px; }
.tier-mini-row .val { text-align: right; color: var(--ink-2); }

.caliber-block { display: flex; flex-direction: column; gap: 6px; }
.caliber-block h3 { font-size: 14px; font-weight: 600; }
.caliber-block p { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.caliber-table { width: 100%; font-size: 12px; }
.caliber-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.caliber-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; line-height: 1.6; }
.caliber-table td:first-child { white-space: nowrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 10px);
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
  max-width: calc(100vw - 32px);
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1399px) {
  .kpi-cmp { display: none; }
  .spark { width: 52px; }
}
@media (max-width: 1199px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid > * { grid-column: 1 / -1; }
  .biz-body { flex-direction: row; align-items: center; gap: 24px; }
  .biz-body .donut-wrap { margin: 0; }
  .biz-body .list-rows { flex: 1; margin-top: 0; }
  .user-donut-body { flex-wrap: nowrap; }
  .radar-body { flex-wrap: nowrap; }
  .force-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .sidebar { width: 72px; flex-basis: 72px; padding: 16px 8px; align-items: center; }
  .brand { padding: 6px 0 14px; }
  .brand-text, .nav-group-label, .nav-label-text, .nav-badge, .user-text { display: none; }
  .nav-item { justify-content: center; width: 44px; padding: 0; }
  .nav-item.is-active::before { display: none; }
  .sidebar-foot { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .user { justify-content: center; padding: 10px 0 0; }
  .topbar { padding: 0 18px; }
  .content { padding: 18px 18px 28px; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .topbar {
    height: auto;
    flex: 0 0 auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
    position: static;
  }
  .topbar-actions { margin-left: 0; width: 100%; justify-content: flex-start; }
  .topbar-meta { flex-wrap: wrap; row-gap: 2px; white-space: normal; }
  .content { padding: 14px 16px 28px; gap: 14px; }
  .grid { gap: 14px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-value { font-size: 23px; }
  .kpi-cmp { display: none; }
  .spark { width: 54px; }
  .card-head { padding: 14px 14px 0; }
  .card-body, .trend-body, .biz-body, .cat-list, .tier-list, .user-donut-body,
  .freq-list, .funnel-body, .reason-body, .radar-body, .force-grid, .consult-body,
  .score-body, .advice-list { padding-left: 14px; padding-right: 14px; }
  .table-wrap { padding-left: 4px; padding-right: 4px; }
  .drill-card { padding: 12px 14px; }
  .alerts { padding: 10px 14px; }
  .biz-body { flex-direction: column; align-items: stretch; }
  .biz-body .donut-wrap { margin: 0 auto; }
  .user-donut-body { flex-direction: column; align-items: stretch; }
  .user-donut-body .donut-wrap { margin: 0 auto; }
  .radar-body { flex-direction: column; }
  .radar-wrap { flex: 0 0 auto; width: 100%; }
  .drop-insight-body { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.drop-insight-body .score-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drop-top3 { display: flex; flex-direction: column; gap: 6px; }
.drop-top3-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.drop-top3-row .idx { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: 0 0 18px; }
.drop-top3-row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.drop-top3-row b { color: var(--ok); font-weight: 600; }
.drop-campuses { display: flex; flex-direction: column; gap: 6px; }
.drop-campus-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 54px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.drop-campus-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-campus-row .track { height: 5px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.drop-campus-row .track i { display: block; height: 100%; background: var(--amber); border-radius: 3px; opacity: .8; }
.drop-campus-row b { text-align: right; color: var(--ok); font-weight: 600; white-space: nowrap; font-size: 12px; }
.month-body { grid-template-columns: 1fr; gap: 14px; }
  .force-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat-table { min-width: 620px; }
  .drill-path { gap: 4px; }
  .drill-chip { max-width: 170px; }
  .page-foot { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* 六力页字号收口：正文统一 13，降低字号种类 */
body[data-page="diagnosis"] { font-size: 13px; }
body[data-page="diagnosis"] .content { font-size: 13px; }


/* ===== 六力诊断：视觉强化 ===== */
.score-card-dark {
  background: #0e1a2d;
  border-color: #1e2e47;
  color: #e6eef9;
}
.score-card-dark .card-title { color: #fff; }
.score-card-dark .card-sub { color: #94a3b8; }
.score-card-dark .layer-tag { background: #1b2a44; border-color: #2a3b58; color: #a9b6c8; }
.score-card-dark .campus-chip { background: #16243a; border-color: #24344e; color: #c7d2e4; }
.score-card-dark .campus-chip:hover { border-color: #3e5f9e; color: #fff; }
.score-card-dark .campus-chip.is-active { background: #22365a; border-color: #5b8cff; color: #fff; }
.score-card-dark .grade.good { background: rgba(15, 143, 142, 0.22); color: #8fe0d5; }
.score-card-dark .grade.ok { background: rgba(36, 87, 245, 0.22); color: #a9c1ff; }
.score-card-dark .grade.warn { background: rgba(224, 138, 44, 0.2); color: #f3c48d; }
.score-card-dark .grade.bad { background: rgba(180, 40, 28, 0.24); color: #f4a49a; }
.score-hero { display: flex; align-items: center; gap: 16px; margin: 4px 0 2px; }
.score-ring { position: relative; width: 140px; height: 140px; flex: 0 0 140px; }
.score-ring svg { display: block; width: 140px; height: 140px; }
.score-ring-center {
  position: absolute; inset: 0; display: grid; place-content: center;
  text-align: center; gap: 1px; pointer-events: none;
}
.score-ring-center strong { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.score-ring-center span { font-size: 12px; color: #8fa0b8; }
.score-hero-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.score-hero-side > .grade { align-self: flex-start; margin-bottom: 2px; }
.score-side-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 5px; border-bottom: 1px solid #1d2c44;
  font-size: 12px; color: #8fa0b8;
}
.score-side-row:last-child { border-bottom: 0; padding-bottom: 0; }
.score-side-row b { font-size: 15px; font-weight: 600; color: #fff; }
.score-card-dark .score-side-row .delta.up { color: #f4a49a; }
.score-card-dark .score-side-row .delta.down { color: #8fe0d5; }
.score-card-dark .grid-line { stroke: #22314a; }
.score-card-dark .axis-label { fill: #8fa0b8; }
.score-card-dark .chart-tip { background: #fff; color: var(--ink); }
.score-card-dark .chart-tip .tip-date { color: var(--muted); }
.score-card-dark .chart-tip .tip-row b { color: var(--ink); }
.score-card-dark .chart-tip .tip-delta { color: var(--muted); border-top-color: var(--line); }
.score-card-dark .drawer-section .section-title { color: #e6eef9; }
.score-card-dark .drawer-section .section-title span { color: #8fa0b8; }

/* 六力卡：按维度着色 */
.force-tile { --fc: #2457f5; background: #f5f8ff; border-color: #dce6ff; }
.force-tile[data-force="supply"] { --fc: #2457f5; background: #f4f8ff; border-color: #d9e4ff; }
.force-tile[data-force="goods"] { --fc: #0f8f8e; background: #f2faf8; border-color: #cdeae3; }
.force-tile[data-force="price"] { --fc: #7c5cfc; background: #f7f5ff; border-color: #e4dcff; }
.force-tile[data-force="fulfill"] { --fc: #e08a2c; background: #fffaf2; border-color: #f4e3c9; }
.force-tile[data-force="user"] { --fc: #2f7dd1; background: #f4f9ff; border-color: #d7e8f8; }
.force-tile[data-force="market"] { --fc: #0b7e6e; background: #f2faf7; border-color: #cdeae1; }
.force-tile.is-active { box-shadow: inset 0 0 0 1px var(--fc); }
.force-tile .force-spark { margin-top: 1px; }
.force-tile .force-spark svg { width: 100%; height: 22px; opacity: 0.8; }
.force-tile .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.score-card-dark .legend { color: #8fa0b8; }
.score-card-dark .legend i { border-color: #6f98ff; }

/* ===== 物流履约：真实数据版 ===== */
.guide-body { padding: 8px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.leader-donut { width: 100%; max-width: 360px; display: block; }
.leader-label { font-size: 12px; fill: var(--ink); font-family: var(--font); font-weight: 500; }
.leader-value { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.guide-note { font-size: 12px; color: var(--faint); line-height: 1.6; text-align: center; padding: 0 8px; }
.delivery-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 10px 18px 8px; }
.delivery-bar span { height: 100%; }
.delivery-list { display: flex; flex-direction: column; gap: 2px; padding: 0 10px 8px; }
.delivery-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 54px 64px; gap: 8px; align-items: center; height: 38px; padding: 0 8px; border-radius: 5px; font-size: 13px; }
.delivery-row:hover { background: var(--surface-2); }
.delivery-row .dot { width: 8px; height: 8px; border-radius: 2px; }
.delivery-row .name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delivery-row .val { text-align: right; font-weight: 600; }
.delivery-row .sub { text-align: right; font-size: 12px; color: var(--faint); }
.matrix-heat td { text-align: center; }
.matrix-heat td:first-child { text-align: left; }
.metric-heat-cell { height: 36px; border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.heat-legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--faint); padding: 8px 18px 0; }
.heat-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.advice-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 6px 18px 16px; }
.advice-wide .advice-item { border: 1px solid var(--line-soft); border-radius: 6px; padding: 11px 12px; background: var(--surface-2); }
.advice-wide .advice-item b { display: block; margin-bottom: 3px; }
.advice-wide .advice-idx { background: #fff; border: 1px solid var(--line); }
@media (max-width: 1199px) {
  .advice-wide { grid-template-columns: 1fr; }
}

/* ===== 六力运营诊断报告（总部模板口径） ===== */
.report-content { max-width: 1280px; margin: 0 auto; padding-bottom: 28px; }
.report-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0b1424 0%, #13213a 55%, #3a2416 100%);
  border-radius: 10px; color: #fff; padding: 30px 34px 26px;
  margin-bottom: 18px;
}
.report-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.22), transparent 65%);
  pointer-events: none;
}
.report-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #ffb27a; letter-spacing: 0.04em; }
.report-hero h1 { margin: 8px 0 10px; font-size: 26px; font-weight: 600; letter-spacing: 0.01em; }
.report-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12px; color: #aebbd0; }
.report-meta b { color: #fff; font-weight: 500; }
.report-note { margin-top: 14px; padding: 9px 12px; border-left: 2px solid #ff6a00; background: rgba(255,255,255,0.06); font-size: 12px; color: #cfd8e6; line-height: 1.7; max-width: 540px; }
.report-campuses { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.report-campus {
  height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07); color: #dbe5f4; font-size: 12px; cursor: pointer;
}
.report-campus:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.report-campus.is-active { background: #c2410c; border-color: #c2410c; color: #fff; }

.report-section { margin-bottom: 18px; }
.report-section-head {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 15px 22px 14px; border-radius: 8px 8px 0 0;
  background: linear-gradient(100deg, #ff6a00, #e94800);
  color: #fff;
}
.report-section-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.report-section-head p { margin: 3px 0 0; font-size: 12px; color: rgba(255,255,255,0.78); }
.report-section-num { font-size: 36px; line-height: 1.05; font-weight: 700; color: rgba(255,255,255,0.22); letter-spacing: -0.04em; overflow: hidden; height: 38px; }
.report-body { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; padding: 22px 24px 24px; }
.report-conclusion { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 24px; align-items: center; }
.report-sentence { padding: 12px 14px; border-left: 3px solid #ff6a00; background: #fff8f0; color: var(--ink); font-size: 15px; line-height: 1.8; max-width: 620px; }
.report-sentence b { color: #d94a00; }
.report-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.report-index {
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 9px 10px;
  background: #fbfcfe; display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.report-index span { font-size: 12px; color: var(--muted); }
.report-index b { font-size: 15px; font-weight: 600; }
.report-radar { display: flex; flex-direction: column; align-items: center; }
.report-radar svg { width: 100%; max-width: 360px; height: auto; }
.report-radar-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); justify-content: center; margin-top: 2px; }
.report-radar-legend i { display: inline-block; width: 18px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; }
.report-radar-note { font-size: 12px; color: var(--faint); text-align: center; margin: 6px 0 0; line-height: 1.6; }

.report-subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; }
.report-subhead h3 { margin: 0; font-size: 15px; font-weight: 600; }
.report-subhead p { margin: 0; font-size: 12px; color: var(--muted); }
.report-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.report-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; background: #f5f7fb; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.force-block { border-top: 1px solid var(--line-soft); padding: 16px 0 18px; }
.force-block:first-of-type { border-top: 0; padding-top: 4px; }
.force-block-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.force-block-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.force-block-head p { margin: 0; font-size: 12px; color: var(--faint); }
.force-index { font-size: 15px; font-weight: 600; margin-left: 2px; }
.force-status { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.force-conclusion { margin: 10px 0 0; padding: 9px 11px; background: #fbfcfe; border: 1px solid var(--line-soft); border-radius: 5px; font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.force-conclusion b { color: var(--ink); }

.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 720px; }
.report-table th { text-align: right; font-weight: 500; color: var(--muted); background: #fafbfd; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table th:first-child, .report-table td:first-child { text-align: left; }
.report-table td { text-align: right; padding: 8px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table td:first-child { color: var(--ink); white-space: normal; line-height: 1.45; }
.report-table tr:last-child td { border-bottom: 0; }
.report-table .p80 { color: #c2410c; }
.report-table .std { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 3px; font-size: 12px; font-weight: 500; }
.status-good { background: #e9f8f3; color: #0b7e6e; }
.status-mid { background: #fff7e8; color: #b45309; }
.status-bad { background: #fdeceb; color: #c0392b; }
.status-none { background: #f1f4f8; color: #52627a; }
.waterline { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.water-track { position: relative; width: 94px; height: 7px; border-radius: 4px; background: #edf1f7; overflow: hidden; }
.water-track i { display: block; height: 100%; border-radius: 4px; }
.water-p50, .water-p80 { position: absolute; top: -2px; width: 1px; height: 11px; background: #c7d2e1; }
.water-p80 { background: #ffb27a; }
.water-val { font-size: 12px; color: var(--faint); min-width: 30px; text-align: right; }

.issue-card { border: 1px solid var(--line); border-left: 3px solid #ff6a00; border-radius: 6px; padding: 13px 15px; margin-bottom: 10px; background: #fff; }
.issue-card:last-child { margin-bottom: 0; }
.issue-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.issue-no { font-size: 12px; font-weight: 600; color: #b93a00; }
.issue-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.issue-body { margin: 7px 0 0; font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.issue-body b { color: var(--ink); }
.issue-chain { margin-top: 7px; font-size: 12px; color: var(--faint); line-height: 1.7; }

.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-solution { border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px; background: #fff; }
.report-solution .pri { display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 3px; font-size: 12px; font-weight: 600; background: #fff1e6; color: #c2410c; margin-bottom: 8px; }
.report-solution h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
.report-solution p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.report-solution .goal { margin-top: 8px; font-size: 12px; color: #0b7e6e; }

@media (max-width: 1199px) {
  .report-conclusion { grid-template-columns: 1fr; }
  .report-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .report-hero { padding: 22px 18px 20px; }
  .report-hero h1 { font-size: 24px; }
  .report-section-head { padding: 13px 16px; }
  .report-section-num { font-size: 22px; height: 24px; line-height: 1.1; }
  .report-body { padding: 16px 14px 18px; }
  .report-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-report-table { min-width: 700px; }
}
/* 指标明细 · 对标列 */
.metric-table td:nth-child(n+2), .metric-table th:nth-child(n+2) { text-align: right; }
.metric-table.is-bench { table-layout: fixed; min-width: 0; }
.metric-table.is-bench th:nth-child(1) { width: 22%; }
.metric-table.is-bench th:nth-child(2) { width: 10%; }
.metric-table.is-bench .state-pill { padding: 0 4px; font-size: 12px; }
.metric-table.is-bench th, .metric-table.is-bench td { padding-left: 6px; padding-right: 6px; }
.metric-table.is-bench td .state-pill { height: 20px; }
#metricCard { min-width: 0; }
#metricCard .card-body { min-width: 0; }
#metricCard .table-wrap { max-width: 100%; }
#defCard .card-note { max-width: 560px; }

/* ===== 商圈结构 ===== */
.district-content .district-hero {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); padding: 20px 24px 18px; margin-bottom: 16px;
}
.district-content .district-eyebrow { font-size: 12px; color: var(--muted); }
.district-content .district-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.district-content .district-title { margin: 5px 0 7px; font-size: 18px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.district-content .district-sub { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.district-content .district-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.district-content .district-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; background: #f5f7fb; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.district-content .district-stats { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.district-content .district-stat span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.district-content .district-stat b { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.district-content .district-stat i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 3px; }
.district-content .district-stat em { font-style: normal; display: block; font-size: 12px; color: var(--faint); margin-top: 3px; }

.district-content .tier-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin: 8px 0 16px; }
.district-content .tier-bar span { height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; }
.district-content .tier-list { display: flex; flex-direction: column; gap: 2px; }
.district-content .tier-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 90px 70px 70px; gap: 8px; align-items: center; height: 40px; padding: 0 10px; border-radius: 5px; font-size: 13px; }
.district-content .tier-row:hover { background: var(--surface-2); }
.district-content .tier-row .dot { width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; display: inline-block; }
.district-content .tier-row .name { color: var(--ink); white-space: nowrap; }
.district-content .tier-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.district-content .tier-row .share { text-align: right; font-weight: 600; }
.district-content .tier-row .cum { text-align: right; font-size: 12px; color: var(--faint); }
.district-content .tier-head { font-size: 12px; color: var(--faint); padding: 0 10px; height: 28px; align-items: center; }

.district-content .line-body { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.district-content .line-donut { flex: 0 0 168px; }
.district-content .line-legend { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 10px; }
.district-content .line-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 64px 56px; gap: 8px; align-items: center; font-size: 13px; }
.district-content .line-row .dot { width: 8px; height: 8px; border-radius: 2px; }
.district-content .line-row b { text-align: right; }
.district-content .line-row span { text-align: right; color: var(--faint); font-size: 12px; }

.district-content .scene-split { display: flex; height: 16px; border-radius: 5px; overflow: hidden; margin: 8px 0 14px; }
.district-content .scene-split span { height: 100%; }
.district-content .scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.district-content .scene-item { border: 1px solid var(--line-soft); border-radius: 6px; padding: 9px 10px; background: #fbfcfe; }
.district-content .scene-item span { display: block; font-size: 12px; color: var(--muted); }
.district-content .scene-item b { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
.district-content .scene-item em { font-style: normal; font-size: 12px; color: var(--faint); margin-left: 4px; }

.district-content .quality-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.district-content .quality-card { border: 1px solid var(--line-soft); border-radius: 6px; padding: 10px 11px; background: #fbfcfe; }
.district-content .quality-card span { display: block; font-size: 12px; color: var(--muted); }
.district-content .quality-card b { display: block; font-size: 15px; font-weight: 600; margin-top: 3px; }
.district-content .quality-card em { font-style: normal; font-size: 12px; color: var(--faint); }
.district-content .quality-note { margin-top: 10px; padding: 9px 11px; background: #f7f9fd; border: 1px solid var(--line-soft); border-radius: 5px; font-size: 12px; color: var(--ink-2); line-height: 1.7; }

.district-content .profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.district-content .profile-col { min-width: 0; }
.district-content .profile-col h3 { margin: 0 0 8px; font-size: 15px; }
.district-content .profile-col h3 span { font-size: 12px; color: var(--faint); font-weight: 400; margin-left: 6px; }
.district-content .stat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.district-content .stat-row:last-child { border-bottom: 0; }
.district-content .stat-row b { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.district-content .band-list { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.district-content .band-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 48px; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.district-content .band-track { height: 6px; border-radius: 4px; background: #edf1f7; overflow: hidden; }
.district-content .band-track i { display: block; height: 100%; border-radius: 4px; background: #2457f5; opacity: 0.65; }
.district-content .band-row b { text-align: right; color: var(--ink); font-weight: 500; }
.district-content .district-note { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.7; }

@media (max-width: 1199px) {
.district-content .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.district-content .profile-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 900px) {
.district-content .district-hero { padding: 20px 16px; }
.district-content .district-title { font-size: 22px; }
.district-content .district-stats { gap: 16px; }
.district-content .district-stat b { font-size: 18px; }
.district-content .tier-row { grid-template-columns: minmax(84px, 1fr) 68px 52px 52px; gap: 4px; font-size: 12px; }
.district-content .line-body { gap: 12px; }
.district-content .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.district-content .scene-grid { grid-template-columns: 1fr; }
}

body[data-page="district"] { font-size: 13px; }
body[data-page="district"] .line-donut b { font-size: 15px; }

/* ===== 用户分层 · 轩辕真实数据 ===== */
body[data-page="users"] .user-filter { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
body[data-page="users"] .user-filter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
body[data-page="users"] .user-filter-head h2 { margin: 0; }
body[data-page="users"] .user-source-pills { display: flex; flex-wrap: wrap; gap: 6px; }
body[data-page="users"] .user-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; background: #f5f7fb; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
body[data-page="users"] .user-filter-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
body[data-page="users"] .user-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
body[data-page="users"] .user-field select { height: 32px; min-width: 210px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 13px; }
body[data-page="users"] .user-filter-note { font-size: 12px; color: var(--muted); line-height: 1.7; padding-bottom: 3px; }
body[data-page="users"] .user-filter-note b { color: var(--ink); }
body[data-page="users"] .user-warning { font-size: 12px; color: #8a5a12; line-height: 1.7; background: #fffaf1; border: 1px solid #f2dfc2; border-radius: 5px; padding: 8px 10px; max-width: 720px; }

body[data-page="users"] .user-layer-table th { white-space: nowrap; }
body[data-page="users"] .user-layer-table th span { font-weight: 400; font-size: 12px; color: var(--faint); }
body[data-page="users"] .user-layer-table td { font-size: 13px; }
body[data-page="users"] .layer-stack { display: flex; height: 18px; border-radius: 5px; overflow: hidden; margin: 4px 0 12px; background: var(--line-soft); }
body[data-page="users"] .layer-stack span { height: 100%; min-width: 1px; }
body[data-page="users"] .layer-empty { display: grid; place-items: center; height: 56px; color: var(--faint); font-size: 12px; background: var(--surface-2); border-radius: 5px; }
body[data-page="users"] .layer-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
body[data-page="users"] .user-raw-note { font-size: 12px; color: var(--faint); line-height: 1.75; padding: 8px 0 0; max-width: 580px; }
body[data-page="users"] .user-raw-note b { color: var(--ink-2); font-weight: 500; }

body[data-page="users"] .layer-mix-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
body[data-page="users"] .layer-mix-list { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 6px; }
body[data-page="users"] .layer-mix-row { display: grid; grid-template-columns: 10px 28px minmax(0, 1fr) 54px; gap: 8px; align-items: center; font-size: 12px; }
body[data-page="users"] .layer-mix-row b { text-align: right; color: var(--ink); font-weight: 500; }
body[data-page="users"] .layer-mix-row span:last-child { text-align: right; color: var(--faint); }

body[data-page="users"] .user-trend-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); padding: 2px 2px 0; }
body[data-page="users"] .user-trend-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; }
body[data-page="users"] .card-actions .seg { flex-wrap: wrap; }

body[data-page="users"] .user-gx-table td:first-child { min-width: 180px; }
body[data-page="users"] .gx-layer-bar { display: inline-flex; width: 150px; height: 12px; border-radius: 3px; overflow: hidden; vertical-align: middle; background: var(--line-soft); }
body[data-page="users"] .gx-layer-bar i { height: 100%; }
body[data-page="users"] .user-gx-table tr.is-active td { background: #f4f8ff; }

body[data-page="users"] .demo-flag { display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 3px; background: #f1f4f8; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 6px; }
body[data-page="users"] .demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body[data-page="users"] .demo-module { border: 1px solid var(--line-soft); border-radius: 6px; padding: 11px 12px; background: #fbfcfe; }
body[data-page="users"] .demo-module-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
body[data-page="users"] .demo-module-head span { font-size: 12px; color: var(--faint); }
body[data-page="users"] .demo-skeleton { display: flex; gap: 4px; align-items: flex-end; height: 28px; margin: 10px 0 7px; }
body[data-page="users"] .demo-skeleton i { flex: 1; display: block; border-radius: 2px; background: #e9eef6; }
body[data-page="users"] .demo-skeleton i:nth-child(1) { height: 55%; }
body[data-page="users"] .demo-skeleton i:nth-child(2) { height: 85%; }
body[data-page="users"] .demo-skeleton i:nth-child(3) { height: 40%; }
body[data-page="users"] .demo-module p { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.6; }
body[data-page="users"] .demo-module:hover { border-color: #d7e1f2; }

@media (max-width: 1199px) {
  body[data-page="users"] .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="users"] .user-gx-table td:first-child { min-width: 150px; }
}
@media (max-width: 900px) {
  body[data-page="users"] .user-filter { padding: 14px; }
  body[data-page="users"] .user-field select { min-width: 0; width: 100%; }
  body[data-page="users"] .user-field { flex: 1 1 100%; }
  body[data-page="users"] .layer-mix-body { gap: 10px; }
  body[data-page="users"] .gx-layer-bar { width: 90px; }
  body[data-page="users"] .demo-grid { grid-template-columns: 1fr; }
}

body[data-page="users"] { font-size: 13px; }
body[data-page="users"] #trendCard .card-head { flex-wrap: wrap; }
body[data-page="users"] #trendCard .card-title { white-space: nowrap; }

/* 商圈履约质量 · 图形 */
.district-content .quality-top { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: center; }
.district-content .quality-meters { display: flex; flex-direction: column; gap: 10px; }
.district-content .quality-meter .qm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.district-content .quality-meter .qm-head b { font-size: 15px; font-weight: 600; color: var(--ink); }
.district-content .qm-track { height: 8px; border-radius: 4px; background: #edf1f7; overflow: hidden; margin-top: 4px; }
.district-content .qm-track i { display: block; height: 100%; border-radius: 4px; }
.district-content .qm-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 2px; }
.district-content .quality-reason { border-left: 1px solid var(--line-soft); padding-left: 16px; display: flex; flex-direction: column; align-items: center; }
.district-content .qm-title { font-size: 12px; color: var(--muted); margin-bottom: 4px; align-self: flex-start; }
.district-content .reason-donut { position: relative; width: 148px; height: 148px; }
.district-content .reason-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.district-content .reason-center b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); }
.district-content .reason-center span { font-size: 12px; color: var(--faint); }
.district-content .reason-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; width: 100%; margin-top: 4px; }
.district-content .reason-row { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.district-content .reason-row i { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 7px; }
.district-content .reason-row span { flex: 1; }
.district-content .reason-row b { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .district-content .quality-top { grid-template-columns: 1fr; gap: 14px; }
  .district-content .quality-reason { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; padding-top: 12px; }
}

/* ===== 物流履约 · 轩辕真实数据 ===== */
body[data-page="logistics"] .logi-filter { padding: 14px 18px 13px; display: flex; flex-direction: column; gap: 9px; }
body[data-page="logistics"] .logi-filter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
body[data-page="logistics"] .logi-filter-head h2 { margin: 0; }
body[data-page="logistics"] .logi-pills { display: flex; flex-wrap: wrap; gap: 6px; }
body[data-page="logistics"] .logi-pill { display: inline-flex; align-items: center; height: 23px; padding: 0 8px; border-radius: 4px; background: #f5f7fb; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
body[data-page="logistics"] .logi-filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body[data-page="logistics"] .logi-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
body[data-page="logistics"] .logi-field select { height: 32px; min-width: 280px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 13px; }
body[data-page="logistics"] .logi-filter-note { font-size: 12px; color: var(--faint); line-height: 1.6; }

body[data-page="logistics"] .logi-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
body[data-page="logistics"] .logi-kpi-grid .kpi { min-width: 0; }

body[data-page="logistics"] .logi-table th { white-space: nowrap; }
body[data-page="logistics"] .logi-table td { white-space: nowrap; font-size: 12px; }
body[data-page="logistics"] .logi-table td:first-child { white-space: normal; min-width: 160px; }
body[data-page="logistics"] .logi-table tr.is-active td { background: #f4f8ff; }
body[data-page="logistics"] .logi-risk-pill { display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 3px; background: #fff1e6; color: #b45309; font-size: 12px; }
body[data-page="logistics"] .logi-ok-pill { display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 3px; background: #edf8f4; color: #0b7e6e; font-size: 12px; }
body[data-page="logistics"] .logi-note { font-size: 12px; color: var(--faint); line-height: 1.7; padding: 8px 0 0; max-width: 680px; }

body[data-page="logistics"] .logi-insight { display: flex; flex-direction: column; gap: 2px; }
body[data-page="logistics"] .logi-insight-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
body[data-page="logistics"] .logi-insight-row:last-child { border-bottom: 0; }
body[data-page="logistics"] .logi-insight-row b { font-weight: 600; text-align: right; }
body[data-page="logistics"] .logi-insight-row b.bad { color: #c0392b; }
body[data-page="logistics"] .logi-insight-row b.warn { color: #b45309; }

body[data-page="logistics"] .logi-stack-list { display: flex; flex-direction: column; gap: 9px; }
body[data-page="logistics"] .logi-stack-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: center; }
body[data-page="logistics"] .logi-stack-item.is-active .logi-stack-name { color: var(--primary); font-weight: 600; }
body[data-page="logistics"] .logi-stack-name { font-size: 12px; color: var(--muted); white-space: nowrap; }
body[data-page="logistics"] .logi-stack-bar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; background: var(--line-soft); }
body[data-page="logistics"] .logi-stack-bar i { display: block; height: 100%; min-width: 1px; }
body[data-page="logistics"] .logi-stack-empty { background: repeating-linear-gradient(45deg, #e3e9f1, #e3e9f1 3px, #f4f7fb 3px, #f4f7fb 6px) !important; }
body[data-page="logistics"] .logi-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
body[data-page="logistics"] .logi-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; }

body[data-page="logistics"] .logi-crowd-list { display: flex; flex-direction: column; gap: 12px; }
body[data-page="logistics"] .logi-crowd-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
body[data-page="logistics"] .logi-crowd-label b { font-size: 13px; font-weight: 600; color: var(--ink); }
body[data-page="logistics"] .logi-crowd-track { height: 9px; border-radius: 5px; background: #edf1f7; overflow: hidden; margin-top: 4px; }
body[data-page="logistics"] .logi-crowd-track i { display: block; height: 100%; border-radius: 5px; }

body[data-page="logistics"] .logi-peak-table td { text-align: center; }
body[data-page="logistics"] .logi-peak-table td:first-child { text-align: left; }
body[data-page="logistics"] .logi-peak-cell { display: inline-grid; place-items: center; width: 58px; height: 28px; border-radius: 4px; font-size: 12px; color: var(--ink); }
body[data-page="logistics"] .logi-ux-table td { min-width: 150px; }
body[data-page="logistics"] .logi-ux-table td:first-child { min-width: 120px; }
body[data-page="logistics"] .logi-ux-val { display: inline-block; width: 54px; font-size: 12px; color: var(--ink); }
body[data-page="logistics"] .logi-ux-bar { display: inline-block; vertical-align: middle; width: 90px; height: 7px; border-radius: 4px; background: #edf1f7; overflow: hidden; margin-left: 4px; }
body[data-page="logistics"] .logi-ux-bar i { display: block; height: 100%; border-radius: 4px; }

@media (max-width: 1199px) {
  body[data-page="logistics"] .logi-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body[data-page="logistics"] .logi-filter { padding: 13px 14px; }
  body[data-page="logistics"] .logi-field { width: 100%; }
  body[data-page="logistics"] .logi-field select { min-width: 0; width: 100%; }
  body[data-page="logistics"] .logi-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body[data-page="logistics"] .logi-stack-item { grid-template-columns: 70px minmax(0, 1fr); gap: 7px; }
  body[data-page="logistics"] .logi-note { max-width: none; }
}

body[data-page="logistics"] #trendCard .card-head { flex-wrap: wrap; }
body[data-page="logistics"] #trendCard .card-title { white-space: nowrap; }

body[data-page="logistics"] .logi-detail-table td { font-size: 13px; }
body[data-page="logistics"] .logi-detail-table td:first-child { min-width: 120px; }

body[data-page="logistics"] .logi-cap-table th { white-space: nowrap; }
body[data-page="logistics"] .logi-cap-table td { min-width: 68px; padding-left: 4px; padding-right: 4px; }
body[data-page="logistics"] .logi-cap-val { display: inline-block; width: 44px; font-size: 12px; color: var(--ink); vertical-align: middle; }
body[data-page="logistics"] .logi-cap-track { display: inline-block; width: 22px; height: 6px; border-radius: 4px; background: #edf1f7; overflow: hidden; vertical-align: middle; margin-left: 3px; }
body[data-page="logistics"] .logi-cap-track i { display: block; height: 100%; border-radius: 4px; background: #2457F5; }

/* 物流页细节增强 */
body[data-page="logistics"] .logi-quick-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
body[data-page="logistics"] .logi-quick-label { font-size: 12px; color: var(--faint); margin-right: 2px; }
body[data-page="logistics"] .logi-quick { height: 26px; padding: 0 9px; border-radius: 4px; border: 1px solid var(--line); background: #fafbfd; color: var(--muted); font-size: 12px; cursor: pointer; }
body[data-page="logistics"] .logi-quick:hover { border-color: #c9d8ff; color: var(--ink); }
body[data-page="logistics"] .logi-quick.is-active { background: #eef4ff; border-color: #9db4f9; color: var(--primary); font-weight: 500; }

body[data-page="logistics"] .logi-kpi-grid .kpi { background: #fbfcfe; border-top: 2px solid #2457F5; padding: 12px 14px; }
body[data-page="logistics"] .logi-kpi-grid .kpi.kpi-quality { background: #f8fdfb; border-top-color: #0F8F8E; }
body[data-page="logistics"] .logi-kpi-grid .kpi.kpi-exp { background: #fffbf5; border-top-color: #E08A2C; }
body[data-page="logistics"] .logi-kpi-grid .kpi .kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
body[data-page="logistics"] .logi-kpi-grid .kpi .spark { width: 62px; height: 24px; opacity: .9; }

body[data-page="logistics"] .logi-table tfoot td { background: #f7f9fd; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
body[data-page="logistics"] .logi-table tfoot td:first-child { color: var(--ink); font-weight: 500; }
body[data-page="logistics"] .logi-spark { display: inline-block; width: 68px; height: 22px; vertical-align: middle; }
body[data-page="logistics"] .logi-spark .spark { width: 68px; height: 22px; }

body[data-page="logistics"] .logi-cap-table td { vertical-align: middle; }
body[data-page="logistics"] .logi-cap-main { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
body[data-page="logistics"] .logi-cap-table tfoot td { background: #f7f9fd; border-top: 1px solid var(--line); }

body[data-page="logistics"] .logi-ux-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
body[data-page="logistics"] .logi-ux-sum-item { border: 1px solid var(--line-soft); border-radius: 5px; background: #fbfcfe; padding: 8px 10px; }
body[data-page="logistics"] .logi-ux-sum-item span { display: block; font-size: 12px; color: var(--muted); }
body[data-page="logistics"] .logi-ux-sum-item b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 1px; }

body[data-page="logistics"] .logi-detail-val { display: inline-block; width: 54px; font-size: 12px; color: var(--ink); vertical-align: middle; }
body[data-page="logistics"] .logi-detail-track { display: inline-block; width: 110px; height: 7px; border-radius: 4px; background: #edf1f7; overflow: hidden; vertical-align: middle; margin-left: 4px; }
body[data-page="logistics"] .logi-detail-track i { display: block; height: 100%; border-radius: 4px; background: #2457F5; opacity: .7; }
body[data-page="logistics"] .logi-detail-table td { min-width: 180px; }
body[data-page="logistics"] .logi-detail-table td:first-child { min-width: 110px; }
body[data-page="logistics"] .logi-detail-table tfoot td { background: #f7f9fd; border-top: 1px solid var(--line); }

.point-label { font-size: 12px; fill: #4b5b72; font-family: var(--font); }

body[data-page="logistics"] .logi-cap-table .cell-sub { white-space: nowrap; font-size: 12px; }
body[data-page="logistics"] .logi-cap-table td:first-child { min-width: 122px; }
body[data-page="logistics"] .point-label { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }

.marker-line { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; }
.marker-label { font-size: 12px; fill: #52627a; font-family: var(--font); }
body[data-page="logistics"] .logi-field-sm select { min-width: 178px; }

body[data-page="diagnosis"] .kpi-estimate {
  display: inline-flex; align-items: center; align-self: flex-start;
  margin-top: 5px; padding: 1px 6px; border-radius: 3px;
  background: #fff7ed; border: 1px solid #f1d2a6; color: #8a5a12;
  font-size: 12px; line-height: 18px; white-space: nowrap;
}

.tier-summary {
  margin: 8px 18px 0; padding: 8px 10px;
  background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 5px;
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
.tier-summary b { color: var(--ink); font-weight: 600; }
.tier-summary-note { margin: 4px 18px 0; font-size: 12px; color: var(--faint); }

/* ===== 统一入口 ===== */
body[data-page="home"] { min-height: 100vh; background: #f3f5f9; }
.home-shell { min-height: 100vh; display: flex; flex-direction: column; }
.home-top { height: 68px; flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; background: #0b1424; color: #fff; }
.home-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.home-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #2457f5; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.home-brand strong { display: block; font-size: 14px; font-weight: 600; }
.home-brand em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; color: #9aa8bd; }
.home-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.home-tabs a { padding: 7px 11px; border-radius: 5px; color: #b9c6d8; font-size: 12px; text-decoration: none; }
.home-tabs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.home-main { width: 100%; max-width: 1260px; margin: 0 auto; padding: 30px 28px 22px; flex: 1; }
.home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; padding: 28px 30px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.home-eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.home-hero h1 { margin: 7px 0 8px; font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.home-hero p { margin: 0; max-width: 680px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.home-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 15px; font-size: 12px; color: var(--faint); }
.home-status { display: flex; align-items: flex-start; gap: 9px; flex: 0 0 260px; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fafcff; }
.home-status-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #0f8f8e; flex: 0 0 7px; }
.home-status b { display: block; font-size: 12px; color: var(--ink); font-weight: 600; }
.home-status span:not(.home-status-dot) { display: block; margin-top: 3px; font-size: 12px; line-height: 1.65; color: var(--faint); }
.home-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.home-card { grid-column: span 2; display: flex; flex-direction: column; min-height: 236px; padding: 20px 20px 18px; border: 1px solid var(--line); border-top: 3px solid #2457f5; border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.home-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23, 43, 77, .09); }
.home-card:nth-child(4), .home-card:nth-child(5) { grid-column: span 3; }
.home-card-blue { border-top-color: #2457f5; }
.home-card-amber { border-top-color: #d9902f; }
.home-card-teal { border-top-color: #0f8f8e; }
.home-card-orange { border-top-color: #d66b29; }
.home-card-indigo { border-top-color: #5b5bd6; }
.home-card-top { display: flex; align-items: center; justify-content: space-between; }
.home-num { font-size: 12px; color: var(--faint); letter-spacing: .06em; }
.home-tag { padding: 2px 7px; border-radius: 3px; background: #f3f6fb; color: var(--muted); font-size: 12px; }
.home-card h2 { margin: 13px 0 7px; font-size: 18px; font-weight: 600; color: var(--ink); }
.home-card p { margin: 0; min-height: 46px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.home-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 13px; font-size: 12px; color: var(--faint); }
.home-card-meta span + span::before { content: "·"; margin-right: 10px; color: var(--line); }
.home-open { margin-top: auto; padding-top: 15px; padding-right: 4px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--primary); font-weight: 500; }
.home-open span { font-size: 16px; line-height: 1; }
.home-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.home-note h2 { margin: 0 0 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.home-note p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.home-note b { color: var(--ink); font-weight: 600; }
.home-note .btn { flex: 0 0 auto; text-decoration: none; }
.home-foot { display: flex; justify-content: space-between; gap: 16px; padding: 18px 34px 22px; font-size: 12px; color: var(--faint); }
@media (max-width: 900px) {
  .home-top { height: auto; flex: 0 0 auto; align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px 18px; }
  .home-tabs { justify-content: flex-start; }
  .home-main { padding: 18px 14px; }
  .home-hero { flex-direction: column; align-items: stretch; padding: 20px 18px; }
  .home-hero h1 { font-size: 23px; }
  .home-status { flex: 0 0 auto; }
  .home-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-card, .home-card:nth-child(4), .home-card:nth-child(5) { grid-column: span 1; min-height: 210px; padding: 15px; }
  .home-card h2 { font-size: 16px; }
  .home-card p { min-height: 0; }
  .home-note { flex-direction: column; align-items: flex-start; padding: 15px; }
  .home-foot { flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
}
@media (max-width: 480px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-card, .home-card:nth-child(4), .home-card:nth-child(5) { grid-column: span 1; min-height: 0; }
}
