/* ============================================================
   电梯云服务平台 · 设计系统
   ============================================================ */
:root {
  --bg-0: #04080f;
  --bg-1: #060f1c;
  --bg-2: #081627;
  --panel: linear-gradient(180deg, rgba(15, 33, 56, 0.86), rgba(8, 19, 34, 0.9));
  --panel-solid: #0a1728;
  --panel-hi: #0e2138;
  --line: rgba(120, 190, 255, 0.13);
  --line-soft: rgba(120, 190, 255, 0.075);
  --line-strong: rgba(28, 203, 254, 0.42);
  --text: #dbe9f8;
  --text-2: #8ea7c2;
  --text-3: #5d7695;
  --cyan: #1ccbfe;
  --cyan-deep: #0b9fd6;
  --blue: #2e7cff;
  --green: #2adfa6;
  --amber: #ffb020;
  --red: #ff5370;
  --purple: #9a7cff;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Segoe UI", var(--font);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(24, 108, 178, 0.22), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(11, 89, 166, 0.18), transparent 62%),
    linear-gradient(160deg, #050b15 0%, #04080f 55%, #03060c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(86, 160, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 160, 220, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
canvas { display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(90, 130, 170, 0.28); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(28, 203, 254, 0.42); }

::selection { background: rgba(28, 203, 254, 0.3); }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0.4px; }
.mono { font-family: "Cascadia Mono", "Consolas", monospace; font-size: 12.5px; letter-spacing: 0.2px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.pointer { cursor: pointer; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ============================================================
   应用骨架
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  opacity: 0;
  animation: shellIn 0.5s ease forwards;
}
@keyframes shellIn { to { opacity: 1; } }

.app-shell.collapsed { --sidebar-w: 74px; }

/* ---------------------------- 侧边栏 ---------------------------- */
.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #07162a 0%, #050c17 72%, #04080f 100%);
  border-right: 1px solid var(--line);
  z-index: 20;
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 180px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: 0.55;
}

.brand {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
  overflow: hidden;
}
.brand-logo { flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(28, 203, 254, 0.45)); }
.brand-text { display: flex; flex-direction: column; gap: 2px; transition: opacity 0.2s; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: 1.5px; white-space: nowrap; }
.brand-en { font-size: 9px; letter-spacing: 1.6px; color: var(--text-3); white-space: nowrap; }

.collapsed .brand { padding: 0; justify-content: center; }
.collapsed .brand-text { display: none; }

.nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 6px 10px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 170, 220, 0.35) transparent;
}
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb {
  background: rgba(110, 170, 220, 0.28);
  border-radius: 99px;
}
.nav:hover::-webkit-scrollbar-thumb { background: rgba(110, 170, 220, 0.45); }
.nav-group { margin-top: 7px; }
.nav-group:first-child { margin-top: 2px; }
.nav-group-title {
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--text-3);
  padding: 1px 12px 4px;
  white-space: nowrap;
}
.collapsed .nav-group-title { text-align: center; padding: 0 0 8px; font-size: 9px; letter-spacing: 0; }
.collapsed .nav-group-title span { display: none; }
.collapsed .nav-group-title::after { content: "•••"; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 11px;
  margin-bottom: 1px;
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  user-select: none;
  font-size: 12.5px;
}
.nav-item svg { flex-shrink: 0; opacity: 0.85; width: 16px; height: 16px; }
.nav-item:hover { color: var(--text); background: rgba(120, 190, 255, 0.06); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(28, 203, 254, 0.17), rgba(46, 124, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(28, 203, 254, 0.22);
}
.nav-item.active svg { opacity: 1; color: var(--cyan); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px rgba(28, 203, 254, 0.9);
}
.nav-label { flex: 1; font-size: 13.5px; }
.nav-badge {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(255, 83, 112, 0.18);
  color: #ff8ea1;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-family: var(--font-num);
}
.collapsed .nav-label, .collapsed .nav-badge { display: none; }
.collapsed .nav-item { justify-content: center; padding: 0; }

.sidebar-foot {
  flex-shrink: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
}
.sys-state { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--text-2); }
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(42, 223, 166, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 223, 166, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(42, 223, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 223, 166, 0); }
}
.collapsed .sidebar-foot { padding: 14px 0; text-align: center; }
.collapsed .sidebar-foot .sys-text, .collapsed .sidebar-foot .ver { display: none; }

/* ---------------------------- 主区域 ---------------------------- */
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }

.topbar {
  height: 66px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 15, 28, 0.72);
  backdrop-filter: blur(14px);
  z-index: 15;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: 0.18s;
  position: relative;
}
.icon-btn:hover { background: rgba(120, 190, 255, 0.08); color: var(--text); border-color: var(--line); }

.crumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-3); }
.crumb b { color: var(--text); font-weight: 500; font-size: 15px; letter-spacing: 0.5px; }
.crumb .sep { opacity: 0.4; }

