:root {
  /* 企业管理端：石板壳层 + 深青主色 + 金色点缀 */
  --ink: #1a2733;
  --muted: #6a7c89;
  --brand: #1a6560;
  --brand-deep: #134e4a;
  --brand-soft: #f3f6f8;
  --brand-mid: #218078;
  --gold: #b8955a;
  --paper: #eef1f4;
  --card: #ffffff;
  --line: #d7dee5;
  --ok: #2f6b4f;
  --warn: #9a5b12;
  --danger: #b42318;
  --accent: #3a6f88;
  --metal: #c5ced8;
  --shell: #1a2733;
  --shell-2: #223442;
  --shell-3: #2c4150;
  --shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(26, 39, 51, 0.05),
    0 10px 28px rgba(26, 39, 51, 0.08);
  --shadow-soft: 0 6px 18px rgba(26, 39, 51, 0.05);
  --radius: 8px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sidebar: 200px;
  --ent-side: #f7f9fb;
  --ent-side-deep: #eef1f4;
  --ent-line: #d7dee5;
  --ent-line-on: #2f5d73;
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  /* 企业学员端：与登录后 student.css 青绿一致 */
  --cand: #0f6f6a;
  --cand-deep: #0b5753;
  --cand-soft: #e6f0ee;
  --cand-paper: #eef3f4;
  --cand-mid: #145a66;
  --cand-accent: #1c7a74;
  --cand-ink: #16333f;
  /* 兼容旧变量名 */
  --teal: var(--brand);
  --teal-deep: var(--brand-deep);
  --teal-soft: var(--brand-soft);
  --gold: var(--accent);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    var(--noise),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f6 45%, #e9eef3 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

.demo-banner {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 55%),
    linear-gradient(90deg, #163a58 0%, #1a4468 50%, #2a5a82 100%);
  color: #e8eef4;
  font-size: 13px;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.demo-banner a { color: #b7c9db; }
.demo-banner strong { color: #fff; }
.demo-banner--cand {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 55%),
    linear-gradient(90deg, #1f433e 0%, #254e49 50%, #356960 100%);
}
.demo-banner--cand a { color: #b5d0ca; }

/* ----- login / candidate (formal split) ----- */
html.auth-lock,
html.auth-lock body {
  height: 100%;
  overflow: hidden; /* 登录页禁止滚动条显隐带动整页位移 */
  background-attachment: scroll !important; /* fixed 背景刷新时易闪抖 */
}
.auth-page {
  min-height: 100%;
  height: 100%;
  background: var(--paper);
}
.auth-page.cand-theme {
  background: var(--cand-paper);
}
.auth-stage {
  position: relative;
  height: 100%;
  min-height: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.auth-frame {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%); /* 只水平居中，垂直固定 top */
  width: min(980px, 100%);
  min-height: 560px;
  margin: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 4px rgba(26, 39, 51, 0.04),
    0 24px 56px rgba(26, 39, 51, 0.12);
  border: 1px solid rgba(47, 93, 115, 0.14);
  contain: layout paint;
}
.cand-theme .auth-frame {
  border-color: rgba(15, 111, 106, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 4px rgba(22, 51, 63, 0.04),
    0 24px 56px rgba(15, 111, 106, 0.12);
}
.auth-hero-top img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.auth-hero {
  position: relative;
  padding: 44px 40px 36px;
  color: #eef3f8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* 与登录后壳层 skin-enterprise 同色：石板蓝灰纯色 */
  background: var(--shell);
  overflow: hidden;
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(120deg, #000 18%, transparent 82%);
  opacity: 0.7;
  pointer-events: none;
}
.auth-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  border: 1px solid rgba(142, 182, 201, 0.22);
  box-shadow:
    0 0 0 24px rgba(142, 182, 201, 0.04),
    inset 0 0 40px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-hero-top img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.auth-hero-top img[data-ent-logo] {
  background: #fff;
}
.auth-hero-top .org strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.auth-hero-top .org span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.78;
  letter-spacing: 0.12em;
}
.auth-hero-mid { margin: 36px 0 28px; max-width: 22em; }
.auth-hero-mid .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 5px 10px;
  border: 1px solid rgba(184, 149, 90, 0.55);
  color: #e8d9bc;
  border-radius: 2px;
  margin-bottom: 16px;
  background: rgba(184, 149, 90, 0.12);
}
.auth-hero-mid h1 {
  margin: 0 0 12px;
  font-family: "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(1.75rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  min-height: 2.5em;
}
.auth-hero-mid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 248, 249, 0.82);
}
.auth-hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.auth-hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(242, 248, 249, 0.9);
}
.auth-hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #b7c9db;
  box-shadow: 0 0 0 3px rgba(183, 201, 219, 0.2);
  flex-shrink: 0;
}
.auth-hero-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  opacity: 0.65;
  letter-spacing: 0.04em;
}

