/* ==========================================================
   招聘台账系统 · 活力多彩 × 现代科技风
   电光紫 → 科技蓝 → 霓虹青 主渐变，大胆色块 + 彩色光晕
   ========================================================== */
:root {
  --primary: #7c3aed;
  --primary-600: #6d28d9;
  --primary-soft: #f3e8ff;
  --accent: #06b6d4;
  --grad-main: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 55%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  --grad-cool: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --grad-pop: linear-gradient(135deg, #f43f5e 0%, #d946ef 100%);
  --bg: #eef1fb;
  --surface: #ffffff;
  --border: #e4e4f7;
  --text: #12122b;
  --text-2: #4b4b68;
  --text-3: #8f8fb0;
  --green: #10b981;
  --green-soft: #d8faf0;
  --orange: #f97316;
  --orange-soft: #ffedd5;
  --red: #f43f5e;
  --red-soft: #ffe4e9;
  --blue: #3b82f6;
  --blue-soft: #dbeafe;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --gray-soft: #f4f5fb;
  --sidebar-w: 248px;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(80, 60, 180, .07);
  --shadow: 0 6px 22px rgba(80, 60, 180, .1);
  --shadow-lg: 0 16px 44px rgba(60, 40, 160, .18);
  --glow-main: 0 6px 20px rgba(124, 58, 237, .38);
  --transition: all .22s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(ellipse 520px 340px at 92% -6%, rgba(6, 182, 212, .12), transparent 60%),
    radial-gradient(ellipse 560px 380px at -8% 12%, rgba(139, 92, 246, .13), transparent 60%),
    radial-gradient(ellipse 480px 320px at 55% 108%, rgba(236, 72, 153, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-600); }

/* ============ 侧边导航栏（深空紫 + 霓虹激活） ============ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #1b1442 0%, #131034 45%, #0c0a24 100%);
  color: #b9b7e6;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.sidebar::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 240px 200px at 110% -4%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(ellipse 220px 190px at -20% 104%, rgba(236, 72, 153, .12), transparent 60%);
  pointer-events: none;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 20px;
  position: relative; z-index: 1;
}
.sidebar-brand .logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: var(--glow-main);
  flex-shrink: 0;
}
.sidebar-brand .name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.sidebar-brand .sub { font-size: 11px; color: #6d6aa8; margin-top: -2px; }

.sidebar-nav { padding: 8px 14px; flex: 1; position: relative; z-index: 1; }
.sidebar-nav .section {
  font-size: 11px; color: #57538f; font-weight: 700;
  letter-spacing: 1.5px; padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10.5px 12px;
  border-radius: 11px;
  color: #9c99d6;
  font-size: 14px; font-weight: 600;
  margin-bottom: 3px;
  transition: var(--transition);
  position: relative;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item:hover { background: rgba(139, 92, 246, .14); color: #e6e4ff; }
.nav-item.active {
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--glow-main);
}
.nav-item.active svg { opacity: 1; }

.sidebar-foot { padding: 14px; border-top: 1px solid rgba(139, 92, 246, .18); position: relative; z-index: 1; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  background: rgba(139, 92, 246, .12);
  margin-bottom: 8px;
}
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-warm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.user-chip .info { min-width: 0; }
.user-chip .uname { font-size: 13px; font-weight: 700; color: #f0efff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .urole { font-size: 11px; color: #6d6aa8; }
.logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 9px;
  border-radius: 11px;
  color: #9c99d6; font-size: 13px;
  border: 1px solid rgba(139, 92, 246, .22);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.logout-btn:hover { background: rgba(244, 63, 94, .18); color: #fda4af; border-color: rgba(244, 63, 94, .4); }
.logout-btn svg { width: 15px; height: 15px; }

/* ============ 主内容区 ============ */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.topbar {
  display: none;
  align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 50;
}
.topbar .tb-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.topbar .tb-brand .logo {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad-main);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  box-shadow: var(--glow-main);
}
.hamburger {
  width: 38px; height: 38px;
  border: none; border-radius: 11px;
  background: var(--gray-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.hamburger svg { width: 20px; height: 20px; }

.content { padding: 28px 32px 48px; max-width: 1240px; width: 100%; margin: 0 auto; flex: 1; }

/* ============ 页头（渐变标题） ============ */
.page-head { margin-bottom: 22px; }
.page-head .crumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-3); margin-bottom: 4px;
}
.page-head .crumb a { color: var(--text-3); }
.page-head .crumb a:hover { color: var(--primary); }
.page-head .crumb svg { width: 13px; height: 13px; }
.page-head h1 {
  font-size: 23px; font-weight: 900; letter-spacing: -.4px;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: inline-block;
}
.page-head .desc { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ============ 卡片 ============ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 22px;
  margin-bottom: 20px;
  position: relative;
}
.card-title { font-size: 15.5px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title svg { width: 17px; height: 17px; color: var(--primary); }

/* ============ 统计卡片（四色大胆渐变色块） ============ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: default;
  color: #fff;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  top: -48px; right: -34px;
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-4px) scale(1.015); }
.stat-card.c-primary { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); box-shadow: 0 8px 24px rgba(124, 58, 237, .35); }
.stat-card.c-primary:hover { box-shadow: 0 14px 34px rgba(124, 58, 237, .48); }
.stat-card.c-green   { background: var(--grad-cool); box-shadow: 0 8px 24px rgba(6, 182, 212, .35); }
.stat-card.c-green:hover { box-shadow: 0 14px 34px rgba(6, 182, 212, .48); }
.stat-card.c-orange  { background: var(--grad-warm); box-shadow: 0 8px 24px rgba(249, 115, 22, .32); }
.stat-card.c-orange:hover { box-shadow: 0 14px 34px rgba(236, 72, 153, .42); }
.stat-card.c-red     { background: var(--grad-pop); box-shadow: 0 8px 24px rgba(244, 63, 94, .32); }
.stat-card.c-red:hover { box-shadow: 0 14px 34px rgba(217, 70, 239, .42); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .2);
  color: #fff;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.i-total, .stat-icon.i-wait, .stat-icon.i-onboard, .stat-icon.i-today { background: rgba(255, 255, 255, .2); color: #fff; }
.stat-num { font-size: 30px; font-weight: 900; line-height: 1.15; letter-spacing: -.5px; color: #fff; }
.stat-label { font-size: 12.5px; color: rgba(255, 255, 255, .85); font-weight: 600; }
.stat-card.c-primary .stat-num, .stat-card.c-orange .stat-num,
.stat-card.c-green .stat-num, .stat-card.c-red .stat-num { color: #fff; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9.5px 18px;
  border: none; border-radius: 11px;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: var(--glow-main); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(59, 130, 246, .5); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text-2); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-success { background: var(--grad-cool); color: #fff; box-shadow: 0 4px 14px rgba(6, 182, 212, .35); }
.btn-success:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 8px 22px rgba(16, 185, 129, .45); }
.btn-danger-sm { background: var(--red-soft); color: var(--red); }
.btn-danger-sm:hover { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(244, 63, 94, .4); }
.btn-warn-sm { background: var(--orange-soft); color: #c2410c; }
.btn-warn-sm:hover { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(249, 115, 22, .4); }
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 9px; }

/* ============ 表单 ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.form-group .required::after { content: ' *'; color: var(--red); }
.form-control {
  padding: 9.5px 13px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: 14px; font-family: inherit;
  color: var(--text);
  background: var(--gray-soft);
  transition: var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .13);
}
textarea.form-control { resize: vertical; min-height: 68px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ============ 筛选栏 ============ */
.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; }
.filter-bar .form-control { background: #fff; }

/* ============ 工具栏 / 表格 ============ */
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.record-count { font-size: 13px; color: var(--text-3); font-weight: 600; }
.record-count b { color: var(--primary); font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 0 -22px -22px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.data-table thead th {
  background: linear-gradient(135deg, rgba(139, 92, 246, .1), rgba(6, 182, 212, .1));
  color: var(--primary-600);
  font-size: 12.5px; font-weight: 800; letter-spacing: .3px;
  padding: 11px 14px; text-align: left;
  border-bottom: 2px solid rgba(139, 92, 246, .25);
  white-space: nowrap;
}
.data-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: linear-gradient(90deg, rgba(139, 92, 246, .05), rgba(6, 182, 212, .05)); }
.cell-name { font-weight: 700; font-size: 14px; }
.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.actions { display: flex; gap: 6px; align-items: center; }
.actions form { margin: 0; }

/* ============ 状态标签（高饱和实心彩块） ============ */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 12px; font-weight: 800;
  color: #fff;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.tag-onboard { background: var(--grad-cool); box-shadow: 0 2px 8px rgba(16, 185, 129, .35); }
.tag-leave   { background: linear-gradient(135deg, #64748b, #475569); box-shadow: 0 2px 8px rgba(71, 85, 105, .3); }
.tag-drop    { background: linear-gradient(135deg, #a8a8c2, #8f8fb0); box-shadow: 0 2px 8px rgba(143, 143, 176, .3); }
.tag-wait    { background: var(--grad-warm); }
.tag-pass    { background: var(--grad-main); }
.tag-fail    { background: var(--grad-pop); }

/* ============ 徽章 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 9px;
  font-size: 12.5px; font-weight: 800;
}
.badge svg { width: 13px; height: 13px; }
.badge-soon   { background: var(--primary-soft); color: var(--primary-600); border: 1px solid rgba(124, 58, 237, .25); }
.badge-today  { background: var(--grad-pop); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
.badge-over   { background: var(--gray-soft); color: var(--text-3); }
.badge-empty  { background: var(--gray-soft); color: var(--text-3); font-weight: 600; }
.badge-days   { background: var(--green-soft); color: #047857; border: 1px solid rgba(16, 185, 129, .3); }
.badge-rebate { background: var(--orange-soft); color: #c2410c; border: 1px solid rgba(249, 115, 22, .35); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .4); } 50% { box-shadow: 0 0 0 5px rgba(244, 63, 94, 0); } }

/* ============ 离职核算条 ============ */
.settle-card { border-left: 4px solid; border-image: linear-gradient(180deg, #8b5cf6, #06b6d4) 1; }
.settle-summary { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 16px; }
.settle-stat .num {
  font-size: 24px; font-weight: 900; letter-spacing: -.4px; line-height: 1.2;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.settle-stat .lab { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.settle-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.settle-table th, .settle-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.settle-table th { font-size: 12.5px; color: var(--primary-600); font-weight: 800; background: linear-gradient(90deg, rgba(139, 92, 246, .07), rgba(6, 182, 212, .07)); }
.settle-table tr:last-child td { border-bottom: none; }
.settle-note { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }

/* ============ 空状态 ============ */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-3); }
.empty-state .icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 24px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--glow-main);
}
.empty-state .icon svg { width: 34px; height: 34px; }
.empty-state .tt { font-size: 15.5px; font-weight: 800; color: var(--text-2); margin-bottom: 4px; }
.empty-state .dd { font-size: 13px; margin-bottom: 18px; }

/* ============ 最近登记列表（看板） ============ */
.recent-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.recent-item:last-child { border-bottom: none; }
.recent-item .avatar {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
  background: var(--grad-main);
  box-shadow: 0 3px 10px rgba(124, 58, 237, .3);
}
.recent-item .r-info { flex: 1; min-width: 200px; }
.recent-item .r-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recent-item .r-meta {
  font-size: 12px; color: var(--text-3); margin-top: 3px;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.recent-item .chip {
  display: inline-flex; align-items: center;
  padding: 1px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 800;
  color: #fff;
}
.recent-item .chip-male   { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.recent-item .chip-female { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.recent-item .meta-seg { color: var(--text-2); }
.recent-item .meta-phone {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; letter-spacing: .4px;
  color: var(--text-2);
  background: var(--gray-soft);
  border: 1px solid var(--border);
  padding: 0 7px; border-radius: 6px;
}
.recent-item .meta-factory {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-2); font-weight: 700;
}
.recent-item .meta-factory svg { width: 12px; height: 12px; color: var(--accent); }
.phone-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px;
  background: var(--grad-cool);
  border: none;
  border-radius: 99px;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(6, 182, 212, .3);
}
.phone-chip svg { width: 13px; height: 13px; color: #fff; }
.phone-chip .pc-label { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .9); }
.phone-chip .pc-num {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px; font-weight: 800; letter-spacing: .4px;
  color: #fff;
}
.phone-chip:hover { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 5px 16px rgba(16, 185, 129, .45); transform: translateY(-1px); }
.recent-item .r-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  flex-shrink: 0;
}

/* ============ 返费编辑器 ============ */
.rebate-box {
  border: 1.5px dashed rgba(139, 92, 246, .45);
  border-radius: 13px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .05), rgba(6, 182, 212, .05));
}
.rebate-box .rebate-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; gap: 10px; flex-wrap: wrap;
}
.rebate-row {
  display: grid;
  grid-template-columns: 92px 1.2fr 1fr 30px;
  gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.rebate-row .rb-del {
  width: 28px; height: 28px;
  border: none; border-radius: 9px;
  background: var(--red-soft); color: var(--red);
  font-size: 14px; cursor: pointer;
  transition: var(--transition);
}
.rebate-row .rb-del:hover { background: var(--red); color: #fff; }
.rebate-row .rb-preview {
  grid-column: 1 / -1;
  font-size: 12px; font-weight: 800;
  color: var(--primary-600);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 3px 10px;
  width: fit-content;
}
.rebate-row .rb-preview.done { color: #047857; background: var(--green-soft); }
.rebate-row .rb-preview:empty { display: none; }
.rebate-progress { margin-top: 10px; height: 7px; border-radius: 99px; background: var(--border); overflow: hidden; display: none; }
.rebate-progress.show { display: block; }
.rebate-progress .bar { height: 100%; background: var(--grad-cool); border-radius: 99px; transition: width .3s; }

/* ============ 打卡管理 ============ */
.mark-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mark-actions form { margin: 0; }
.cal-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.cal-toolbar b { font-size: 15px; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-head {
  text-align: center; font-size: 12px; font-weight: 800;
  color: var(--text-3); padding: 4px 0;
}
.cal-cell {
  min-height: 52px; border-radius: 11px;
  border: 1.5px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; background: #fff; cursor: pointer; user-select: none;
  transition: var(--transition); position: relative;
}
.cal-cell .d { font-size: 13.5px; font-weight: 700; }
.cal-cell .s { font-size: 10.5px; font-weight: 800; }
.cal-cell:hover:not(.off) { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124, 58, 237, .18); }
.cal-cell.w-end:not(.work):not(.rest) { background: var(--gray-soft); }
.cal-cell.work { background: var(--green-soft); border-color: var(--green); color: #047857; }
.cal-cell.rest { background: #eef0fa; border-color: #c5c7e8; color: #6b6b93; }
.cal-cell.off { opacity: .45; cursor: not-allowed; background: #fafafd; }
.cal-cell.today::after {
  content: '今'; position: absolute; top: 3px; right: 5px;
  font-size: 9px; font-weight: 800; color: #fff;
  background: var(--grad-main);
  border-radius: 99px; padding: 0 4px;
}
.cal-legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px;
  font-size: 12px; color: var(--text-3);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend .lg {
  width: 12px; height: 12px; border-radius: 4px; display: inline-block;
  border: 1.5px solid var(--border); background: #fff;
}
.cal-legend .lg-work { background: var(--green-soft); border-color: var(--green); }
.cal-legend .lg-rest { background: #eef0fa; border-color: #c5c7e8; }
.cal-legend .lg-off { opacity: .5; background: #fafafd; }

/* ============ Toast 提示 ============ */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 13px;
  padding: 12px 18px;
  font-size: 13.5px; font-weight: 700;
  color: var(--text-2);
  box-shadow: var(--shadow-lg);
  animation: slideIn .35s cubic-bezier(.21, 1.02, .73, 1);
  min-width: 200px;
}
.toast svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.toast.hide { opacity: 0; transform: translateX(30px); transition: all .4s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ============ 遮罩层（移动端侧栏） ============ */
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(19, 16, 52, .55);
  z-index: 90;
  backdrop-filter: blur(2px);
}

/* ============ 登录/注册页 ============ */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #0c0a24;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
/* 科技网格底纹 */
.auth-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: gridShift 24s linear infinite;
  pointer-events: none;
  z-index: 0;
}
/* 浮动光晕层 */
.auth-wrap::after {
  content: '';
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 620px 420px at 18% 12%, rgba(139, 92, 246, .42), transparent 55%),
    radial-gradient(ellipse 560px 400px at 85% 88%, rgba(6, 182, 212, .38), transparent 55%),
    radial-gradient(ellipse 420px 320px at 80% 8%, rgba(236, 72, 153, .24), transparent 55%);
  animation: glowFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
/* 漂浮光点 */
.auth-wrap .auth-dot {
  position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(139, 92, 246, .7);
  opacity: .6;
  animation: dotFloat linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes glowFloat {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.08); }
  100% { transform: translate(3%, -2%) scale(1.02); }
}
@keyframes gridShift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}
@keyframes dotFloat {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: .7; }
  90%  { opacity: .5; }
  100% { transform: translateY(-110vh); opacity: 0; }
}
/* ===== 蜡笔小新 & 小白 奔跑动画 ===== */
.shin-run {
  position: absolute;
  bottom: 8%;
  left: -15%;
  display: flex; align-items: flex-end; gap: 6px;
  z-index: 0;
  animation: shinMove 13s linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  transform: scaleX(-1);
}
.shin-run .shin-chan { animation: shinBounce .42s ease-in-out infinite; }
.shin-run .shiro { animation: shiroBounce .32s ease-in-out infinite; }
/* 腿 & 手臂交替摆动 */
.shin-chan .leg-f, .shin-chan .leg-b,
.shin-chan .arm-f, .shin-chan .arm-b,
.shiro .wl { transform-box: fill-box; }
.shin-chan .leg-f { animation: legFront .42s ease-in-out infinite; transform-origin: top center; }
.shin-chan .leg-b { animation: legBack .42s ease-in-out infinite; transform-origin: top center; }
.shin-chan .arm-f { animation: armFront .42s ease-in-out infinite; transform-origin: top center; }
.shin-chan .arm-b { animation: armBack .42s ease-in-out infinite; transform-origin: top center; }
.shiro .wl { animation: shiroLeg .32s ease-in-out infinite; transform-origin: top center; }
.shiro .wl.delay { animation-delay: -.16s; }
/* 尘土 */
.shin-run .dust {
  position: absolute; bottom: -2px; left: -18px;
  width: 30px; height: 8px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.55), transparent 70%);
  animation: dust .42s ease-out infinite;
}
@keyframes shinMove {
  0%   { left: -15%; }
  100% { left: 115%; }
}
@keyframes shinBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes shiroBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-5px) rotate(2deg); }
}
@keyframes legFront {
  0%, 100% { transform: rotate(28deg); }
  50%      { transform: rotate(-28deg); }
}
@keyframes legBack {
  0%, 100% { transform: rotate(-28deg); }
  50%      { transform: rotate(28deg); }
}
@keyframes armFront {
  0%, 100% { transform: rotate(-30deg); }
  50%      { transform: rotate(30deg); }
}
@keyframes armBack {
  0%, 100% { transform: rotate(30deg); }
  50%      { transform: rotate(-30deg); }
}
@keyframes shiroLeg {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes dust {
  0%   { transform: translateX(0) scale(1); opacity: .6; }
  100% { transform: translateX(-26px) scale(1.6); opacity: 0; }
}
@media (max-width: 900px) {
  .shin-run { bottom: 4%; transform: scale(.8); }
}
.auth-card {
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; max-width: 860px;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(124, 58, 237, .35);
  position: relative;
  z-index: 1;
}
.auth-side {
  background: var(--grad-main);
  color: #fff;
  padding: 44px 38px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-side::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  bottom: -110px; right: -90px;
}
.auth-side::before {
  content: '';
  position: absolute;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255,255,255,.09);
  top: -70px; left: -60px;
}
.auth-side .a-logo {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  backdrop-filter: blur(4px);
}
.auth-side h2 { font-size: 24px; font-weight: 900; line-height: 1.35; position: relative; z-index: 1; }
.auth-side p { font-size: 13.5px; opacity: .9; margin-top: 10px; position: relative; z-index: 1; }
.auth-side .a-feats { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.auth-side .a-feat { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .96; }
.auth-side .a-feat svg { width: 16px; height: 16px; flex-shrink: 0; }
.auth-form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 21px; font-weight: 900; margin-bottom: 4px; }
.auth-form .sub { font-size: 13px; color: var(--text-3); margin-bottom: 26px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-3); }
.auth-switch a { font-weight: 700; }
.auth-toast { margin-bottom: 16px; }

