/* 啵啵星球 · 管理后台样式 */
body{background:var(--bobo-paper);display:block;padding:0;min-height:100vh}

.layout{display:flex;min-height:100vh}

/* 侧边栏 */
.sidebar{width:236px;flex:none;background:var(--bobo-navy);color:#fff;display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;z-index:20}
.sidebar .brand{padding:24px 20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar .brand .logo-cn{color:#fff;font-size:18px}
.sidebar .brand .logo-en{color:var(--bobo-orange)}
.nav{flex:1;overflow-y:auto;padding:16px 12px}
.nav-group{font-size:10px;letter-spacing:2px;color:rgba(255,255,255,.35);padding:14px 12px 8px;font-weight:700}
.nav-item{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;margin-bottom:3px;font-size:13.5px;color:rgba(255,255,255,.7);cursor:pointer;transition:.18s;font-weight:500}
.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-item.on{background:var(--bobo-orange);color:var(--bobo-navy);font-weight:800;box-shadow:0 4px 14px rgba(252,187,9,.25)}
.nav-item svg{width:18px;height:18px;flex:none}
.sidebar .foot{padding:16px 20px;font-size:10px;color:rgba(255,255,255,.3);border-top:1px solid rgba(255,255,255,.08)}

/* 主区域 */
.main{flex:1;margin-left:236px;min-width:0;display:flex;flex-direction:column}
.topbar{height:64px;background:#fff;border-bottom:1px solid var(--bobo-line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}
.topbar .crumb{font-size:13px;color:var(--bobo-muted)}
.topbar .crumb b{color:var(--bobo-navy)}
.topbar .right{display:flex;align-items:center;gap:18px}
.topbar .icon-btn{width:34px;height:34px;border-radius:9px;background:var(--bobo-paper);display:flex;align-items:center;justify-content:center;color:var(--bobo-navy);position:relative}
.topbar .badge-dot{position:absolute;top:6px;right:7px;width:7px;height:7px;background:var(--bobo-danger);border-radius:50%;border:1.5px solid #fff}
.admin-user{display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:600;color:var(--bobo-navy)}
.admin-user .av{width:32px;height:32px;border-radius:50%;background:var(--bobo-orange);color:var(--bobo-navy);display:flex;align-items:center;justify-content:center;font-weight:800}

.content{padding:26px 28px 40px;flex:1}
.view{display:none;animation:fade .25s ease}
.view.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.page-title{margin-bottom:22px}
.page-title h1{font-size:22px;font-weight:800;color:var(--bobo-navy)}
.page-title p{font-size:12.5px;color:var(--bobo-muted);margin-top:5px}
.page-title .en{font-size:10px;letter-spacing:2px;color:var(--bobo-orange-deep);font-weight:700}

/* 统计卡 */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.stat{background:#fff;border-radius:14px;padding:18px 20px;box-shadow:var(--shadow-card);position:relative;overflow:hidden}
.stat::after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px}
.stat.o::after{background:var(--bobo-orange)}.stat.b::after{background:var(--bobo-blue)}.stat.g::after{background:var(--bobo-success)}.stat.n::after{background:var(--bobo-navy)}
.stat .label{font-size:12px;color:var(--bobo-muted);display:flex;align-items:center;justify-content:space-between}
.stat .val{font-size:28px;font-weight:800;color:var(--bobo-navy);margin:8px 0 4px;font-variant-numeric:tabular-nums}
.stat .val small{font-size:13px;color:var(--bobo-muted);font-weight:600}
.stat .trend{font-size:11px;font-weight:700}
.up{color:var(--bobo-success)}.down{color:var(--bobo-danger)}

/* 通用面板 */
.panel{background:#fff;border-radius:14px;box-shadow:var(--shadow-card);padding:20px;margin-bottom:18px}
.panel-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.panel-h h2{font-size:15px;font-weight:800;color:var(--bobo-navy);display:flex;align-items:center;gap:8px}
.panel-h h2 .bar{width:4px;height:15px;background:var(--bobo-orange);border-radius:2px}
.panel-h .actions{display:flex;gap:8px}
.btn-sm{padding:7px 14px;border-radius:8px;font-size:12px;font-weight:700}
.btn-outline{border:1.5px solid var(--bobo-line);color:var(--bobo-navy);background:#fff}
.btn-outline:hover{border-color:var(--bobo-orange)}

.grid-2{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}
.grid-2eq{display:grid;grid-template-columns:1fr 1fr;gap:18px}

/* 图表（纯CSS） */
.bars{display:flex;align-items:flex-end;gap:10px;height:180px;padding-top:10px}
.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;height:100%;justify-content:flex-end}
.bar-col .bar{width:60%;max-width:38px;background:linear-gradient(180deg,var(--bobo-orange),var(--bobo-orange-deep));border-radius:6px 6px 0 0;min-height:4px;transition:.3s}
.bar-col .bar.blue{background:linear-gradient(180deg,var(--bobo-blue,#29B6F6),#1179AD)}
.bar-col .lbl{font-size:10.5px;color:var(--bobo-muted)}
.donut-wrap{display:flex;align-items:center;gap:24px}
.donut{width:150px;height:150px;border-radius:50%;flex:none;position:relative}
.donut::after{content:"";position:absolute;inset:26px;background:#fff;border-radius:50%}
.donut .center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2}
.donut .center b{font-size:24px;color:var(--bobo-navy)}
.donut .center span{font-size:10px;color:var(--bobo-muted)}
.legend{flex:1;display:flex;flex-direction:column;gap:11px}
.legend div{display:flex;align-items:center;gap:8px;font-size:12px;color:#5c6672}
.legend i{width:10px;height:10px;border-radius:3px;flex:none}
.legend b{margin-left:auto;color:var(--bobo-navy)}

/* 表格 */
table.data{width:100%;border-collapse:collapse;font-size:12.5px}
table.data th{background:var(--bobo-paper);color:var(--bobo-navy);text-align:left;padding:11px 12px;font-weight:800;border-bottom:2px solid var(--bobo-line);white-space:nowrap}
table.data td{padding:12px;border-bottom:1px solid var(--bobo-line);color:#5c6672;vertical-align:middle}
table.data tr:hover td{background:#FBFAF8}
table.data .strong{color:var(--bobo-navy);font-weight:700}
.status{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.st-ok{background:#E1F5EE;color:#0F6E56}
.st-run{background:var(--bobo-blue-soft);color:#1179AD}
.st-warn{background:var(--bobo-orange-soft);color:var(--bobo-orange-deep)}
.st-off{background:#F1EFE8;color:#8A9099}
.st-danger{background:#FCEBEB;color:var(--bobo-danger)}
.store-thumb{width:38px;height:38px;border-radius:9px;background:linear-gradient(135deg,var(--bobo-orange),var(--bobo-orange-deep));display:flex;align-items:center;justify-content:center;color:var(--bobo-navy);font-weight:800;flex:none}

/* 设备卡 */
.dev-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.dev-card{background:#fff;border-radius:14px;padding:16px;box-shadow:var(--shadow-card);border-top:3px solid var(--bobo-success)}
.dev-card.off{border-top-color:var(--bobo-danger)}
.dev-card.busy{border-top-color:var(--bobo-orange)}
.dev-card .dh{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.dev-card .dh h3{font-size:14px;font-weight:800;color:var(--bobo-navy)}
.dev-card .meta{font-size:11.5px;color:var(--bobo-muted);line-height:1.9}
.dev-card .meta b{color:var(--bobo-navy)}
.water-bar{height:6px;background:var(--bobo-line);border-radius:3px;margin-top:10px;overflow:hidden}
.water-bar i{display:block;height:100%;background:var(--bobo-blue);border-radius:3px}

/* SI 网点展示 */
.si-card{border:1px solid var(--bobo-line);border-radius:12px;overflow:hidden}
.si-cover{height:112px;background:linear-gradient(135deg,var(--bobo-orange),var(--bobo-orange-deep));position:relative;display:flex;align-items:center;justify-content:center}
.si-cover::before{content:"";position:absolute;bottom:0;left:0;right:0;height:26px;background:var(--bobo-navy);clip-path:polygon(0 100%,100% 100%,100% 30%,0 80%)}
.si-cover .name{position:relative;color:var(--bobo-navy);font-weight:800;font-size:15px;background:rgba(255,255,255,.85);padding:6px 16px;border-radius:8px;z-index:2}
.si-body{padding:14px}
.si-body .si-desc{font-size:11px;color:#6b747f;line-height:1.6;background:var(--bobo-paper);border-radius:8px;padding:10px;margin-top:10px}
.si-meta{display:flex;gap:14px;font-size:11px;color:var(--bobo-muted);margin-top:10px}
.si-meta b{color:var(--bobo-navy)}

/* 提示条 */
.notice{background:var(--bobo-orange-soft);border-left:4px solid var(--bobo-orange);padding:12px 16px;border-radius:8px;font-size:12px;color:#6b5a1e;margin-bottom:18px}

@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.grid-2,.grid-2eq{grid-template-columns:1fr}.dev-grid{grid-template-columns:repeat(2,1fr)}}