.auth-panel {
  padding: 48px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  box-shadow: inset 1px 0 0 rgba(26, 68, 104, 0.04);
}
.auth-panel-head { margin-bottom: 28px; }
.auth-panel-head .role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}
.auth-panel-head .role i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.auth-panel-head h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.auth-panel-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.auth-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f0c9c2;
  background: #fff5f3;
  color: #b42318;
  font-size: 13px;
  line-height: 1.45;
}
.auth-alert-ok {
  border-color: #b7dfc8;
  background: #eef8f1;
  color: #067647;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: #4a5868;
}
.field input {
  width: 100%;
  height: 48px;
  border: 1px solid #cdd4de;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 93, 115, 0.16);
}
.cand-theme .field input:focus {
  border-color: var(--cand);
  box-shadow: 0 0 0 3px rgba(15, 111, 106, 0.16);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.12em;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: none;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: var(--brand-mid);
  color: #fff;
  filter: none;
}
.auth-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: #6a7788;
}
.auth-secure::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.7;
  background:
    linear-gradient(currentColor, currentColor) center 3px / 6px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center 7px / 6px 1.5px no-repeat;
}

/* 学员端登录：与登录后 student.css 顶栏青绿协调 */
.auth-frame--candidate {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 16px 40px rgba(15, 111, 106, 0.1);
  border-color: rgba(15, 111, 106, 0.14);
}
.auth-frame--candidate .auth-hero {
  background: linear-gradient(155deg, #0f6f6a 0%, #145a66 48%, #16333f 100%);
}
.auth-frame--candidate .auth-hero::after {
  border-color: rgba(181, 208, 202, 0.28);
  box-shadow: 0 0 0 28px rgba(181, 208, 202, 0.05);
}
.auth-frame--candidate .auth-hero-mid .eyebrow {
  border-color: rgba(181, 208, 202, 0.45);
  color: #d0e2de;
  background: rgba(255, 255, 255, 0.06);
}
.auth-frame--candidate .auth-hero-points li::before {
  background: #b5d0ca;
  box-shadow: 0 0 0 3px rgba(181, 208, 202, 0.2);
}
.auth-frame--candidate .auth-panel-head .role,
.auth-frame--candidate .auth-panel-head .role i { color: var(--cand); }
.auth-frame--candidate .auth-panel-head .role i { background: var(--cand); }
.auth-frame--candidate .field input:focus {
  border-color: var(--cand);
  box-shadow: 0 0 0 3px rgba(15, 111, 106, 0.16);
}
.auth-frame--candidate .btn-primary {
  background: var(--cand);
  box-shadow: none;
  letter-spacing: 0.16em;
}
.auth-frame--candidate .btn-primary:hover {
  background: var(--cand-deep);
}

@media (max-width: 860px) {
  html.auth-lock,
  html.auth-lock body { overflow: auto; height: auto; }
  .auth-page { height: auto; min-height: 100vh; }
  .auth-stage { height: auto; min-height: 0; padding: 48px 16px 32px; }
  .auth-frame {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-hero { min-height: 280px; padding: 28px 24px 24px; }
  .auth-hero-mid { margin: 22px 0 18px; }
  .auth-hero-mid h1 { font-size: 1.55rem; }
  .auth-panel { padding: 28px 22px 28px; }
}
@media (max-height: 720px) {
  .auth-frame { top: 24px; min-height: 0; }
}

/* ----- app shell + 企业浅色商务侧栏 ----- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: calc(100vh - 34px);
}

.ent-side,
.app-side.ent-side {
  background:
    linear-gradient(180deg, #fbfcfd 0%, #f4f7fa 100%);
  color: var(--ink);
  padding: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  box-shadow:
    1px 0 0 rgba(255, 255, 255, 0.8) inset,
    4px 0 24px rgba(26, 68, 104, 0.03);
}

.ent-side-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    linear-gradient(135deg, #163a58 0%, #1a4468 45%, #2f628c 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
}
.ent-side-brand::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(197, 206, 216, 0.25);
  pointer-events: none;
}
.ent-side-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.ent-side-brand strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.25;
}
.ent-side-brand span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.12em;
}

.ent-tree {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 14px;
}

.ent-tree-root,
.ent-tree-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* L-guide：仅子菜单；母菜单不加导引线 */
.ent-tree-root > .ent-tree-branch {
  padding-left: 0;
  margin-bottom: 2px;
}
.ent-tree-root > .ent-tree-branch::before,
.ent-tree-root > .ent-tree-branch::after {
  content: none;
  display: none;
}

.ent-tree-children .ent-tree-node {
  position: relative;
  padding-left: 12px;
  margin: 1px 0;
}
.ent-tree-children .ent-tree-node::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #d2dae3;
}
.ent-tree-children .ent-tree-node::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  width: 8px;
  border-top: 1px solid #d2dae3;
}
.ent-tree-children .ent-tree-node:last-child::before {
  bottom: auto;
  height: 16px;
}
.ent-tree-children .ent-tree-node:first-child::before {
  top: 8px;
}

