/* 云鲸 HR 系统 · 界面样式
   设计基调：深色侧栏 + 浅色工作区，主色沿用官网草原青与科技蓝 */

:root {
  --ink: #0e1b2c;
  --ink-2: #172a41;
  --ink-3: #24384f;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --line: #e4e9f1;
  --line-2: #eef1f6;
  --text: #17202e;
  --text-2: #5c6b80;
  --text-3: #8b98a9;
  --brand: #0f9b8e;
  --brand-soft: #e6f5f2;
  --blue: #1d6ff2;
  --blue-soft: #e8f0fe;
  --amber: #c9861a;
  --amber-soft: #fdf3e2;
  --red: #d9503f;
  --red-soft: #fdeceb;
  --green: #1f9d63;
  --green-soft: #e7f6ee;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .04), 0 8px 24px rgba(16, 32, 56, .06);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% 0%, #14304a 0%, #0b1626 45%, #08111d 100%);
  padding: 24px;
}
.login-card {
  width: 380px; background: #fff; border-radius: 14px; padding: 32px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.login-brand b { font-size: 16px; letter-spacing: .5px; }
.login-sub { color: var(--text-3); font-size: 12.5px; margin: 0 0 24px; }
.login-hint {
  margin-top: 18px; padding: 10px 12px; border-radius: 8px; background: var(--line-2);
  color: var(--text-2); font-size: 12px; line-height: 1.7;
}
.login-hint code { background: #fff; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }

/* ---------------- 布局 ---------------- */
.shell { display: flex; min-height: 100vh; }

.side {
  width: 216px; flex: 0 0 216px; background: var(--ink); color: #cfdaea;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side .brand {
  padding: 20px 18px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.side .brand .mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand);
  display: flex; align-items: center; justify-content: center; flex: 0 0 30px;
}
.side .brand b { color: #fff; font-size: 14px; display: block; line-height: 1.3; }
.side .brand small { color: #7d8fa6; font-size: 10.5px; letter-spacing: .6px; }

.side nav { padding: 10px 10px; overflow-y: auto; flex: 1; }
.side nav .grp { color: #63768e; font-size: 10.5px; letter-spacing: 1px; padding: 14px 10px 6px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: #c3cfdf; font-size: 13.5px; cursor: pointer; margin-bottom: 2px; transition: .15s;
}
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: var(--brand); color: #fff; font-weight: 500; }
.side nav a .ico {
  width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex: 0 0 20px;
}
.side nav a.on .ico { background: rgba(255, 255, 255, .22); }
.side nav a .badge {
  margin-left: auto; background: var(--red); color: #fff; font-size: 10.5px;
  padding: 1px 6px; border-radius: 9px;
}

.side .foot {
  padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px; color: #7d8fa6; display: flex; align-items: center; gap: 8px;
}
.side .foot .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink-3); color: #dbe6f3;
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 28px;
}
.side .foot .who { flex: 1; min-width: 0; }
.side .foot .who b { display: block; color: #e6eef8; font-size: 12.5px; }
.side .foot .who span { font-size: 11px; color: #7d8fa6; }
.side .foot button {
  background: none; border: 0; color: #7d8fa6; cursor: pointer; font-size: 11.5px;
  padding: 4px 6px; border-radius: 6px;
}
.side .foot button:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 15.5px; margin: 0; font-weight: 500; }
.topbar .crumb { color: var(--text-3); font-size: 12.5px; }
.topbar .sp { flex: 1; }
.topbar .who { font-size: 13px; color: var(--text-2); }

.page { padding: 22px 24px 40px; }

/* ---------------- 通用组件 ---------------- */
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.card.tight { padding: 0; overflow: hidden; }
.card-h {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.card-h h3 { font-size: 14px; margin: 0; font-weight: 500; }
.card-h .sp { flex: 1; }
.card-h .more { font-size: 12px; color: var(--text-3); cursor: pointer; }
.card-h .more:hover { color: var(--blue); }

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .lb { color: var(--text-3); font-size: 12px; margin-bottom: 6px; }
.stat .nm { font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: -.5px; }
.stat .nm small { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 3px; }
.stat .ex { color: var(--text-2); font-size: 12px; margin-top: 6px; }
.stat.brand { border-color: #bfe6e0; background: linear-gradient(180deg, #f4fbfa, #fff); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; font-size: 13px; white-space: nowrap;
  transition: .15s;
}
.btn:hover { border-color: #c9d3e2; background: #fafbfd; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #0d8b80; border-color: #0d8b80; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { background: #1a61d6; }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--line-2); color: var(--text); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 34px; padding: 0 11px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; outline: none; transition: .15s;
}
.field textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 74px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 155, 142, .12);
}

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .sp { flex: 1; }
.toolbar input, .toolbar select {
  height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; outline: none; min-width: 130px;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--brand); }
