:root{
  --bg:#f4f6fa; --paper:#fff; --ink:#16213b; --muted:#6f7d94; --line:#e8edf5;
  --blue:#2f5bea; --teal:#0a9c8d; --amber:#e0912f; --rose:#d95563; --navy:#101c33;
  --radius:14px;
}
*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--ink); font-size:13.5px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}

/* ---------- 顶栏 ---------- */
.topbar{background:var(--navy);color:#fff}
.tb-inner{max-width:1120px;margin:0 auto;padding:14px 28px;display:flex;align-items:center;gap:14px}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:14px}
.brand i{width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(140deg,#5b86ff,#2f5bea);font-style:normal;font-size:12px}
.tb-spacer{flex:1}
.tb-badge{font-size:11px;color:#9fb2d1;border:1px solid #2a3a56;border-radius:20px;padding:4px 10px}
.tb-back{color:#c7d4ea;text-decoration:none;font-size:12px}
.tb-back:hover{color:#fff}

/* ---------- 容器 ---------- */
.wrap{max-width:1120px;margin:0 auto;padding:34px 28px 64px}
.hero h1{font-size:30px;margin:0 0 8px;letter-spacing:-.7px;font-weight:800}
.hero p{margin:0;color:var(--muted);line-height:1.7;font-size:13px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.chip{background:#fff;border:1px solid var(--line);border-radius:20px;padding:6px 12px;font-size:11.5px;color:#5a6a85}
.chip b{color:#243a5e}

/* ---------- 卡片 ---------- */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:26px}
.card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:20px 20px 18px;text-decoration:none;box-shadow:0 6px 22px #16213b08;
  transition:transform .15s,box-shadow .15s;min-height:196px}
.card::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;border-radius:14px 14px 0 0;background:var(--acc)}
.card:hover{transform:translateY(-2px);box-shadow:0 16px 36px #16213b12}
.card-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.icon{width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:14px;background:var(--acc)}
.tag{font-size:10.5px;background:#f2f4f8;color:#6f7c93;border-radius:20px;padding:4px 9px;font-weight:600}
.card h3{margin:0 0 8px;font-size:17px;letter-spacing:-.2px}
.card p{margin:0;color:var(--muted);line-height:1.75;font-size:12.5px;flex:1}
.card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:11.5px;color:#95a1b5}
.btn{background:#151b2a;color:#fff;border-radius:9px;padding:8px 14px;font-size:12px;font-weight:650;text-decoration:none}
.card:hover .btn{background:#2a3350}

/* ---------- KPI ---------- */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:22px 0 6px}
.kpi{background:#fff;border:1px solid var(--line);border-top:3px solid var(--acc,#2f5bea);
  border-radius:12px;padding:15px 16px;box-shadow:0 1px 3px #16213b08}
.kpi span{font-size:11.5px;color:var(--muted)}
.kpi b{display:block;font-size:26px;margin-top:7px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.kpi small{display:block;margin-top:4px;font-size:10.5px;color:#8b98ad}

/* ---------- 面板 ---------- */
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin-top:16px}
.panel h2{font-size:13px;margin:0 0 14px;font-weight:750}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.panel-head h2{margin:0}
.legend{display:flex;gap:14px;font-size:11px;color:var(--muted)}
.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px;vertical-align:-1px}

/* ---------- 图表 ---------- */
svg.chart{width:100%;height:auto;display:block}
.axis{font-size:12px;fill:#6f7d94}
.grid-line{stroke:#eef2f8;stroke-width:1}
.bar{fill:#4a74f0}
.line{fill:none;stroke:#e8892e;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.dot{fill:#e8892e;stroke:#fff;stroke-width:1.4}

/* ---------- 表格 ---------- */
table{width:100%;border-collapse:collapse;font-size:13px}
th{font-size:11.5px;color:#71809a;text-align:left;font-weight:750;background:#f8fafd;padding:11px 14px;
  border-bottom:1px solid var(--line)}
td{padding:12px 14px;border-bottom:1px solid #eef2f8;font-variant-numeric:tabular-nums}
tr:last-child td{border-bottom:none}
td.num,th.num{text-align:right}
td.metric{font-weight:700;color:#22314c}
.pill{display:inline-block;font-size:10px;font-weight:750;border-radius:5px;padding:2px 7px;background:#eef3ff;color:#3358a8}
.pill.b{background:#fff4e2;color:#a86e22}

/* ---------- 筛选 ---------- */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.fbtn{border:1px solid var(--line);background:#fff;border-radius:20px;padding:5px 12px;font-size:12px;
  cursor:pointer;color:#5a6a85;font-family:inherit}
.fbtn.on{background:#151b2a;color:#fff;border-color:#151b2a}

/* ---------- 页脚 ---------- */
.foot{margin-top:32px;padding-top:16px;border-top:1px dashed #e2e8f2;color:#93a1b8;font-size:11px;line-height:1.9}

@media(max-width:900px){
  .grid{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr 1fr}
  .wrap{padding:24px 18px 48px}
  .hero h1{font-size:24px}
}