.ent-tree-branch-title {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 0 4px 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2c3a4a;
  text-align: left;
  cursor: pointer;
}
.ent-tree-branch-title:hover {
  color: #1a4468;
  background: #edf2f7;
}
.ent-tree-branch.is-open > .ent-tree-branch-title {
  color: #1a4468;
  background: #e8eef4;
}
.ent-tree-branch-title .ent-tree-text { flex: 1; }
.ent-tree-caret {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c5ced8;
  border-radius: 2px;
  background: #fff;
  color: #6a7788;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.ent-tree-caret::before { content: "+"; }
.ent-tree-branch.is-open > .ent-tree-branch-title .ent-tree-caret {
  border-color: #1a4468;
  color: #1a4468;
  background: #fff;
}
.ent-tree-branch.is-open > .ent-tree-branch-title .ent-tree-caret::before {
  content: "−";
}
.ent-tree-branch.is-collapsed > .ent-tree-children {
  display: none;
}
.ent-tree-step {
  min-width: 1.35em;
  color: #8a97a8;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ent-tree-branch.is-open > .ent-tree-branch-title .ent-tree-step {
  color: #1a4468;
}

.ent-tree-children {
  margin: 2px 0 6px 2px;
  padding: 2px 0;
  background: transparent;
  border-radius: 0;
}

.ent-tree-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px 0 10px;
  margin: 0;
  color: #5a6b7c;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.ent-tree-link:hover {
  color: #1a4468;
  background: #edf2f7;
  border-color: #e0e7ef;
}
.ent-tree-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a8b4c0;
  flex-shrink: 0;
}
/* 选中：正式商务深蓝底 + 白字（无渐变、无浮起阴影） */
.ent-tree-link.is-on {
  color: #fff;
  font-weight: 600;
  background: #1a4468;
  border-color: #1a4468;
  box-shadow: none;
}
.ent-tree-link.is-on:hover {
  color: #fff;
  background: #163a58;
  border-color: #163a58;
}
.ent-tree-link.is-on .ent-tree-dot {
  background: #fff;
  box-shadow: none;
}
.ent-tree-leaf:has(.is-on)::before,
.ent-tree-leaf:has(.is-on)::after {
  border-color: #9aafc2;
}

.ent-side-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #8a97a8;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #f5f7fa 0%, #eef2f6 100%);
}

