/* 统计图：分类色按固定顺序（--series-1..5 在 style.css 中定义），文字用正文颜色。
   渲染由 charts.js 负责，这里只定义容器、图形、图例和提示的观感。 */
.charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.charts .card{margin:0;min-width:0;padding:18px 20px 14px}
.charts .wide{grid-column:1/-1}
.chart-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.chart-head i{width:30px;height:30px;flex:none;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.chart-head div{min-width:0}
.chart-head h2{margin:0;line-height:1.3}
.chart-head small{display:block;color:var(--muted);font-size:12px;line-height:1.4}
.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:2px 0 14px}
.stat-row div{display:grid;gap:2px;padding:10px 14px;border-radius:10px;background:var(--thead)}
.stat-row span{font-size:12px;color:var(--muted)}
.stat-row b{font-size:20px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums}
.stat-row b.neg{color:var(--bad)}
.stat-row b.pos{color:var(--ok)}
.viz{width:100%;min-height:40px}
.viz svg{display:block;overflow:visible;font-family:inherit}
.viz .s1{fill:var(--series-1)} .viz .s2{fill:var(--series-2)} .viz .s3{fill:var(--series-3)} .viz .s4{fill:var(--series-4)} .viz .s5{fill:var(--series-5)}
.viz stop.s1{stop-color:var(--series-1)} .viz stop.s2{stop-color:var(--series-2)} .viz stop.s3{stop-color:var(--series-3)}
.viz .ln{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.viz .l1{stroke:var(--series-1)} .viz .l2{stroke:var(--series-2)} .viz .l3{stroke:var(--series-3)}
.viz .dot{fill:#fff;stroke-width:2.5}
.viz .grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
.viz .grid.zero{stroke-dasharray:none}
.viz .base{stroke:var(--line-strong);stroke-width:1}
.viz .ax{fill:var(--faint);font-size:12px}
.viz .ax.sub{font-size:11px}
.viz .lb{fill:var(--text);font-size:13px}
.viz .val{fill:var(--text);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.viz .track{fill:var(--gray-soft)}
.viz .band{fill:transparent;transition:fill .15s}
.viz .col:hover .band{fill:rgba(22,104,220,.05)}
.viz .guide{stroke:var(--faint);stroke-width:1;stroke-dasharray:3 3;opacity:0;transition:opacity .15s}
.viz .col:hover .guide{opacity:1}
.viz .hit{fill:transparent}
.viz-hbars .hit:hover{fill:rgba(22,104,220,.04)}
.viz .seg{stroke:var(--panel);stroke-width:2;transition:opacity .15s}
.viz .donut:hover .seg{opacity:.55}
.viz .donut .seg:hover{opacity:1}
.viz .donut-n{fill:var(--text);font-size:24px;font-weight:650}
.donut{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.donut svg{flex:none}
.donut-list{list-style:none;margin:0;padding:0;flex:1;min-width:150px;max-width:280px;display:grid;gap:10px}
.donut-list li{display:grid;grid-template-columns:10px 1fr auto auto;align-items:center;gap:8px;font-size:13px}
.donut-list i{width:10px;height:10px;border-radius:3px}
.donut-list i.s1{background:var(--series-1)} .donut-list i.s2{background:var(--series-2)} .donut-list i.s3{background:var(--series-3)} .donut-list i.s4{background:var(--series-4)} .donut-list i.s5{background:var(--series-5)}
.donut-list b{font-weight:600;font-variant-numeric:tabular-nums}
.donut-list small{min-width:36px;text-align:right;color:var(--muted)}
.viz-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 8px;font-size:12px;color:var(--muted)}
.viz-legend span{display:inline-flex;align-items:center;gap:6px}
.viz-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.viz-legend i.s1{background:var(--series-1)} .viz-legend i.s2{background:var(--series-2)} .viz-legend i.s3{background:var(--series-3)}
.viz-table{margin-top:10px;padding-top:8px;border-top:1px dashed var(--line);font-size:12px}
.viz-table summary{cursor:pointer;color:var(--muted);width:max-content}
.viz-table summary:hover{color:var(--accent)}
.viz-table table{margin-top:6px}
.viz-table td.num{text-align:right}
.viz-tip{position:fixed;z-index:90;pointer-events:none;display:grid;gap:2px;padding:8px 12px;border-radius:10px;background:rgba(11,28,61,.94);color:#fff;font-size:12px;box-shadow:var(--shadow-lg);white-space:nowrap}
.viz-tip b{font-weight:600;margin-bottom:2px}
.viz-tip span{color:rgba(255,255,255,.85);font-variant-numeric:tabular-nums}
.viz-empty{color:var(--faint);font-size:13px;padding:28px 0;text-align:center;border-radius:10px;background:var(--thead)}
@media (max-width:860px){.charts{grid-template-columns:1fr}.stat-row b{font-size:18px}.donut{gap:14px}}
