/* 实时监控（地图工作台）专用样式 */
.vm-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.vm-top { flex: 1; display: flex; min-height: 0; }

/* 左侧部门车辆 */
.vm-left {
  width: 300px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.vm-left__hd {
  height: 42px; flex: none; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.vm-left__title { font-size: 14px; font-weight: 500; }
.vm-left__title::before {
  content: ''; display: inline-block; width: 3px; height: 13px; background: var(--brand);
  border-radius: 2px; margin-right: 8px; vertical-align: -2px;
}
.vm-left__link { margin-left: auto; font-size: 12px; color: var(--brand); cursor: pointer; }
.vm-left__search { padding: 10px 12px; flex: none; position: relative; }
.vm-left__search input {
  width: 100%; height: 32px; padding: 0 30px 0 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); outline: none; font-size: 12px;
}
.vm-left__search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44,128,225,.13); }
.vm-left__search svg {
  position: absolute; right: 20px; top: 18px; width: 15px; height: 15px; color: var(--text-4);
}
.vm-tree { flex: 1; overflow: auto; padding: 0 8px 12px; }
.vm-node { user-select: none; }
.vm-node__row {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px; border-radius: var(--radius);
  cursor: pointer; font-size: 13px; color: var(--text-1);
}
.vm-node__row:hover { background: var(--bg-hover); }
.vm-node__caret {
  width: 14px; height: 14px; color: var(--text-4); transition: transform .18s; flex: none;
}
.vm-node.is-open > .vm-node__row .vm-node__caret { transform: rotate(90deg); }
.vm-node__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-node__count { color: var(--text-3); font-size: 12px; }
.vm-node__count i { font-style: normal; color: var(--brand); }
.vm-node__children { display: none; padding-left: 20px; }
.vm-node.is-open > .vm-node__children { display: block; }
.vm-node__row input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; }

/* 分隔条 */
.vm-split { width: 4px; flex: none; background: var(--bg-page); cursor: col-resize; position: relative; }
.vm-split:hover { background: var(--brand-200); }

