/* ================= 仪表盘数据大屏（精简版） ================= */
.dash-hero{position:relative;overflow:hidden;border-radius:20px;padding:18px 22px;color:#fff;
  background:linear-gradient(120deg,#4f7cff 0%,#6f5bff 55%,#8b5cf6 100%);
  box-shadow:0 16px 34px rgba(79,124,255,.32);margin-bottom:14px}
.dash-hero::after{content:"";position:absolute;right:-70px;top:-90px;width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.26),transparent 70%)}
.dash-hero::before{content:"";position:absolute;left:-50px;bottom:-100px;width:220px;height:220px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.15),transparent 70%)}
.dash-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;z-index:2;flex-wrap:wrap}
.dash-hero .dash-title{font-size:13.5px;opacity:.92;letter-spacing:.5px;font-weight:600}
.dash-hero .dash-sub{font-size:12px;opacity:.8;margin-top:2px}
.dash-big{display:flex;align-items:flex-end;justify-content:flex-start;gap:12px;margin-top:14px;position:relative;z-index:2;flex-wrap:nowrap}
.dash-big .bcol{display:flex;flex-direction:column;flex:0 0 auto;min-width:0}
.dash-big .bcol-mileage{flex:0 0 auto}
.dash-big .blabel{font-size:12px;opacity:.85;margin-bottom:5px}
.dash-big .bnum{font-size:30px;font-weight:900;letter-spacing:-1px;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.dash-big .bnum small{font-size:14px;font-weight:600;letter-spacing:0;margin-left:3px;opacity:.85}
.dash-big .bnum.sm{font-size:22px}

/* 车辆切换胶囊 */
.vehicle-switch{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;position:relative;z-index:2}
.vswitch{border:0;cursor:pointer;border-radius:999px;padding:6px 13px;font-size:12.5px;font-weight:700;
  background:rgba(255,255,255,.18);color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:.15s;
  display:inline-flex;align-items:center;gap:5px}
.vswitch:hover{background:rgba(255,255,255,.3)}
.vswitch.active{background:#fff;color:#4f5bd6;box-shadow:0 6px 16px rgba(0,0,0,.16)}

/* KPI 网格（缩小） */
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px}
.kpi{background:#fff;border-radius:14px;padding:12px;box-shadow:0 6px 16px rgba(31,45,90,.06);position:relative;overflow:hidden}
.kpi .ki{width:28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;margin-bottom:8px}
.kpi .kl{font-size:12px;color:#8a94a6;margin-bottom:4px}
.kpi .kv{font-size:18px;font-weight:800;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.kpi .kv small{font-size:11px;color:#8a94a6;font-weight:600;margin-left:2px}
.kpi .ksub{display:flex;flex-direction:column;gap:1px;font-size:11px;color:#8a94a6;margin-top:4px;line-height:1.4}
.kpi .ki.c1{background:#eaf0ff;color:#4f7cff}
.kpi .ki.c2{background:#fff1eb;color:#ff7a45}
.kpi .ki.c3{background:#e6fcf4;color:#12b886}
.kpi .ki.c4{background:#fff4e2;color:#f5a524}
.kpi .ki.c5{background:#f3ecff;color:#8b5cf6}
.kpi .ki.c6{background:#feeceb;color:#e5484d}

/* 图表区 */
.dash-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.chart-card{background:#fff;border-radius:16px;box-shadow:0 6px 16px rgba(31,45,90,.06);padding:16px}
.chart-card h4{margin:0 0 3px;font-size:14px;display:flex;align-items:center;gap:8px}
.chart-card .csub{font-size:12px;color:#8a94a6;margin-bottom:12px}

/* 环形图 */
.ring-wrap{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.ring{width:128px;height:128px;border-radius:50%;position:relative;flex:none}
.ring .ring-hole{position:absolute;inset:20px;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring .ring-hole .rt{font-size:18px;font-weight:800;letter-spacing:-.5px}
.ring .ring-hole .rl{font-size:10.5px;color:#8a94a6;margin-top:2px}
.ring-legend{display:flex;flex-direction:column;gap:11px;flex:1;min-width:140px}
.ring-legend .lg{display:flex;align-items:center;gap:9px;font-size:13px}
.ring-legend .dot{width:10px;height:10px;border-radius:3px;flex:none}
.ring-legend .nm{flex:1;color:#5b6577}
.ring-legend .vl{font-weight:800;font-variant-numeric:tabular-nums}
.ring-legend .pct{color:#8a94a6;font-size:11.5px;width:42px;text-align:right}

/* 趋势柱状 */
.trend{display:flex;align-items:flex-end;gap:10px;height:150px;padding-top:6px}
.trend .tcol{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:5px}
.trend .tstack{width:100%;max-width:38px;flex:1;height:auto;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;gap:2px}
.trend .tseg{border-radius:4px 4px 0 0;min-height:2px;transition:.4s}
.trend .tseg.fuel{background:linear-gradient(180deg,#ff9a6b,#ff7a45)}
.trend .tseg.charge{background:linear-gradient(180deg,#38d9a9,#12b886)}
.trend .tseg.maint{background:linear-gradient(180deg,#8ab4ff,#4f7cff)}
.trend .tlabel{font-size:10.5px;color:#8a94a6}
.trend .tamt{font-size:9.5px;font-weight:700;color:#5b6577;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.trend .tcol.cur .tamt{color:#4f7cff}
.trend-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.trend-filters input[type="month"],.trend-filters select{border:1.5px solid var(--line);border-radius:9px;padding:6px 8px;font-size:12px;background:#fafbfe;color:var(--ink);outline:none;font-family:inherit}
.trend-filters input[type="month"]:focus,.trend-filters select:focus{border-color:var(--primary);background:#fff}
.trend-filters .tf-sep{color:#8a94a6;font-size:12px}
.trend-filters .btn{border-radius:9px}
.line-chart{width:100%;height:auto;display:block;overflow:visible}
.line-chart text{font-family:inherit}
.line-chart .lc-axis{font-size:10px;fill:#8a94a6}
.line-chart .lc-val{font-size:9.5px;font-weight:800}
.tlegend{display:flex;gap:6px;flex-wrap:nowrap;margin-top:10px}
.tlegend-item{flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:11px;color:#5b6577;background:#f7f9fd;border:1px solid var(--line);border-radius:999px;padding:6px 6px;cursor:pointer;user-select:none;white-space:nowrap;overflow:hidden}
.tlegend-item.off{opacity:.5;background:#fff}
.tlegend-item input{width:13px;height:13px;flex:none;accent-color:#4f7cff;cursor:pointer;margin:0}
.tlegend-item i{width:9px;height:9px;border-radius:3px;display:inline-block;flex:none}
.tlegend-item b{font-weight:800;color:#1f2733;font-variant-numeric:tabular-nums;font-size:11px}
.mileage-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0}
.bcol-mileage .hero-select{max-width:180px;padding:7px 30px 7px 10px;font-size:12px;flex:0 1 auto}
@media(max-width:430px){
  .dash-big{gap:8px}
  .dash-big .blabel{font-size:10.5px;margin-bottom:3px}
  .dash-big .bnum{font-size:19px;letter-spacing:-.5px}
  .dash-big .bnum.sm{font-size:16px}
  .dash-big .bnum small{font-size:11px}
  .mileage-row{gap:6px}
  .bcol-mileage .hero-select{max-width:112px;padding:5px 22px 5px 7px;font-size:10.5px}
}
.legend2{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#5b6577;margin-top:10px}
.legend2 i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:middle}

.dash-empty{text-align:center;padding:30px 16px;color:#8a94a6}

/* 响应式 */
@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){
  .dash-hero{padding:16px}
  .dash-big{gap:18px;margin-top:12px}
  .dash-big .bnum{font-size:26px}
  .dash-big .bnum.sm{font-size:19px}
  .kpi-grid{grid-template-columns:repeat(2,1fr);gap:9px}
  .kpi{padding:11px}
  .kpi .kv{font-size:17px}
  .kpi .ki{width:26px;height:26px;font-size:14px;margin-bottom:7px}
  .dash-row{grid-template-columns:1fr;gap:10px}
  .ring-wrap{gap:16px}
  .ring{width:118px;height:118px}
  .trend{height:140px;gap:7px}
  .vehicle-switch{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px;-webkit-overflow-scrolling:touch}
  .vswitch{white-space:nowrap}
}
@media(max-width:380px){.kpi-grid{grid-template-columns:1fr 1fr}.dash-big .bnum{font-size:22px}}
/* 限行 banner（在大屏内） */
.hero-restrict{position:relative;z-index:2;display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px;padding:9px 13px;border-radius:12px;background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);color:#fff;font-size:12.5px;cursor:pointer}
.hero-restrict .hr-dot{width:8px;height:8px;border-radius:50%;background:#7ef0c0;flex:none;box-shadow:0 0 0 3px rgba(126,240,192,.25)}
.hero-restrict.danger{background:rgba(255,90,90,.22)}
.hero-restrict.danger .hr-dot{background:#ff8a8a;box-shadow:0 0 0 3px rgba(255,138,138,.28)}
.hero-restrict .hr-city{font-weight:800}
.hero-restrict .hr-status{font-weight:800;background:rgba(255,255,255,.2);padding:2px 9px;border-radius:999px;font-size:11.5px}
.hero-restrict .hr-meta{flex:1;min-width:120px;opacity:.92;line-height:1.4}
.hero-restrict .hr-go{font-weight:700;opacity:.95;white-space:nowrap}

/* 大屏车辆下拉 */
.hero-toolbar{position:relative;z-index:2;display:flex;align-items:center;gap:9px;margin-top:12px}
.hero-toolbar label{color:rgba(255,255,255,.86);font-size:12.5px;font-weight:700}
.hero-select{appearance:none;-webkit-appearance:none;border:1px solid rgba(255,255,255,.3);background-color:rgba(255,255,255,.18);color:#fff;border-radius:10px;padding:8px 34px 8px 12px;font-size:13px;font-weight:700;outline:none;max-width:75%;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,rgba(255,255,255,.9) 50%),linear-gradient(135deg,rgba(255,255,255,.9) 50%,transparent 50%);background-position:calc(100% - 17px) 55%,calc(100% - 12px) 55%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;font-family:inherit}
.hero-select option{color:#1f2733;background:#fff}
@media(max-width:820px){
  .hero-restrict{font-size:12px;padding:8px 11px;gap:7px}
  .hero-restrict .hr-meta{flex-basis:100%;min-width:0}
  .hero-select{max-width:calc(100% - 70px)}
}
/* 趋势图本月联动 */
.chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.chart-head h4{margin:0}
.trend-now{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2;white-space:nowrap}
.trend-now span{font-size:11px;color:#8a94a6}
.trend-now b{font-size:16px;color:#4f7cff}
.tcol.cur .tlabel{color:#4f7cff;font-weight:800}
.tcol.cur .tstack{outline:2px solid rgba(79,124,255,.4);outline-offset:2px;border-radius:6px}