.top-spacer { flex: 1; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(42, 223, 166, 0.28);
  background: rgba(42, 223, 166, 0.07);
  color: #7bf0c9;
  font-size: 12px;
}
.clock {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 1px;
  padding: 0 6px;
  min-width: 92px;
  text-align: right;
}
.bell-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-family: var(--font-num);
  box-shadow: 0 0 0 2px #061121;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.18s;
}
.user-chip:hover { background: rgba(120, 190, 255, 0.07); border-color: var(--line); }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #03121f;
  background: linear-gradient(135deg, #6be3ff, #2e7cff);
  box-shadow: 0 0 0 2px rgba(28, 203, 254, 0.18);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta b { font-size: 13px; font-weight: 500; }
.user-meta span { font-size: 11px; color: var(--text-3); }

.dropdown {
  position: absolute;
  top: 58px;
  right: 22px;
  width: 218px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a1a2d;
  box-shadow: var(--shadow);
  z-index: 60;
  animation: popIn 0.16s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.dropdown-item:hover { background: rgba(120, 190, 255, 0.08); color: var(--text); }
.dropdown-sep { height: 1px; background: var(--line); margin: 5px 4px; }

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px 30px;
  scroll-behavior: smooth;
}
.page { animation: pageIn 0.38s cubic-bezier(0.22, 0.7, 0.3, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-title { font-size: 21px; font-weight: 600; letter-spacing: 0.6px; display: flex; align-items: center; gap: 10px; }
.page-title .bar { width: 4px; height: 19px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--blue)); box-shadow: 0 0 10px rgba(28, 203, 254, 0.7); }
.page-sub { color: var(--text-3); font-size: 12.5px; margin-top: 7px; padding-left: 14px; }
.page-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* ============================================================
   卡片 / 网格
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  min-width: 0;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-color: rgba(28, 203, 254, 0.55);
  border-style: solid;
  opacity: 0.75;
}
.card::before { left: 0; top: 0; border-width: 1px 0 0 1px; border-top-left-radius: var(--radius); }
.card::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; border-bottom-right-radius: var(--radius); }

.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px 12px;
  min-height: 50px;
}
.card-title { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; letter-spacing: 0.3px; }
.card-title::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 8px rgba(28, 203, 254, 0.6);
}
.card-sub { font-size: 11px; color: var(--text-3); margin-left: 2px; letter-spacing: 0.6px; }
.card-actions { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; }
.card-bd { padding: 0 18px 18px; }
.card-bd.flush { padding: 0 0 6px; }
.card-bd.pad { padding: 4px 18px 18px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.kpi:hover { border-color: rgba(28, 203, 254, 0.3); transform: translateY(-2px); }
.kpi::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 203, 254, 0.16), transparent 70%);
  pointer-events: none;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi-label { font-size: 12.5px; color: var(--text-2); letter-spacing: 0.4px; }
.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(28, 203, 254, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(28, 203, 254, 0.17);
}
.kpi-icon.green { background: rgba(42, 223, 166, 0.1); color: var(--green); border-color: rgba(42, 223, 166, 0.18); }
.kpi-icon.amber { background: rgba(255, 176, 32, 0.1); color: var(--amber); border-color: rgba(255, 176, 32, 0.18); }
.kpi-icon.red { background: rgba(255, 83, 112, 0.1); color: var(--red); border-color: rgba(255, 83, 112, 0.18); }
.kpi-icon.purple { background: rgba(154, 124, 255, 0.1); color: var(--purple); border-color: rgba(154, 124, 255, 0.18); }
.kpi-value { display: flex; align-items: baseline; gap: 5px; height: 38px; }
.kpi-value b { font-size: 30px; font-weight: 600; letter-spacing: 1px; line-height: 1; }
.kpi-value .unit { font-size: 13px; color: var(--text-3); }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--text-3); }
.kpi-foot .up { color: var(--green); } .kpi-foot .down { color: var(--red); }
.kpi-spark { position: absolute; right: 12px; bottom: 10px; opacity: 0.8; }

/* ============================================================
   表格
   ============================================================ */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th {
  padding: 11px 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--text-3);
  text-align: left;
  background: rgba(120, 190, 255, 0.045);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.table th:first-child { padding-left: 18px; }
.table th:last-child { padding-right: 18px; }
.table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  vertical-align: middle;
}
.table td:first-child { padding-left: 18px; }
.table td:last-child { padding-right: 18px; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(28, 203, 254, 0.045); }
.table tbody tr:last-child td { border-bottom: none; }
.table .cell-main { font-size: 13.5px; }
.table .cell-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.table .actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }
.table tr.row-danger td { background: rgba(255, 83, 112, 0.045); }
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}

/* ============================================================
   标签 / 状态
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.tag-cyan { color: #5fdcff; background: rgba(28, 203, 254, 0.1); border-color: rgba(28, 203, 254, 0.25); }
.tag-green { color: #6ff0c4; background: rgba(42, 223, 166, 0.1); border-color: rgba(42, 223, 166, 0.25); }
.tag-amber { color: #ffc861; background: rgba(255, 176, 32, 0.1); border-color: rgba(255, 176, 32, 0.25); }
.tag-red { color: #ff8ea1; background: rgba(255, 83, 112, 0.12); border-color: rgba(255, 83, 112, 0.3); }
.tag-muted { color: #93a7bd; background: rgba(140, 165, 195, 0.09); border-color: rgba(140, 165, 195, 0.18); }
.tag-purple { color: #bda9ff; background: rgba(154, 124, 255, 0.12); border-color: rgba(154, 124, 255, 0.28); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(120, 190, 255, 0.055);
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { background: rgba(120, 190, 255, 0.11); border-color: rgba(120, 190, 255, 0.28); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { opacity: 0.85; }
.btn-primary {
  border: none;
  background: linear-gradient(135deg, #1ccbfe 0%, #2e7cff 100%);
  color: #02121f;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(28, 158, 254, 0.24);
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, #1ccbfe, #2e7cff); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255, 83, 112, 0.3); background: rgba(255, 83, 112, 0.1); color: #ff9aac; }
.btn-danger:hover { background: rgba(255, 83, 112, 0.18); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-link { border: none; background: none; color: var(--cyan); padding: 0 4px; height: 24px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: #ff8ea1; }
.btn-block { width: 100%; }
.btn.loading { pointer-events: none; opacity: 0.75; }

/* ============================================================
   表单
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 12px; color: var(--text-2); letter-spacing: 0.3px; }
.field-label .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(3, 10, 20, 0.55);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}
.textarea { height: auto; min-height: 82px; padding: 9px 12px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #4f6582; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(28, 203, 254, 0.55);
  box-shadow: 0 0 0 3px rgba(28, 203, 254, 0.1);
}
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237f9cbd' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 11px center; }
.select option { background: #0b1a2c; color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-error { color: #ff8ea1; font-size: 11.5px; }

.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg { position: absolute; left: 11px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 33px; width: 248px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.toolbar .grow { flex: 1; }
.toolbar .select { width: auto; min-width: 120px; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.16s;
}
.chip:hover { color: var(--text); border-color: rgba(120, 190, 255, 0.3); }
.chip.active { color: #05101d; background: linear-gradient(135deg, #6be3ff, #2e7cff); border-color: transparent; font-weight: 600; }
.chip .count { font-family: var(--font-num); opacity: 0.8; }

/* ============================================================
   分页
   ============================================================ */
