/* ============================================================
   金饭碗 · B 端控制台皮肤 b_console.css（2026-10-24）
   ------------------------------------------------------------
   适用：职业顾问工作台 / 园区运营端 / 兼职HR工作台（hr_station、channel_promoter）
   设计：系统级观感 —— 深顶栏 + 深侧栏 + 浅工作区，金色强调
        不改动任何结构与 JS，只做皮肤层；颜色全部取自 gj_theme 的 --gj-console-*
   用法：在 gj_theme.css 之后引入
   ============================================================ */

/* ---- 工作区底色 + 左上角金色光线 ---- */
html body {
  background: var(--gj-console-work) !important;
}
html body .main {
  background-color: var(--gj-console-work) !important;
  background-image: radial-gradient(120% 62% at 6% 0%, var(--gj-console-glow) 0%, rgba(0, 0, 0, 0) 68%) !important;
}

/* ---- 顶栏：深色实底（应用级 chrome） ---- */
html body .top,
html body .app-top,
html body > header,
html body header.topbar {
  background: var(--gj-console-top) !important;
  border-bottom: 1px solid var(--gj-console-div) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}
html body .top *,
html body .app-top *,
html body > header * {
  color: var(--gj-console-fg);
  border-color: var(--gj-console-div);
}
html body .top .logo,
html body .app-top .logo,
html body > header .logo {
  background: var(--gj-grad-brand) !important;
  color: #2a1a06 !important;
  border-color: transparent !important;
}
html body .top .brand small,
html body .app-top .at-brand span,
html body .app-top .at-tag,
html body .top .tname {
  color: var(--gj-console-dim) !important;
}
html body .top .btn,
html body .app-top .btn,
html body > header .btn {
  background: rgba(255, 255, 255, .10) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  color: var(--gj-console-fg) !important;
}
html body .top .btn:hover,
html body .app-top .btn:hover {
  background: rgba(255, 255, 255, .18) !important;
}

/* ---- 页签栏：浅底，与深顶栏形成对比 ---- */
html body .tags-view {
  background: var(--gj-surface) !important;
  border-bottom: 1px solid var(--gj-line) !important;
}

/* ---- 侧栏：深色控制台导航 ---- */
html body .side,
html body aside.side {
  background: var(--gj-console-side) !important;
  border: 1px solid var(--gj-console-div) !important;
  color: var(--gj-console-dim) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
html body .side h3,
html body .side .navgroup-t,
html body .side .gt,
html body .side .grp > .gt,
html body .side .side-hd {
  color: var(--gj-console-dimmer) !important;
}
html body .side h3 span { color: var(--gj-console-dimmer) !important; }
html body .side .navitem,
html body .side .item,
html body .side a.item,
html body .side .navitem * {
  color: var(--gj-console-dim) !important;
  border-radius: 8px;
}
html body .side .navitem:hover,
html body .side .item:hover,
html body .side a.item:hover {
  background: rgba(255, 255, 255, .07) !important;
  color: var(--gj-console-fg) !important;
}
html body .side .navitem.on,
html body .side .item.on {
  background: var(--gj-console-active) !important;
  color: var(--gj-console-fg) !important;
  box-shadow: inset 3px 0 0 var(--gj-gold);
}
html body .side .badge,
html body .side .cnt,
html body .side .pill {
  background: var(--gj-brand) !important;
  color: #fff !important;
}
html body .side .side-cta {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid var(--gj-console-div) !important;
}
html body .side .side-cta b { color: var(--gj-console-fg) !important; }
html body .side .side-cta a { color: var(--gj-gold) !important; }

/* ---- 工作区表格：控制台密度 ---- */
html body .main table,
html body table.tb,
html body table.tb2 {
  border-collapse: separate;
  border-spacing: 0;
}
html body .main table th,
html body table.tb th {
  background: var(--gj-console-head) !important;
  color: var(--gj-ink-3) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  border-bottom: 1px solid var(--gj-line) !important;
}
html body .main table td,
html body table.tb td {
  border-bottom: 1px solid var(--gj-line-2) !important;
  color: var(--gj-ink-2);
}
html body .main table tbody tr:hover td,
html body table.tb tbody tr:hover td {
  background: var(--gj-brand-l) !important;
}
html body .main table tr:last-child td { border-bottom: 0 !important; }

/* ---- 数字 / 金额：等宽，强调可信 ---- */
html body .v,
html body .kpi .v,
html body .cnt,
html body .money,
html body .num,
html body .amt {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* ---- 控制台卡片：更收敛的圆角与投影 ---- */
html body .main .card,
html body .main .block,
html body .main .panel {
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 8px 22px rgba(28, 25, 23, .06);
}
html body .main .block-hd {
  background: var(--gj-surface-2);
  border-bottom: 1px solid var(--gj-line) !important;
}

/* ---- 滚动条：控制台风格 ---- */
html body .side::-webkit-scrollbar { width: 8px; }
html body .side::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
}
html body .side::-webkit-scrollbar-track { background: transparent; }

/* ---- 移动端：侧栏收起时保持深色 ---- */
@media (max-width: 920px) {
  html body .side { background: var(--gj-console-side) !important; }
  html body .top,
  html body .app-top { background: var(--gj-console-top) !important; }
}

/* ---- 内嵌模式（诺依后台 iframe）不改结构，只压掉多余阴影 ---- */
html.embed body .top,
html.embed body .app-top { box-shadow: none; }
