/* ===== 实训基地大屏共用样式（1920×1080 深蓝科技风） ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html,body { width:1920px; height:1080px; overflow:hidden;
  background:#04101f; font-family:"Microsoft YaHei",sans-serif; }
body { background:radial-gradient(ellipse at 50% -10%, #0b2c4d 0%, #04101f 55%); }
body.grid-line { background-image:linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px), radial-gradient(ellipse at 50% -10%, #0b2c4d 0%, #04101f 55%);
  background-size:48px 48px, 48px 48px, 100% 100%; }
#screen { width:1920px; height:1080px; position:relative; padding:0 24px 18px; }

/* ---------- 顶部 ---------- */
.head { height:86px; display:flex; align-items:center; justify-content:space-between; position:relative;
  background:linear-gradient(180deg, rgba(11,60,105,.55), rgba(11,60,105,0));
  border-bottom:1px solid rgba(0,229,255,.25); }
.head::after { content:''; position:absolute; bottom:-1px; left:50%; transform:translateX(-50%);
  width:760px; height:2px; background:linear-gradient(90deg, transparent, #00e5ff, transparent); }
.head .l, .head .r { width:400px; font-size:15px; color:#8fd8f2; }
.head .l { display:flex; align-items:center; gap:16px; }
.head .brand { height:36px; filter:drop-shadow(0 0 8px rgba(0,120,255,.35)); }
.head .r { text-align:right; }
.head .r a { color:#8fd8f2; text-decoration:none; margin-left:10px; border:1px solid rgba(0,229,255,.3);
  border-radius:5px; padding:3px 10px; font-size:13px; display:inline-block; margin-bottom:4px; }
.head .r a.on { color:#04101f; background:#8fd8f2; border-color:#8fd8f2; font-weight:bold; }
.head .r a:hover { color:#fff; border-color:#00e5ff; }
.head h1 { font-size:34px; font-weight:bold; letter-spacing:6px; color:#eaf9ff;
  text-shadow:0 0 18px rgba(0,229,255,.65); white-space:nowrap; }
.head .sub { position:absolute; top:60px; left:50%; transform:translateX(-50%);
  font-size:13px; letter-spacing:8px; color:#4f93b8; }

/* ---------- 模块菜单 ---------- */
.menu { height:58px; display:flex; align-items:center; gap:10px;
  border-bottom:1px solid rgba(0,229,255,.12); }
.menu a { display:flex; align-items:center; gap:9px; height:38px; padding:0 22px; border-radius:6px;
  color:#8fb9d4; text-decoration:none; font-size:15px; letter-spacing:2px;
  border:1px solid rgba(0,229,255,.18); background:rgba(8,42,76,.5); transition:.15s; }
.menu a i { width:8px; height:8px; border-radius:50%; background:currentColor; opacity:.65; }
.menu a:hover { color:#eaf9ff; border-color:rgba(0,229,255,.55); background:rgba(0,229,255,.1); }
.menu a.on { color:#04101f; background:linear-gradient(135deg,#a9e6ff,#5fc4ee); border-color:#8fd8f2;
  font-weight:bold; box-shadow:0 0 16px rgba(0,229,255,.35); }
.menu a.on i { opacity:1; background:#04101f; }
.menu .sp { flex:1; }
.menu a.s2 { height:32px; padding:0 14px; font-size:13px; letter-spacing:1px; color:#6fb4d4; }

/* ---------- 页面骨架 ---------- */
.pg { height:918px; display:flex; flex-direction:column; gap:12px; padding-top:12px; }
.pghead { display:flex; align-items:center; justify-content:space-between; height:40px; flex:0 0 40px; }
.pghead h2 { font-size:20px; color:#eaf9ff; letter-spacing:3px; font-weight:bold; }
.pghead h2::before { content:'▍'; color:#00e5ff; margin-right:8px; }
.pghead .note { font-size:12.5px; color:#7fc3e2; letter-spacing:1px; }
.row { display:flex; gap:14px; min-height:0; flex:1; }
.row > * { min-width:0; }
.stack { display:flex; flex-direction:column; gap:14px; min-height:0; }

/* ---------- KPI ---------- */
.kpis { display:flex; gap:18px; flex:0 0 auto; }
.kpi { flex:1; background:linear-gradient(160deg, rgba(9,48,86,.85), rgba(6,28,52,.6));
  border:1px solid rgba(0,229,255,.22); border-radius:8px; padding:12px 18px 10px;
  position:relative; overflow:hidden; }
.kpi::before { content:''; position:absolute; top:0; left:0; width:3px; height:100%;
  background:linear-gradient(180deg,#00e5ff, transparent); }
.kpi .label { font-size:13px; color:#7fc3e2; letter-spacing:2px; }
.kpi .val { font-size:32px; font-weight:bold; color:#fff; margin-top:2px; font-family:'Arial'; }
.kpi .val small { font-size:14px; color:#7fc3e2; font-weight:normal; margin-left:2px; }
.kpi .delta { position:absolute; right:16px; top:14px; font-size:12px; }
.kpi.warn .val { color:#ffc555; }
.kpi.kpi-lamp::before { background:linear-gradient(180deg,#ffd45e, transparent); }
.kpi.kpi-lamp .val { color:#ffdf8a; text-shadow:0 0 12px rgba(255,212,94,.55); }
.kpi.kpi-lamp .label { color:#e8cf8e; }
.kpi.kpi-sec::before { background:linear-gradient(180deg,#ff645a, transparent); }
.kpi.kpi-sec .val { color:#ff9f95; }
.kpi.kpi-room::before { background:linear-gradient(180deg,#2ee6a8, transparent); }
.kpi.kpi-room .val { color:#7dffd9; }

/* ---------- 面板 ---------- */
.panel { background:linear-gradient(160deg, rgba(8,42,76,.72), rgba(5,22,42,.55));
  border:1px solid rgba(0,229,255,.18); border-radius:8px; position:relative;
  padding:34px 12px 10px; flex:1; overflow:hidden; min-height:0; }
.panel > h3 { position:absolute; top:0; left:0; right:0; height:30px; line-height:30px;
  font-size:15px; color:#bdeaff; padding-left:14px; letter-spacing:2px;
  background:linear-gradient(90deg, rgba(0,229,255,.16), transparent 70%);
  border-bottom:1px solid rgba(0,229,255,.12); }
.panel > h3::before { content:'▍'; color:#00e5ff; margin-right:6px; }
.panel > h3 .tag { float:right; font-size:11px; color:#5f93ad; padding-right:12px; letter-spacing:0; }
.panel.plain { padding:12px; }
.chart { width:100%; height:100%; }

/* ---------- 模块标题条 ---------- */
.modbar { height:36px; border-radius:8px; display:flex; align-items:center; justify-content:space-between;
  padding:0 14px; font-size:15px; font-weight:bold; letter-spacing:2px; color:#eaf9ff;
  border:1px solid; flex:0 0 36px; }
.modbar span { font-size:11px; font-weight:normal; letter-spacing:1px; color:#7fc3e2; }
.mb-env  { background:linear-gradient(90deg, rgba(0,229,255,.18), transparent 72%);
  border-color:rgba(0,229,255,.4); box-shadow:inset 3px 0 0 #00e5ff; }
.mb-room { background:linear-gradient(90deg, rgba(46,230,168,.18), transparent 72%);
  border-color:rgba(46,230,168,.4); box-shadow:inset 3px 0 0 #2ee6a8; }
.mb-sec  { background:linear-gradient(90deg, rgba(255,100,90,.18), transparent 72%);
  border-color:rgba(255,100,90,.4); box-shadow:inset 3px 0 0 #ff645a; }
.mb-energy { background:linear-gradient(90deg, rgba(255,197,85,.18), transparent 72%);
  border-color:rgba(255,197,85,.4); box-shadow:inset 3px 0 0 #ffc555; }

/* ---------- 模块入口卡（总览页） ---------- */
.mcards { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; flex:0 0 auto; }
.mcard { display:block; text-decoration:none; border-radius:10px; padding:20px 22px; position:relative;
  border:1px solid rgba(0,229,255,.28); overflow:hidden;
  background:linear-gradient(160deg, rgba(10,52,92,.78), rgba(5,24,44,.5)); transition:.18s; }
.mcard:hover { border-color:#00e5ff; transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,140,220,.25); }
.mcard::before { content:''; position:absolute; left:0; top:0; width:4px; height:100%; }
.mcard.c-env::before { background:#00e5ff; }
.mcard.c-room::before { background:#2ee6a8; }
.mcard.c-sec::before { background:#ff645a; }
.mcard.c-energy::before { background:#ffc555; }
.mcard .ic { font-size:24px; }
.mcard .nm { font-size:20px; color:#eaf9ff; font-weight:bold; letter-spacing:2px; margin-top:8px; }
.mcard .ds { font-size:12.5px; color:#7fc3e2; margin-top:8px; line-height:20px; min-height:40px; }
.mcard .go { position:absolute; right:18px; top:20px; font-size:12px; color:#5fc4ee; letter-spacing:1px; }
.mcard .mt { display:flex; gap:22px; margin-top:12px; padding-top:12px;
  border-top:1px dashed rgba(0,229,255,.15); }
.mcard .mt div { font-size:11.5px; color:#7fc3e2; }
.mcard .mt b { display:block; font-size:22px; color:#fff; font-family:Arial; margin-bottom:2px; }
.mcard .mt b.y { color:#ffd45e; } .mcard .mt b.g { color:#2ee6a8; } .mcard .mt b.r { color:#ff9f95; }

/* ---------- 3D 楼体（园区环境页） ---------- */
.stage { width:100%; height:100%; perspective:1900px; position:relative;
  cursor:grab; touch-action:none; user-select:none; --rx:60deg; --rz:-36deg; --sc:1; }
.stage.dragging { cursor:grabbing; }
.building { position:absolute; left:50%; top:50%; width:520px; height:300px;
  margin-left:-260px; margin-top:-150px;
  transform:rotateX(var(--rx)) rotateZ(var(--rz)) scale(var(--sc));
  transform-style:preserve-3d; }
.layer { position:absolute; width:520px; height:300px; transform-style:preserve-3d; }
.face { position:absolute; }
.top { width:520px; height:300px; background:linear-gradient(135deg, rgba(20,60,100,.92), rgba(10,34,62,.92));
  border:2px solid; border-radius:6px; padding:12px; }
/* 楼栋外壳：前后左右四面 + 屋顶轮廓。前/右为玻璃剖切面，可看到楼层内部 */
.sideX, .sideY, .sideBack, .sideLeft { position:absolute; }
.sideX { width:520px; height:64px; top:300px; transform:rotateX(-90deg); transform-origin:top;
  background:linear-gradient(180deg, rgba(18,56,98,.22), rgba(8,28,52,.28));
  border:1px solid rgba(0,229,255,.3); }
.sideY { width:64px; height:300px; left:520px; top:0; transform:rotateY(90deg); transform-origin:left;
  background:linear-gradient(90deg, rgba(20,62,108,.22), rgba(10,32,58,.3));
  border:1px solid rgba(0,229,255,.3); }
.sideBack { width:520px; height:64px; top:0; transform:rotateX(90deg); transform-origin:bottom;
  background:repeating-linear-gradient(90deg, rgba(8,30,56,.96) 0 42px, rgba(38,94,148,.5) 42px 58px);
  border:1px solid rgba(0,229,255,.2); }
.sideLeft { width:64px; height:300px; left:0; top:0; transform:rotateY(-90deg); transform-origin:right;
  background:repeating-linear-gradient(0deg, rgba(8,30,56,.96) 0 42px, rgba(38,94,148,.5) 42px 58px);
  border:1px solid rgba(0,229,255,.2); }
.shell-roof { position:absolute; width:520px; height:300px; transform:translateZ(96px);
  border:2px solid rgba(0,229,255,.35); border-radius:6px; background:transparent; pointer-events:none; }
.cut-edge { position:absolute; inset:-3px; border:2px solid transparent; border-radius:8px;
  transform:translateZ(1px); pointer-events:none; transition:.2s; }
.layer.cur .cut-edge { border-color:rgba(0,229,255,.85);
  box-shadow:0 0 22px rgba(0,229,255,.4), inset 0 0 16px rgba(0,229,255,.22); }
.layer.l4 { transform:translateZ(96px); }   .layer.l4 .top { border-color:#b18cff; }
.layer.l3 { transform:translateZ(32px); }   .layer.l3 .top { border-color:#3cb5ff; opacity:.96; }
.layer.l2 { transform:translateZ(-32px); }  .layer.l2 .top { border-color:#2ee6a8; opacity:.93; }
.layer.l1 { transform:translateZ(-96px); }  .layer.l1 .top { border-color:#ff9a3c; opacity:.9; }
.layer:not(.cur) .top { opacity:.8; }
.layer.cur .top { opacity:1; box-shadow:0 0 30px rgba(0,229,255,.35) inset; }

.minirooms { display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:1fr; gap:8px; height:100%; }
.minirooms.dim { opacity:.62; filter:saturate(.5); }
.miniroom { position:relative; border-radius:5px; border:1px solid rgba(255,255,255,.25); font-size:12px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; color:#cfe9f7; }
.miniroom b { font-size:12px; }
.miniroom .nm { font-size:10.5px; opacity:.85; }
.lamp { position:absolute; top:4px; right:5px; width:7px; height:7px; border-radius:50%; }
.lamp.on { background:#ffd45e; box-shadow:0 0 9px 3px rgba(255,212,94,.85); }
.lamp.off { background:#22333f; box-shadow:none; }
.miniroom.lit { background:linear-gradient(160deg, rgba(255,205,90,.28), rgba(255,180,60,.10));
  border-color:rgba(255,205,90,.65)!important; color:#ffe9b8;
  box-shadow:inset 0 0 18px rgba(255,205,90,.35), 0 0 10px rgba(255,205,90,.25); }
.miniroom.dark { background:rgba(4,9,14,.72); border-color:rgba(255,255,255,.10)!important; color:#4a5f6f; }

.floor-tabs { position:absolute; left:10px; top:36px; display:flex; flex-direction:column; gap:9px; z-index:6; }
.ftab { width:58px; padding:7px 0; text-align:center; border-radius:8px; cursor:pointer;
  border:1px solid rgba(0,229,255,.2); color:#8fb9d4; font-size:12px; background:rgba(8,42,76,.6); }
.ftab b { display:block; font-size:15px; margin-bottom:1px; }
.ftab.on { border-color:#00e5ff; color:#fff; background:rgba(0,229,255,.16);
  box-shadow:0 0 12px rgba(0,229,255,.3); }
.tools3d { position:absolute; right:10px; top:36px; display:flex; flex-direction:column; gap:7px; z-index:5; }
.tbtn { font-size:12px; color:#ffd45e; border:1px solid rgba(255,197,85,.4); border-radius:6px;
  padding:5px 11px; cursor:pointer; background:rgba(30,24,8,.55); white-space:nowrap; transition:.15s; }
.tbtn:hover { color:#fff; border-color:#ffd45e; background:rgba(255,197,85,.2); }
.tbtn.on { color:#04101f; background:#ffd45e; border-color:#ffd45e; font-weight:bold; }
.hint3d { position:absolute; left:50%; bottom:6px; transform:translateX(-50%);
  font-size:11.5px; color:#6fb4d4; letter-spacing:1px; pointer-events:none;
  background:rgba(4,20,38,.55); border:1px solid rgba(0,229,255,.14);
  border-radius:14px; padding:3px 14px; z-index:5; white-space:nowrap; }

/* ---------- 平面图（2D 楼层） ---------- */
.plan { display:grid; grid-template-columns:repeat(4,1fr); grid-template-rows:repeat(2,1fr);
  gap:7px; height:100%; padding:0 4px 4px; }
.pcell { border-radius:6px; border:1px solid rgba(255,255,255,.14); display:flex; flex-direction:column;
  align-items:center; justify-content:center; position:relative; font-size:11px; color:#cfe9f7; }
.pcell b { font-size:12.5px; }
.pcell .nm { font-size:10px; opacity:.8; }
.pcell.lit { background:linear-gradient(160deg, rgba(255,205,90,.26), rgba(255,180,60,.08));
  border-color:rgba(255,205,90,.6)!important; color:#ffe9b8;
  box-shadow:inset 0 0 16px rgba(255,205,90,.3); }
.pcell.dark { background:rgba(4,9,14,.7); color:#4a5f6f; }

/* ---------- 楼层开灯占比条 ---------- */
.flist { display:flex; flex-direction:column; gap:10px; padding:2px 6px; }
.flist .f { display:flex; align-items:center; gap:10px; font-size:12.5px; color:#cfe9f7; }
.flist .f .fn { width:44px; color:#7fc3e2; font-family:Arial; }
.flist .f .fb { flex:1; height:8px; border-radius:4px; background:rgba(255,255,255,.07); overflow:hidden; }
.flist .f .fb i { display:block; height:100%; border-radius:4px;
  background:linear-gradient(90deg,#ffd45e,#ff9a3c); }
.flist .f .fp { width:76px; text-align:right; color:#ffd45e; font-family:Arial; }

/* ---------- 实训室状态（大卡） ---------- */
.today { display:flex; gap:10px; padding:0 8px 8px; }
.today .t { flex:1; text-align:center; background:rgba(46,230,168,.05);
  border:1px solid rgba(46,230,168,.16); border-radius:8px; padding:6px 0 4px; }
.today .t .v { font-size:22px; font-weight:bold; color:#fff; font-family:Arial; }
.today .t .v.g { color:#2ee6a8; } .today .t .v.y { color:#ffc555; } .today .t .v.b { color:#3cb5ff; }
.today .t .n { font-size:11.5px; color:#7fc3e2; margin-top:1px; }

.rooms { display:grid; grid-template-columns:repeat(8,1fr); gap:7px; padding:2px 8px; }
.rooms.big { grid-template-columns:repeat(4,1fr); gap:8px; padding:0 6px; }
.room { border-radius:6px; padding:4px 3px 3px; text-align:center; font-size:10.5px;
  border:1px solid; cursor:pointer; position:relative; }
.room .rn { font-weight:bold; font-size:11.5px; }
.room .rs { margin-top:1px; font-size:9.5px; opacity:.85; }
.room.use { background:rgba(46,230,168,.14); border-color:rgba(46,230,168,.45); color:#7dffd9; }
.room.idle { background:rgba(62,143,196,.13); border-color:rgba(62,143,196,.4); color:#8fb9d4; }
.room.warn { background:rgba(255,197,85,.13); border-color:rgba(255,197,85,.5); color:#ffd98a; }
.room.off { background:rgba(255,100,90,.13); border-color:rgba(255,100,90,.5); color:#ff9f95; }
.room .lamp { width:6px; height:6px; top:3px; right:4px; }
.room.big { padding:7px 10px; text-align:left; border-radius:8px; }
.room.big .rn { font-size:13.5px; display:flex; align-items:center; gap:8px; }
.room.big .nm2 { font-size:11.5px; opacity:.9; margin-top:2px; }
.room.big .mt2 { font-size:11px; opacity:.75; margin-top:3px; line-height:15px; }
.room.big .lamp { position:static; width:8px; height:8px; }

/* ---------- 安防预警 ---------- */
.secrow { display:flex; gap:10px; padding:0 4px 6px; }
.secrow .s { flex:1; text-align:center; background:rgba(255,100,90,.05);
  border:1px solid rgba(255,100,90,.18); border-radius:8px; padding:10px 0 8px; }
.secrow .s .v { font-size:22px; font-weight:bold; color:#fff; font-family:Arial; }
.secrow .s .v em { font-style:normal; font-size:13px; color:#7fc3e2; }
.secrow .s .v i { font-style:normal; color:#ff8f84; }
.secrow .s .n { font-size:11.5px; color:#7fc3e2; margin-top:1px; }

.alarm-list { height:calc(100% - 8px); overflow:hidden; padding:0 10px; }
.alarm-list ul { list-style:none; }
.alarm-list li { display:flex; gap:9px; align-items:center; font-size:12.5px; color:#cfe9f7;
  padding:7px 4px; border-bottom:1px dashed rgba(0,229,255,.12); }
.alarm-list .lvl { width:40px; text-align:center; border-radius:4px; font-size:11px; padding:2px 0; flex-shrink:0; }
.lvl.hi { background:rgba(255,100,90,.18); color:#ff8f84; border:1px solid rgba(255,100,90,.4); }
.lvl.mid { background:rgba(255,197,85,.16); color:#ffd178; border:1px solid rgba(255,197,85,.4); }
.lvl.lo { background:rgba(62,143,196,.15); color:#8fc4e8; border:1px solid rgba(62,143,196,.35); }
.alarm-list .loc { color:#7fc3e2; font-size:11.5px; flex-shrink:0; }
.alarm-list .tt { margin-left:auto; color:#5f93ad; font-size:11px; flex-shrink:0; }

/* ---------- 通用表格 ---------- */
.tb { width:100%; border-collapse:collapse; font-size:12.5px; }
.tb th { text-align:left; font-weight:normal; color:#5f93ad; font-size:11.5px;
  padding:6px 10px; border-bottom:1px solid rgba(0,229,255,.18); letter-spacing:1px; }
.tb td { padding:5px 10px; color:#cfe9f7; border-bottom:1px dashed rgba(0,229,255,.1); }
.tb tr:hover td { background:rgba(0,229,255,.05); }
.pill { display:inline-block; border-radius:4px; padding:1px 8px; font-size:11px; }
.pill.hi { color:#ff8f84; background:rgba(255,100,90,.14); border:1px solid rgba(255,100,90,.4); }
.pill.mid { color:#ffd178; background:rgba(255,197,85,.14); border:1px solid rgba(255,197,85,.4); }
.pill.lo { color:#8fc4e8; background:rgba(62,143,196,.14); border:1px solid rgba(62,143,196,.35); }
.pill.ok { color:#5ff0c0; background:rgba(46,230,168,.12); border:1px solid rgba(46,230,168,.4); }
.pill.run { color:#5ff0c0; background:rgba(46,230,168,.12); border:1px solid rgba(46,230,168,.4); }
.pill.stop { color:#8fa3b0; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.18); }

/* ---------- 节能减排 ---------- */
.energy { display:flex; gap:12px; height:100%; min-height:0; }
.e-kpis { width:186px; display:flex; flex-direction:column; gap:9px; flex-shrink:0; }
.ek { flex:1; background:rgba(255,197,85,.06); border:1px solid rgba(255,197,85,.22);
  border-radius:8px; padding:8px 12px; display:flex; flex-direction:column; justify-content:center; }
.ek .n { font-size:12px; color:#7fc3e2; }
.ek .v { font-size:24px; font-weight:bold; color:#ffd45e; font-family:Arial; margin-top:2px; }
.ek .v small { font-size:12px; color:#7fc3e2; font-weight:normal; margin-left:2px; }
.ek .v.g { color:#2ee6a8; }
.e-box { flex:1; min-width:0; display:flex; flex-direction:column; }
.e-box .bt { font-size:13px; color:#bdeaff; letter-spacing:1px; padding:0 4px 4px; }
.e-box .bt em { font-style:normal; color:#5f93ad; font-size:11px; margin-left:8px; }
.e-box .cc { flex:1; min-height:0; border:1px solid rgba(255,197,85,.12); border-radius:8px;
  background:rgba(255,255,255,.02); }
.e-ctrl { width:330px; flex-shrink:0; display:flex; flex-direction:column; }
.e-ctrl .more { text-align:right; padding-bottom:4px; }
.e-ctrl .more a { color:#ffd45e; font-size:12px; text-decoration:none; }
.devlist { flex:1; overflow:hidden; }
.devlist .d { display:flex; align-items:center; gap:8px; font-size:12px; color:#cfe9f7;
  padding:6px 6px; border-bottom:1px dashed rgba(255,197,85,.14); }
.devlist .d .cd { font-family:Arial; color:#7fc3e2; font-size:11px; width:96px; flex-shrink:0; }
.devlist .d .st { width:52px; flex-shrink:0; text-align:center; border-radius:4px; font-size:10.5px; padding:1px 0; }
.st.run { color:#5ff0c0; background:rgba(46,230,168,.12); border:1px solid rgba(46,230,168,.4); }
.st.stop { color:#8fa3b0; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.18); }
.devlist .d .pw { margin-left:auto; font-family:Arial; color:#ffd45e; font-size:11px; width:74px; text-align:right; }
.devlist .d button { flex-shrink:0; width:52px; border-radius:5px; border:1px solid rgba(0,229,255,.35);
  background:rgba(0,229,255,.07); color:#9fdcf5; font-size:11px; padding:3px 0; cursor:pointer; }
.devlist .d button:hover { color:#fff; border-color:#00e5ff; background:rgba(0,229,255,.2); }
.devlist .d button.off { border-color:rgba(255,197,85,.45); color:#ffd45e; background:rgba(255,197,85,.08); }

/* ==================== AI 智能体：悬浮图标 + 对话弹窗 ==================== */
.ai-launch { position:fixed; right:26px; bottom:26px; z-index:900; display:flex; align-items:center; gap:11px;
  height:56px; padding:0 20px 0 8px; border-radius:28px; cursor:pointer; user-select:none;
  background:linear-gradient(135deg, rgba(9,48,86,.96), rgba(6,24,44,.96));
  border:1px solid rgba(0,229,255,.45);
  box-shadow:0 8px 28px rgba(0,120,190,.35), inset 0 0 18px rgba(0,229,255,.12);
  color:#eaf9ff; font-size:13.5px; letter-spacing:1px; transition:.2s; }
.ai-launch:hover { border-color:#00e5ff; transform:translateY(-2px);
  box-shadow:0 10px 34px rgba(0,180,255,.5), inset 0 0 22px rgba(0,229,255,.2); }
.ai-launch .orb { position:relative; width:40px; height:40px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:bold;
  color:#04101f; letter-spacing:0;
  background:radial-gradient(circle at 32% 28%, #c9f6ff, #33b0e6 45%, #0a4a86 100%);
  box-shadow:0 0 14px rgba(0,200,255,.65); }
.ai-launch .orb::after { content:''; position:absolute; inset:-7px; border-radius:50%;
  border:1px solid rgba(0,229,255,.6); animation:aiPulse 2.4s infinite; }
.ai-launch .txt b { display:block; font-size:11px; font-weight:normal; color:#7fc3e2; letter-spacing:0; margin-top:2px; }
@keyframes aiPulse { 0%{transform:scale(.82);opacity:.85} 70%{transform:scale(1.38);opacity:0} 100%{opacity:0} }

.ai-mask { position:fixed; inset:0; z-index:940; background:rgba(2,8,14,.5); display:none; }
.ai-mask.on { display:block; }

.ai-dlg { position:fixed; right:26px; bottom:96px; z-index:950; width:566px; height:772px;
  display:none; flex-direction:column; border-radius:14px; overflow:hidden;
  background:linear-gradient(165deg, rgba(7,32,58,.98), rgba(4,14,26,.99));
  border:1px solid rgba(0,229,255,.4);
  box-shadow:0 24px 70px rgba(0,0,0,.65), inset 0 0 40px rgba(0,140,220,.08); }
.ai-dlg.on { display:flex; animation:aiIn .22s ease-out; }
@keyframes aiIn { from{opacity:0; transform:translateY(14px) scale(.98)} to{opacity:1; transform:none} }

.ai-hd { display:flex; align-items:center; gap:12px; padding:12px 14px; flex-shrink:0;
  border-bottom:1px solid rgba(0,229,255,.18);
  background:linear-gradient(90deg, rgba(0,229,255,.14), rgba(0,229,255,.02) 60%, transparent); }
.ai-hd .orb { position:relative; width:38px; height:38px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:11.5px; font-weight:bold; color:#04101f;
  background:radial-gradient(circle at 32% 28%, #c9f6ff, #33b0e6 45%, #0a4a86 100%);
  box-shadow:0 0 12px rgba(0,200,255,.6); }
.ai-hd .orb::after { content:''; position:absolute; inset:-6px; border-radius:50%;
  border:1px solid rgba(0,229,255,.55); animation:aiPulse 2.4s infinite; }
.ai-hd .tt strong { display:block; font-size:15px; color:#eaf9ff; letter-spacing:1.5px; }
.ai-hd .tt span { display:block; font-size:11px; color:#7fc3e2; margin-top:2px; letter-spacing:.5px; }
.ai-hd .st { margin-left:auto; font-size:11px; color:#5ff0c0; display:flex; align-items:center; gap:5px; }
.ai-hd .st i { width:6px; height:6px; border-radius:50%; background:#2ee6a8; box-shadow:0 0 7px #2ee6a8; }
.ai-hd .x { width:26px; height:26px; border-radius:6px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:#7fc3e2; font-size:18px; line-height:1; border:1px solid rgba(0,229,255,.2); }
.ai-hd .x:hover { color:#fff; border-color:#00e5ff; background:rgba(0,229,255,.14); }

.ai-body { flex:1; min-height:0; overflow-y:auto; padding:14px 14px 6px; scrollbar-width:thin; }
.ai-body::-webkit-scrollbar { width:6px; }
.ai-body::-webkit-scrollbar-thumb { background:rgba(0,229,255,.25); border-radius:3px; }

.ai-msg { display:flex; gap:9px; margin-bottom:12px; align-items:flex-start; }
.ai-msg .av { width:26px; height:26px; border-radius:50%; flex-shrink:0; font-size:10px; font-weight:bold;
  color:#04101f; display:flex; align-items:center; justify-content:center; letter-spacing:0;
  background:radial-gradient(circle at 32% 28%, #c9f6ff, #33b0e6 50%, #0a4a86 100%); }
.ai-bubble { max-width:478px; border-radius:4px 10px 10px 10px; padding:9px 12px; font-size:12.5px;
  line-height:19px; color:#cfe9f7; background:rgba(10,42,72,.72);
  border:1px solid rgba(0,229,255,.16); }
.ai-msg.me { flex-direction:row-reverse; }
.ai-msg.me .ai-bubble { border-radius:10px 4px 10px 10px; color:#04101f; font-weight:bold;
  background:linear-gradient(135deg,#a9e6ff,#6ec9ef); border-color:#8fd8f2; max-width:430px; }
.ai-typing { display:flex; gap:4px; align-items:center; height:19px; }
.ai-typing i { width:5px; height:5px; border-radius:50%; background:#4fc9f0; animation:aiBlink 1s infinite; }
.ai-typing i:nth-child(2){animation-delay:.18s} .ai-typing i:nth-child(3){animation-delay:.36s}
@keyframes aiBlink { 0%,100%{opacity:.25; transform:translateY(0)} 50%{opacity:1; transform:translateY(-3px)} }

.ai-card { margin-top:2px; border:1px solid rgba(0,229,255,.2); border-radius:8px; overflow:hidden;
  background:rgba(4,18,32,.55); }
.ai-ch { display:flex; align-items:center; gap:6px; padding:6px 10px; font-size:11px; letter-spacing:1px;
  color:#8fd8f2; background:rgba(0,229,255,.08); border-bottom:1px solid rgba(0,229,255,.14); }
.ai-ch em { font-style:normal; margin-left:auto; color:#5f93ad; font-size:10.5px; letter-spacing:0; }
.ai-conf { display:inline-block; font-size:10.5px; color:#5ff0c0; border:1px solid rgba(46,230,168,.45);
  background:rgba(46,230,168,.12); border-radius:4px; padding:0 6px; margin-left:8px; }
.ai-kw { margin-top:6px; font-size:11px; color:#5f93ad; line-height:17px; }
.ai-kw b { color:#7fc3e2; font-weight:normal; }
.ai-line { padding:8px 10px; font-size:12.5px; color:#dff3ff; }

.ai-f { display:flex; align-items:center; gap:8px; padding:6px 10px; font-size:12px;
  border-bottom:1px dashed rgba(0,229,255,.1); opacity:0; transform:translateY(4px);
  animation:aiRow .28s forwards; }
.ai-f:last-child { border-bottom:0; }
@keyframes aiRow { to{opacity:1; transform:none} }
.ai-f .k { color:#5f93ad; width:74px; flex-shrink:0; font-size:11.5px; }
.ai-f .v { color:#eaf9ff; flex:1; }
.ai-f .v b { color:#ffd45e; font-weight:normal; }
.ai-f .src { flex-shrink:0; font-size:10px; color:#7fc3e2; background:rgba(0,229,255,.08);
  border:1px solid rgba(0,229,255,.22); border-radius:3px; padding:0 5px; }
.ai-f .ok { color:#2ee6a8; font-size:11px; flex-shrink:0; }

.ai-prog { height:3px; background:rgba(0,229,255,.12); border-radius:2px; margin-top:8px; overflow:hidden; }
.ai-prog i { display:block; height:100%; width:0; border-radius:2px;
  background:linear-gradient(90deg,#00e5ff,#2ee6a8); transition:width .25s; }

.ai-form { padding:4px 10px 10px; }
.ai-fi { display:flex; align-items:center; gap:8px; margin-top:7px; }
.ai-fi .fl { width:78px; flex-shrink:0; font-size:11.5px; color:#5f93ad; text-align:right; }
.ai-fi .fb { flex:1; height:28px; line-height:26px; padding:0 9px; border-radius:5px; font-size:12px;
  color:#eaf9ff; background:rgba(0,229,255,.05); border:1px solid rgba(0,229,255,.28); overflow:hidden; }
.ai-fi .ai-tag { flex-shrink:0; font-size:10px; color:#04101f; background:#5fc4ee; border-radius:3px;
  padding:1px 5px; font-weight:bold; }

.ai-link { display:inline-flex; align-items:center; gap:6px; margin-top:9px; padding:8px 16px;
  border-radius:6px; text-decoration:none; font-size:12.5px; font-weight:bold; color:#04101f;
  background:linear-gradient(135deg,#8ff0d0,#2ee6a8); box-shadow:0 6px 18px rgba(46,230,168,.28); }
.ai-link:hover { filter:brightness(1.08); }
.ai-tip { font-size:10.5px; color:#5f93ad; margin-top:7px; }

.ai-chips { display:flex; gap:7px; padding:0 14px 8px; flex-shrink:0; flex-wrap:wrap; }
.ai-chip { font-size:11.5px; color:#9fdcf5; padding:5px 10px; border-radius:14px; cursor:pointer;
  background:rgba(0,229,255,.07); border:1px solid rgba(0,229,255,.24); transition:.15s; }
.ai-chip:hover { color:#04101f; background:#8fd8f2; border-color:#8fd8f2; }

.ai-in { display:flex; gap:8px; padding:10px 14px 12px; flex-shrink:0;
  border-top:1px solid rgba(0,229,255,.15); background:rgba(4,16,30,.6); }
.ai-in textarea { flex:1; height:38px; max-height:38px; resize:none; border-radius:8px; padding:9px 11px;
  font-size:12.5px; line-height:18px; color:#eaf9ff; font-family:inherit;
  background:rgba(0,229,255,.04); border:1px solid rgba(0,229,255,.25); outline:none; }
.ai-in textarea:focus { border-color:#00e5ff; box-shadow:0 0 0 2px rgba(0,229,255,.12); }
.ai-in textarea::placeholder { color:#5b7d92; }
.ai-in button { width:74px; flex-shrink:0; border-radius:8px; border:1px solid #8fd8f2; cursor:pointer;
  font-size:13px; font-weight:bold; letter-spacing:1px; color:#04101f;
  background:linear-gradient(135deg,#a9e6ff,#5fc4ee); }
.ai-in button:hover { filter:brightness(1.1); }
.ai-in button:disabled { opacity:.5; cursor:default; }
.ai-foot { flex-shrink:0; padding:0 14px 8px; font-size:10.5px; color:#4f7085; }