.pager { display: flex; align-items: center; gap: 5px; }
.pager button {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-num);
}
.pager button:hover:not(:disabled) { border-color: rgba(28, 203, 254, 0.4); color: var(--text); }
.pager button.active { background: rgba(28, 203, 254, 0.16); border-color: rgba(28, 203, 254, 0.45); color: #7fe4ff; }
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============================================================
   弹窗 / 抽屉 / 提示
   ============================================================ */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.66);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.18s ease;
  padding: 20px;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal {
  width: 540px;
  max-width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(28, 203, 254, 0.22);
  background: linear-gradient(180deg, #0c1d31, #081422);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
  overflow: hidden;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-hd h3 { font-size: 15.5px; font-weight: 500; display: flex; align-items: center; gap: 9px; }
.modal-hd h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.modal-bd { padding: 20px; overflow-y: auto; flex: 1; }
.modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); flex-shrink: 0; }

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.55);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}
.drawer {
  width: 480px;
  max-width: 96vw;
  height: 100%;
  background: linear-gradient(180deg, #0b1b2e, #071120);
  border-left: 1px solid rgba(28, 203, 254, 0.22);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: drawerIn 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer-hd { padding: 18px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.drawer-bd { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; }

.toast-root {
  position: fixed;
  top: 78px;
  right: 26px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.toast {
  min-width: 250px;
  max-width: 380px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(28, 203, 254, 0.28);
  background: rgba(10, 26, 45, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  pointer-events: auto;
}
.toast.out { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(28px); } }
.toast .ico { flex-shrink: 0; margin-top: 1px; }
.toast.ok { border-color: rgba(42, 223, 166, 0.35); }
.toast.ok .ico { color: var(--green); }
.toast.warn { border-color: rgba(255, 176, 32, 0.35); }
.toast.warn .ico { color: var(--amber); }
.toast.err { border-color: rgba(255, 83, 112, 0.4); }
.toast.err .ico { color: var(--red); }
.toast .ico { color: var(--cyan); }
.toast-title { font-weight: 500; margin-bottom: 2px; }
.toast-desc { color: var(--text-2); font-size: 12px; line-height: 1.5; }

/* ============================================================
   列表 / 空态 / 进度
   ============================================================ */
.feed { display: flex; flex-direction: column; }
.feed-item {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
  cursor: pointer;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover .feed-title { color: var(--cyan); }
.feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.feed-main { flex: 1; min-width: 0; }
.feed-title { font-size: 13px; line-height: 1.4; transition: color 0.15s; }
.feed-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.feed-time { flex-shrink: 0; font-size: 11.5px; color: var(--text-3); font-family: var(--font-num); }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 46px 20px;
  color: var(--text-3);
  font-size: 12.5px;
}
.empty svg { opacity: 0.4; }

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(120, 190, 255, 0.05) 25%, rgba(120, 190, 255, 0.11) 37%, rgba(120, 190, 255, 0.05) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.progress { height: 6px; border-radius: 4px; background: rgba(120, 190, 255, 0.1); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1ccbfe, #2e7cff); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); }
.progress.green > i { background: linear-gradient(90deg, #2adfa6, #12b98a); }
.progress.amber > i { background: linear-gradient(90deg, #ffcf6b, #ff9f1a); }
.progress.red > i { background: linear-gradient(90deg, #ff8ea1, #ff3d61); }

/* ============================================================
   详情描述列表
   ============================================================ */
.desc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; }
.desc-item { min-width: 0; }
.desc-item .k { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.desc-item .v { font-size: 13px; overflow-wrap: break-word; }

.info-block { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; background: rgba(120, 190, 255, 0.025); }
.info-block + .info-block { margin-top: 14px; }
.info-block h4 { font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.info-block h4::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(180deg, rgba(28, 203, 254, 0.5), rgba(28, 203, 254, 0.05)); }
.timeline-item { position: relative; padding-bottom: 15px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #081627;
  border: 2px solid rgba(28, 203, 254, 0.8);
  box-shadow: 0 0 8px rgba(28, 203, 254, 0.5);
}
.timeline-item .t { font-size: 12.5px; }
.timeline-item .m { font-size: 11px; color: var(--text-3); margin-top: 3px; font-family: var(--font-num); }

/* ============================================================
   图表
   ============================================================ */
.chart-box { position: relative; width: 100%; }
.chart-box canvas { width: 100%; }
.chart-tip {
  position: absolute;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(8, 22, 38, 0.96);
  border: 1px solid rgba(28, 203, 254, 0.3);
  font-size: 11.5px;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -120%);
  transition: opacity 0.12s;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.chart-tip .k { color: var(--text-2); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }

/* ============================================================
   各页面专属
   ============================================================ */
/* 总览 */
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-box { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.donut-box canvas { width: 100% !important; height: 100% !important; }
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.donut-center b { font-family: var(--font-num); font-size: 26px; font-weight: 600; }
.donut-center span { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.legend-col { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 120px; }
.legend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.legend-row .name { display: flex; align-items: center; gap: 7px; }
.legend-row .val { font-family: var(--font-num); color: var(--text); }

.project-bars { display: flex; flex-direction: column; gap: 13px; }
.project-bar-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.project-bar-top .r { font-family: var(--font-num); color: var(--cyan); }
.project-bar-top .sub { color: var(--text-3); font-size: 11px; margin-left: 6px; }

/* 实时监控 */
.monitor-layout { display: grid; grid-template-columns: 286px 1fr; gap: 16px; align-items: stretch; min-height: calc(100vh - 200px); }
.monitor-list-card { display: flex; flex-direction: column; overflow: hidden; }
.monitor-list { flex: 1; overflow-y: auto; padding: 8px; max-height: calc(100vh - 300px); }
.ev-item {
  padding: 10px 11px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.16s;
  margin-bottom: 3px;
}
.ev-item:hover { background: rgba(120, 190, 255, 0.06); }
.ev-item.active { background: rgba(28, 203, 254, 0.09); border-color: rgba(28, 203, 254, 0.3); }
.ev-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-item-name { font-size: 13px; font-weight: 500; }
.ev-item-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.ev-item-state { display: flex; align-items: center; gap: 6px; }
.ev-state-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

.monitor-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ev-hero { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding: 18px; }
.shaft-card {
  position: relative;
  height: 330px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 14, 26, 0.9), rgba(8, 24, 42, 0.6));
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.shaft-bg {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(120, 190, 255, 0.07) 0 1px, transparent 1px 100%);
  background-size: 100% calc(100% / var(--floors, 12));
}
.shaft { position: relative; width: 92px; height: 100%; border-left: 1px solid rgba(28, 203, 254, 0.2); border-right: 1px solid rgba(28, 203, 254, 0.2); }
.shaft::before, .shaft::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(28, 203, 254, 0.5), transparent);
}
.shaft::before { left: 22px; } .shaft::after { right: 22px; }
.car {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 58px;
  border-radius: 7px;
  border: 1px solid rgba(28, 203, 254, 0.65);
  background: linear-gradient(180deg, rgba(28, 203, 254, 0.28), rgba(28, 203, 254, 0.06));
  box-shadow: 0 0 24px rgba(28, 203, 254, 0.35), inset 0 0 18px rgba(28, 203, 254, 0.2);
  transform: translateY(0);
  transition: bottom 1.7s linear;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.car::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 1px;
  background: #7fe4ff;
  opacity: 0.9;
}
.door-panel {
  position: absolute;
  top: 4px; bottom: 4px;
  width: calc(50% - 3px);
  background: linear-gradient(180deg, rgba(158, 231, 255, 0.85), rgba(80, 180, 230, 0.55));
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(28, 203, 254, 0.4);
}
.door-panel.l { left: 3px; } .door-panel.r { right: 3px; }
.car.door-open .door-panel.l { transform: translateX(-100%); }
.car.door-open .door-panel.r { transform: translateX(100%); }
.floor-labels { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.floor-label { position: absolute; left: 12px; font-size: 10px; font-family: var(--font-num); color: var(--text-3); transform: translateY(50%); }
.floor-label.active { color: var(--cyan); text-shadow: 0 0 8px rgba(28, 203, 254, 0.8); }
.shaft-side { position: absolute; right: 12px; top: 8px; font-size: 10px; color: var(--text-3); letter-spacing: 2px; writing-mode: vertical-rl; }

.ev-hero-info { display: flex; flex-direction: column; gap: 14px; }
.floor-readout { display: flex; align-items: flex-end; gap: 10px; }
.floor-readout b { font-family: var(--font-num); font-size: 64px; line-height: 0.9; font-weight: 600; letter-spacing: -1px; background: linear-gradient(180deg, #fff, #4fd6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.floor-readout .den { font-family: var(--font-num); font-size: 20px; color: var(--text-3); padding-bottom: 4px; }
.dir-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; background: rgba(28, 203, 254, 0.1); color: #7fe4ff; border: 1px solid rgba(28, 203, 254, 0.25); }

.tele-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tele {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(120, 190, 255, 0.028);
}
.tele .k { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.tele .v { font-family: var(--font-num); font-size: 19px; margin-top: 4px; }
.tele .v small { font-size: 11px; color: var(--text-3); margin-left: 3px; font-weight: 400; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-cell { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(120, 190, 255, 0.025); }
.stat-cell .k { font-size: 11.5px; color: var(--text-3); }
.stat-cell .v { font-family: var(--font-num); font-size: 21px; margin-top: 5px; }

/* 报表 */
.report-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.report-kpi { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.report-kpi .k { font-size: 11.5px; color: var(--text-3); }
.report-kpi .v { font-family: var(--font-num); font-size: 24px; margin-top: 6px; }
.report-kpi .v small { font-size: 12px; color: var(--text-3); }

/* 用户角色卡 */
.role-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.role-card { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.role-card .name { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.role-card .scope { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.role-card .num { font-family: var(--font-num); font-size: 22px; margin-top: 8px; }

/* 登录后的辅助 */
.tag-dot-wrap { display: inline-flex; align-items: center; gap: 6px; }

/* 空态图标 */
.ico-empty { width: 40px; height: 40px; border-radius: 50%; border: 1px dashed rgba(120, 190, 255, 0.25); display: grid; place-items: center; color: var(--text-3); }

/* 响应式 */
@media (max-width: 1440px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .col-4, .col-5, .col-3 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
  .ev-hero { grid-template-columns: 1fr; }
  .monitor-layout { grid-template-columns: 240px 1fr; }
  .role-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 74px 1fr; }
  .brand-text, .nav-label, .nav-badge, .nav-group-title span, .sidebar-foot .sys-text, .sidebar-foot .ver { display: none; }
  .brand { padding: 0; justify-content: center; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-group-title { text-align: center; padding: 0 0 8px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-4, .col-5, .col-6, .col-3 { grid-column: span 12; }
  .content { padding: 16px; }
  .user-meta { display: none; }
  .clock { display: none; }
  .monitor-layout { grid-template-columns: 1fr; }
  .monitor-list { max-height: 230px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}

/* ============================================================
   实时监控补充
   ============================================================ */
.shaft-floor-labels { position: absolute; inset: 0; pointer-events: none; }
.shaft-floor-labels.right .floor-label { left: auto; right: 12px; }
.shaft-topline, .shaft-bottomline {
  position: absolute; left: 14px; right: 14px; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; letter-spacing: 1.2px; color: var(--text-3);
}
.shaft-topline { top: 10px; }
.shaft-bottomline { bottom: 9px; }
.shaft-card.fault { border-color: rgba(255, 83, 112, 0.45); }
.shaft-card.fault .car {
  border-color: rgba(255, 83, 112, 0.85);
  background: linear-gradient(180deg, rgba(255, 83, 112, 0.32), rgba(255, 83, 112, 0.05));
  box-shadow: 0 0 26px rgba(255, 83, 112, 0.4);
}
.shaft-card.fault .door-panel { background: linear-gradient(180deg, rgba(255, 158, 175, 0.85), rgba(255, 83, 112, 0.5)); }
.list-foot {
  padding: 10px 14px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--text-3); background: rgba(4, 12, 22, 0.35);
}
.dir-badge.tag-red { background: rgba(255, 83, 112, 0.1); border-color: rgba(255, 83, 112, 0.3); color: #ff8ea1; }
.dir-badge.tag-amber { background: rgba(255, 176, 32, 0.1); border-color: rgba(255, 176, 32, 0.3); color: #ffc861; }
.dir-badge.tag-muted { background: rgba(140, 165, 195, 0.08); border-color: rgba(140, 165, 195, 0.18); color: #93a7bd; }

/* 窄屏适配 */
@media (max-width: 900px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .live-pill { display: none; }
  .crumb { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .crumb b { font-size: 14px; }
  .toast-root { right: 14px; left: 14px; align-items: flex-end; }
  .toast { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .kpi-grid, .report-kpis, .role-cards, .stat-strip { grid-template-columns: 1fr !important; }
  .content { padding: 12px; }
  .page-title { font-size: 18px; }
  .page-sub { padding-left: 0; }
  .card-hd { padding: 12px 14px 10px; }
  .card-bd { padding: 0 14px 14px; }
  .toolbar { padding: 12px 14px; }
  .search .input { width: 100%; }
  .search { width: 100%; }
  .table th, .table td { padding: 10px; }
  .table th:first-child, .table td:first-child { padding-left: 14px; }
  .table th:last-child, .table td:last-child { padding-right: 14px; }
  .donut-wrap { justify-content: center; }
}

/* ============================================================
   业务待办 / 视频监控（OA 模块）
   ============================================================ */
.todo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.todo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: rgba(7, 18, 32, 0.6);
  cursor: pointer; transition: background 0.16s;
}
.todo-item:hover { background: rgba(28, 203, 254, 0.06); }
.todo-item .ti {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; border: 1px solid rgba(120, 190, 255, 0.14);
}
.todo-item .tn { font-size: 11.5px; color: var(--text-3); }
.todo-item .tv { font-family: var(--font-num); font-size: 19px; margin-top: 1px; line-height: 1.1; }

.cam-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.cam-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #050c15;
  aspect-ratio: 16 / 9;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cam-tile:hover {
  border-color: rgba(28, 203, 254, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.cam-canvas { width: 100%; height: 100%; display: block; }
.cam-top {
  position: absolute; top: 8px; left: 9px; right: 9px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  pointer-events: none;
}
.cam-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: #7bf0c9;
  background: rgba(2, 10, 20, 0.65); padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(42, 223, 166, 0.3);
}
.cam-live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #2adfa6; box-shadow: 0 0 6px #2adfa6;
  animation: pulse 2s infinite;
}
.cam-live.off { color: #ff9aac; border-color: rgba(255, 83, 112, 0.35); }
.cam-live.off i { background: #ff5370; box-shadow: 0 0 6px #ff5370; }
.cam-name {
  font-size: 10.5px; color: rgba(220, 235, 250, 0.82);
  text-shadow: 0 1px 3px #000; max-width: 70%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cam-bottom {
  position: absolute; left: 9px; right: 10px; bottom: 8px;
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(160, 190, 215, 0.72); pointer-events: none;
}

@media (max-width: 1400px) {
  .cam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .todo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cam-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   真实视频播放器（HLS / FLV / WebRTC / MP4）
   ============================================================ */
.cam-video { position: absolute; inset: 0; overflow: hidden; background: #03080f; z-index: 1; }
.cam-video .vp-holder { position: absolute; inset: 0; }
.cam-top, .cam-bottom { z-index: 3; }
.vp-holder { position: relative; width: 100%; height: 100%; background: #000; }
.vp-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.vp-frame { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.cam-empty {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-3); font-size: 11.5px; text-align: center;
  background: rgba(4, 12, 20, 0.72);
}
.cam-empty .btn { pointer-events: auto; }
.cam-empty.err { color: #ff9aac; }
.cam-tile.playing { border-color: rgba(42, 223, 166, 0.35); }
.cam-tile.play-error { border-color: rgba(255, 83, 112, 0.4); }
.spin-lite {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(120, 190, 255, 0.2);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preview-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(28, 203, 254, 0.25);
}
.preview-box .vp-holder { position: absolute; inset: 0; }
.preview-box .vp-video { object-fit: contain; }

/* 视频画面上下渐变遮罩，提升叠加文字可读性 */
.cam-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 8, 16, 0.62) 0%, rgba(2, 8, 16, 0.08) 26%, transparent 55%, rgba(2, 8, 16, 0.78) 100%);
}

/* 手机端视频接入优化 */
.table-wrap { -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .cam-grid { gap: 10px; }
  .cam-tile { border-radius: 8px; }
  .cam-name { font-size: 9.5px; max-width: 60%; }
  .cam-live { font-size: 9px; padding: 1px 6px; }
  .cam-bottom { font-size: 9px; left: 8px; right: 8px; }
  .cam-empty { font-size: 11px; }
  .preview-box { border-radius: 6px; }
  .mask { padding: 8px; }
  .modal { max-height: 94vh; }
  .modal-hd { padding: 12px 14px; }
  .modal-bd { padding: 14px; }
  .modal-ft { padding: 10px 14px; gap: 8px; }
  .modal-ft .btn { flex: 1; }
  .drawer { width: 100% !important; }
  .page-tools .btn { flex: 1; justify-content: center; }
}

/* 手机端：侧边栏改为抽屉，内容占满屏宽 */
.nav-mask { display: none; }
@media (max-width: 640px) {
  .app-shell { grid-template-columns: 1fr !important; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 246px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 96;
    box-shadow: none;
  }
  .app-shell.nav-open .sidebar { transform: translateX(0); box-shadow: 0 0 44px rgba(0, 0, 0, .65); }
  .app-shell.nav-open .nav-mask {
    display: block;
    position: fixed; inset: 0; z-index: 95;
    background: rgba(2, 6, 12, .55);
  }
  .brand-text, .nav-label, .nav-group-title span, .sidebar-foot .sys-text, .sidebar-foot .ver { display: block; }
  .nav-badge { display: inline-block; }
  .brand { padding: 0 16px; justify-content: flex-start; }
  .nav-item { justify-content: flex-start; padding: 0 16px; }
  .nav-group-title { text-align: left; padding: 0 16px 8px; }
  .sidebar-foot { padding: 14px 16px; text-align: left; }
  .kpi-grid, .report-kpis, .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .role-cards { grid-template-columns: 1fr !important; }
}

/* 手机端抽屉内恢复完整菜单文字（即使残留 collapsed 状态） */
@media (max-width: 640px) {
  .app-shell.collapsed .brand-text,
  .app-shell.collapsed .nav-label,
  .app-shell.collapsed .nav-group-title span,
  .app-shell.collapsed .sidebar-foot .sys-text,
  .app-shell.collapsed .sidebar-foot .ver { display: block; }
  .app-shell.collapsed .nav-badge { display: inline-block; }
  .app-shell.collapsed .nav-item { justify-content: flex-start; padding: 0 16px; }
  .app-shell.collapsed .brand { padding: 0 16px; justify-content: flex-start; }
  .app-shell.collapsed .nav-group-title { text-align: left; padding: 0 16px 8px; }
  .app-shell.collapsed .nav-group-title::after { content: none; }
  .app-shell.collapsed .sidebar-foot { padding: 14px 16px; text-align: left; }
}

/* 扫一扫 */
.scan-wrap { display: flex; flex-direction: column; gap: 12px; }
.scan-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 58vh;
  background: #000; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(28, 203, 254, 0.25);
}
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 12%; border-radius: 14px; box-shadow: 0 0 0 999px rgba(2, 8, 16, 0.45); }
.scan-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid var(--cyan); }
.scan-frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scan-frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.scan-frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.scan-frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scan-tip { font-size: 12.5px; color: var(--text-2); text-align: center; line-height: 1.6; }
.scan-tip[data-tone="warn"] { color: #ffc861; }
.scan-actions { display: flex; gap: 10px; }
.scan-actions .btn { flex: 1; justify-content: center; }
.scan-hint { font-size: 11px; color: var(--text-3); line-height: 1.7; }
.scan-banner {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px;
  background: rgba(28, 203, 254, 0.08); border: 1px solid rgba(28, 203, 254, 0.25);
  color: var(--cyan); font-size: 12px;
}
.scan-banner.warn { background: rgba(255, 176, 32, 0.08); border-color: rgba(255, 176, 32, 0.3); color: #ffc861; }

/* ============================================================
   现场签到（V63 合并）
   ============================================================ */
.ci-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ci-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ci-card {
  padding: 18px 18px 16px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(12, 28, 48, 0.72), rgba(6, 15, 27, 0.62));
  border: 1px solid var(--line);
}
.ci-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ci-name { margin-top: 12px; font-size: 16px; font-weight: 600; }
.ci-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.ci-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--text-2); }
.ci-check-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 22px; }
.ci-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ci-actions .btn { text-decoration: none; }

.ci-modal-head { padding: 2px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ci-modal-head b { display: block; font-size: 16px; }
.ci-modal-head span { font-size: 12px; }
.ci-step { padding: 14px 0; border-bottom: 1px dashed var(--line-soft); }
.ci-step:last-of-type { border-bottom: 0; }
.ci-step-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.ci-step-title i {
  width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11px;
  display: grid; place-items: center; color: #041018; background: var(--cyan);
}
.ci-qr-row { display: flex; gap: 10px; }
.ci-qr-row .input { flex: 1; }
.ci-geo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ci-geo-msg { margin-top: 8px; font-size: 11.5px; }

.ci-work-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ci-work-head b { font-size: 16px; }
.ci-timer { text-align: right; }
.ci-timer b { font-size: 30px; color: var(--cyan); line-height: 1; }
.ci-timer span { display: block; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.ci-progress { height: 6px; border-radius: 99px; background: rgba(120, 190, 255, 0.12); margin: 14px 0 4px; overflow: hidden; }
.ci-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width 0.5s; }
.ci-section { margin-top: 18px; }
.ci-section-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.ci-section-title .dim { font-weight: 400; font-size: 11px; }
.ci-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.ci-photo { position: relative; width: 108px; height: 82px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.ci-photo img { width: 100%; height: 100%; object-fit: cover; }
.ci-photo-del {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; line-height: 1; font-size: 12px;
}
.ci-photo-add {
  width: 108px; height: 82px; border-radius: 8px; border: 1px dashed rgba(120, 190, 255, 0.35);
  background: rgba(28, 203, 254, 0.05); color: var(--text-3); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.ci-photo-add span { font-size: 20px; color: var(--cyan); line-height: 1; }
.ci-photo-add i { font-style: normal; font-size: 10.5px; }
.ci-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ci-sig { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(2, 8, 16, 0.4); }
.ci-sig-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-2); margin-bottom: 6px; }
.ci-sig canvas {
  width: 100%; height: 96px; display: block; border-radius: 6px;
  background: #eef4f9; touch-action: none; cursor: crosshair;
}
.ci-sig-state { font-size: 10.5px; margin-top: 5px; color: var(--text-3); }
.ci-force { margin-top: 16px; border-top: 1px dashed var(--line-soft); padding-top: 12px; }
.ci-force summary { font-size: 12px; color: var(--text-3); cursor: pointer; }
.ci-force-body { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.ci-force-body label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--text-3); }

/* ============================================================
   二维码标签
   ============================================================ */
.qr-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.qr-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 240px; max-width: 360px; }
.qr-search svg { position: absolute; left: 10px; color: var(--text-3); }
.qr-search .input { padding-left: 32px; width: 100%; }
.qr-tip { margin-left: auto; font-size: 11px; }
.qr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qr-card {
  background: #f7fafd; color: #0b1b2b; border-radius: 10px; overflow: hidden;
  border: 1px solid #cfdae6; padding: 14px 14px 10px; break-inside: avoid;
}
.qr-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.qr-card-name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.qr-card-sub { font-size: 10.5px; color: #5b7086; margin-top: 3px; }
.qr-card-badge {
  font-size: 9.5px; padding: 2px 7px; border-radius: 99px; white-space: nowrap;
  background: #e7f5ff; color: #0a6c99; border: 1px solid #b9e3f7;
}
.qr-card-body { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; margin: 12px 0 10px; }
.qr-box { width: 92px; height: 92px; background: #fff; border: 1px solid #dbe6f0; border-radius: 6px; padding: 4px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-code { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; color: #0a6c99; }
.qr-meta { min-width: 0; }
.qr-line { display: grid; grid-template-columns: 30px 1fr; gap: 6px; font-size: 10px; color: #6a7f94; line-height: 1.6; }
.qr-line b { color: #24384c; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-card-foot { font-size: 8.5px; color: #8498ab; border-top: 1px solid #e3ebf3; padding-top: 6px; letter-spacing: 0.2px; }

@media (max-width: 1180px) {
  .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ci-list { grid-template-columns: 1fr; }
  .ci-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-sigs { grid-template-columns: 1fr; }
  .ci-force-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .qr-grid { grid-template-columns: 1fr; }
  .qr-tip { display: none; }
  .ci-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 打印标签 */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; }
  .sidebar, .topbar, .page-head, .page-tools, .info-block, .qr-toolbar, .no-print { display: none !important; }
  .app-shell { display: block !important; }
  .main { height: auto !important; }
  .content { padding: 0 !important; overflow: visible !important; }
  .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8mm; }
  .qr-card { border: 1px dashed #9aa8b5; box-shadow: none; }
}

/* 官网入口 */
.site-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 10.5px; color: var(--text-3); text-decoration: none; }
.site-link:hover { color: var(--cyan); }
.collapsed .site-link { display: none; }

/* ============================================================
   地图监控（V85 合并）
   ============================================================ */
.map-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: stretch; }
.map-canvas {
  position: relative; height: 600px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(28, 203, 254, 0.08), transparent 70%),
    radial-gradient(50% 50% at 80% 80%, rgba(47, 123, 255, 0.08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(120, 190, 255, 0.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(120, 190, 255, 0.05) 0 1px, transparent 1px 48px),
    #050d17;
}
.map-watermark {
  position: absolute; left: 18px; top: 14px; font-size: 11px; letter-spacing: 3px;
  color: rgba(140, 190, 230, 0.35); pointer-events: none;
}
.map-points { position: absolute; inset: 0; }
.map-point {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(28, 203, 254, 0.55);
  background: radial-gradient(circle at 35% 30%, rgba(69, 227, 255, 0.35), rgba(12, 40, 66, 0.85));
  color: #dff6ff; cursor: pointer; padding: 0;
  box-shadow: 0 0 0 4px rgba(28, 203, 254, 0.06), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.map-point:hover { transform: translate(-50%, -50%) scale(1.08); z-index: 3; }
.map-point span { font-size: 13px; font-weight: 700; line-height: 1; }
.map-point i {
  position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 10px; color: var(--text-2); white-space: nowrap;
  background: rgba(4, 10, 18, 0.65); padding: 1px 6px; border-radius: 99px;
}
.map-point.warn { border-color: rgba(255, 99, 120, 0.8); background: radial-gradient(circle at 35% 30%, rgba(255, 120, 140, 0.4), rgba(70, 14, 26, 0.9)); box-shadow: 0 0 0 4px rgba(255, 83, 112, 0.08), 0 6px 18px rgba(0, 0, 0, 0.4); }
.map-point.act { box-shadow: 0 0 0 3px rgba(28, 203, 254, 0.55), 0 0 26px rgba(28, 203, 254, 0.35); z-index: 4; }
.map-point.warn.act { box-shadow: 0 0 0 3px rgba(255, 99, 120, 0.6), 0 0 26px rgba(255, 83, 112, 0.3); }
.map-legend {
  position: absolute; left: 16px; bottom: 14px; display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-3); background: rgba(4, 10, 18, 0.55);
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
}
.map-legend span { display: flex; align-items: center; gap: 5px; }
.map-legend .ld { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-legend .ld.normal { background: var(--cyan); }
.map-legend .ld.warn { background: #ff6378; }
.map-legend .ld.big { width: 10px; height: 10px; background: rgba(28, 203, 254, 0.4); border: 1px solid var(--cyan); }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.map-side {
  display: flex; flex-direction: column; min-height: 0; height: 600px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 18, 32, 0.55); overflow: hidden;
}
.map-side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.map-side-head b { font-size: 13px; }
.map-units { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.map-unit {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; text-align: left;
}
.map-unit:hover { background: rgba(28, 203, 254, 0.06); }
.map-unit.act { border-color: rgba(28, 203, 254, 0.35); background: rgba(28, 203, 254, 0.08); }
.mu-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex-shrink: 0; }
.map-unit.warn .mu-dot { background: #ff6378; box-shadow: 0 0 8px #ff6378; }
.mu-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mu-main b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-main i { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.mu-badge { font-size: 10px; background: rgba(255, 99, 120, 0.16); color: #ff9aac; border: 1px solid rgba(255, 99, 120, 0.3); border-radius: 99px; padding: 1px 7px; }
.map-detail { border-top: 1px solid var(--line); padding: 12px 14px; max-height: 250px; overflow: auto; }
.map-detail-empty { color: var(--text-3); font-size: 11.5px; }
.map-detail-head b { display: block; font-size: 12.5px; line-height: 1.5; }
.map-detail-head span { font-size: 10.5px; }
.map-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.map-detail-grid div { background: rgba(4, 12, 20, 0.55); border: 1px solid var(--line-soft); border-radius: 7px; padding: 6px 8px; }
.map-detail-grid span { display: block; font-size: 9.5px; color: var(--text-3); }
.map-detail-grid b { font-size: 14px; }
.map-detail-grid b.red { color: #ff8a9c; }
.map-detail-grid b.amber { color: #ffc861; }
.map-detail-actions { margin-top: 10px; }

@media (max-width: 1100px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-side { height: auto; max-height: 420px; }
  .map-canvas { height: 460px; }
}
@media (max-width: 900px) {
  .map-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.map-point.amber { border-color: rgba(255, 200, 97, 0.75); background: radial-gradient(circle at 35% 30%, rgba(255, 200, 97, 0.32), rgba(60, 45, 12, 0.9)); box-shadow: 0 0 0 4px rgba(255, 200, 97, 0.07), 0 6px 18px rgba(0, 0, 0, 0.38); }
.map-point.amber.act { box-shadow: 0 0 0 3px rgba(255, 200, 97, 0.55), 0 0 26px rgba(255, 200, 97, 0.28); }
.map-legend .ld.amber { background: #ffc861; }
.map-unit.amber .mu-dot { background: #ffc861; box-shadow: 0 0 8px #ffc861; }

/* 系统设置 */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.check-row input { width: 15px; height: 15px; accent-color: var(--cyan); }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

/* 维保计划：月份筛选 */
.month-filter { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.month-filter .input { width: 138px; height: 30px; }
.month-filter .btn-link { font-size: 11px; }

/* ============================================================
   高德地图底图
   ============================================================ */
.map-stage { position: relative; min-width: 0; }
.amap-box {
  height: 600px; width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #050d17;
}
.amap-pin {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(28, 203, 254, 0.6);
  background: radial-gradient(circle at 35% 30%, rgba(69, 227, 255, 0.38), rgba(10, 36, 60, 0.92));
  color: #e6f8ff; box-shadow: 0 0 0 4px rgba(28, 203, 254, 0.08), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.amap-pin b { font-size: 13px; line-height: 1; font-weight: 700; }
.amap-pin span {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  font-size: 10px; white-space: nowrap; color: #cfe8ff;
  background: rgba(4, 10, 18, 0.72); padding: 1px 7px; border-radius: 99px;
  border: 1px solid rgba(120, 190, 255, 0.18);
}
.amap-pin.warn {
  border-color: rgba(255, 99, 120, 0.8);
  background: radial-gradient(circle at 35% 30%, rgba(255, 120, 140, 0.45), rgba(72, 14, 26, 0.92));
  box-shadow: 0 0 0 4px rgba(255, 83, 112, 0.08), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.amap-pin.amber {
  border-color: rgba(255, 200, 97, 0.8);
  background: radial-gradient(circle at 35% 30%, rgba(255, 200, 97, 0.4), rgba(62, 45, 12, 0.92));
}
.amap-info { padding: 12px 14px; min-width: 220px; font-family: var(--font); }
.amap-info b { display: block; font-size: 13px; color: #dff4ff; line-height: 1.5; }
.amap-info .ai-addr { font-size: 10.5px; color: #8fa8bf; margin-top: 3px; }
.amap-info .ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.amap-info .ai-grid span { font-size: 10px; color: #8fa8bf; }
.amap-info .ai-grid b { display: inline; font-size: 12px; color: #67e7ff; }
.map-msg {
  margin-top: 8px; padding: 7px 12px; border-radius: 8px; font-size: 11.5px;
  color: #ffc861; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.28);
}
.map-mode { display: none; gap: 4px; align-items: center; margin-right: 4px; }
.map-mode .btn { padding: 4px 10px; font-size: 11px; }
.map-mode .btn.act { border-color: rgba(28, 203, 254, 0.55); color: var(--cyan); background: rgba(28, 203, 254, 0.1); }

@media (max-width: 1100px) {
  .amap-box { height: 460px; }
}

/* 地图城市筛选 */
.map-citybar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.map-citybar .chip { font-size: 11.5px; padding: 5px 12px; }