/* ============ 移动端适配 ============ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  body.sidebar-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
  body.sidebar-open .overlay { display: block; }
  .main { margin-left: 0; }
  .topbar { display: flex; }
  .content { padding: 20px 16px 44px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 15px; gap: 12px; }
  .stat-num { font-size: 23px; }
  .stat-icon { width: 42px; height: 42px; border-radius: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .filter-bar { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 19px; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px -16px; }
  .auth-card { grid-template-columns: 1fr; max-width: 420px; }
  .auth-side { display: none; }
  .auth-form { padding: 34px 26px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .btn { width: 100%; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================
   RBAC：专员总览 / 消息中心 / 账号管理
   ========================================================== */
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f43f5e, #d946ef);
  color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(244, 63, 94, .45);
}
.nav-item { justify-content: flex-start; }
.nav-item .nav-badge { flex-shrink: 0; }

.tag-wait {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 3px 10px rgba(249, 115, 22, .35);
}

.dot-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.dot-state::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
}
.dot-state.on { background: var(--green-soft); color: #059669; }
.dot-state.on::before { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.dot-state.off { background: var(--gray-soft); color: var(--text-3); }
.dot-state.off::before { background: #b9b9cd; }

/* ---- 专员总览卡片 ---- */
.recruiter-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.recruiter-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.recruiter-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0;
  width: 4px; background: var(--grad-main);
  opacity: 0; transition: var(--transition);
}
.recruiter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--text);
}
.recruiter-card:hover::before { opacity: 1; }
.recruiter-card.disabled { opacity: .62; filter: saturate(.4); }
.rc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rc-avatar {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: var(--glow-main);
  flex-shrink: 0;
}
.rc-info { min-width: 0; flex: 1; }
.rc-name { font-size: 15.5px; font-weight: 800; }
.rc-sub { font-size: 12px; color: var(--text-3); }
.rc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 12px;
}
.rc-stat {
  background: var(--gray-soft); border-radius: 11px;
  padding: 9px 6px; text-align: center;
}
.rc-stat .num { font-size: 17px; font-weight: 900; color: var(--text); }
.rc-stat.hot { background: var(--orange-soft); }
.rc-stat.hot .num { color: var(--orange); }
.rc-stat .lab { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.rc-factories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 22px; }
.factory-tag {
  font-size: 11.5px; font-weight: 600;
  background: var(--primary-soft); color: var(--primary-600);
  padding: 2px 9px; border-radius: 999px;
}
.rc-settle { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rc-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--border); padding-top: 10px;
}

