/* 信息门户 · 样式（简洁浅色 · 兼容内网） */
:root {
  --bg: #ebf5fb;
  --panel: #ffffff;
  --border: #dde3ea;
  --text: #2c3340;
  --muted: #8a93a3;
  --accent: #1f4e79;
  --accent-weak: #ebf5fb;
  --ok: #2e7d32;
  --down: #c62828;
  --sidebar: #132c47;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 40, 80, .06);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
}
#app { display: flex; height: 100vh; }

/* ---------- 侧栏（风格对齐多领域研究院）---------- */
#sidebar {
  width: 250px; flex-shrink: 0; background: var(--sidebar, #132c47); color: #c9d6e4;
  display: flex; flex-direction: column;
}
.brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-title { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.brand-title span { color: #5fa8e8; }   /* 分隔点用亮蓝，与多领域研究院一致 */
.brand-sub { font-size: 11px; color: #7d94ad; margin-top: 4px; letter-spacing: .5px; }

#nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.nav-item {
  width: 100%; display: flex; gap: 11px; align-items: flex-start; text-align: left;
  padding: 12px 18px; background: none; border: none; cursor: pointer; user-select: none;
  color: inherit; font-family: inherit; font-size: 13px; line-height: 1.45;
  border-left: 3px solid transparent; transition: background .15s, border-color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.05); }
.nav-item.active { background: rgba(95,168,232,.13); border-left-color: #5fa8e8; color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6b8299; flex: 0 0 auto; margin-top: 5px; }
.dot.up { background: #4ade80; }
.dot.down { background: #f87171; }
.nav-text { flex: 1; min-width: 0; }
.nav-text b { display: block; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-text small { display: block; color: #7d94ad; font-size: 11px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.nav-item.active .nav-text small { color: #9dbcd8; }

.sidebar-foot {
  padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; color: #6b8299; line-height: 1.7;
}
.env-row { font-size: 11px; color: #6b8299; line-height: 1.7; }

/* ---------- 面板 ---------- */
#panel { flex: 1; position: relative; background: var(--bg); overflow: hidden; }
#frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.placeholder {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; padding: 24px;
}
/* 后端未启动时也保留这块面板的样子，只换里面的文字 */
.placeholder-box {
  max-width: 520px; padding: 26px 32px; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius); background: #f8fafc;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.placeholder-icon { font-size: 42px; opacity: .4; }
.placeholder-title { font-size: 17px; font-weight: 600; color: var(--text); margin-top: 4px; }
.placeholder-sub { font-size: 13px; color: var(--muted); max-width: 460px; line-height: 1.7; }
.hidden { display: none !important; }

/* ===== 侧栏顶部品牌区：深藏青底 + 白字 ===== */
.brand { background: var(--accent); border-bottom-color: #163a5a; }
.brand-title { color: #fff; }
.brand-sub { color: rgba(255,255,255,.72); }