/* list / table pages */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.toolbar .spacer { flex: 1; }
.btn-sm {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.btn-sm:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-sm.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #3a6d9b 0%, #1a4468 100%);
  border-color: #1a4468;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-sm.primary:hover { filter: brightness(1.06); color: #fff; }
.search-input {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  min-width: 180px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  box-shadow: inset 0 1px 2px rgba(26, 68, 104, 0.04);
}
.data-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.data-table th {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  color: #5a6b7a;
  font-weight: 650;
  white-space: nowrap;
  border-bottom-color: #d0d8e2;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #f8fafc; }
.data-table a.row-link {
  color: var(--brand-deep);
  font-weight: 650;
}
.data-table .ops { white-space: nowrap; }
.data-table .ops a {
  margin-right: 10px;
  font-size: 12px;
}
.tag-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #e8f3ec;
  color: #2f6b4f;
}
.tag-status.off {
  background: #f0f2f4;
  color: #7a8794;
}
.mini-radar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #c5d0de;
  background:
    radial-gradient(circle at 50% 50%, rgba(58, 109, 155, 0.18) 0 28%, transparent 29%),
    conic-gradient(from 0deg, #3a6d9b 0 70%, #d8dee6 0);
}

.app-main { padding: 20px 24px 40px; min-width: 0; }
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.app-top h1 { margin: 0; font-size: 1.35rem; }
.app-top .meta { color: var(--muted); font-size: 13px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #5080ad, #1a4468);
  opacity: 0.85;
}
.kpi .label { font-size: 12px; color: var(--muted); }
.kpi .value { font-size: 1.55rem; font-weight: 700; margin-top: 4px; color: var(--teal-deep); letter-spacing: 0.02em; }
.kpi .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 10px;
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(213, 221, 230, 0.85);
}
.panel .chart { height: 260px; width: 100%; }
.panel.todo { min-height: 200px; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.todo-list li:last-child { border-bottom: 0; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
}
.badge.warn { background: #fff3e0; color: var(--warn); }
.badge.danger { background: #fde8e8; color: var(--danger); }

.student-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}
.profile-card, .radar-card, .score-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.profile-card .avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: grid; place-items: center;
  font-size: 28px; color: var(--teal);
  margin-bottom: 12px;
}
.profile-card h2 { margin: 0 0 4px; font-size: 1.15rem; }
.profile-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.profile-card dl { margin: 0; display: grid; gap: 8px; font-size: 13px; }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; font-weight: 600; }
.radar-card .chart { height: 320px; }
.score-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.score-table th, .score-table td {
  text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line);
}
.score-table th { color: var(--muted); font-weight: 600; }

