/* ============================================================
   防汛应急指挥大屏 · 样式
   设计基准 1920×1080，#stage 由 JS 等比缩放适配任意大屏
   ============================================================ */
:root {
  --bg0: #050f1e;
  --line: rgba(88, 142, 192, .22);
  --line-hi: rgba(120, 190, 250, .5);
  --ink: #e8f2fc;
  --ink2: #b9cfe4;
  --mut: #6d8aa5;
  --mut2: #8aa6c0;
  --cyan: #35c8f5;
  --brand: #e63946;
  --red: #ff4d4f;
  --orange: #ff9f2e;
  --yellow: #ffd666;
  --blue: #4db8ff;
  --green: #37b58c;
  --violet: #c084fc;
  --f-disp: 'ZCOOL QingKe HuangYou', 'Microsoft YaHei', sans-serif;
  --f-num: 'Rajdhani', 'Bahnschrift', 'Arial Narrow', sans-serif;
  --f-body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  background: radial-gradient(1200px 700px at 50% 40%, #08182c 0%, var(--bg0) 62%, #030a15 100%);
  font-family: var(--f-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
::selection { background: rgba(53, 200, 245, .35); }

/* 滚动条 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(90, 150, 210, .32); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(90, 150, 210, .55); }

/* ---------- 舞台 ---------- */
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #071426 0%, #081a30 48%, #061120 100%);
  overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(80, 140, 200, .045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(80, 140, 200, .045) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(900px 620px at 50% 46%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 620px at 50% 46%, #000 30%, transparent 78%);
}
.bg-glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(10px); }
.glow-a {
  left: -180px; top: -200px; width: 640px; height: 560px;
  background: radial-gradient(closest-side, rgba(230, 57, 70, .13), transparent 72%);
  animation: glowBreath 9s ease-in-out infinite;
}
.glow-b {
  right: -160px; bottom: -180px; width: 700px; height: 560px;
  background: radial-gradient(closest-side, rgba(38, 160, 200, .14), transparent 72%);
  animation: glowBreath 11s ease-in-out infinite reverse;
}
@keyframes glowBreath { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

#topbar, #statbar, #main, #bottombar { position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
#topbar {
  height: 76px; flex: none;
  display: flex; align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(96, 178, 240, .5) 18%, rgba(230, 57, 70, .55) 50%, rgba(96, 178, 240, .5) 82%, transparent) 1;
  background: linear-gradient(180deg, rgba(14, 32, 56, .55), rgba(14, 32, 56, 0));
}
.brand { display: flex; align-items: center; gap: 12px; width: 330px; }
.brand svg { filter: drop-shadow(0 2px 8px rgba(230, 57, 70, .45)); }
.brand-cn { font-family: var(--f-disp); font-size: 21px; letter-spacing: 5px; color: #f4f8fd; line-height: 1.1; }
.brand-en { font-size: 9px; letter-spacing: 2.6px; color: var(--mut); margin-top: 3px; }
.title-block { flex: 1; text-align: center; }
.title-block h1 {
  position: relative; display: inline-block;
  font-family: var(--f-disp); font-weight: 400;
  font-size: 35px; letter-spacing: 11px; text-indent: 11px;
  color: #eef5fc;
  text-shadow: 0 0 26px rgba(53, 200, 245, .38), 0 2px 4px rgba(0, 0, 0, .5);
}
.title-block h1::before, .title-block h1::after {
  content: ''; position: absolute; top: 52%; width: 138px; height: 2px;
}
.title-block h1::before { right: calc(100% + 20px); background: linear-gradient(90deg, transparent, rgba(230, 57, 70, .75)); }
.title-block h1::after { left: calc(100% + 9px); background: linear-gradient(270deg, transparent, rgba(96, 178, 240, .7)); }
.title-sub { font-size: 11.5px; letter-spacing: 3.5px; color: #7fa3c4; margin-top: 4px; }
.topbar-right { display: flex; align-items: center; gap: 14px; width: 330px; justify-content: flex-end; }
.phase-badge {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px; border-radius: 4px;
  border: 1px solid rgba(61, 220, 151, .35);
  background: rgba(61, 220, 151, .07);
}
.phase-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}
.phase-main { font-size: 12px; letter-spacing: 2px; color: #d9f5e8; line-height: 1.2; }
.phase-sub { font-size: 9px; letter-spacing: 1.5px; color: #6fae93; margin-top: 2px; }
.top-alert {
  padding: 8px 14px; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: #071426; background: var(--blue);
  box-shadow: 0 0 16px rgba(255, 159, 46, .35);
  transition: background .5s;
  white-space: nowrap;
}
.clock { text-align: right; }
.clock-time {
  font-family: var(--f-num); font-weight: 600; font-size: 27px;
  letter-spacing: 2px; color: #dff1ff; line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(53, 200, 245, .35);
}
.clock-date { font-size: 10px; letter-spacing: 2.5px; color: var(--mut); margin-top: 4px; }

/* ---------- 指标条 ---------- */
#statbar {
  height: 58px; flex: none;
  display: flex; align-items: stretch;
  padding: 0 26px;
  border-bottom: 1px solid rgba(88, 142, 192, .14);
  background: linear-gradient(180deg, rgba(10, 24, 44, .35), transparent);
}
.stat {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px;
  border-left: 1px solid rgba(88, 142, 192, .14);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--f-num); font-weight: 700; font-size: 31px;
  min-width: 58px; text-align: right; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.num-red { color: #ff6b6b; text-shadow: 0 0 16px rgba(255, 77, 79, .45); }
.num-cyan { color: var(--cyan); text-shadow: 0 0 16px rgba(53, 200, 245, .4); }
.num-yellow { color: var(--yellow); text-shadow: 0 0 16px rgba(255, 214, 102, .4); }
.num-green { color: #3ddc97; text-shadow: 0 0 16px rgba(61, 220, 151, .4); }
.stat-label { font-size: 12px; letter-spacing: 2.5px; color: var(--mut2); }

/* ---------- 主区 ---------- */
#main { flex: 1; display: flex; gap: 14px; padding: 12px 16px; min-height: 0; }
.col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.col-left { width: 396px; flex: none; }
.col-right { width: 418px; flex: none; }
.col-center { flex: 1; min-width: 0; }

/* ---------- 面板 ---------- */
.panel {
  position: relative; display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(180deg, rgba(17, 39, 66, .78), rgba(9, 22, 42, .6));
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .25s;
}
.panel:hover { border-color: rgba(120, 190, 250, .42); }
.panel::before, .panel::after { content: ''; position: absolute; width: 15px; height: 15px; pointer-events: none; }
.panel::before { left: -1px; top: -1px; border-left: 2px solid rgba(96, 178, 240, .6); border-top: 2px solid rgba(96, 178, 240, .6); border-top-left-radius: 6px; }
.panel::after { right: -1px; bottom: -1px; border-right: 2px solid rgba(96, 178, 240, .35); border-bottom: 2px solid rgba(96, 178, 240, .35); border-bottom-right-radius: 6px; }
.grow { flex: 1; }
.panel-head {
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid rgba(88, 142, 192, .16);
  background: linear-gradient(90deg, rgba(53, 200, 245, .08), transparent 62%);
  border-radius: 6px 6px 0 0;
}
.panel-tag { width: 4px; height: 15px; background: var(--brand); transform: skewX(-14deg); box-shadow: 0 0 9px rgba(230, 57, 70, .65); flex: none; }
.panel-head h2 { font-family: var(--f-disp); font-weight: 400; font-size: 15.5px; letter-spacing: 3px; color: #dcebf9; }
.panel-extra { margin-left: auto; font-size: 10px; letter-spacing: 1.5px; color: #5f7f9e; }
.panel-body { flex: 1; min-height: 0; padding: 10px 12px; position: relative; }
.scroll { overflow-y: auto; }
.empty { font-size: 11px; letter-spacing: 2px; color: #5f7f9e; text-align: center; padding: 20px 0; }

/* ---------- 防御应对建议 ---------- */
.def-item {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 6px 2px;
  border-bottom: 1px dashed rgba(88, 142, 192, .14);
}
.def-item:last-child { border-bottom: none; }
.def-num {
  flex: none; width: 16px; height: 16px; margin-top: 1px;
  border-radius: 50%; background: rgba(230, 57, 70, .9);
  color: #fff; font-family: var(--f-num); font-weight: 700; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 7px rgba(230, 57, 70, .6);
}
.def-main b { display: block; font-size: 12px; letter-spacing: 1px; color: #ffd9d9; }
.def-main span { font-size: 10.5px; line-height: 1.55; color: #a9c3dc; }

/* ---------- 台风预计影响区域标签 ---------- */
.ty-impact-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 6px 0 2px; }
.ty-impact-tags em { font-style: normal; font-size: 10px; letter-spacing: 1px; color: var(--mut); }
.ty-impact-tags i {
  font-style: normal; font-size: 10px; letter-spacing: 1px; color: #ffd9d9;
  background: rgba(230, 57, 70, .16); border: 1px solid rgba(255, 77, 79, .45);
  border-radius: 3px; padding: 2px 7px;
}

/* ---------- 台风面板 ---------- */
.ty-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ty-name { display: flex; align-items: center; gap: 9px; }
.ty-name b { font-family: var(--f-disp); font-weight: 400; font-size: 23px; letter-spacing: 3px; color: #ffd9d9; }
.ty-name em { font-style: normal; font-size: 10px; letter-spacing: 1px; color: var(--mut2); }
.ty-spin {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  border: 2px dashed #ff6b6b; border-top-color: #ffd9d9;
  animation: spin 4.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ty-cat {
  font-size: 11px; letter-spacing: 1.5px; padding: 3px 9px; border-radius: 3px;
  color: #ffb85c; background: rgba(255, 159, 46, .14); border: 1px solid rgba(255, 159, 46, .42);
}
.ty-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px;
  padding: 9px 11px; margin-bottom: 8px; border-radius: 4px;
  background: rgba(8, 20, 36, .5); border: 1px solid rgba(88, 142, 192, .14);
}
.ty-grid i { display: block; font-style: normal; font-size: 9px; letter-spacing: 1.5px; color: var(--mut); margin-bottom: 2px; }
.ty-grid b { font-family: var(--f-num); font-weight: 600; font-size: 16px; color: var(--ink); }
.ty-grid b.sm { font-size: 12px; letter-spacing: .5px; }
.ty-grid u { text-decoration: none; font-size: 9px; color: var(--mut); margin-left: 2px; }
.ty-impact { font-size: 11px; letter-spacing: 1px; color: #a9c3dc; margin-bottom: 7px; }
.ty-impact b { font-family: var(--f-num); font-size: 15px; margin: 0 2px; }
.ty-impact b.red { color: #ff6b6b; }
.ty-impact b.org { color: var(--orange); }
.ty-spark { margin-bottom: 7px; }
.ty-spark svg { display: block; width: 100%; height: 46px; background: rgba(8, 20, 36, .42); border-radius: 4px; }
.ty-fc { display: flex; flex-direction: column; gap: 3px; }
.ty-fc-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: #a9c3dc; padding: 3.5px 9px; border-radius: 3px;
  background: rgba(88, 142, 192, .08);
  font-family: var(--f-num); letter-spacing: .5px;
}
.ty-fc-row.land { background: rgba(255, 77, 79, .13); border-left: 2px solid var(--red); }
.ty-fc-row b { color: #ffd9d9; font-weight: 600; }
.ty-note { font-size: 10px; color: #ffb3b3; line-height: 1.55; padding: 2px 9px 4px; }

/* ---------- 预警 / 情报 ---------- */
.sec-tag { font-size: 10px; letter-spacing: 2.5px; color: #7fa3c4; margin: 4px 0 7px; }
.sec-tag em { font-style: normal; font-family: var(--f-num); color: var(--cyan); margin-left: 5px; }
.sec-tag.red { color: #ff8a8b; }
.alert-row {
  padding: 7px 9px 7px 10px; margin-bottom: 7px; border-radius: 4px;
  background: rgba(13, 30, 52, .55);
  border: 1px solid rgba(88, 142, 192, .14);
  border-left-width: 3px;
  cursor: pointer; transition: background .2s, transform .2s;
}
.alert-row:hover { background: rgba(70, 140, 210, .14); transform: translateX(2px); }
.alert-row.pub { background: rgba(230, 57, 70, .09); }
.al-hd { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.lv {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: #071426; padding: 1px 6px; border-radius: 3px;
}
.al-hd b { font-size: 12px; letter-spacing: 1px; color: var(--ink); white-space: nowrap; }
.al-area { flex: 1; min-width: 0; font-size: 10px; color: var(--mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-time { flex: none; font-family: var(--f-num); font-size: 10px; color: #5f7f9e; letter-spacing: .5px; }
.al-tx { font-size: 11px; color: var(--ink2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-src { font-size: 9.5px; color: #5f7f9e; margin-top: 3px; letter-spacing: .5px; }

.news-row {
  padding: 6px 9px; margin-bottom: 5px; border-radius: 3px; line-height: 1.6;
  background: rgba(13, 30, 52, .42);
  border-left: 2px solid rgba(53, 200, 245, .45);
  transition: background .2s;
}
.news-row:hover { background: rgba(53, 200, 245, .09); }
.news-row.user { border-left-color: var(--yellow); }
.nw-time { font-family: var(--f-num); font-size: 10px; color: #5f7f9e; margin-right: 7px; }
.nw-src { font-size: 9.5px; letter-spacing: .5px; color: var(--cyan); padding: 0 5px; border: 1px solid rgba(53, 200, 245, .35); border-radius: 2px; margin-right: 7px; white-space: nowrap; }
.nw-src.in { color: var(--yellow); border-color: rgba(255, 214, 102, .4); }
.nw-tx { font-size: 11px; color: #c6d9ec; }

/* ---------- 受影响设施 ---------- */
#aff-body { max-height: 238px; }
.aff-row {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 7px 9px; margin-bottom: 6px; border-radius: 4px;
  background: rgba(13, 30, 52, .55); border: 1px solid rgba(88, 142, 192, .14);
  cursor: pointer; transition: background .2s, transform .2s;
}
.aff-row:hover { background: rgba(255, 107, 107, .09); transform: translateX(2px); }
.aff-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; }
.aff-dot.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.aff-main { flex: 1; min-width: 0; }
.aff-main b { display: block; font-size: 12.5px; letter-spacing: .5px; color: #eef5fc; }
.aff-main em { font-style: normal; font-size: 10px; color: #7fa3c4; margin-left: 7px; }
.aff-reason { display: block; font-size: 10.5px; color: #9db6cd; line-height: 1.5; margin-top: 2px; }

/* ---------- 事件时间线 ---------- */
.tl-item {
  position: relative; padding: 7px 9px 7px 21px; margin-bottom: 6px; border-radius: 4px;
  background: rgba(13, 30, 52, .5); border: 1px solid rgba(88, 142, 192, .12);
  cursor: pointer; transition: background .2s;
}
.tl-item:hover { background: rgba(53, 200, 245, .08); }
.tl-item.fresh { border-color: rgba(255, 214, 102, .45); animation: freshIn 1.2s ease; }
@keyframes freshIn { 0% { background: rgba(255, 214, 102, .3); } 100% { background: rgba(13, 30, 52, .5); } }
.tl-dot { position: absolute; left: 7px; top: 12px; width: 7px; height: 7px; border-radius: 50%; }
.tl-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.tl-hd b { font-family: var(--f-num); font-weight: 600; font-size: 11.5px; letter-spacing: 1px; color: #dff1ff; }
.tl-src { flex: 1; min-width: 0; font-size: 10px; color: #7fa3c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-tags { font-size: 10px; letter-spacing: .5px; color: #86b8d8; margin-bottom: 3px; }
.tl-tx { font-size: 11px; color: #c6d9ec; line-height: 1.55; }
.tl-ft { font-size: 10px; color: var(--mut); margin-top: 3px; }

/* ---------- 统计图 ---------- */
.stats-body { display: flex; gap: 8px; padding: 6px 8px 8px; height: 162px; }
.chart-mini { flex: 1; min-width: 0; height: 100%; }

/* ---------- 地图区 ---------- */
.map-toolbar { flex: none; display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 4px; }
.layers { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 3px; cursor: pointer;
  font-size: 11px; letter-spacing: 1.5px; color: #7fa3c4;
  background: rgba(13, 30, 52, .6); border: 1px solid rgba(88, 142, 192, .28);
  transition: all .2s;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: #3a5a78; transition: all .2s; }
.chip:hover { border-color: var(--line-hi); color: #cfe2f3; }
.chip.on { color: #e8f4ff; border-color: rgba(53, 200, 245, .6); background: rgba(53, 200, 245, .1); }
.chip.on i { background: var(--cyan); box-shadow: 0 0 7px rgba(53, 200, 245, .85); }
.map-hint { font-size: 10px; letter-spacing: 1.5px; color: #5f7f9e; }
.map-hint b { color: var(--yellow); font-weight: 700; }
#mapBox {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  border: 1px solid rgba(88, 142, 192, .18); border-radius: 6px;
  background: radial-gradient(ellipse at 50% 42%, rgba(23, 52, 88, .5), rgba(7, 17, 32, .15) 72%);
}
#map { position: absolute; inset: 0; }
.map-legend { flex: none; display: flex; align-items: center; gap: 15px; height: 27px; padding: 0 6px; font-size: 10px; letter-spacing: 1.5px; color: #7fa3c4; }
.lg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.lg-sep { width: 1px; height: 12px; background: rgba(88, 142, 192, .32); }
.lg-note { color: #5f7f9e; }

/* 设施弹窗 */
.popup {
  position: absolute; z-index: 30; width: 264px;
  background: rgba(9, 22, 42, .97);
  border: 1px solid rgba(96, 170, 235, .45); border-radius: 5px;
  padding: 10px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 0 16px rgba(53, 200, 245, .12);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .22s, transform .22s;
}
.popup.show { opacity: 1; pointer-events: auto; transform: none; }
.pop-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pop-hd b { font-size: 13.5px; letter-spacing: 1px; color: #eef5fc; }
.pop-x { cursor: pointer; color: var(--mut); font-size: 14px; padding: 0 4px; transition: color .15s; }
.pop-x:hover { color: #ff8a8b; }
.pop-row { font-size: 10.5px; color: var(--mut2); margin-bottom: 7px; }
.pop-risk { font-size: 10.5px; line-height: 1.55; padding: 5px 8px; border: 1px solid; border-radius: 3px; margin-bottom: 4px; background: rgba(8, 20, 36, .5); }
.pop-sub { font-size: 10px; letter-spacing: 1.5px; color: #7fa3c4; margin: 7px 0 4px; }
.pop-item { display: flex; align-items: flex-start; gap: 7px; font-size: 10.5px; color: var(--ink2); line-height: 1.5; margin-bottom: 3px; }
.pop-item i { flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 4px; }

/* ---------- 底栏 ---------- */
#bottombar {
  height: 54px; flex: none;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(96, 178, 240, .4) 30%, rgba(96, 178, 240, .4) 70%, transparent) 1;
  background: linear-gradient(0deg, rgba(14, 32, 56, .5), transparent);
}
.ticker {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track { display: inline-flex; white-space: nowrap; animation: tickerScroll 60s linear infinite; will-change: transform; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: center; margin-right: 52px; font-size: 12px; letter-spacing: .5px; color: #cfe2f3; }
.tk-item i { width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; flex: none; }
.bb-meta { flex: none; font-size: 10px; letter-spacing: .5px; color: #5f7f9e; white-space: nowrap; }
.bb-meta .demo { color: #ffb85c; border: 1px solid rgba(255, 184, 92, .42); padding: 1px 7px; border-radius: 2px; margin-left: 7px; }

/* ---------- 值班控制台 ---------- */
#consoleBtn {
  position: absolute; right: 18px; bottom: 66px; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 17px; border-radius: 5px; cursor: pointer;
  color: #fff; font-size: 13px; letter-spacing: 2.5px;
  background: linear-gradient(135deg, #e63946, #a81f2c);
  border: 1px solid rgba(255, 130, 140, .55);
  box-shadow: 0 6px 20px rgba(230, 57, 70, .4);
  transition: transform .2s, box-shadow .2s;
}
#consoleBtn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(230, 57, 70, .55); }

#console {
  position: absolute; top: 0; right: 0; bottom: 0; width: 472px; z-index: 60;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(12, 28, 50, .985), rgba(7, 17, 32, .985));
  border-left: 1px solid rgba(88, 142, 192, .32);
  box-shadow: -20px 0 46px rgba(0, 0, 0, .55);
  transform: translateX(103%);
  transition: transform .34s cubic-bezier(.22, .9, .3, 1);
}
#console.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px 11px; }
.drawer-head h2 { font-family: var(--f-disp); font-weight: 400; font-size: 19px; letter-spacing: 4px; color: #eef5fc; }
#cs-close {
  width: 29px; height: 29px; border-radius: 4px; cursor: pointer;
  background: transparent; border: 1px solid rgba(88, 142, 192, .32);
  color: var(--mut2); font-size: 13px; transition: all .2s;
}
#cs-close:hover { color: #ff8a8b; border-color: rgba(255, 77, 79, .55); }
.drawer-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid rgba(88, 142, 192, .18); }
.cs-tab {
  flex: 1; padding: 10px 0; cursor: pointer;
  font-size: 12px; letter-spacing: 2px; color: #7fa3c4;
  background: transparent; border: none; border-bottom: 2px solid transparent;
  transition: all .2s;
}
.cs-tab:hover { color: #cfe2f3; }
.cs-tab.on {
  color: var(--cyan); border-bottom-color: var(--cyan);
  background: linear-gradient(180deg, transparent, rgba(53, 200, 245, .09));
}
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 15px 16px 20px; }
.cs-pane { display: none; }
.cs-pane.on { display: block; animation: paneIn .25s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.dlabel { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--mut2); margin-bottom: 7px; line-height: 1.6; }
textarea, .dinput, .pf input, .pf select, .form-grid select {
  width: 100%; padding: 8px 10px; border-radius: 4px; outline: none;
  background: rgba(8, 20, 36, .72);
  border: 1px solid rgba(88, 142, 192, .3);
  color: var(--ink); font-size: 12px; line-height: 1.65;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 74px; }
textarea:focus, .dinput:focus, .pf input:focus, .pf select:focus {
  border-color: rgba(53, 200, 245, .68);
  box-shadow: 0 0 0 2px rgba(53, 200, 245, .13);
}
textarea::placeholder, input::placeholder { color: #4d6b88; }
.dbtn-row { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.dbtn {
  padding: 8px 17px; border-radius: 4px; cursor: pointer;
  font-size: 12px; letter-spacing: 2px;
  border: 1px solid transparent; transition: all .2s;
}
.dbtn.primary {
  color: #fff; background: linear-gradient(135deg, #1b84c0, #135e8f);
  border-color: rgba(96, 190, 250, .55);
  box-shadow: 0 4px 14px rgba(23, 120, 181, .35);
}
.dbtn.primary:hover { background: linear-gradient(135deg, #2195d8, #1770aa); transform: translateY(-1px); }
.dbtn.ghost { background: transparent; border-color: rgba(88, 142, 192, .42); color: #a9c3dc; }
.dbtn.ghost:hover { border-color: rgba(53, 200, 245, .6); color: #dff1ff; }
.dbtn.danger { background: transparent; border-color: rgba(255, 77, 79, .45); color: #ff8a8b; }
.dbtn.danger:hover { background: rgba(255, 77, 79, .12); }
.dbtn-row .grow { flex: 1; }
.hidden { display: none !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 4px 0 9px; }
.pf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf label { font-size: 10px; letter-spacing: 1.5px; color: var(--mut); }
.pf.wide { grid-column: 1 / -1; }

/* 解析结果 */
.parse-box {
  display: none; margin-top: 15px; padding: 13px;
  background: rgba(53, 200, 245, .05);
  border: 1px solid rgba(53, 200, 245, .32); border-radius: 5px;
}
.parse-box.show { display: block; animation: paneIn .3s ease; }
.parse-title { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 2.5px; color: var(--cyan); margin-bottom: 8px; }
.parse-tip { font-size: 10px; letter-spacing: 1px; color: var(--mut); }
.parse-hint {
  font-size: 10.5px; line-height: 1.75; color: #7fd4f5;
  padding: 7px 9px; margin-bottom: 10px; border-radius: 3px;
  background: rgba(8, 20, 36, .55); border-left: 2px solid var(--cyan);
}
.parse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

/* 台账 */
.ld-count { font-size: 10.5px; letter-spacing: 1px; color: #7fa3c4; margin: 9px 0 7px; }
.ld-list { display: flex; flex-direction: column; gap: 4px; max-height: 292px; overflow-y: auto; margin-bottom: 10px; padding-right: 2px; }
.ld-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; border-radius: 3px;
  background: rgba(13, 30, 52, .5); border: 1px solid rgba(88, 142, 192, .12);
  transition: border-color .15s;
}
.ld-row:hover { border-color: rgba(53, 200, 245, .45); }
.ld-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.ld-row b { font-size: 11.5px; color: var(--ink); white-space: nowrap; }
.ld-row em { font-style: normal; flex: none; font-size: 9.5px; color: var(--cyan); padding: 0 5px; border: 1px solid rgba(53, 200, 245, .3); border-radius: 2px; }
.ld-row span { margin-left: auto; font-size: 10px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.ld-new { font-style: normal; flex: none; font-size: 9px; color: var(--yellow); border: 1px solid rgba(255, 214, 102, .42); border-radius: 2px; padding: 0 4px; }
.ledger-add { margin-top: 4px; }
.ledger-add summary { font-size: 11px; letter-spacing: 1.5px; color: #7fa3c4; cursor: pointer; padding: 6px 0; transition: color .2s; }
.ledger-add summary:hover { color: #dff1ff; }
.ledger-add[open] summary { color: var(--cyan); }

/* ---------- 提示 ---------- */
.toast {
  position: absolute; left: 50%; bottom: 72px; z-index: 80;
  transform: translate(-50%, 16px);
  padding: 10px 22px; border-radius: 5px;
  background: rgba(10, 26, 46, .97);
  border: 1px solid rgba(53, 200, 245, .55);
  color: #dff1ff; font-size: 12.5px; letter-spacing: 1.5px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 14px rgba(53, 200, 245, .18);
  opacity: 0; pointer-events: none;
  transition: opacity .28s, transform .28s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
