/* 环境监测平台：浅色侧栏 + 墨绿顶栏，生态绿为主色、湖蓝为辅色 */
:root {
  --brand: #0e9f6e;
  --brand-dark: #08714f;
  --brand-weak: #e7f6ef;
  --aqua: #0891b2;
  --ink: #12261f;
  --head: #0d3b31;
  --head-2: #0f5245;
  --bg: #f3f6f4;
  --line: #e2e9e6;
  --text: #1b2b26;
  --muted: #6f807a;
  --l1: #d99a00; --l2: #ea6c1a; --l3: #dc2f4f; --ok: #16a05d;
  --el-color-primary: #0e9f6e;
  --el-color-primary-light-3: #56bc98;
  --el-color-primary-light-5: #86cfb6;
  --el-color-primary-light-7: #b6e2d3;
  --el-color-primary-light-8: #cfece2;
  --el-color-primary-light-9: #e7f6ef;
  --el-color-primary-dark-2: #0b7f58;
  --el-border-radius-base: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
a { color: var(--brand-dark); cursor: pointer; text-decoration: none; }
.boot { padding-top: 40vh; text-align: center; color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }
.mt { margin-top: 12px; }
.grow { flex: 1; }
.red { color: var(--l3); }
.empty { padding: 30px 0; text-align: center; color: var(--muted); font-size: 13px; }
.ico { flex: none; vertical-align: -3px; }

/* ---------- 外框：墨绿通栏顶部一级导航 + 浅色左侧二级菜单 ---------- */
.layout { min-height: 100vh; display: flex; flex-direction: column; }
.header { height: 64px; display: flex; align-items: stretch; padding: 0 20px 0 0; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(100deg, var(--head) 0%, var(--head-2) 60%, #0e5f6b 100%); color: #e6f4ef; box-shadow: 0 2px 12px rgba(13, 59, 49, .22); }
.brand { width: 228px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.brand small { display: block; font-size: 10px; font-weight: 400; color: #9fd2c2; letter-spacing: .3px; margin-top: 1px; }
.logo-dot { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #22c38e, var(--aqua)); box-shadow: 0 4px 12px rgba(8, 145, 178, .35); }
.topnav { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav a { display: flex; align-items: center; gap: 7px; padding: 0 18px; color: #cfe9df; font-size: 14.5px; position: relative; white-space: nowrap; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.topnav a.on { color: #fff; font-weight: 600; background: rgba(255,255,255,.1); }
.topnav a.on::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #3ee39f, #38c6e0); }
.topnav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--l3); margin-left: -3px; }
.header .user { display: flex; align-items: center; gap: 14px; flex: none; }
.header .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 14px; background: rgba(255,255,255,.1); color: #d8f3ea; }
.header .pill i { width: 7px; height: 7px; border-radius: 50%; background: #3ee39f; box-shadow: 0 0 0 3px rgba(62, 227, 159, .25); }
.header .pill.warn i { background: #ffb547; box-shadow: 0 0 0 3px rgba(255, 181, 71, .25); }
.header .clock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #bfe3d6; font-variant-numeric: tabular-nums; }
.header .agent-btn { background: linear-gradient(135deg, #22c38e, var(--aqua)); border: none; color: #fff; }
.header .agent-btn .ico { margin-right: 4px; }
.header .el-button.is-circle { background: rgba(255,255,255,.1); border-color: transparent; color: #e6f4ef; }
.header .who { display: flex; align-items: center; gap: 8px; cursor: pointer; outline: none; color: #fff; }
.header .who-text { font-size: 13.5px; line-height: 1.2; }
.header .who-text small { display: block; font-size: 11px; color: #9fd2c2; }
.header .avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--head); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

.body { flex: 1; display: flex; min-height: 0; }
.side { width: 228px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 64px; height: calc(100vh - 64px); }
.side-head { padding: 20px 22px 12px; border-bottom: 1px solid var(--line); }
.side-head b { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink); }
.side-head b .ico { color: var(--brand); }
.side-head small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.menu { padding: 12px; flex: 1; overflow-y: auto; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: #3b4b45; font-size: 14px; margin-bottom: 3px; position: relative; }
.menu a .ico { color: #7a8c85; }
.menu a:hover { background: #f2f7f5; color: var(--brand-dark); }
.menu a:hover .ico { color: var(--brand); }
.menu a.on { background: var(--brand-weak); color: var(--brand-dark); font-weight: 600; }
.menu a.on .ico { color: var(--brand); }
.menu a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.menu .badge { margin-left: auto; background: var(--l3); color: #fff; font-style: normal; font-size: 11px; border-radius: 9px; padding: 0 6px; line-height: 16px; }
.side-card { margin: 0 12px 12px; padding: 14px; border-radius: 10px; color: #e6f4ef; font-size: 12.5px; line-height: 1.6;
  background: linear-gradient(135deg, var(--head-2), #0e6a78); }
.side-card b { display: block; font-size: 13.5px; color: #fff; margin-bottom: 4px; }
.side-card a { color: #9ff0d0; }
.side-foot { padding: 10px 20px; font-size: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #a1b0ab; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 0; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumb .sep { color: #b8c4c0; }
.crumb b { color: var(--text); font-weight: 600; }
.page-title { margin: 6px 0 0; font-size: 20px; color: var(--ink); font-weight: 650; }
.content { padding: 16px 24px 32px; min-width: 0; }

/* ---------- 卡片 ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.panel-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; padding-left: 10px; position: relative; }
.panel-title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: linear-gradient(var(--brand), var(--aqua)); }
.panel-title small { font-weight: 400; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.pager { display: flex; justify-content: flex-end; margin-top: 12px; }
.clickable { cursor: pointer; }
.el-table { --el-table-header-bg-color: #f5f8f7; --el-table-header-text-color: #4a5c56; --el-table-row-hover-bg-color: #f1f9f5; }
.el-table th.el-table__cell { font-weight: 600; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.kpi .kico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none;
  background: linear-gradient(135deg, #22c38e, var(--brand)); box-shadow: 0 6px 14px rgba(14, 159, 110, .25); }
.kpi.warn .kico { background: linear-gradient(135deg, #f6a04d, var(--l2)); box-shadow: 0 6px 14px rgba(234, 108, 26, .25); }
.kpi.danger .kico { background: linear-gradient(135deg, #f0607a, var(--l3)); box-shadow: 0 6px 14px rgba(220, 47, 79, .25); }
.kpi.aqua .kico { background: linear-gradient(135deg, #38bdf8, var(--aqua)); box-shadow: 0 6px 14px rgba(8, 145, 178, .25); }
.kpi .k { font-size: 13px; color: var(--muted); }
.kpi .v { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi .v small { font-size: 13px; font-weight: 400; color: var(--muted); margin: 0 6px 0 3px; }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.danger .v { color: var(--l3); }
.grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }

/* 首页：趋势面积图、站点状态 */
.trend svg { width: 100%; height: 190px; display: block; }
.trend .area { fill: url(#trendFill); }
.trend .ln { fill: none; stroke: var(--brand); stroke-width: 2.2; }
.trend .pt { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.trend .lbl { font-size: 11px; fill: #8a9893; }
.trend .num { font-size: 11px; fill: var(--ink); font-weight: 600; }
.sites { display: grid; gap: 10px; }
.site-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.site-row .sico { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--brand-weak); color: var(--brand); flex: none; }
.site-row.alarm .sico { background: #fde8ec; color: var(--l3); }
.site-row b { font-size: 14px; }
.site-row .st { margin-left: auto; font-size: 12px; white-space: nowrap; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bars .b { width: 100%; max-width: 30px; background: linear-gradient(180deg, #34d399, var(--brand)); border-radius: 5px 5px 0 0; min-height: 2px; position: relative; }
.bars .b span { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #556; }
.bars em { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; position: relative; top: 18px; }
.dist .row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.dist .row .n { width: 90px; color: #556; }
.dist .row .t { flex: 1; height: 10px; background: #edf2f0; border-radius: 5px; overflow: hidden; }
.dist .row .t i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #f6a04d, var(--l2)); }
.dist .row .c { width: 36px; text-align: right; font-weight: 700; }

.lv { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; font-weight: 600; background: #fff6dc; color: #b58000; }
.lv.l2 { background: #ffeddf; color: var(--l2); } .lv.l3 { background: #ffe4ea; color: var(--l3); }

/* 实时数据卡片 */
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.rt-card { margin: 0; border-top: 3px solid var(--brand); }
.rt-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.rt-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.rt-v { background: #f5f9f7; border-radius: 8px; padding: 8px 10px; cursor: pointer; border: 1px solid transparent; }
.rt-v:hover { border-color: var(--brand); }
.rt-v .n { font-size: 12px; color: var(--muted); }
.rt-v .x { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.rt-v .x small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.rt-v .f { font-size: 11px; color: var(--l2); }
.rt-v.over { background: #fff0f3; border-color: #f6c3ce; } .rt-v.over .x { color: var(--l3); }
.rt-v.bad { background: #fff6e8; }

/* 曲线 */
.stats { display: flex; gap: 18px; font-size: 13px; color: #445; margin: 4px 0 10px; flex-wrap: wrap; }
.chart-wrap { position: relative; }
.line-chart { width: 100%; display: block; }
.line-chart .grid { stroke: #edf2f0; }
.line-chart .ax { font-size: 11px; fill: #8a9893; }
.line-chart .line { fill: none; stroke: var(--brand); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.line-chart .limit { stroke: var(--l3); stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.line-chart .limit-t { font-size: 11px; fill: var(--l3); }
.line-chart .dot { fill: var(--brand); }
.line-chart .dot.over { fill: var(--l3); }
.line-chart .dot.hover { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.line-chart .cursor { stroke: #b9c7c3; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; top: 4px; left: 60px; background: rgba(13, 59, 49, .9); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; pointer-events: none; }

/* 工单抽屉 */
.od-head { display: flex; gap: 6px; }
.od-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.od-box { background: #f6faf8; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 14px; }
.photos { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.add-photo { width: 64px; height: 64px; border: 1px dashed #b9c7c3; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); cursor: pointer; }
.tl { border-left: 2px solid #dfe8e5; padding: 0 0 14px 16px; position: relative; margin-left: 6px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--brand); background: #fff; }
.tl.tl-REJECT::before { border-color: var(--l3); } .tl.tl-APPROVE::before { border-color: var(--ok); background: var(--ok); }
.tl.tl-NOTIFY::before, .tl.tl-RECOVER::before { border-color: #b9c7c3; }
.tl .a { font-weight: 600; font-size: 13px; } .tl .w { color: var(--muted); font-size: 12px; margin-left: 6px; font-weight: 400; }
.tl .c { font-size: 13px; color: #445; margin-top: 3px; white-space: pre-wrap; }
.tl .p { display: flex; gap: 6px; margin-top: 6px; } .tl .p img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

/* 设备详情 */
pre.resp { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 12px; font-family: inherit; color: #445; }
.raws { font-family: Consolas, Menlo, monospace; font-size: 12px; }
.raw { padding: 5px 8px; border-bottom: 1px solid #eef2f1; word-break: break-all; }
.raw.OUT { background: #f4fafb; }
.raw.bad { background: #fff1f3; }
.raw .dir { font-weight: 700; margin-right: 8px; color: var(--brand); } .raw.OUT .dir { color: var(--aqua); }
.raw .tm { color: var(--muted); margin-right: 8px; } .raw .err { color: var(--l3); margin-right: 8px; }
.raw code { display: block; margin-top: 2px; color: #334; }
.sim-logs { font-size: 12px; font-family: Consolas, Menlo, monospace; max-height: 220px; overflow: auto; padding: 4px 48px; color: #445; }

.inbox-item { padding: 12px 6px; border-bottom: 1px solid #eef2f1; cursor: pointer; }
.inbox-item:hover { background: #f6faf8; }
.inbox-item .t { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.inbox-item .t .muted { margin-left: auto; font-weight: 400; }
.inbox-item .t i { width: 8px; height: 8px; border-radius: 50%; background: var(--l3); }
.inbox-item .c { font-size: 13px; color: #556; margin-top: 4px; white-space: pre-wrap; }
.inbox-item:not(.unread) { opacity: .75; }

.ding { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.ding-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.ding-head .muted { margin-left: auto; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; }

/* Markdown */
.md { font-size: 14px; line-height: 1.7; }
.md .md-h { font-weight: 700; font-size: 15px; margin: 2px 0; }
.md .md-gap { height: 6px; }
.md ul, .md ol { margin: 2px 0; padding-left: 20px; }
.md code { background: #eef2f1; padding: 0 4px; border-radius: 3px; }

/* 智能助手 */
.agent-drawer .el-drawer__body { padding: 0; }
.agent { display: flex; flex-direction: column; height: 100%; }
.agent-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, var(--head-2), var(--head)); }
.agent-head .muted { color: #9fd2c2; }
.agent-head .el-button { color: #d8f3ea; }
.agent-body { flex: 1; overflow-y: auto; padding: 14px 16px; background: #f4f7f6; }
.msg { margin-bottom: 14px; display: flex; flex-direction: column; }
.msg.user { align-items: flex-end; }
.msg .bubble { max-width: 92%; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.msg.user .bubble { background: linear-gradient(135deg, var(--brand), #0b8a73); color: #fff; }
.agent-chart { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.action-card { margin-top: 10px; border: 1px solid #f0c27a; background: #fffaf0; border-radius: 10px; padding: 10px 12px; }
.action-card.DONE { border-color: #9ad7b7; background: #f1fbf5; }
.action-card.CANCELLED, .action-card.FAILED { border-color: #ddd; background: #f7f7f7; }
.action-card.FAILED .ac-res { color: var(--l3); }
.ac-title { font-weight: 700; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ac-sum { font-size: 13px; white-space: pre-wrap; color: #334; }
.ac-res { font-size: 13px; margin-top: 6px; color: var(--ok); }
.ac-btn { margin-top: 8px; }
.sugs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sugs a { font-size: 12px; background: #fff; border: 1px solid #cfe5dc; border-radius: 14px; padding: 3px 10px; color: var(--brand-dark); }
.agent-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: flex-end; }

/* ---------- 登录页：左侧环保插画，右侧登录卡 ---------- */
.login-wrap { min-height: 100vh; display: flex; background: #f3f7f5; }
.login-hero { flex: 1; position: relative; overflow: hidden; color: #fff; min-height: 100vh; }
.login-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.login-hero .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 48, 40, .55) 0%, rgba(8, 48, 40, .05) 55%, rgba(8, 48, 40, .35) 100%); }
.hero-text { position: relative; padding: 9vh 7vw 0; max-width: 680px; }
.hero-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: 1px; margin-bottom: 34px; }
.hero-text h1 { font-size: 40px; line-height: 1.3; margin: 0 0 16px; letter-spacing: 2px; text-shadow: 0 2px 16px rgba(0,0,0,.2); }
.hero-text p { font-size: 15.5px; line-height: 1.9; opacity: .9; max-width: 520px; margin: 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.hero-cards { position: absolute; left: 7vw; bottom: 7vh; display: flex; gap: 14px; flex-wrap: wrap; }
.glass { min-width: 170px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.glass small { display: block; font-size: 12px; opacity: .85; }
.glass b { display: block; font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.glass b em { font-style: normal; font-size: 12px; font-weight: 400; margin-left: 4px; opacity: .85; }
.glass i { font-style: normal; font-size: 11px; padding: 1px 8px; border-radius: 9px; display: inline-block; margin-top: 4px; }
.glass i.ok { background: rgba(62, 227, 159, .25); color: #c5ffe6; }
.glass i.up { background: rgba(56, 189, 248, .25); color: #d4f2ff; }
.login-right { width: 460px; display: flex; align-items: center; justify-content: center; padding: 24px; background: #fff; }
.login-card { width: 100%; max-width: 360px; }
.login-card h3 { margin: 0 0 22px; font-size: 24px; color: var(--ink); }
.login-btn { width: 100%; height: 44px; font-size: 15px; letter-spacing: 4px; background: linear-gradient(120deg, var(--brand), #0b8a73); border: none; }
.demo-accounts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; border-top: 1px dashed var(--line); }
.demo-accounts .el-button { margin: 0; }
.login-foot { display: flex; justify-content: space-between; margin-top: 26px; font-size: 13px; }

/* ---------- 人车调度 ---------- */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fleet-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.fleet-card:hover { border-color: #b6e2d3; box-shadow: 0 4px 14px rgba(13, 59, 49, .08); }
.fc-ico { width: 44px; height: 44px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #22c38e, var(--aqua)); }
.fleet-card.DISPATCHED .fc-ico { background: linear-gradient(135deg, #f59e0b, #ea6c1a); }
.fleet-card.MAINTENANCE .fc-ico { background: linear-gradient(135deg, #a3b1ac, #7a8c85); }
.fc-body { flex: 1; min-width: 0; font-size: 13px; line-height: 1.65; }
.fc-body b { font-size: 14.5px; color: var(--ink); }
.fc-body .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-task { border: 1px solid var(--line); border-left: 3px solid var(--aqua); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; line-height: 1.7; background: #fbfdfc; }
.res-task.done { border-left-color: #a3b1ac; }
.res-task .row { justify-content: space-between; }

@media (max-width: 1280px) { .header .clock, .header .pill { display: none; } .topnav a { padding: 0 13px; } .topnav a.on::after { left: 13px; right: 13px; } }
@media (max-width: 900px) {
  .login-hero { display: none; } .login-right { width: 100%; }
  .kpis { grid-template-columns: repeat(2, 1fr); } .grid2 { grid-template-columns: 1fr; }
  .brand { width: auto; } .brand small { display: none; } .side { display: none; }
  .header .who-text { display: none; }
}
.res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.res-stats div { background: #f3faf7; border-radius: 8px; padding: 10px 12px; text-align: center; }
.res-stats div.out { background: #fff6ec; }
.res-stats b { display: block; font-size: 22px; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.res-stats .out b { color: var(--l2); }
.res-stats span { font-size: 12px; color: var(--muted); }
.panel-title .more { font-size: 12px; font-weight: 400; }
.site-row .st.good { color: var(--ok); }
.phone-cell { font-variant-numeric: tabular-nums; }
.phone-cell .reveal { font-size: 12px; margin-left: 4px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row img { width: 120px; height: 42px; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; flex: none; }
/* ---------- 物联网：虚拟设备、报文调试 ---------- */
.iot { display: grid; grid-template-columns: 290px 1fr; gap: 16px; align-items: start; }
.iot-list { position: sticky; top: 80px; }
.iot-main { min-width: 0; }
.iot-tip { margin-top: 12px; line-height: 1.6; }
.vd { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.vd:hover { border-color: #b6e2d3; }
.vd.on { border-color: var(--brand); background: var(--brand-weak); }
.vd-ico { width: 36px; height: 36px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; background: #e8eeec; color: #7a8c85; }
.vd-ico.live { background: linear-gradient(135deg, #22c38e, var(--aqua)); color: #fff; }
.vd-body { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; }
.vd-body .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-st { font-size: 12px; color: var(--muted); white-space: nowrap; }
.vd-st.ok { color: var(--ok); } .vd-st.wait { color: var(--l1); }
.vd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.vd-head h3 { margin: 0 0 4px; font-size: 17px; }
.vd-stats { display: flex; gap: 28px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); flex-wrap: wrap; align-items: center; }
.vd-stats span { font-size: 12px; color: var(--muted); margin-right: 8px; }
.vd-stats b { font-size: 16px; font-variant-numeric: tabular-nums; } .vd-stats b.good { color: var(--ok); }
.console { background: #0b1f1a; border-radius: 8px; height: 320px; overflow: auto; padding: 8px 0; font: 12px/1.7 ui-monospace, Consolas, "Courier New", monospace; }
.console .cl { display: flex; gap: 10px; padding: 0 12px; color: #cfe9df; cursor: pointer; white-space: nowrap; }
.console .cl:hover { background: rgba(255,255,255,.06); }
.console .t { color: #6f8f86; flex: none; }
.console .d { flex: none; width: 52px; } .console .UP .d { color: #3ee39f; } .console .DOWN .d { color: #38c6e0; }
.console .c { flex: none; width: 36px; color: #ffd27a; }
.console .r { overflow: hidden; text-overflow: ellipsis; }
.mono, .mono textarea { font-family: ui-monospace, Consolas, "Courier New", monospace !important; font-size: 12.5px; }
.raw-box { background: #f3f7f5; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; word-break: break-all; margin: 8px 0 12px; }
.parse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.parse-grid div { background: #f7faf9; border-radius: 6px; padding: 6px 10px; font-size: 13px; word-break: break-all; }
.parse-grid span { color: var(--muted); margin-right: 8px; font-size: 12px; } .parse-grid em { font-style: normal; color: var(--brand-dark); margin-left: 6px; }
.parse-sub { margin-top: 10px; font-size: 13px; } .parse-sub b { margin-right: 8px; }
.kv { display: inline-block; background: #eef5f2; border-radius: 4px; padding: 1px 6px; margin: 2px 4px 2px 0; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.fac-rows { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.fac-rows .fc { width: 170px; font-size: 12.5px; color: #3b4b45; }
.build-form { max-width: 640px; }
@media (max-width: 1100px) { .iot { grid-template-columns: 1fr; } .iot-list { position: static; } }
.iot-main .grid2 { grid-template-columns: 1.15fr 1fr; }
.iot-main .panel-title { flex-wrap: wrap; gap: 4px 10px; justify-content: flex-start; }
.iot-main .panel-title > span, .iot-main .panel-title > small { margin-left: auto; }
@media (max-width: 1600px) { .header .clock { display: none; } .topnav a { padding: 0 14px; } .topnav a.on::after { left: 14px; right: 14px; } }
.header .screen-btn { display: inline-flex; align-items: center; gap: 6px; color: #d8f3ea; font-size: 13.5px; padding: 6px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.25); }
.header .screen-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
/* ---------- 传输有效率、报表中心 ---------- */
.q-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.q-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; background: #fbfdfc; }
.q-kpis div.main { background: var(--brand-weak); border-color: #b6e2d3; }
.q-kpis span { font-size: 13px; color: var(--muted); display: block; }
.q-kpis b { font-size: 28px; font-variant-numeric: tabular-nums; } .q-kpis b small { font-size: 14px; margin-left: 2px; }
.q-kpis em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
b.good, td.good { color: var(--ok); } b.mid, td.mid { color: #c88700; } b.bad, td.bad { color: var(--l3); } b.na { color: var(--muted); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.hours i, .hours-legend i { height: 16px; border-radius: 2px; background: #e5ebe9; display: block; }
.hours i.VALID, .hours-legend i.VALID { background: #34c38f; } .hours i.INVALID, .hours-legend i.INVALID { background: #f5b14c; }
.hours i.MISSING, .hours-legend i.MISSING { background: #ef5b74; } .hours i.DOWN, .hours-legend i.DOWN { background: repeating-linear-gradient(135deg, #9fb3c8 0 3px, #dde6ee 3px 6px); }
.hours-legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.hours-legend span { display: inline-flex; align-items: center; gap: 6px; } .hours-legend i { width: 14px; height: 12px; display: inline-block; }
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: 12px; width: 100%; }
.heat th { color: var(--muted); font-weight: 500; padding: 2px; } .heat th.dev, .heat td.dev { text-align: left; min-width: 150px; color: var(--text); background: none; }
.heat td { text-align: center; padding: 6px 0; min-width: 24px; border-radius: 3px; background: #eef2f1; font-variant-numeric: tabular-nums; }
.heat td.good { background: #d4f3e5; color: #0b7a4f; } .heat td.mid { background: #fdf0d0; color: #9a6a00; } .heat td.bad { background: #fde0e6; color: #c22848; }
.heat td.na { background: #f4f6f5; } .heat td.sum, .heat th.sum { min-width: 56px; font-weight: 700; }
.rep-title { font-size: 16px; font-weight: 600; margin: 4px 0 10px; } .rep-title small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 10px; }
.rep-wrap { overflow-x: auto; }
.rep { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rep th, .rep td { border: 1px solid var(--line); padding: 5px 8px; text-align: center; white-space: nowrap; }
.rep th { background: #f5f8f7; font-weight: 600; } .rep th .u { font-weight: 400; color: var(--muted); font-size: 11px; }
.rep td.over { background: #fde0e6; color: #c22848; font-weight: 600; }
.rep tr.empty td { color: #b5c0bc; } .rep td.note { color: var(--muted); text-align: left; }
.rep tfoot td { background: #f7faf9; font-weight: 600; }
.agent-hint { margin: 0 14px 6px; padding: 8px 12px; font-size: 12.5px; line-height: 1.6; color: #8a5a00; background: #fff7e6; border: 1px solid #ffe2a8; border-radius: 6px; }