/* ----- cert samples ----- */
.cert-preview-page { background: #e8eef0; padding-bottom: 40px; }
.cert-toolbar {
  width: min(1100px, calc(100% - 24px));
  margin: 16px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cert-sheet {
  width: min(1000px, calc(100% - 24px));
  margin: 0 auto;
  background: #fff;
  border: 1px solid #cfd9dc;
  box-shadow: var(--shadow);
  aspect-ratio: 297 / 210;
  position: relative;
  overflow: hidden;
}
.cert-sheet--portrait {
  width: min(720px, calc(100% - 24px));
  aspect-ratio: 210 / 297;
}
.cert-inner {
  position: absolute;
  inset: 5%;
  border: 2px solid var(--teal);
  padding: 4%;
  display: flex;
  flex-direction: column;
}
.cert-org {
  text-align: center;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: .2em;
  font-size: clamp(14px, 2.2vw, 22px);
}
.cert-title {
  text-align: center;
  margin: 2% 0 1%;
  font-size: clamp(22px, 3.5vw, 36px);
  letter-spacing: .15em;
}
.cert-title-en {
  text-align: center;
  color: var(--muted);
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: .12em;
  margin-bottom: 3%;
}
.cert-body {
  flex: 1;
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.85;
}
.cert-body strong { color: var(--teal-deep); }
.cert-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 3%;
  font-size: clamp(12px, 1.6vw, 15px);
}
.cert-meta .k { color: var(--muted); }
.cert-stamp {
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 88px;
  height: 88px;
  border: 3px solid rgba(163, 59, 59, .75);
  border-radius: 50%;
  color: rgba(163, 59, 59, .85);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-12deg);
  line-height: 1.3;
}
.cert-sheet--post .cert-inner { border-color: #1e4a72; }
.cert-sheet--post .cert-org { color: #1e4a72; }
.cert-sheet--post .cert-title { color: #1e4a72; }
.cert-ribbon {
  display: inline-block;
  background: linear-gradient(90deg, #1e4a72, #3a6d9b);
  color: #fff;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 auto 2%;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  width: min(960px, calc(100% - 32px));
  margin: 24px auto 40px;
}
.hub-card {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hub-card:hover {
  border-color: rgba(58, 109, 155, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 28px rgba(26, 68, 104, 0.1);
  transform: translateY(-1px);
  color: inherit;
}
.hub-card .tag {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 8px;
}
.hub-card strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.hub-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* stub / empty state */
.stub-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(58, 109, 155, 0.08) 0%, rgba(232, 240, 246, 0.9) 12%, #eef3f7 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  font-size: 13px;
  color: #4a5868;
  line-height: 1.6;
  box-shadow: var(--shadow-soft);
}
.palette-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}
.palette-swatches span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.palette-swatches i {
  width: 28px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.08);
}

/* ----- 学员端壳 ----- */
.cand-page { background: var(--cand-paper); min-height: 100vh; }
.cand-top {
  background: #fff;
  border-bottom: 1px solid #d5e0dc;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 52px;
}
.cand-top .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--cand-deep);
  font-size: 14px;
  white-space: nowrap;
}
.cand-top .brand img {
  width: 28px; height: 28px; object-fit: contain;
  background: #fff; border-radius: 4px; border: 1px solid #d5e0dc; padding: 2px;
}
.cand-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.cand-nav a {
  padding: 8px 12px;
  font-size: 13px;
  color: #4a635c;
  border-radius: 4px;
}
.cand-nav a:hover { background: var(--cand-soft); color: var(--cand-deep); }
.cand-nav a.is-on {
  background: var(--cand-soft);
  color: var(--cand-deep);
  font-weight: 650;
}
.cand-user { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cand-main { width: min(960px, calc(100% - 32px)); margin: 20px auto 40px; }
.cand-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    linear-gradient(135deg, #1f433e 0%, #356960 48%, #3d7a70 78%, #4e8f84 100%);
  color: #eef5f3;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 28px rgba(37, 78, 73, 0.16);
  border: 1px solid rgba(37, 78, 73, 0.2);
}
.cand-hero h1 { margin: 0 0 6px; font-size: 1.35rem; }
.cand-hero p { margin: 0; font-size: 13px; opacity: .88; line-height: 1.6; }
.cand-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.cand-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
  border: 1px solid #d5e0dc;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 20px rgba(37, 78, 73, 0.05);
}
.cand-card strong { display: block; color: var(--cand-deep); margin-bottom: 6px; }
.cand-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cand-card a { color: var(--cand); font-size: 13px; font-weight: 650; }
.btn-cand {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #4e8f84 0%, #254e49 100%);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-cand:hover { filter: brightness(1.05); color: #fff; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid, .student-layout { grid-template-columns: 1fr; }
}

/* formal portal extras */
.ent-side-logo-fallback {
  width: 28px; height: 28px; border-radius: 4px; background: #fff; color: #1a4468;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.cand-theme .auth-hero,
.auth-hero--cand {
  /* 对齐学员端顶栏：#0f6f6a → #16333f */
  background: linear-gradient(155deg, #0f6f6a 0%, #145a66 48%, #16333f 100%) !important;
}
.btn-primary--cand,
.cand-theme .btn-primary {
  background: var(--cand) !important;
  box-shadow: none !important;
}
.btn-primary--cand:hover,
.cand-theme .btn-primary:hover {
  background: var(--cand-deep) !important;
}
.role--cand,
.cand-theme .auth-panel-head .role {
  color: var(--cand) !important;
}
.role--cand i,
.cand-theme .auth-panel-head .role i {
  background: var(--cand) !important;
}

/* formal form / flash */
.flash-ok,.flash-err{
  margin:0 0 12px;padding:10px 14px;border-radius:6px;font-size:13px;line-height:1.5;
}
.flash-ok{background:#e8f3ec;color:#2f6b4f;border:1px solid #c5dfd0;}
.flash-err{background:#f8eaea;color:#a33b3b;border:1px solid #e5c7c7;}
.form-panel{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:18px 20px;max-width:720px;margin-bottom:16px;
}
.form-panel h2{margin:0 0 14px;font-size:15px;}
.form-grid .field{margin-bottom:14px;}
.form-grid label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;}
.form-grid input,.form-grid select,.form-grid textarea{
  width:100%;height:38px;border:1px solid var(--line);border-radius:6px;
  padding:0 12px;font:inherit;font-size:13px;background:#fff;
  box-shadow:inset 0 1px 2px rgba(26,68,104,.04);
}
.form-grid textarea{height:88px;padding:10px 12px;resize:vertical;}
.form-grid .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px;}
.empty-hint{padding:28px 16px;text-align:center;color:var(--muted);font-size:13px;}
@media (max-width:720px){.form-grid .row2{grid-template-columns:1fr;}}
