/* ============================================================
 * 鼎诺信通总后台 公共样式
 * 设计语言：深空蓝底 + 青蓝霓虹高光 + 能碳绿点缀（AI·能碳·智慧园区）
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 14px; color: #303133; background: #eef3fb; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: linear-gradient(#35b6e0,#1f6fd8); border-radius: 3px; }

/* ================= 登录页 ================= */
.lg-bg { position: fixed; inset: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #0e3a78 0%, #08204e 38%, #051432 70%, #030a1e 100%); }
/* AI 同心轨道环（科技母题） */
.lg-bg::before { content: ''; position: absolute; left: 50%; top: 44%; width: 920px; height: 920px;
  transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(60,210,255,.22);
  box-shadow: 0 0 0 130px rgba(40,180,255,.03), 0 0 0 280px rgba(40,180,255,.02);
  animation: lgSpin 60s linear infinite; }
.lg-bg::after { content: ''; position: absolute; left: 12%; top: 16%; width: 230px; height: 230px;
  border-radius: 50%; border: 1px solid rgba(60,220,255,.18); pointer-events: none;
  box-shadow: inset 0 0 60px rgba(40,200,255,.08); animation: lgSpin2 40s linear infinite; }
@keyframes lgSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes lgSpin2 { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.lg-stars { position: absolute; inset: 0; }
.lg-city { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; opacity: .9; }
.lg-city img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%;
  -webkit-mask-image: linear-gradient(to top, #000 52%, rgba(0,0,0,.5) 74%, transparent 100%);
  mask-image: linear-gradient(to top, #000 52%, rgba(0,0,0,.5) 74%, transparent 100%); }
.lg-circuit { position: absolute; inset: 0; opacity: .18; background-image:
  linear-gradient(rgba(70,200,255,.55) 1px, transparent 1px),
  linear-gradient(90deg, rgba(70,200,255,.55) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 42%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 42%, #000 0%, transparent 100%); }
.lg-glow { position: absolute; left: 50%; top: 34%; width: 760px; height: 480px; transform: translate(-50%,-50%);
  background: radial-gradient(closest-side, rgba(40,200,255,.26), transparent); pointer-events: none; }
.lg-card { position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: 420px; padding: 44px 46px 30px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(12,40,84,.94), rgba(6,20,50,.96));
  border: 1px solid rgba(70,190,255,.4); box-shadow: 0 18px 60px rgba(0,10,40,.6), 0 0 44px rgba(40,190,255,.22) inset;
  backdrop-filter: blur(4px); overflow: hidden; }
/* 卡片四角科技括号 */
.lg-card::before, .lg-card::after { content: ''; position: absolute; width: 20px; height: 20px; pointer-events: none; }
.lg-card::before { left: 10px; top: 10px; border-left: 2px solid #38e0ff; border-top: 2px solid #38e0ff; }
.lg-card::after { right: 10px; bottom: 10px; border-right: 2px solid #38e0ff; border-bottom: 2px solid #38e0ff; }
/* 顶部扫描线 */
.lg-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #3fe6ff, transparent);
  box-shadow: 0 0 12px #3fe6ff; animation: lgScan 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes lgScan { 0%,100% { top: 6%; opacity: .25; } 50% { top: 94%; opacity: .9; } }
.lg-badge { position: absolute; right: -34px; top: 20px; transform: rotate(40deg);
  background: linear-gradient(90deg, rgba(33,208,122,.9), rgba(24,160,220,.9));
  color: #04122a; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 3px 40px; pointer-events: none; }
.lg-card h1 { font-size: 25px; letter-spacing: 3px; color: #eaf8ff; text-align: center; margin-bottom: 8px;
  text-shadow: 0 0 18px rgba(70,200,255,.65); }
.lg-sub { font-size: 11.5px; letter-spacing: 3.5px; color: #6fc8e8; text-align: center; margin-bottom: 18px; }
.lg-chips { display: flex; justify-content: center; gap: 6px; margin-bottom: 26px; flex-wrap: nowrap; }
.lg-chips span { font-size: 11px; color: #8fe8ff; padding: 3px 9px; border-radius: 11px; white-space: nowrap;
  border: 1px solid rgba(60,210,255,.35); background: rgba(30,120,190,.14); }
.lg-field { display: flex; align-items: center; height: 46px; margin-bottom: 18px; border-radius: 6px;
  border: 1px solid rgba(70,190,255,.38); background: rgba(4,18,44,.72); padding: 0 14px; gap: 10px; }
.lg-field:focus-within { border-color: #2fd8ff; box-shadow: 0 0 0 2px rgba(47,216,255,.2), 0 0 16px rgba(47,216,255,.18); }
.lg-field svg { width: 17px; height: 17px; flex: none; }
.lg-field svg * { stroke: #4fc8ee; }
.lg-field input { flex: 1; height: 100%; border: none; outline: none; background: transparent;
  color: #e6f6ff; font-size: 14.5px; font-family: inherit; letter-spacing: 1px; }
.lg-field input::placeholder { color: #5d8fae; }
.lg-btn { position: relative; overflow: hidden; width: 100%; height: 46px; border: none; border-radius: 6px;
  font-size: 16px; letter-spacing: 8px; color: #fff; font-family: inherit; font-weight: 700; cursor: pointer;
  background: linear-gradient(90deg, #17c6e8, #1f7ae8 55%, #1558d0);
  box-shadow: 0 6px 22px rgba(24,150,230,.45), 0 0 18px rgba(40,200,255,.25);
  transition: filter .15s; }
.lg-btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 46%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-160%); transition: transform .6s; }
.lg-btn:hover { filter: brightness(1.1); }
.lg-btn:hover::after { transform: translateX(260%); }
.lg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 26px;
  padding-top: 16px; border-top: 1px solid rgba(70,190,255,.2); font-size: 12.5px; color: #6fb6d8; }
.lg-foot .reg { letter-spacing: 1px; }
.lg-foot select { background: transparent; border: 1px solid rgba(70,190,255,.32); color: #9cd8ee;
  font-size: 12.5px; padding: 3px 6px; border-radius: 4px; outline: none; }
.lg-foot select option { color: #333; }
.lg-msg { margin: -8px 0 14px; font-size: 13px; color: #ff7a85; text-align: center; min-height: 18px; }

/* ================= 顶栏 ================= */
.pt-top { height: 56px; display: flex; align-items: center; padding: 0 20px; gap: 14px;
  background: linear-gradient(180deg, #ffffff, #f6faff); border-bottom: 1px solid #dce8f8;
  box-shadow: 0 2px 12px rgba(20,90,180,.08); position: relative; z-index: 10; }
.pt-top .logo { width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, #2fe0ff, #1f6fe0); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(47,180,255,.5); }
.pt-top h1 { font-size: 17px; font-weight: 700; color: #16335c; letter-spacing: 1.5px; }
.pt-top .sp { flex: 1; }
.pt-top .t-item { font-size: 13.5px; color: #5a6b85; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.pt-top .t-item:hover { color: #1f7ae8; }
.pt-top .t-item select { border: 1px solid #d5e2f2; border-radius: 4px; color: #5a6b85; padding: 3px 6px; font-size: 13px; outline: none; }
.pt-top .av { width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(145deg, #2fe0ff, #1f6fe0);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px;
  box-shadow: 0 0 10px rgba(47,180,255,.45); }

/* ================= 工程地图总览页 ================= */
.ov-wrap { position: absolute; top: 56px; left: 0; right: 0; bottom: 0; display: flex; gap: 14px; padding: 14px; }
.ov-left { width: 340px; flex: none; background: #fff; border-radius: 10px; border: 1px solid #dfe9f6;
  box-shadow: 0 4px 18px rgba(20,80,160,.07);
  display: flex; flex-direction: column; overflow: hidden; }
.ov-left .hd { padding: 14px 16px 10px; border-bottom: 1px solid #eef1f6; }
.ov-left .hd h3 { font-size: 15px; color: #16335c; margin-bottom: 12px; }
.ov-left .hd .sch { display: flex; gap: 8px; }
.ov-left .list { flex: 1; overflow-y: auto; padding: 10px; }
.ov-item { padding: 12px 14px; border: 1px solid #e4ecf6; border-radius: 9px; margin-bottom: 10px; cursor: pointer;
  transition: all .15s; }
.ov-item:hover { border-color: #6fd8f2; background: #f5fcff; box-shadow: 0 2px 10px rgba(40,180,240,.12); }
.ov-item.on { border-color: #22c8ee; background: linear-gradient(180deg, #effbff, #fff);
  box-shadow: 0 2px 12px rgba(34,200,238,.25); }
.ov-item .nm { font-size: 14.5px; font-weight: 700; color: #24334a; display: flex; align-items: center; gap: 8px; }
.ov-item .nm .st { font-size: 11px; font-weight: 400; padding: 1px 7px; border-radius: 9px; }
.ov-item .st.g { color: #12864a; background: #e4f7ec; }
.ov-item .st.r { color: #c2483c; background: #fdeceb; }
.ov-item .ad { font-size: 12.5px; color: #7d8ca3; margin: 7px 0 10px; line-height: 1.5; }
.ov-item .ft { display: flex; align-items: center; justify-content: space-between; }
.ov-item .ft .cd { font-size: 12px; color: #98a5ba; }
/* 卡片统计：设备/在线/离线 + 本月电水（气） */
.ov-stats { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 10px; }
.ov-stats span { display: flex; align-items: baseline; gap: 4px; background: #f3f7fc;
  border: 1px solid #e7eef8; border-radius: 6px; padding: 4px 8px; min-width: 0; }
.ov-stats b { font-size: 13px; color: #2b6cb0; font-weight: 700; }
.ov-stats em { font-size: 11px; color: #8b98ac; font-style: normal; white-space: nowrap; }
.ov-stats span.on b { color: #12864a; }
.ov-stats span.off b { color: #d34a3f; }
.ov-item.on .ov-stats span { background: #f0f9ff; border-color: #d6ecf8; }
.ov-right { flex: 1; background: #fff; border-radius: 8px; border: 1px solid #e4e9f0; position: relative; overflow: hidden; }
#ovMap { position: absolute; inset: 0; }
.ov-tip { position: absolute; right: 16px; top: 12px; font-size: 12.5px; color: #8a97ab; z-index: 2;
  background: rgba(255,255,255,.8); padding: 4px 10px; border-radius: 12px; }
.ov-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #98a5ba; font-size: 14px; }

/* ================= 后台框架（深空侧边 + 白色主体） ================= */
.cs-wrap { display: flex; height: 100%; }
.cs-side { position: relative; width: 224px; flex: none;
  background: linear-gradient(180deg, #0b2348 0%, #071834 48%, #040e24 100%);
  display: flex; flex-direction: column; }
/* 侧栏网格底纹 + 右侧霓虹边 */
.cs-side::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(60,180,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,180,255,.07) 1px, transparent 1px);
  background-size: 30px 30px; }
.cs-side::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(56,224,255,.65) 30%, rgba(56,224,255,.65) 70%, transparent);
  box-shadow: 0 0 10px rgba(56,224,255,.5); }
.cs-side .brand, .cs-menu { position: relative; z-index: 1; }
.cs-side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 14px 16px; border-bottom: 1px solid rgba(120,200,255,.12); }
.cs-side .brand .logo { width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, #2fe0ff, #1f6fe0); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(47,180,255,.55); }
.cs-side .brand b { color: #eaf6ff; font-size: 13.5px; letter-spacing: 1.5px; white-space: nowrap;
  text-shadow: 0 0 12px rgba(60,200,255,.4); }
.cs-side .brand span { display: block; font-size: 10px; color: #5fb8d8; letter-spacing: 2px; margin-top: 2px; }
.cs-menu { flex: 1; overflow-y: auto; padding: 10px 0 16px; }
.cs-menu .mi { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 13.5px;
  color: #a8c4dd; cursor: pointer; border-left: 3px solid transparent; white-space: nowrap;
  transition: all .15s; }
.cs-menu .mi svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.cs-menu .mi:hover { color: #fff; background: linear-gradient(90deg, rgba(47,200,255,.18), transparent); }
.cs-menu .mi.on { color: #fff;
  background: linear-gradient(90deg, rgba(34,200,238,.9), rgba(34,140,238,.28));
  border-left-color: #8ff0ff; text-shadow: 0 0 10px rgba(140,240,255,.6);
  box-shadow: 0 0 16px rgba(34,200,238,.25), inset 0 0 12px rgba(140,240,255,.12); }
.cs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #eef3fb; }
.cs-head { position: relative; height: 56px; flex: none; display: flex; align-items: center; padding: 0 20px; gap: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faff); border-bottom: 1px solid #dce8f8;
  box-shadow: 0 2px 10px rgba(20,90,180,.06); }
.cs-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,200,255,.7), transparent); }
.cs-head .crumb { font-size: 15px; font-weight: 700; color: #16335c; }
.cs-head .crumb::before { content: ''; display: inline-block; width: 4px; height: 15px; margin-right: 9px;
  vertical-align: -2px; border-radius: 2px;
  background: linear-gradient(180deg, #2fe0ff, #1f6fe0); box-shadow: 0 0 8px rgba(47,200,255,.6); }
.cs-head .sp { flex: 1; }
.cs-head .u { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #5a6b85; }
.cs-body { flex: 1; overflow: auto; padding: 16px; }
/* 窄窗口：宽表格允许横向滚动，右侧列不被裁切 */
.cs-body .panel-b { min-width: 720px; }
.view { display: none; }
.view.show { display: block; }

/* ================= 卡片 / 筛选条 ================= */
.panel { background: #fff; border-radius: 10px; border: 1px solid #e0e9f5; margin-bottom: 14px;
  box-shadow: 0 3px 14px rgba(20,80,160,.06); }
.panel-h { padding: 14px 18px; border-bottom: 1px solid #edf2f9; display: flex; align-items: center; gap: 10px; }
.panel-h b { font-size: 15px; color: #16335c; }
.panel-h b::before { content: ''; display: inline-block; width: 4px; height: 14px; margin-right: 8px;
  vertical-align: -2px; border-radius: 2px;
  background: linear-gradient(180deg, #2fe0ff, #1f6fe0); box-shadow: 0 0 7px rgba(47,200,255,.6); }
.panel-h .tip { font-size: 12.5px; color: #98a5ba; }
.panel-b { padding: 16px 18px; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .lbl { font-size: 13.5px; color: #5a6b85; }
.ipt, .sel { height: 34px; padding: 0 12px; border: 1px solid #d4e0ef; border-radius: 6px; outline: none;
  font-size: 13.5px; color: #303133; background: #fff; min-width: 150px; font-family: inherit; }
.ipt:focus, .sel:focus { border-color: #22c8ee; box-shadow: 0 0 0 2px rgba(34,200,238,.16); }
.ipt.sm { min-width: 110px; }
textarea.ipt { height: auto; min-height: 70px; padding: 8px 12px; line-height: 1.6; resize: vertical; }

/* ================= 按钮 ================= */
.btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 16px; border-radius: 6px;
  border: 1px solid #d4e0ef; background: #fff; color: #4e5d75; font-size: 13.5px; cursor: pointer; font-family: inherit;
  transition: all .15s; }
.btn:hover { color: #1f7ae8; border-color: #7fd8f0; background: #f4fbff; }
.btn.pri { background: linear-gradient(180deg, #2fd8f2, #1f7ae8); border-color: transparent; color: #fff;
  box-shadow: 0 3px 12px rgba(31,122,232,.32); }
.btn.pri:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 4px 16px rgba(31,122,232,.42); }
.btn.dgr { color: #d9534f; border-color: #f0c4c2; }
.btn.dgr:hover { background: #fdf2f1; color: #d9534f; border-color: #d9534f; }
.btn.sm { height: 27px; padding: 0 10px; font-size: 12.5px; border-radius: 5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.lk { color: #1f7ae8; cursor: pointer; font-size: 13px; margin-right: 10px; }
.lk:hover { text-decoration: underline; }
.lk.rd { color: #d9534f; }
.lk.gn { color: #1aa860; }

/* ================= 表格 ================= */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { background: linear-gradient(180deg, #f6f9fe, #eef3fa); color: #42597a; font-weight: 600; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid #e2eaf5; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #f0f4fa; color: #3c4a61; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: #f3faff; }
.tbl .empty { text-align: center; color: #98a5ba; padding: 40px 0; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 10px; }
.tag.g { color: #12864a; background: #e4f7ec; }
.tag.r { color: #c2483c; background: #fdeceb; }
.tag.b { color: #1f6fd8; background: #e9f3ff; }
.tag.o { color: #c07a1a; background: #fdf3e3; }
.tag.cy { color: #0e8fa8; background: #e2faff; }
.tag.e { color: #12864a; background: #e2f8ee; box-shadow: inset 0 0 0 1px rgba(30,200,120,.35); }
.tag.hex { font-family: Consolas, monospace; color: #6b4fd8; background: #f1edff; }

/* ================= 分页 ================= */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 2px 2px; font-size: 13px; color: #5a6b85; }
.pager button { min-width: 30px; height: 30px; border: 1px solid #d4e0ef; background: #fff; border-radius: 5px;
  cursor: pointer; color: #4e5d75; font-size: 13px; }
.pager button.on { background: linear-gradient(180deg,#2fd8f2,#1f7ae8); border-color: transparent; color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ================= 弹窗 ================= */
.mask { position: fixed; inset: 0; background: rgba(15,28,50,.45); z-index: 100; display: none;
  align-items: flex-start; justify-content: center; overflow-y: auto; padding: 60px 20px 40px; }
.mask.show { display: flex; }
.modal { width: 620px; background: #fff; border-radius: 12px; box-shadow: 0 24px 70px rgba(8,40,100,.32), 0 0 30px rgba(40,180,240,.15); }
.modal.w640 { width: 640px; } .modal.w520 { width: 520px; } .modal.w720 { width: 720px; } .modal.w760 { width: 760px; }
.modal.w900 { width: 900px; }
/* 项目 LOGO 配置 */
.logo-cfg { display: flex; flex-direction: column; gap: 14px; }
.logo-tile { border: 1px solid #e7ebf2; border-radius: 8px; padding: 13px 15px; }
.lt-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.lt-h b { font-size: 14px; color: #24334a; }
.lt-h span { font-size: 12px; color: #98a5ba; }
.lt-prev { height: 92px; border-radius: 6px; background: repeating-linear-gradient(135deg,#2a3a5c,#2a3a5c 10px,#23314f 10px,#23314f 20px); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.lt-prev img { max-width: 92%; max-height: 78px; }
.lt-prev .ph { color: #7f8fad; font-size: 13px; }
.lt-ops { display: flex; gap: 8px; }
.lg-note { font-size: 12.5px; color: #7a879c; line-height: 1.7; background: #f6f8fc; border-radius: 6px; padding: 10px 12px; }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eef1f6; }
.modal-h b { font-size: 15.5px; color: #24334a; }
.modal-h .x { margin-left: auto; font-size: 20px; color: #98a5ba; cursor: pointer; line-height: 1; }
.modal-h .x:hover { color: #d9534f; }
.modal-b { padding: 20px; max-height: 66vh; overflow-y: auto; }
.modal-f { padding: 14px 20px; border-top: 1px solid #eef1f6; display: flex; justify-content: flex-end; gap: 10px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fitem { display: flex; flex-direction: column; gap: 6px; }
.fitem.full { grid-column: 1 / -1; }
.fitem label { font-size: 13px; color: #5a6b85; }
.fitem label i { color: #d9534f; font-style: normal; margin-left: 2px; }
.ferr { font-size: 12.5px; color: #d9534f; min-height: 16px; margin-top: 4px; }
.cklist { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 9px 12px; border: 1px solid #d9e1ec; border-radius: 5px; }
.cklist label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #3c4a61; cursor: pointer; }

/* ================= 通用提示 ================= */
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: rgba(255,255,255,.97); border: 1px solid #d8ecfa; border-left: 3px solid #22c8ee; border-radius: 7px;
  padding: 11px 18px; font-size: 13.5px; color: #2c4a6e; box-shadow: 0 8px 30px rgba(8,60,140,.2), 0 0 18px rgba(40,200,255,.18);
  display: none; }
.toast.g { border-left-color: #21c880; } .toast.r { border-left-color: #e85a52; }

/* ================= 权限勾选树 / 日志 / 适配器 ================= */
.permtree { border: 1px solid #d9e1ec; border-radius: 5px; padding: 10px 14px; max-height: 260px; overflow-y: auto; }
.permtree .grp { font-weight: 700; color: #24334a; font-size: 13.5px; margin: 8px 0 4px; }
.permtree label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #3c4a61;
  margin: 3px 18px 3px 0; cursor: pointer; }
.logtbl td:first-child { white-space: nowrap; color: #8a97ab; font-family: Consolas, monospace; font-size: 12.5px; }
.cfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.topic-box { background: #f7f9fc; border: 1px solid #e4eaf2; border-radius: 6px; padding: 10px 12px;
  font-family: Consolas, Menlo, monospace; font-size: 12.5px; color: #33527a; line-height: 1.9; word-break: break-all; }
.msglog { background: #0d1b30; border-radius: 8px; padding: 12px 14px; max-height: 320px; overflow-y: auto;
  font-family: Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.8; }
.msglog .m { padding: 6px 8px; border-radius: 6px; margin-bottom: 6px; color: #a9c6e8; word-break: break-all; }
.msglog .m.dn { background: rgba(47,143,255,.10); border-left: 3px solid #3f9fff; }
.msglog .m.up { background: rgba(35,163,94,.10); border-left: 3px solid #35c98a; }
.msglog .m b { color: #fff; font-weight: 600; }
.msglog .m .tp { color: #ffd76a; }
.msglog .empty { color: #5d7fae; text-align: center; padding: 26px 0; }
.codechip { display: inline-block; font-family: Consolas, monospace; font-size: 12px; padding: 1px 8px;
  border-radius: 4px; background: #eef4ff; color: #1f6fd8; margin-right: 6px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat-cards .sc { position: relative; overflow: hidden; background: #fff; border: 1px solid #e0e9f5; border-radius: 10px;
  padding: 14px 16px; transition: all .15s; }
.stat-cards .sc:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,90,180,.12); border-color: #9fdcf2; }
.stat-cards .sc::after { content: ''; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47,200,255,.18), transparent 70%); }
.stat-cards .sc .l { font-size: 12.5px; color: #7a8ba3; }
.stat-cards .sc .v { font-size: 24px; font-weight: 700; color: #16335c; margin-top: 4px; }
.stat-cards .sc .v small { font-size: 12px; color: #98a5ba; font-weight: 400; margin-left: 4px; }

/* ============================================================
 * 行业主题登录页（园区/校园/医院）
 * ============================================================ */
.lx-bg { position: fixed; inset: 0; background-size: cover; background-position: center top; }
.lx-mask { position: fixed; inset: 0;
  background: linear-gradient(90deg, rgba(9,22,64,.05) 0%, rgba(9,22,64,.12) 45%, rgba(9,22,64,.3) 100%); }
.lx-particles { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.lx-card { position: fixed; z-index: 3; right: 7%; top: 50%; transform: translateY(-50%);
  width: 352px; padding: 30px 28px 26px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(30,112,192,.9), rgba(17,82,154,.94));
  border: 1px solid rgba(130,205,255,.35);
  box-shadow: 0 18px 50px rgba(0,18,55,.45);
  box-sizing: border-box; }
.lx-card h1 { margin: 0 0 24px; font-size: 22px; line-height: 1.35; color: #fff; font-weight: 700; }

.lx-field { position: relative; display: block; margin-bottom: 14px; }
.lx-field svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
.lx-field input { box-sizing: border-box; width: 100%; height: 42px; border: none; outline: none;
  border-radius: 4px; background: #fff; padding: 0 12px 0 37px;
  font-size: 14px; color: #2b3a4f; }
.lx-field input::placeholder { color: #aab4c2; }

/* 滑块 */
.lx-slide { position: relative; height: 42px; margin: 4px 0 10px;
  background: rgba(255,255,255,.92); border-radius: 4px; overflow: hidden; }
.lx-stip { position: absolute; left: 54px; top: 0; line-height: 42px;
  font-size: 12.5px; color: #8b97a8; white-space: nowrap; }
.lx-sprog { position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: rgba(64,160,255,.2); }
.lx-sknob { position: absolute; left: 0; top: 0; width: 42px; height: 42px;
  background: linear-gradient(180deg, #5dabff, #2f86ee);
  color: #fff; font-size: 19px; font-weight: 700; line-height: 42px; text-align: center;
  border-radius: 4px; cursor: grab; user-select: none; touch-action: none; }
.lx-slide.ok .lx-sknob { background: linear-gradient(180deg, #4cc872, #2fa557); cursor: default; }
.lx-slide.ok .lx-sprog { background: rgba(53,181,90,.22); }
.lx-slide.ok .lx-stip { color: #2fa557; left: 54px; }

.lx-msg { min-height: 18px; margin-bottom: 6px; font-size: 12.5px; color: #ffd2d2; }
.lx-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
  font-size: 12.5px; color: #eaf4ff; }
.lx-remember { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.lx-lang { height: 28px; border: none; border-radius: 4px; background: #fff; font-size: 12px;
  color: #4a5a70; padding: 0 6px; }
.lx-btn { width: 100%; height: 44px; border: none; border-radius: 4px;
  background: linear-gradient(90deg, #6ab7ff, #3c93ef);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 4px; cursor: pointer; }
.lx-btn:disabled { background: #7d94b6; color: rgba(255,255,255,.75); cursor: not-allowed; }

@media (max-width: 760px) {
  .lx-card { left: 4%; right: 4%; width: auto; }
}
