/* ============ 重点指标页（KPI 发展数量 · 逐日/逐周） ============ */

/* 指标卡网格 */
.key-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:18px}
.key-card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:16px 16px 14px;box-shadow:var(--shadow);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.key-card:hover{border-color:#e0e2e8;box-shadow:0 4px 14px rgba(20,25,40,.06)}
.key-card.active{border-color:var(--red);box-shadow:0 0 0 1px var(--red) inset,0 4px 14px rgba(230,0,18,.08)}
.key-card .kc-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.key-card .kc-name{font-size:13px;color:var(--ink-2);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.key-card .kc-score{font-size:10.5px;color:var(--faint);flex-shrink:0}
.key-card .kc-value{font-size:26px;font-weight:650;color:var(--ink);margin-top:8px;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.key-card.active .kc-value{color:var(--red)}
.key-card .kc-value small{font-size:12px;font-weight:500;color:var(--faint);margin-left:2px}
.key-card .kc-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:8px}
.key-card .kc-mom{font-size:11.5px;font-weight:600;color:var(--muted);white-space:nowrap}
.key-card .kc-mom.up{color:var(--red)}
.key-card .kc-mom.down{color:var(--green)}
.key-card .kc-cum{font-size:11px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.key-card .kc-bar{height:3px;background:var(--line-2);border-radius:2px;margin-top:10px;overflow:hidden}
.key-card .kc-bar i{display:block;height:100%;background:var(--red);border-radius:2px;opacity:.75}
@media(max-width:1240px){.key-cards{grid-template-columns:repeat(4,1fr)}}
@media(max-width:980px){.key-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.key-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.key-cards{grid-template-columns:1fr}}

/* 表格卡片（无内边距） */
.chart-card-body.pad0{padding:0}
.key-matrix .tbl thead th:not(:first-child),
.key-matrix .tbl tbody td:not(:first-child){text-align:right}
.key-matrix .tbl tbody td .zero{color:var(--faint)}
.key-matrix .tbl tbody tr.sel td{background:var(--red-soft)}
.key-matrix .tbl tbody tr.sel td:first-child{color:var(--red-deep);font-weight:600}
.key-matrix .tbl .cell-bar{display:inline-block;height:4px;border-radius:2px;background:var(--red);opacity:.7;vertical-align:middle;margin-right:8px}
