/* ============================================================
   神经网络舞台 · 控制台总览（2026-11-30）
   参考 neural-creator-dashboard 的视觉：中性深灰底 + 银灰光球 +
   发光水母 + 触须连线 + 毛玻璃统计标签。
   仅作用于 #consolePanel 内的 .neural-stage，不影响其它面板与 app.js。
   统计数字沿用原 ID：statAccounts / statCards / statSuccess /
   statRunning / statGlobalCard / statGlobalAccounts（app.js 零改动）。
   ============================================================ */

/* —— 舞台容器 —— */
.neural-stage{
  --gold:#e6cf98; --silver:#e4e6e3; --rose:#e3b3c4; --mint:#ace0cf;
  --lav:#c3bcf2; --cyan:#acd6e8;
  position:relative; height:460px; margin:-4px 0 18px; overflow:hidden;
  border:1px solid rgba(228,228,222,.10); border-radius:18px;
  background:
    radial-gradient(ellipse 55% 70% at 50% 44%, rgba(90,92,90,.16), rgba(28,30,40,.08) 48%, transparent 74%),
    radial-gradient(ellipse 120% 100% at 50% 46%, #111319 0%, #0b0d12 72%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 22px 54px rgba(0,0,0,.30);
}
/* 背景星点网络：两层 radial-gradient 点阵，营造数据颗粒感 */
.neural-sky{position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(230,207,152,.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 18%, rgba(172,214,232,.45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 26% 74%, rgba(195,188,242,.40) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 78%, rgba(172,224,207,.40) 0 1px, transparent 1.6px),
    radial-gradient(circle at 50% 12%, rgba(228,230,227,.35) 0 1px, transparent 1.6px),
    radial-gradient(circle at 46% 88%, rgba(227,179,196,.35) 0 1px, transparent 1.6px);
  background-size:100% 100%;
  -webkit-mask-image:radial-gradient(ellipse 80% 80% at 50% 44%, #000 20%, transparent 100%);
  mask-image:radial-gradient(ellipse 80% 80% at 50% 44%, #000 20%, transparent 100%);
}

/* —— 触须连线 —— */
.neural-threads{position:absolute;inset:0;width:100%;height:100%;pointer-events:none!important;overflow:visible;color:rgba(230,207,152,.30);}
.neural-threads .thread-glow{fill:none;stroke:currentColor;stroke-width:6;opacity:.28;}
.neural-threads .thread-core{fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;opacity:.8;}
/* 第 5 条触须连向管理员专属节点：非管理员隐藏该节点时，触须同步隐藏 */
.neural-stage:has(#statGlobalCard[hidden]) .thread-g{display:none;}

/* —— 中心光球 —— */
.neural-orb{position:absolute;left:50%;top:43.5%;width:300px;height:300px;transform:translate(-50%,-50%);pointer-events:none;}
.orb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.92) contrast(1.08);
  -webkit-mask-image:radial-gradient(circle closest-side at 50% 50%, #000 56%, rgba(0,0,0,.85) 68%, rgba(0,0,0,.45) 82%, transparent 100%);
  mask-image:radial-gradient(circle closest-side at 50% 50%, #000 56%, rgba(0,0,0,.85) 68%, rgba(0,0,0,.45) 82%, transparent 100%);}
.orb-halo{position:absolute;inset:-46%;border-radius:50%;
  background:radial-gradient(circle closest-side, rgba(176,178,174,.20) 0%, rgba(166,168,163,.16) 32%, rgba(146,148,143,.10) 48%, rgba(126,128,123,.05) 62%, transparent 88%);
  filter:blur(16px);animation:orb-breathe 5.5s ease-in-out infinite;}
@keyframes orb-breathe{50%{transform:scale(1.08);opacity:.7;}}
.orb-copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;
  text-shadow:0 1px 3px rgba(0,0,0,.95), 0 2px 14px rgba(0,0,0,.9);}
.orb-kicker{font-size:9px;letter-spacing:.22em;color:var(--gold);font-weight:600;}
.orb-title{font-size:20px;letter-spacing:.04em;font-weight:600;color:#f4f4f1;}
.orb-sub{font-size:11px;color:rgba(236,236,232,.62);letter-spacing:.06em;}

/* —— 水母节点 —— */
.jelly{position:absolute;width:176px;height:132px;transform:translate(-50%,-50%);
  --mod:var(--silver);}
.jelly-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:screen;pointer-events:none;
  -webkit-mask-image:radial-gradient(ellipse 62% 64% at 50% 44%, #000 52%, transparent 100%);
  mask-image:radial-gradient(ellipse 62% 64% at 50% 44%, #000 52%, transparent 100%);
  filter:hue-rotate(var(--hue,0deg)) brightness(1.05) saturate(1.1);}
.jelly:hover .jelly-img{filter:hue-rotate(var(--hue,0deg)) brightness(1.4) drop-shadow(0 0 12px rgba(255,255,255,.3));}

/* 五个节点的颜色区分（对应 theme.js 的 kinds 色） */
.jelly-1{left:20%;top:22.8%;--hue:0deg;--mod:var(--silver);animation:jelly-float 7s ease-in-out infinite;}
.jelly-2{left:80%;top:22.8%;--hue:-28deg;--mod:var(--gold);animation:jelly-float 8.2s ease-in-out -1.4s infinite;}
.jelly-3{left:20%;top:68.5%;--hue:105deg;--mod:var(--mint);animation:jelly-float 7.6s ease-in-out -2.8s infinite;}
.jelly-4{left:80%;top:68.5%;--hue:158deg;--mod:var(--cyan);animation:jelly-float 8.6s ease-in-out -.7s infinite;}
.jelly-5{left:50%;top:85.5%;--hue:215deg;--mod:var(--lav);animation:jelly-float 7.9s ease-in-out -3.4s infinite;}
@keyframes jelly-float{0%,100%{margin-top:0;}50%{margin-top:-12px;}}

/* 毛玻璃统计标签：压在水母上方，显示名称 + 数字 */
.jelly-label{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);
  display:grid;grid-template-columns:auto 1fr;align-items:center;gap:9px;
  min-width:132px;padding:9px 13px 10px;border-radius:12px;
  border:1px solid rgba(228,228,222,.14);
  background:linear-gradient(160deg, rgba(50,51,50,.66), rgba(15,16,18,.80));
  backdrop-filter:blur(12px) saturate(1.2);-webkit-backdrop-filter:blur(12px) saturate(1.2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 26px rgba(0,0,0,.38);
  transition:border-color .3s, box-shadow .3s;}
.jelly:hover .jelly-label{border-color:color-mix(in srgb, var(--mod) 60%, transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 26px color-mix(in srgb, var(--mod) 24%, transparent);}
.jl-ico{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;
  background:rgba(255,255,255,.05);border:1px solid rgba(228,228,222,.12);color:var(--mod);}
.jl-ico svg{width:15px;height:15px;}
.jl-meta{display:flex;flex-direction:column;line-height:1.15;}
.jl-name{font-size:11px;color:var(--text-2);letter-spacing:.02em;white-space:nowrap;}
.jl-name em{font-style:normal;opacity:.6;font-size:10px;}
.jl-val{font-size:24px;font-weight:600;color:#f4f4f1;font-variant-numeric:tabular-nums;margin-top:2px;}

/* 底部提示 */
.neural-hint{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);margin:0;
  font-size:11px;letter-spacing:.03em;color:rgba(236,236,232,.42);white-space:nowrap;
  padding:5px 14px;border-radius:999px;border:1px solid rgba(228,228,222,.08);background:rgba(12,13,16,.55);}

/* —— 响应式 —— */
@media(max-width:1000px){
  .neural-stage{height:410px;}
  .neural-orb{width:240px;height:240px;}
  .orb-title{font-size:17px;}
  .jelly{width:150px;height:112px;}
  .jelly-label{min-width:112px;padding:7px 10px 8px;gap:7px;}
  .jl-val{font-size:20px;}
}
@media(max-width:680px){
  .neural-stage{height:auto;min-height:0;padding:20px 16px 46px;display:flex;flex-direction:column;align-items:center;gap:14px;}
  .neural-threads,.neural-sky{display:none;}
  .neural-orb{position:relative;left:auto;top:auto;transform:none;width:170px;height:170px;margin:4px 0 6px;}
  .orb-title{font-size:15px;}
  .orb-kicker{font-size:8px;}
  /* 窄屏：水母静态铺成两列网格，图片淡出只留标签卡片，保证可读 */
  .jelly{position:relative;left:auto;top:auto;transform:none;width:auto;height:auto;animation:none;}
  .jelly-img{display:none;}
  .jelly-label{position:relative;left:auto;top:auto;transform:none;width:100%;min-width:0;}
  .neural-stage::after{content:"";}
  /* 用 grid 容器承载五个标签：借助 flex-wrap + 固定宽度 */
  .neural-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .neural-orb{grid-column:1 / -1;justify-self:center;}
  .neural-hint{grid-column:1 / -1;position:relative;left:auto;bottom:auto;transform:none;justify-self:center;margin-top:4px;}
  #statGlobalCard.jelly{grid-column:1 / -1;}
}
/* 尊重系统「减少动态效果」 */
@media(prefers-reduced-motion:reduce){
  .orb-halo,.jelly{animation:none!important;}
  .jelly-label,.neural-threads{transition:none!important;}
}