/* ---- 消息中心 ---- */
.msg-card { border-left: 4px solid var(--primary); }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.msg-content { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.msg-candidate {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--gray-soft); border-radius: 11px;
  padding: 10px 14px; margin-bottom: 14px;
}
.approve-form { margin-top: 4px; }
.approve-fields {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end;
}
.approve-fields .form-group { min-width: 150px; }
.msg-history { display: flex; flex-direction: column; gap: 10px; }
.msg-hi-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--gray-soft); border-radius: 11px;
  padding: 10px 14px; font-size: 13.5px;
}
.msg-hi-row .cell-sub { flex-shrink: 0; }

/* ---- 移动端补充 ---- */
@media (max-width: 900px) {
  .recruiter-grid { grid-template-columns: 1fr; }
  .rc-stats { grid-template-columns: repeat(4, 1fr); }
  .approve-fields { flex-direction: column; align-items: stretch; }
  .approve-fields .btn { margin-top: 0 !important; width: 100%; }
}

/* ==========================================================
   数据报表（可视化）
   ========================================================== */
.stats-grid.five { grid-template-columns: repeat(5, 1fr); }
.stat-card.c-waitcard {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, .32);
}
.stat-card.c-waitcard:hover { box-shadow: 0 14px 34px rgba(249, 115, 22, .42); }
.stat-lab { font-size: 12.5px; opacity: .92; font-weight: 600; }

