:root{
  --primary:#1677ff; --blue:#29abe2; --green:#2ea236; --red:#f5333f; --yellow:#ffd200;
  --bg:#f4f6fa; --card:#fff; --line:#e4e8f0; --text:#1f2937; --muted:#6b7280;
  --hint:#98a2b3; --soft:#eff4ff; --el-color-primary:#1677ff;
  /* 品牌四色条：保留红绿蓝黄主色，中间加过渡色标消除硬边 */
  --brand-strip:linear-gradient(90deg,
    #f5333f 0%,#f5333f 9%,#ff8b3d 18%,#c9cf52 26%,#2ea236 35%,#2ea236 44%,
    #27a68c 54%,#29abe2 65%,#29abe2 74%,#6ec7b5 81%,#c6d35c 88%,#ffd200 95%,#ffd200 100%);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:13px}
.brand-bar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 22px;gap:12px;position:sticky;top:0;z-index:20}
.brand-logo{width:40px;height:40px;border-radius:50%;overflow:hidden;border:2px solid var(--yellow);flex:none;background:#fff}
.brand-logo img{width:100%;height:100%;object-fit:cover;display:block}
.brand-name{font-size:18px;font-weight:600;letter-spacing:.5px;line-height:1.2}
.brand-sub{font-size:11px;color:var(--muted);margin-top:2px}
.brand-title{font-size:20px;font-weight:600;letter-spacing:2px;color:#1f2a44;margin-left:26px;padding-left:26px;border-left:1px solid var(--line);white-space:nowrap}
.brand-spacer{flex:1}
.brand-tag{font-size:11px;color:var(--muted);background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:4px 10px}
.color-strip{height:4px;background:var(--brand-strip)}
/* 顶部多标签页 */
.tabbar{height:38px;background:#eef1f6;border-bottom:1px solid var(--line);display:flex;align-items:flex-end;gap:3px;padding:0 12px;overflow-x:auto;overflow-y:hidden;white-space:nowrap}
.tab-item{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 8px 0 12px;background:#e3e8f0;color:var(--muted);border-radius:7px 7px 0 0;font-size:12px;cursor:pointer;user-select:none;flex:none;position:relative;top:1px;border:1px solid transparent;border-bottom:0}
.tab-item:hover{background:#e9eef6;color:var(--text)}
.tab-item.on{background:#fff;color:var(--primary);font-weight:600;border-color:var(--line);box-shadow:0 -2px 5px rgba(15,23,42,.05)}
.tab-item.on::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--primary)}
.tab-label{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.tab-close{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;color:var(--hint);font-size:14px;line-height:1}
.tab-close:hover{background:#d0d7e2;color:var(--red)}
.layout{display:flex;height:calc(100vh - 106px)}
.side{width:252px;flex:none;background:#fff;border-right:1px solid var(--line);overflow-y:auto;padding:12px 10px 30px}
.side-title{font-size:11px;color:var(--hint);padding:6px 10px 10px;letter-spacing:.5px}
.side-search{margin-bottom:10px}
.dept{margin-bottom:4px}
.dept-h{display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:7px;cursor:pointer;font-weight:500;user-select:none}
.dept-h:hover{background:var(--bg)}
.dept-caret{width:10px;color:var(--hint);font-size:10px}
.dept-count{margin-left:auto;font-size:11px;color:var(--hint);font-weight:400}
.mod{padding:5px 10px 5px 22px;font-size:12px;color:var(--muted);cursor:pointer;border-radius:6px;user-select:none}
.mod:hover{background:var(--bg)}
.page-item{display:flex;align-items:center;gap:7px;padding:6px 8px 6px 34px;border-radius:6px;cursor:pointer;font-size:12px;color:var(--text);line-height:1.35}
.page-item:hover{background:var(--soft)}
.page-item.on{background:var(--soft);color:var(--primary);font-weight:500;border-left:2px solid var(--primary);padding-left:32px}
.pg-no{font-size:10px;color:var(--hint);min-width:20px;font-variant-numeric:tabular-nums}
.term-tag{font-size:10px;padding:1px 5px;border-radius:3px;border:1px solid var(--line);color:var(--hint);white-space:nowrap}
.term-tag.mp{color:#0f8a5f;border-color:#b7e4cf;background:#f0fbf6}
.term-tag.wx{color:#a06b00;border-color:#f0dca0;background:#fff9e8}
.main{flex:1;overflow-y:auto;padding:18px 22px 12px}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:14px;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.crumb{font-size:12px;color:var(--muted);margin-bottom:10px}
.crumb b{color:var(--text);font-weight:500}
.page-h{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
.page-h h2{margin:0;font-size:20px;font-weight:600}
.badge{font-size:11px;padding:3px 8px;border-radius:12px;background:var(--soft);color:var(--primary);border:1px solid #d6e6ff}
.badge.gray{background:var(--bg);color:var(--muted);border-color:var(--line)}
.meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px;margin-top:12px}
.meta-l{font-size:11px;color:var(--hint)}
.meta-v{font-size:12px;margin-top:3px;word-break:break-all}
.toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:11px 14px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:14px}
.toolbar .sep{width:1px;height:20px;background:var(--line);margin:0 4px}
.toolbar .note{font-size:11px;color:var(--hint);margin-left:auto}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px}
.stat .n{font-size:24px;font-weight:600;line-height:1.2}
.stat .l{font-size:12px;color:var(--muted);margin-top:5px}
.stat .s{font-size:11px;color:var(--hint);margin-top:3px}
.notice{background:#f0f7ff;border:1px solid #cfe3ff;color:#1a4d8f;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.6;margin-bottom:14px}
.notice.warn{background:#fff8e8;border-color:#f2dda8;color:#8a5d00}
.sec-t{font-size:14px;font-weight:600;margin:0 0 10px}
.sec-t small{font-weight:400;color:var(--hint);font-size:11px;margin-left:8px}
.field-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.field-i{border:1px solid var(--line);border-radius:7px;padding:8px 10px;background:#fcfdff}
.field-i code{font-size:11px;color:var(--primary);display:block;word-break:break-all}
.field-i span{font-size:11px;color:var(--muted)}
.ov-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.kv{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px dashed var(--line);font-size:12px}
.kv:last-child{border-bottom:0}
.kv span{color:var(--muted)}
.matrix{width:100%;border-collapse:collapse;font-size:12px}
.matrix th,.matrix td{border:1px solid var(--line);padding:7px 9px;text-align:center}
.matrix th{background:#f8fafd;font-weight:500}
.matrix td:first-child{text-align:left}
.ok{color:#0f8a5f}.no{color:var(--hint)}
.phone-note{display:flex;gap:16px;align-items:flex-start}
.phone-box{width:150px;flex:none;border:7px solid #2f3542;border-radius:18px;padding:10px;background:#fff;min-height:210px}
.phone-box .ph-h{height:22px;background:var(--soft);border-radius:4px;margin-bottom:8px}
.phone-box .ph-r{height:9px;background:#edf1f7;border-radius:3px;margin-bottom:6px}
.foot{font-size:11px;color:var(--hint);text-align:center;padding:18px 0 4px;line-height:1.7}

/* ===== 预警分析看板（序号 5~9） ===== */
.db-hero{position:relative;overflow:hidden;border-radius:14px;padding:22px 26px 26px;color:#fff;margin-bottom:14px;
  background:linear-gradient(115deg,#122041 0%,#14628f 48%,#1e7040 100%);box-shadow:0 10px 26px rgba(20,98,143,.18)}
.db-hero::before{content:'';position:absolute;width:420px;height:420px;right:-90px;top:-220px;border-radius:50%;
  background:radial-gradient(circle,rgba(245,51,63,.55),rgba(245,51,63,0) 68%)}
.db-hero::after{content:'';position:absolute;width:360px;height:360px;left:36%;bottom:-290px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,210,0,.42),rgba(255,210,0,0) 70%)}
.db-glow{position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.09) 48%,transparent 66%);
  transform:translateX(-100%);animation:dbShine 7s linear infinite}
@keyframes dbShine{0%{transform:translateX(-100%)}55%{transform:translateX(120%)}100%{transform:translateX(120%)}}
.db-hero-in{position:relative;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.db-live{display:inline-flex;align-items:center;gap:7px;font-size:11px;letter-spacing:1px;background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);padding:4px 11px;border-radius:20px;backdrop-filter:blur(4px)}
.db-live i{width:7px;height:7px;border-radius:50%;background:#7dffa8;box-shadow:0 0 0 0 rgba(125,255,168,.7);animation:dbPulse 1.8s infinite}
@keyframes dbPulse{0%{box-shadow:0 0 0 0 rgba(125,255,168,.7)}70%{box-shadow:0 0 0 9px rgba(125,255,168,0)}100%{box-shadow:0 0 0 0 rgba(125,255,168,0)}}
.db-hero h2{margin:12px 0 6px;font-size:27px;font-weight:650;letter-spacing:1px}
.db-hero-sub{font-size:12px;color:rgba(255,255,255,.82);line-height:1.6}
.db-hero-right{text-align:right;position:relative;z-index:2}
.db-hero-num{font-size:42px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;text-shadow:0 2px 14px rgba(0,0,0,.18)}
.db-hero-num small{font-size:13px;font-weight:400;margin-left:5px;color:rgba(255,255,255,.8)}
.db-hero-cap{font-size:11px;color:rgba(255,255,255,.75);margin-top:7px}
.db-hero-foot{position:relative;z-index:2;display:flex;gap:8px;margin-top:20px;flex-wrap:wrap}
.db-chip{font-size:11px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);border-radius:6px;padding:5px 10px}
.db-chip b{font-variant-numeric:tabular-nums}
.db-strip{height:3px;position:absolute;left:0;right:0;bottom:0;z-index:3;background:var(--brand-strip)}
.db-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.db-kpi{position:relative;background:#fff;border:1px solid var(--line);border-radius:11px;padding:15px 16px 12px;overflow:hidden;
  box-shadow:0 2px 10px rgba(16,24,40,.045);animation:dbUp .45s both}
.db-kpi:nth-child(2){animation-delay:.06s}.db-kpi:nth-child(3){animation-delay:.12s}.db-kpi:nth-child(4){animation-delay:.18s}
@keyframes dbUp{from{opacity:.6;transform:translateY(8px)}to{opacity:1;transform:none}}
.db-kpi::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:var(--kc,#1677ff)}
.db-kpi-top{display:flex;align-items:center;justify-content:space-between}
.db-kpi-l{font-size:12px;color:var(--muted)}
.db-kpi-ico{width:26px;height:26px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:13px;
  color:var(--kc,#1677ff);background:#f4f7fc;border:1px solid var(--line)}
.db-kpi-n{font-size:30px;font-weight:680;line-height:1.15;margin-top:9px;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.db-kpi-n em{font-size:14px;font-style:normal;font-weight:500;color:var(--muted);margin-left:3px}
.db-kpi-b{margin-top:7px;font-size:11px;color:var(--hint);display:flex;align-items:center;gap:6px}
.db-delta{font-weight:600}.db-delta.bad{color:#e5484d}.db-delta.good{color:#18a058}.db-delta.flat{color:var(--hint)}
.db-spark{position:absolute;right:10px;bottom:8px;opacity:.85}
.db-two{display:grid;grid-template-columns:1.55fr 1fr;gap:14px;margin-bottom:14px}
.db-panel{background:#fff;border:1px solid var(--line);border-radius:11px;padding:15px 16px;box-shadow:0 2px 10px rgba(16,24,40,.04)}
.db-panel-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.db-panel-h b{font-size:13px;font-weight:600}
.db-panel-h span{font-size:11px;color:var(--hint)}
.db-chart{width:100%;height:auto;display:block}
.db-donut-wrap{display:flex;align-items:center;gap:12px}
.db-donut{width:158px;height:158px;flex:none}
.db-legend{flex:1;min-width:0}
.db-lg{display:flex;align-items:center;gap:7px;font-size:11px;padding:5px 0;border-bottom:1px dashed var(--line)}
.db-lg:last-child{border-bottom:0}
.db-lg i{width:9px;height:9px;border-radius:3px;flex:none}
.db-lg span{flex:1;color:var(--muted)}
.db-lg b{font-variant-numeric:tabular-nums}
.db-rank{display:flex;align-items:center;gap:9px;margin-bottom:11px;font-size:12px}
.db-rank:last-child{margin-bottom:0}
.db-rank-i{width:19px;height:19px;flex:none;border-radius:5px;background:var(--bg);color:var(--hint);font-size:10px;
  display:flex;align-items:center;justify-content:center;font-weight:600}
.db-rank:first-child .db-rank-i{background:#fff1e6;color:#d97706}
.db-rank-n{width:92px;flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.db-rank-track{flex:1;height:9px;background:#f1f4f9;border-radius:6px;overflow:hidden}
.db-rank-fill{height:100%;border-radius:6px;transform-origin:left;animation:dbGrow .8s cubic-bezier(.2,.8,.2,1) both}
@keyframes dbGrow{from{transform:scaleX(.4)}to{transform:scaleX(1)}}
.db-rank b{width:52px;text-align:right;font-variant-numeric:tabular-nums;font-size:11px}
.db-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.db-stage{border:1px solid var(--line);border-radius:9px;padding:11px 10px;text-align:center;background:#fcfdff}
.db-stage .n{font-size:22px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.1}
.db-stage .l{font-size:11px;color:var(--muted);margin-top:5px}
.db-stage .p{height:4px;border-radius:3px;background:var(--bg);margin-top:9px;overflow:hidden}
.db-stage .p i{display:block;height:100%;border-radius:3px}
.db-tbl-t{font-size:14px;font-weight:600;margin:0 0 10px}
.db-tbl-t small{font-weight:400;color:var(--hint);font-size:11px;margin-left:8px}
.db-note{font-size:11px;color:var(--hint);line-height:1.7;margin-top:10px}
@media (max-width:1180px){.db-two{grid-template-columns:1fr}.db-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== 总览九宫格：上 6 格预警看板主图，下 3 格监控视频预留位 ===== */
.tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}
.tile{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 16px 11px;overflow:hidden;
  box-shadow:0 2px 10px rgba(16,24,40,.045);cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s;animation:dbUp .45s both}
.tile:nth-child(2){animation-delay:.05s}.tile:nth-child(3){animation-delay:.1s}
.tile:nth-child(4){animation-delay:.15s}.tile:nth-child(5){animation-delay:.2s}.tile:nth-child(6){animation-delay:.25s}
.tile:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(16,24,40,.11);border-color:#cfe0ff}
.tile::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:var(--tc,#1677ff)}
.tile-h{display:flex;align-items:center;gap:8px}
.tile-no{font-size:10px;color:var(--hint);font-variant-numeric:tabular-nums}
.tile-name{font-size:14px;font-weight:600}
.tile-live{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:10px;color:var(--muted)}
.tile-live i{width:6px;height:6px;border-radius:50%;background:#43d787;box-shadow:0 0 0 3px rgba(67,215,135,.22)}
.tile-figure{display:flex;align-items:baseline;gap:6px;margin-top:10px}
.tile-figure b{font-size:27px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.5px;color:var(--tc,#1677ff)}
.tile-figure em{font-size:12px;font-style:normal;color:var(--muted)}
.tile-figure span{font-size:11px;color:var(--hint);margin-left:auto;text-align:right}
.tile-chart{margin:8px 0 4px;height:104px}
.tile-chart svg{width:100%;height:100%;display:block}
.tile-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed var(--line);padding-top:9px;font-size:11px;color:var(--hint)}
.tile-foot b{color:var(--tc,#1677ff);font-weight:500}
.tile.empty{cursor:default;border:1.5px dashed #cbd5e1;background:repeating-linear-gradient(135deg,#fbfcfe 0,#fbfcfe 10px,#f5f8fc 10px,#f5f8fc 20px);
  box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:219px;text-align:center;animation:none}
.tile.empty::before{display:none}
.tile.empty:hover{transform:none;box-shadow:none;border-color:#cbd5e1}
.tile-cam{width:48px;height:48px;border-radius:13px;background:#eef2f8;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.tile-cam svg{width:26px;height:26px}
.tile-empty-t{font-size:13px;font-weight:600;color:#64748b}
.tile-empty-s{font-size:11px;color:var(--hint);margin-top:7px;line-height:1.75}
.tile-empty-tag{font-size:10px;color:#94a3b8;border:1px dashed #cbd5e1;border-radius:12px;padding:2px 10px;margin-top:11px}
.ov-section-t{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:4px 0 12px;font-size:15px;font-weight:600}
.ov-section-t small{font-weight:400;font-size:11px;color:var(--hint)}
@media (max-width:1320px){.tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.tile-grid{grid-template-columns:1fr}}