.search { position: relative; }
.search input { padding-left: 30px; min-width: 220px; }
.search::before {
  content: ""; position: absolute; left: 10px; top: 10px; width: 12px; height: 12px;
  border: 1.6px solid var(--text-3); border-radius: 50%;
}
.search::after {
  content: ""; position: absolute; left: 20px; top: 21px; width: 5px; height: 1.6px;
  background: var(--text-3); transform: rotate(45deg);
}

table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; font-weight: 500; color: var(--text-2); font-size: 12px;
  padding: 10px 12px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tb td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tb tbody tr:hover { background: #fafcfe; }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb .name { font-weight: 500; }
table.tb .sub { color: var(--text-3); font-size: 12px; }
table.tb .num { font-variant-numeric: tabular-nums; }
table.tb .act { white-space: nowrap; }
table.tb .empty { padding: 44px 0; text-align: center; color: var(--text-3); }

.tag {
  display: inline-flex; align-items: center; height: 21px; padding: 0 8px;
  border-radius: 5px; font-size: 11.5px; background: var(--line-2); color: var(--text-2);
  white-space: nowrap;
}
.tag.t-brand { background: var(--brand-soft); color: #0b7a70; }
.tag.t-blue { background: var(--blue-soft); color: #1459c9; }
.tag.t-green { background: var(--green-soft); color: #177a4e; }
.tag.t-amber { background: var(--amber-soft); color: var(--amber); }
.tag.t-red { background: var(--red-soft); color: var(--red); }
.tag.t-gray { background: #f0f2f6; color: #6c7a8e; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }

.bar { height: 6px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

/* ---------------- 首页六大区 ---------------- */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 14px; cursor: pointer; transition: .18s;
}
.mod:hover { border-color: #c9d9ef; box-shadow: var(--shadow); transform: translateY(-2px); }
.mod .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mod .hd .ico {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: #0b7a70;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 500;
}
.mod .hd h4 { margin: 0; font-size: 14px; font-weight: 500; }
.mod .hd span { font-size: 11.5px; color: var(--text-3); display: block; margin-top: 2px; }
.mod .kv { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.mod .kv b { font-size: 22px; font-weight: 500; letter-spacing: -.5px; }
.mod .kv i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.mod .foot { font-size: 12px; color: var(--text-2); border-top: 1px solid var(--line-2); padding-top: 9px; margin-top: 10px; }

.alert-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  background: var(--amber-soft); color: #8a5c0d; font-size: 12.5px; margin-bottom: 8px;
}
.alert-row.red { background: var(--red-soft); color: #a33427; }
.alert-row .sp { flex: 1; }

/* ---------------- 候选人详情 ---------------- */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(12, 24, 40, .45); z-index: 60; display: flex;
  justify-content: flex-end;
}
.drawer {
  width: 980px; max-width: 94vw; background: var(--bg); height: 100%; overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column;
}
.drawer-h {
  background: #fff; padding: 16px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 5;
}
.drawer-h .nm { font-size: 16px; font-weight: 500; }
.drawer-h .meta { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.drawer-h .sp { flex: 1; }
.drawer-body { padding: 18px 22px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.resume { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.resume .rname { font-size: 19px; font-weight: 500; }
.resume .rmeta { color: var(--text-2); font-size: 12.5px; margin: 6px 0 16px; line-height: 1.8; }
.resume .rsec { margin-top: 18px; }
.resume .rsec h5 {
  font-size: 12px; color: var(--text-3); letter-spacing: 1px; margin: 0 0 8px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line);
}
.resume .rline { display: flex; gap: 10px; font-size: 13px; padding: 4px 0; }
.resume .rline em { font-style: normal; color: var(--text-3); min-width: 62px; }
.resume p.text { font-size: 13px; line-height: 1.85; color: #33415a; margin: 0; white-space: pre-wrap; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before {
  content: ""; position: absolute; left: -17px; top: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: #fff; border: 2px solid var(--text-3);
}
.tl-item.ok::before { border-color: var(--green); background: var(--green); }
.tl-item.no::before { border-color: var(--red); background: var(--red); }
.tl-item .t { font-size: 13px; font-weight: 500; }
.tl-item .d { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.7; }
.tl-item .meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

/* ---------------- 模态 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(12, 24, 40, .42); z-index: 80;
  display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 12px; width: 560px; max-width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}
.modal.wide { width: 720px; }
.modal-h {
  padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center;
}
.modal-h h3 { margin: 0; font-size: 15px; font-weight: 500; }
.modal-h .sp { flex: 1; }
.modal-h button { background: none; border: 0; font-size: 20px; color: var(--text-3); cursor: pointer; line-height: 1; }
.modal-b { padding: 18px 20px; max-height: 66vh; overflow-y: auto; }
.modal-f { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }

/* ---------------- 部门树 ---------------- */
.tree { font-size: 13px; }
.tree .node { padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tree .node:hover { background: var(--line-2); }
.tree .node.on { background: var(--brand-soft); color: #0b7a70; font-weight: 500; }
.tree .node .cnt { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tree .kids { padding-left: 16px; border-left: 1px dashed var(--line); margin-left: 14px; }

/* ---------------- 考试 ---------------- */
.q { border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; margin-bottom: 12px; }
.q .stem { font-size: 13.5px; line-height: 1.7; margin-bottom: 10px; }
.q .stem b { color: var(--text-3); font-weight: 500; margin-right: 6px; }
.q .opt {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px;
  cursor: pointer; font-size: 13px; border: 1px solid transparent;
}
.q .opt:hover { background: var(--line-2); }
.q .opt.on { background: var(--brand-soft); border-color: #b9e2dc; color: #0b7a70; }
.q .opt input { accent-color: var(--brand); }

/* ---------------- 其它 ---------------- */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 8px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.toast.err { background: var(--red); }
.empty-box { padding: 40px; text-align: center; color: var(--text-3); font-size: 13px; }
.loading { padding: 40px; text-align: center; color: var(--text-3); font-size: 13px; }
.kvlist { font-size: 13px; }
.kvlist .kv { display: flex; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.kvlist .kv:last-child { border-bottom: 0; }
.kvlist .kv em { font-style: normal; color: var(--text-3); min-width: 84px; }
.kvlist .kv span { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 20px; background: #fff;
  border: 1px solid var(--line); cursor: pointer; color: var(--text-2);
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .side { width: 64px; flex: 0 0 64px; }
  .side .brand b, .side .brand small, .side nav a span.lb, .side .foot .who, .side nav .grp { display: none; }
  .side nav a { justify-content: center; }
  .g4, .g3, .mods, .g2 { grid-template-columns: 1fr; }
  .page { padding: 16px 14px 30px; }
  .topbar { padding: 0 14px; }
}

/* ================= 云鲸管理系统 2.0：门户 / 应用 / 系统 ================= */

/* 标签栏 */
.tabs { display: flex; align-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs > a { padding: 7px 13px; border-radius: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tabs > a:hover { background: #f2f5fa; color: var(--text); }
.tabs > a.on { background: var(--brand-soft); color: #0b7a70; font-weight: 500; }
.tabs .cnt { font-size: 11px; opacity: .7; margin-left: 4px; }
.tabs .sp { flex: 1; }

/* 色块 */
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.08); }

/* 状态点 */
.sdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--text-3); }
.sdot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.sdot.bad { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.sdot.unset { background: #c3ccd8; }

/* 门户配置表单 */
.cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cfg-grid .card { padding: 16px 18px; }
.cfg-title { font-size: 13px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.cfg-title span { font-weight: 400; color: var(--text-3); font-size: 12px; }
.cfg-grid .field { margin-bottom: 11px; }
.cfg-grid .field:last-child { margin-bottom: 0; }
.cfg-grid .field > label { font-size: 12px; color: var(--text-2); }
.cfg-grid input[type="color"] { width: 100%; height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.cfg-switch { display: flex; gap: 18px; flex-wrap: wrap; padding: 4px 0 2px; }
.cfg-switch label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.cfg-switch input { accent-color: var(--brand); width: 15px; height: 15px; }

.config-bar { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.config-bar .sp { flex: 1; }
.config-bar .path { font-size: 11.5px; color: var(--text-3); font-family: ui-monospace, Consolas, monospace; }

/* 行内小标签编辑器 */
.chip-edit { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-edit span { display: inline-flex; align-items: center; gap: 6px; background: #f2f5fa; border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: 12px; }
.chip-edit span b { cursor: pointer; color: var(--text-3); font-weight: 400; }
.chip-edit span b:hover { color: var(--red); }

/* JSON 编辑器 */
.json-editor { width: 100%; min-height: 360px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.7; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfe; resize: vertical; }
.json-editor:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }

/* 表格紧凑版 */
table.tb.mini th, table.tb.mini td { padding: 8px 8px; font-size: 12.5px; }

/* 应用卡片 */
.app-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.app-card:last-child { border-bottom: 0; }
.app-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--brand-soft); color: #0b7a70; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.app-card .nm { font-size: 13.5px; font-weight: 500; }
.app-card .meta { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.6; }
.app-card .right { margin-left: auto; text-align: right; flex: none; }
.app-card .right .tag { margin-bottom: 4px; }

/* 员工抽屉内的分区 */
.emp-sec { margin-bottom: 18px; }
.emp-sec h5 { margin: 0 0 8px; font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: .04em; }
.emp-hero { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.emp-hero .av { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: #0b7a70; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.emp-hero .nm { font-size: 17px; font-weight: 600; }
.emp-hero .sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }

@media (max-width: 1100px) {
  .cfg-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ================= 通知铃铛与面板 ================= */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer; border: 1px solid var(--line); background: var(--panel); }
.bell:hover { background: #f2f5fa; }
.bell .bi { font-size: 12px; color: var(--text-2); }
.bell .badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
.notice-panel { position: absolute; top: 58px; right: 22px; width: 380px; max-height: 460px; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20, 30, 45, .12); display: flex; flex-direction: column; overflow: hidden; }
.np-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.np-h b { font-size: 13px; }
.np-b { overflow: auto; padding: 4px 0; }
.np-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.np-item.unread { background: #f7fbfe; }
.np-item .lv { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--text-3); }
.np-item .lv.warn { background: var(--amber, #ba7517); }
.np-item .lv.urgent { background: var(--red); }
.np-item .lv.info { background: var(--brand); }
.np-t { flex: 1; min-width: 0; }
.np-t b { font-size: 12.5px; font-weight: 500; }
.np-t p { margin: 3px 0 4px; font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* ================= 附件 ================= */
.attach-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.attach-row a { color: var(--brand); text-decoration: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-row a:hover { text-decoration: underline; }
.upload-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px;
  border: 1px dashed var(--line); border-radius: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.upload-btn:hover { border-color: var(--brand); color: #0b7a70; background: var(--brand-soft); }

/* ================= 门户访问统计 ================= */
.mtrend { display: flex; align-items: flex-end; gap: 4px; height: 46px; flex: 1; }
.mtrend i { flex: 1; background: linear-gradient(180deg, var(--brand), rgba(10,95,208,.35));
  border-radius: 3px 3px 0 0; min-height: 3px; }

@media (max-width: 760px) {
  .notice-panel { right: 10px; left: 10px; width: auto; }
}