/* 主工作区 */
.vm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.vm-toolbar {
  height: 46px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.vm-toolbar__btn {
  height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  color: var(--text-2); font-size: 13px; cursor: pointer; transition: all .16s;
  white-space: nowrap; flex: none;
}
.vm-toolbar__btn:hover { border-color: var(--brand-400); color: var(--brand-600); background: var(--brand-050); }
.vm-toolbar__btn svg { width: 14px; height: 14px; }
.vm-status { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.vm-summary { display: flex; align-items: center; gap: 0; }
.vm-summary__item {
  padding: 0 14px; display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--text-3);
  border-left: 1px solid var(--line); white-space: nowrap; flex: none;
}
.vm-summary__item b { font-size: 15px; color: var(--text-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.vm-summary__item:first-child { border-left: 0; }

/* 地图 */
.vm-map { flex: 1; position: relative; overflow: hidden; background: #D9E6F2; min-height: 0; }
.vm-map__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vm-zoom {
  position: absolute; right: 14px; top: 16px; width: 32px; background: #fff; border-radius: 8px;
  box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--line);
}
.vm-zoom__lvl {
  height: 28px; display: flex; align-items: center; justify-content: center; font-size: 12px;
  color: var(--text-2); border-bottom: 1px solid var(--line); background: #fff;
  font-variant-numeric: tabular-nums;
}
.vm-zoom button {
  width: 100%; height: 28px; border: 0; background: #fff; cursor: pointer; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.vm-zoom button:hover { background: var(--brand-050); color: var(--brand); }
.vm-zoom button + button { border-top: 1px solid var(--line); }
.vm-zoom__home { border-top: 1px solid var(--line) !important; }
.vm-scale {
  position: absolute; left: 14px; bottom: 12px; font-size: 11px; color: #33475C;
  background: rgba(255,255,255,.82); padding: 1px 6px; border-radius: 3px;
}
.vm-scale__bar {
  width: 74px; height: 5px; border: 1px solid #33475C; border-top: 0; margin-bottom: 2px;
}
.vm-copy {
  position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: #33475C;
  background: rgba(255,255,255,.82); padding: 1px 6px; border-radius: 3px;
}
.vm-map__hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: rgba(255,255,255,.94); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  padding: 18px 26px; text-align: center; color: var(--text-2); font-size: 13px;
  border: 1px solid var(--line);
}

/* 底部面板 */
.vm-bottom {
  flex: none; height: 244px; background: #fff; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.vm-bottom__bd { flex: 1; overflow: auto; }

/* 历史视频 */
.hv-wrap { display: flex; height: 100%; min-height: 0; }
.hv-left {
  width: 300px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.hv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px; gap: 12px; overflow: auto; }
.hv-player {
  background: #0F1B2A; border-radius: var(--radius-lg); height: 320px; position: relative;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.62); overflow: hidden;
}
.hv-player__grid {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px;
}
.hv-player__cell {
  background: linear-gradient(160deg, #17263A, #0E1826); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  color: rgba(255,255,255,.4);
}
.hv-timeline { padding: 14px 16px 6px; }
.hv-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.hv-bar {
  height: 26px; border-radius: 4px; background: repeating-linear-gradient(90deg,#EDF2F8 0 4px,#fff 4px 8px);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.hv-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(44,128,225,.35); }

/* 数据可视化 */
.dv-wrap { padding: 12px; overflow: auto; height: 100%; }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
  cursor: pointer; transition: all .18s; box-shadow: var(--shadow-1);
}
.dv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); border-color: var(--brand-200); }
.dv-card__ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-100); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.dv-card__ico svg { width: 24px; height: 24px; }
.dv-card__t { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.dv-card__d { font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* AI 应用门户 */
.ai-wrap { display: flex; height: 100%; min-height: 0; }
.ai-side {
  width: 240px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 12px 10px; gap: 4px;
}
.ai-nav__i {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px; border-radius: var(--radius);
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .16s;
}
.ai-nav__i svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
.ai-nav__i:hover { background: var(--brand-050); color: var(--brand-700); }
.ai-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 22px; }
.ai-hero { text-align: center; padding: 42px 0 26px; }
.ai-hero__logo {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 14px; background: var(--brand-100);
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.ai-hero__logo svg { width: 28px; height: 28px; }
.ai-hero__t { font-size: 19px; font-weight: 600; }
.ai-hero__s { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.ai-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; max-width: 820px; margin: 0 auto; }
.ai-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; background: #fff;
  cursor: pointer; transition: all .16s;
}
.ai-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-2); }
.ai-card__t { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.ai-card__t svg { width: 16px; height: 16px; color: var(--brand); }
.ai-card__d { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.ai-input {
  margin-top: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-1); max-width: 820px; width: 100%; align-self: center;
}
.ai-input input { flex: 1; border: 0; outline: none; font-size: 14px; }
.ai-input__send {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; border: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ai-input__send svg { width: 16px; height: 16px; }

/* 大屏 */
.sc {
  background: radial-gradient(1200px 620px at 50% -10%, #123F79 0%, #08152A 62%, #050D1B 100%);
  color: #DCEAFB; padding: 16px; height: 100%; overflow: auto;
}
.sc-hd {
  height: 62px; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(180deg, rgba(44,128,225,.24), transparent);
}
.sc-hd__t { font-size: 26px; font-weight: 700; letter-spacing: 4px; color: #EAF4FF; }
.sc-hd__time { position: absolute; right: 8px; font-size: 13px; color: #9FC3EA; }
.sc-grid { display: grid; grid-template-columns: 300px 1fr 300px; gap: 14px; margin-top: 8px; }
.sc-col { display: flex; flex-direction: column; gap: 14px; }
.sc-box {
  background: rgba(18, 46, 84, .46); border: 1px solid rgba(81, 148, 224, .28); border-radius: 8px;
  padding: 12px 14px;
}
.sc-box__t {
  font-size: 14px; color: #CFE4FB; font-weight: 500; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.sc-box__t::before { content: ''; width: 3px; height: 13px; background: #4FA3F7; border-radius: 2px; }
.sc-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-kpi__i { background: rgba(44,128,225,.14); border-radius: 6px; padding: 10px; text-align: center; }
.sc-kpi__n { font-size: 22px; font-weight: 700; color: #7CC0FF; font-variant-numeric: tabular-nums; }
.sc-kpi__l { font-size: 12px; color: #9FC3EA; margin-top: 2px; }
.sc-rank__i { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12px; }
.sc-rank__bar { flex: 1; height: 8px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; }
.sc-rank__fill { height: 100%; background: linear-gradient(90deg, #2C80E1, #6CC0FF); border-radius: 5px; }