.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.report-grid .card { margin-bottom: 20px; }

.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label {
  width: 110px; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: right;
}
.bar-track {
  flex: 1; height: 14px;
  background: var(--gray-soft); border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 999px;
  min-width: 6px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.bar-fill.c-main { background: var(--grad-main); box-shadow: 0 2px 8px rgba(124, 58, 237, .3); }
.bar-fill.c-onboard { background: var(--grad-cool); }
.bar-fill.c-wait { background: linear-gradient(135deg, #f59e0b, #f97316); }
.bar-fill.c-leave { background: var(--grad-pop); }
.bar-fill.c-drop { background: #b9b9cd; }
.bar-fill.c-other { background: #8f8fb0; }
.bar-count {
  width: 40px; flex-shrink: 0;
  font-size: 14px; font-weight: 800; color: var(--text);
}

.vchart {
  display: flex; align-items: stretch; justify-content: space-around;
  gap: 10px; height: 190px; padding-top: 6px;
}
.vcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.vnum { font-size: 13px; font-weight: 800; color: var(--text); }
.vbar-track {
  flex: 1; width: 100%; max-width: 44px;
  display: flex; align-items: flex-end;
  background: var(--gray-soft); border-radius: 10px;
  overflow: hidden;
}
.vbar {
  width: 100%;
  background: var(--grad-main);
  border-radius: 10px 10px 0 0;
  min-height: 4px;
  box-shadow: 0 -2px 10px rgba(124, 58, 237, .25);
  transition: height .5s cubic-bezier(.4, 0, .2, 1);
}
.vlab { font-size: 11.5px; color: var(--text-3); font-weight: 600; }

.settle-flex { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ring {
  width: 148px; height: 148px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.ring-hole {
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-num { font-size: 24px; font-weight: 900; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ring-lab { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.settle-nums { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.sn-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-soft); border-radius: 11px;
  padding: 9px 14px; font-size: 13.5px;
}
.sn-row .lab { color: var(--text-2); }
.sn-row b { font-size: 15px; }

@media (max-width: 900px) {
  .stats-grid.five { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .bar-label { width: 84px; }
  .settle-flex { justify-content: center; }
}

/* ==========================================================
   修改密码模态框 + 账号页操作
   ========================================================== */
.logout-btn.pwd-btn { margin-bottom: 8px; color: #9c99d6; }
.logout-btn.pwd-btn:hover { background: rgba(59, 130, 246, .18); color: #93c5fd; border-color: rgba(59, 130, 246, .4); }
.modal-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 15, 35, .65); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.modal-card {
  width: 400px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}
.modal-card > form { padding: 22px 24px 24px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(6,182,212,.08));
  border-bottom: 1px solid var(--border);
}
.modal-head span { font-weight: 800; font-size: 16px; color: var(--text); }
.modal-close {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: rgba(0,0,0,.06); color: var(--text); }
.modal-card .form-group { margin-bottom: 16px; }
.modal-card .form-group label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.modal-card .form-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal-card .btn { min-width: 88px; }
