/* ============================================================================
 * 数据大屏样式（bigscreen.css）
 *
 * 适配策略：设计基准 1920×1080，整页用 transform:scale() 等比缩放居中。
 * 这样"布局绝对固定"（不会因分辨率不同而换行/挤压），4K 与 1366 屏看到的是
 * 同一张图，只是大小不同 —— 大屏挂在会议室/值守机上，一致性比流式自适应重要。
 * ==========================================================================*/

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #03060f;
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #dceeff;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg-1: #061026;
  --bg-2: #0a1c3a;
  --card: rgba(10, 30, 68, .55);
  --card-hi: rgba(16, 46, 102, .70);
  --line: rgba(64, 158, 255, .22);
  --line-hi: rgba(64, 200, 255, .55);
  --primary: #3aa6ff;
  --primary2: #5d7cff;
  --accent: #00e0ff;
  --success: #22d39b;
  --warn: #ffb547;
  --danger: #ff5d6c;
  --violet: #a97bff;
  --text: #dceeff;
  --dim: #7e9cc4;
  --mute: #5b779f;
  --mono: "Consolas", "Menlo", monospace;
}

/* ------------------------------------------------------------------ 舞台 */
#screen {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: top left;
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 0 20px 18px;
  background:
    radial-gradient(1200px 620px at 12% -10%, rgba(10, 132, 255, .18), transparent 62%),
    radial-gradient(1100px 600px at 92% 108%, rgba(0, 179, 255, .16), transparent 62%),
    linear-gradient(180deg, #04091a 0%, #03060f 100%);
}
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(64, 158, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 158, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, #000 22%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 22%, transparent 78%);
}
#screen > *:not(.bg-grid) { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ 顶栏 */
.head { height: 76px; flex: none; display: flex; align-items: center; justify-content: space-between; position: relative; }
.head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(64, 200, 255, .55), transparent);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo {
  position: relative; width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px; overflow: hidden;
  box-shadow: 0 0 22px rgba(58, 166, 255, .5);
}
/* logo 图加载成功就盖住文字，失败（onerror 隐藏自身）则回退为「裕」字 */
.brand-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 11px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-sub {
  font-size: 11px; letter-spacing: 2.4px; color: var(--mute);
  text-transform: uppercase;
}
.title-main {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 30px; font-weight: 800; letter-spacing: 6px; white-space: nowrap;
  background: linear-gradient(90deg, #5dc8ff, #ffffff 42%, #7ad6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 20px rgba(58, 166, 255, .35);
}
.head-right { display: flex; align-items: center; gap: 14px; }
.live-pill {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 16px;
  background: rgba(34, 211, 155, .10); border: 1px solid rgba(34, 211, 155, .38);
  color: var(--success); font-size: 12px;
}
.live-pill.off { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .4); color: var(--danger); }
.live-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 8px currentColor; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.clock { text-align: right; line-height: 1.15; min-width: 132px; }
.clock-time { font-size: 23px; font-weight: 700; color: #fff; font-family: var(--mono); letter-spacing: 1px; }
.clock-date { font-size: 11px; color: var(--dim); letter-spacing: 1px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: rgba(58, 166, 255, .12); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; transition: .18s; padding: 0;
}
.icon-btn:hover { background: rgba(58, 166, 255, .28); border-color: var(--line-hi); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { background: rgba(0, 224, 255, .2); border-color: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ 区域 */
.zone-top { height: 116px; flex: none; }
.zone-bottom { height: 164px; flex: none; }
.zone {
  display: grid; gap: 12px; min-height: 0; min-width: 0;
  grid-auto-flow: column; grid-auto-columns: 1fr;
}
.zone-top, .zone-bottom { grid-auto-flow: column; }
.mid { flex: 1; min-height: 0; display: grid; grid-template-columns: 358px 1fr 358px; gap: 12px; }
.zone-left, .zone-right {
  display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0;
}
.zone-left > .card, .zone-right > .card { flex: 1; min-height: 0; }

/* 卡片跨列（span=2） */
.zone-top > .card[data-span="2"], .zone-bottom > .card[data-span="2"] { grid-column: span 2; }

/* ------------------------------------------------------------------ 卡片 */
.card {
  position: relative; min-width: 0; min-height: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 30, 68, .74), rgba(6, 16, 38, .74));
  border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 14px 12px;
  display: flex; flex-direction: column;
  backdrop-filter: blur(4px);
}
.card::before, .card::after {
  content: ""; position: absolute; width: 13px; height: 13px;
  border: 0 solid var(--accent); pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.card-head {
  display: flex; align-items: center; gap: 8px; flex: none;
  margin-bottom: 9px; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .6px;
}
.card-head::before {
  content: ""; width: 4px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}
.card-head .cnt { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--mute); font-family: var(--mono); }
.card-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* KPI --------------------------------------------------------------------*/
.kpi-grid { flex: 1; display: grid; gap: 8px; min-height: 0; }
.kpi-grid[data-n="1"] { grid-template-columns: 1fr; }
.kpi-grid[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.kpi-grid[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
.kpi-grid[data-n="4"] { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.kpi-grid[data-n="5"], .kpi-grid[data-n="6"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.kpi-grid[data-n="7"], .kpi-grid[data-n="8"] { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
.kpi {
  position: relative; overflow: hidden; min-width: 0;
  padding: 9px 10px; border-radius: 7px;
  background: linear-gradient(160deg, rgba(58, 166, 255, .16), rgba(93, 124, 255, .045));
  border: 1px solid rgba(64, 158, 255, .22);
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.kpi::after {
  content: ""; position: absolute; right: -22px; top: -22px; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 166, 255, .26), transparent 70%);
}
.kpi-lab { font-size: 12px; color: var(--dim); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-val {
  font-family: var(--mono); font-weight: 800; color: #fff; line-height: 1.06;
  font-size: 26px; text-shadow: 0 0 12px rgba(58, 166, 255, .42);
  white-space: nowrap;
}
.kpi-val .u { font-size: 11px; font-weight: 400; color: var(--mute); margin-left: 3px; text-shadow: none; }
.kpi-desc { font-size: 10px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 紧凑模式：底部条更矮 */
.zone-bottom .kpi-val { font-size: 22px; }
.zone-bottom .kpi-lab { font-size: 11px; }
.zone-bottom .kpi-desc { display: none; }

/* 状态描边 */
.kpi.s-ok { border-color: rgba(34, 211, 155, .42); }
.kpi.s-ok .kpi-val { color: #7dffd0; text-shadow: 0 0 12px rgba(34, 211, 155, .45); }
.kpi.s-warn { border-color: rgba(255, 181, 71, .46); }
.kpi.s-warn .kpi-val { color: #ffd88a; text-shadow: 0 0 12px rgba(255, 181, 71, .45); }
.kpi.s-risk { border-color: rgba(255, 93, 108, .5); }
.kpi.s-risk .kpi-val { color: #ff9aa4; text-shadow: 0 0 12px rgba(255, 93, 108, .5); }

/* 仪表盘 -----------------------------------------------------------------*/
.gauge-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 0; }
.gauge {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(from 180deg, var(--gc, var(--primary)) calc(var(--p, 0) * 1%), rgba(64, 158, 255, .12) 0);
  transition: --p .6s;
}
.gauge::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #0a2450, #05122b 72%);
  box-shadow: inset 0 0 18px rgba(0, 224, 255, .16);
}
.gauge-txt { position: relative; z-index: 1; text-align: center; line-height: 1.1; }
.gauge-num { font-family: var(--mono); font-size: 24px; font-weight: 800; color: #fff; text-shadow: 0 0 12px rgba(0, 224, 255, .5); }
.gauge-num small { font-size: 11px; color: var(--dim); margin-left: 1px; }
.gauge-lab { font-size: 11px; color: var(--dim); margin-top: 1px; }

/* 图表 -------------------------------------------------------------------*/
.chart-wrap { flex: 1; position: relative; min-height: 0; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
/* 整块数据都是 0 时（如园区尚无费用记录），空坐标轴看着像"坏了"，给一层显式文案 */
.chart-wrap[data-empty="1"]::after {
  content: "暂无数据";
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: #8fb0d6; font-size: 13px; letter-spacing: 2px;
  background: rgba(4, 12, 30, .66); border-radius: 6px;
}

/* 列表 -------------------------------------------------------------------*/
.list-wrap { flex: 1; overflow: hidden; position: relative; min-height: 0; }
.list-scroll { position: absolute; inset: 0; overflow-y: auto; padding-right: 3px; }
.list-scroll::-webkit-scrollbar { width: 3px; }
.list-scroll::-webkit-scrollbar-thumb { background: rgba(64, 200, 255, .3); border-radius: 2px; }
.lrow {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 7px 4px; border-bottom: 1px dashed rgba(64, 158, 255, .12); font-size: 12px;
}
.lrow:last-child { border-bottom: none; }
.lrow .tag {
  padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap;
  background: rgba(58, 166, 255, .15); color: var(--primary); border: 1px solid rgba(58, 166, 255, .38);
}
.lrow .tag.t-urgent { background: rgba(255, 93, 108, .15); color: var(--danger); border-color: rgba(255, 93, 108, .42); }
.lrow .tag.t-high { background: rgba(255, 181, 71, .15); color: var(--warn); border-color: rgba(255, 181, 71, .42); }
.lrow .tag.t-ok { background: rgba(34, 211, 155, .12); color: var(--success); border-color: rgba(34, 211, 155, .4); }
.lrow .ttl { color: #eaf4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .sub { color: var(--mute); font-size: 10px; margin-left: 5px; }
.lrow .time { color: var(--dim); font-size: 10px; font-family: var(--mono); white-space: nowrap; }
.empty { color: var(--mute); font-size: 12px; text-align: center; padding: 18px 0; }

/* ------------------------------------------------------------------ 主体 */
.stage {
  position: relative; min-width: 0; min-height: 0;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(560px 320px at 50% 46%, rgba(16, 60, 130, .55), transparent 72%),
    linear-gradient(180deg, rgba(6, 18, 42, .7), rgba(4, 10, 26, .8));
}
.stage::before, .stage::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--accent); z-index: 3; pointer-events: none;
}
.stage::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.stage::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-tools {
  position: absolute; right: 10px; top: 10px; z-index: 4;
  display: flex; flex-direction: column; gap: 6px;
}
.stage-tools .icon-btn { width: 30px; height: 30px; border-radius: 7px; }
.stage-tools .icon-btn svg { width: 15px; height: 15px; }
.stage-legend {
  position: absolute; left: 12px; bottom: 11px; z-index: 4;
  display: flex; align-items: center; gap: 13px;
  padding: 6px 12px; border-radius: 16px;
  background: rgba(4, 12, 30, .74); border: 1px solid var(--line);
  font-size: 11px; color: var(--dim);
}
.stage-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.stage-title {
  position: absolute; left: 14px; top: 12px; z-index: 4; line-height: 1.28;
}
.stage-title b { font-size: 15px; color: #eaf4ff; letter-spacing: 1px; font-weight: 600; }
.stage-title span { display: block; font-size: 11px; color: var(--mute); letter-spacing: .6px; }
.stage-tip {
  position: absolute; right: 12px; bottom: 11px; z-index: 4;
  font-size: 11px; color: var(--mute);
}
/* 楼栋详情浮层 */
.bd-panel {
  position: absolute; left: 14px; bottom: 46px; z-index: 5; width: 236px;
  background: rgba(4, 14, 34, .93); border: 1px solid var(--line-hi); border-radius: 8px;
  padding: 11px 13px; display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.bd-panel.show { display: block; }
.bd-panel h4 { margin: 0 0 8px; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 7px; }
.bd-panel h4 .x { margin-left: auto; color: var(--mute); cursor: pointer; font-size: 15px; line-height: 1; }
.bd-panel h4 .x:hover { color: #fff; }
.bd-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px dashed rgba(64, 158, 255, .13); }
.bd-row:last-child { border-bottom: none; }
.bd-row span { color: var(--dim); }
.bd-row b { color: #eaf4ff; font-family: var(--mono); font-weight: 600; }
.bd-bar { height: 5px; border-radius: 3px; background: rgba(64, 158, 255, .16); overflow: hidden; margin-top: 7px; }
.bd-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* 平面模式（SVG 俯瞰）--------------------------------------------------- */
.flat-wrap { position: absolute; inset: 0; display: none; padding: 26px 30px; }
.flat-wrap.show { display: block; }
.flat-grid { display: grid; gap: 14px; height: 100%; align-content: center; justify-content: center; }

/* ------------------------------------------------------------------ 抽屉 */
.mask {
  position: absolute; inset: 0; z-index: 20; background: rgba(2, 6, 16, .62);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: 468px; z-index: 21;
  background: linear-gradient(180deg, #08142f, #050c1e);
  border-left: 1px solid var(--line-hi);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer-head {
  flex: none; height: 58px; padding: 0 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; color: #fff;
}
.drawer-head .x { margin-left: auto; cursor: pointer; color: var(--dim); font-size: 20px; line-height: 1; }
.drawer-head .x:hover { color: #fff; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px 20px; }
.drawer-body::-webkit-scrollbar { width: 6px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(64, 200, 255, .3); border-radius: 3px; }
.drawer-foot {
  flex: none; padding: 12px 16px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
}
.sec { margin-bottom: 18px; }
.sec > h5 {
  margin: 0 0 10px; font-size: 12px; color: var(--accent); letter-spacing: 1px; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.sec > h5::before { content: ""; width: 3px; height: 11px; background: var(--accent); border-radius: 2px; }
.fld { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.fld > label { width: 84px; flex: none; font-size: 12px; color: var(--dim); }
.fld input[type=text], .fld input[type=number], .fld select {
  flex: 1; min-width: 0; height: 32px; padding: 0 9px; border-radius: 6px;
  background: rgba(4, 14, 34, .9); border: 1px solid var(--line); color: var(--text);
  font-size: 12px; font-family: inherit; outline: none;
}
.fld input:focus, .fld select:focus { border-color: var(--accent); }
.fld select option { background: #08142f; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch i {
  width: 34px; height: 18px; border-radius: 9px; background: rgba(64, 158, 255, .22);
  position: relative; transition: .2s; flex: none;
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #8fb6e0; transition: .2s;
}
.switch input:checked + i { background: rgba(0, 224, 255, .45); }
.switch input:checked + i::after { left: 18px; background: #fff; }
.tabs { display: flex; gap: 6px; margin-bottom: 11px; }
.tabs button {
  flex: 1; height: 30px; border-radius: 6px; font-size: 12px; cursor: pointer;
  background: rgba(58, 166, 255, .1); border: 1px solid var(--line); color: var(--dim);
  font-family: inherit; transition: .16s;
}
.tabs button.on { background: rgba(0, 224, 255, .18); border-color: var(--accent); color: #fff; }
.clist { display: flex; flex-direction: column; gap: 7px; }
.citem {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px;
  background: rgba(10, 30, 68, .6); border: 1px solid var(--line); cursor: grab;
  font-size: 12px;
}
.citem.dragging { opacity: .4; }
.citem.dropbefore { border-top: 2px solid var(--accent); }
.citem .grip { color: var(--mute); font-size: 13px; cursor: grab; letter-spacing: -1px; }
.citem .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eaf4ff; }
.citem .ty {
  font-size: 10px; padding: 1px 5px; border-radius: 4px; flex: none;
  background: rgba(93, 124, 255, .18); color: #a9bcff;
}
.citem .del { color: var(--mute); cursor: pointer; flex: none; font-size: 14px; line-height: 1; padding: 0 2px; }
.citem .del:hover { color: var(--danger); }
.btn {
  height: 34px; padding: 0 15px; border-radius: 7px; font-size: 13px; cursor: pointer;
  background: rgba(58, 166, 255, .14); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; transition: .18s;
}
.btn:hover { background: rgba(58, 166, 255, .28); border-color: var(--line-hi); color: #fff; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.danger { background: rgba(255, 93, 108, .14); border-color: rgba(255, 93, 108, .4); color: #ffb3ba; }
.btn.mini { height: 28px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.hint { font-size: 11px; color: var(--mute); line-height: 1.65; }
.metric-pick {
  max-height: 172px; overflow-y: auto; border: 1px solid var(--line); border-radius: 7px;
  padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; background: rgba(4, 14, 34, .6);
}
.metric-pick::-webkit-scrollbar { width: 5px; }
.metric-pick::-webkit-scrollbar-thumb { background: rgba(64, 200, 255, .3); border-radius: 3px; }
.mchip {
  font-size: 11px; padding: 4px 9px; border-radius: 12px; cursor: pointer; user-select: none;
  background: rgba(58, 166, 255, .1); border: 1px solid var(--line); color: var(--dim);
}
.mchip:hover { border-color: var(--line-hi); color: #eaf4ff; }
.mchip.on { background: rgba(0, 224, 255, .2); border-color: var(--accent); color: #fff; }
.mchip .gp { color: var(--mute); font-size: 10px; margin-right: 4px; }
.mgrid { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------------ 提示 */
#bsTip {
  position: absolute; left: 50%; top: 24px; transform: translate(-50%, -14px);
  z-index: 40; padding: 9px 18px; border-radius: 8px; font-size: 13px;
  background: rgba(4, 14, 34, .96); border: 1px solid var(--line-hi); color: #eaf4ff;
  opacity: 0; pointer-events: none; transition: .24s; white-space: nowrap;
}
#bsTip.show { opacity: 1; transform: translate(-50%, 0); }
#bsTip.err { border-color: rgba(255, 93, 108, .6); color: #ffb3ba; }

/* 未登录遮罩 -------------------------------------------------------------*/
#gate {
  position: absolute; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 16px;
  background: rgba(3, 6, 15, .94);
}
#gate.show { display: flex; }
#gate h3 { margin: 0; font-size: 20px; color: #fff; letter-spacing: 1px; }
#gate p { margin: 0; font-size: 13px; color: var(--dim); }
