/* ==========================================================
   智能招聘系统 · 视觉设计系统 v2.0（对标 Moka 现代 HR SaaS）
   渐变 + 玻璃质感 + 柔和阴影 + 微动效
   ========================================================== */
:root {
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #2563eb;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --fuchsia: #d946ef;

  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --purple: #8b5cf6;
  --purple-soft: #ede9fe;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --bg: #f3f5fb;
  --border: #e7eaf3;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 8px -2px rgba(15,23,42,.06);
  --shadow-md: 0 2px 6px -2px rgba(15,23,42,.06), 0 10px 28px -10px rgba(79,70,229,.14);
  --shadow-lg: 0 16px 48px -12px rgba(15,23,42,.22);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(6,182,212,.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  position: relative;
}

/* 全屏背景图（通过 JS 控制透明度/模糊度/图片） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--bg-image, url('/images/bg-default.png'));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--bg-opacity, 0.18);
  filter: blur(var(--bg-blur, 0px));
  transition: opacity .25s, filter .25s;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ============ 布局骨架 ============ */
.app { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 236px;
  background:
    radial-gradient(320px 240px at 20% -10%, rgba(139,92,246,.35), transparent 60%),
    radial-gradient(300px 280px at 110% 60%, rgba(37,99,235,.28), transparent 55%),
    linear-gradient(180deg, #0e1428 0%, #131a38 50%, #1b1440 100%);
  color: #fff;
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 4px 0 24px -12px rgba(15,23,42,.35);
}

.logo { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.logo-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%);
  box-shadow: 0 6px 16px -4px rgba(139,92,246,.55), inset 0 1px 0 rgba(255,255,255,.35);
  font-size: 20px;
}
.logo-text h1 { font-size: 24px; font-weight: 800; letter-spacing: .6px;
  background: linear-gradient(90deg, #fff 60%, #c7d2fe 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text span { font-size: 11px; color: rgba(199,210,254,.65); letter-spacing: 1.4px; text-transform: uppercase; font-family: var(--font-mono); }

.nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10.5px 13px;
  background: transparent; border: none; border-radius: 11px; color: rgba(203,213,225,.78);
  font-size: 13.5px; text-align: left; transition: all .18s; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,.9), rgba(139,92,246,.75));
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px -6px rgba(99,102,241,.65), inset 0 1px 0 rgba(255,255,255,.18);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 22%; bottom: 22%; width: 3.5px;
  border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #a5b4fc, #e879f9);
}
.nav-icon { font-size: 16px; width: 22px; text-align: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.nav-badge {
  margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(135deg, #f472b6, #d946ef); color: #fff;
  padding: 2px 7px; border-radius: 20px; box-shadow: 0 2px 8px -2px rgba(217,70,239,.6);
}
.nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }

/* ---------- 六大板块分组（v4.29） ---------- */
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-group + .nav-group { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.08); }
.nav-group-title {
  display: flex; align-items: center; gap: 7px;
  padding: 2px 10px 4px; cursor: pointer; user-select: none;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  color: rgba(148,163,184,.85); text-transform: uppercase;
}
.nav-group-title:hover { color: rgba(226,232,240,.95); }
.nav-group-title .nav-edit { font-size: 10px; margin-left: 2px; }
.nav-group-title:hover .nav-edit { opacity: 1; }
.nav-group-icon { font-size: 13px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.nav-group-empty {
  margin: 0 10px 2px; padding: 7px 12px; border-radius: 9px;
  font-size: 11.5px; color: rgba(148,163,184,.45);
  background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.08);
  text-align: center;
}

.sidebar-footer { padding: 15px 18px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11.5px; color: rgba(203,213,225,.6); display: flex; justify-content: space-between; align-items: center; }
.sync-status { display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.online { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.22); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } }
.version { font-family: var(--font-mono); font-size: 10px; opacity: .7; }
.footer-actions { display: flex; align-items: center; gap: 8px; }
.settings-btn {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(203,213,225,.75); border-radius: 8px; padding: 3px 8px; font-size: 13px;
  cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.settings-btn:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-1px); }

/* 导航项悬停重命名 */
.nav-edit {
  margin-left: auto; font-size: 11px; color: rgba(203,213,225,.5);
  cursor: pointer; padding: 2px 5px; border-radius: 6px;
  opacity: 0; transition: all .15s; flex-shrink: 0; line-height: 1;
}
.nav-item:hover .nav-edit { opacity: 1; }
.nav-edit:hover { background: rgba(255,255,255,.16); color: #fff !important; }
.nav-item.active .nav-edit { color: rgba(255,255,255,.85); }

/* 系统名称悬停重命名 */
.brand-edit {
  font-size: 13px; cursor: pointer; opacity: 0; transition: all .15s;
  margin-left: 5px; vertical-align: 2px;
  -webkit-text-fill-color: rgba(199,210,254,.7);
}
.logo-text h1:hover .brand-edit { opacity: 1; }
.brand-edit:hover { -webkit-text-fill-color: #fff; }

/* ---------- 自定义命名设置弹窗 ---------- */
.settings-section { margin-bottom: 18px; }
.settings-section-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.settings-grid label { font-size: 11.5px; color: var(--text-3); display: block; margin-bottom: 4px; font-weight: 600; }
.settings-grid input { width: 100%; }

/* 背景外观设置 */
.appearance-preview {
  width: 100%; height: 110px; border-radius: 12px; margin-bottom: 12px;
  background: var(--bg) var(--bg-image, url('/images/bg-default.png')) center/cover no-repeat;
  border: 1px solid var(--border); box-shadow: inset 0 0 20px rgba(15,23,42,.06);
  position: relative; overflow: hidden;
}
.appearance-preview::after {
  content: '预览'; position: absolute; right: 10px; bottom: 8px;
  font-size: 11px; color: var(--text-3); background: rgba(255,255,255,.85);
  padding: 2px 8px; border-radius: 20px;
}
input[type="range"] {
  width: 100%; accent-color: var(--primary); cursor: pointer;
}
.settings-form-row { margin-bottom: 10px; }
.settings-form-row.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-form-row label { font-size: 12px; color: var(--text-2); font-weight: 600; display: block; margin-bottom: 5px; }
.settings-form-row label span { font-weight: 400; color: var(--text-3); margin-left: 4px; }

/* ---------- 主内容 ---------- */
.main { flex: 1; margin-left: 236px; padding: 26px 32px 40px; min-width: 0; }

.view { display: none; }
.view.active { display: block; animation: viewIn .34s cubic-bezier(.22,.9,.3,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.view-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.view-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 10px; }
.view-header h2::before { content: ''; width: 5px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--violet)); box-shadow: 0 2px 6px -2px rgba(99,102,241,.6); }
.subtitle { color: var(--text-3); margin-top: 4px; font-size: 13px; }
.view-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ============ 通用组件 ============ */
.btn {
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: all .18s;
  box-shadow: var(--shadow-xs); display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: #d6dcea; background: #f8fafc; color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(79,70,229,.6), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%); color: #fff; box-shadow: 0 8px 22px -6px rgba(79,70,229,.7); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.select, input[type="text"], input[type="password"], input[type="number"], input[type="email"], select, textarea {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  outline: none; transition: all .18s; width: 100%; color: var(--text);
}
.select:hover, input:hover, select:hover, textarea:hover { border-color: #d3d9e8; }
.select:focus, input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3.5px rgba(79,70,229,.13); }
.select { width: auto; min-width: 150px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px;
}
.search-box { position: relative; }
.search-box::before { content: '🔍'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: .5; }
.search-box input { width: 230px; padding-left: 32px; }

.panel {
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(231,234,243,.9);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 20px; margin-bottom: 18px; transition: box-shadow .25s;
}
.panel:hover { box-shadow: var(--shadow-md); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-header h3 { font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2-in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3-in { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ============ 表单 ============ */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.form-actions { margin-top: 4px; }
.form-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.6; background: var(--bg); padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--border); }
.range-inputs { display: flex; align-items: center; gap: 8px; }
.range-inputs input { text-align: center; }
.range-inputs span { color: var(--text-3); }

/* ============ 概览统计卡片 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 18px 16px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs); transition: all .25s cubic-bezier(.22,.9,.3,1);
}
.stat-card::after {
  content: ''; position: absolute; right: -28px; top: -28px; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.14), transparent 68%); pointer-events: none;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dfe3f1; }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3.5px; background: var(--primary); }
.stat-card.blue::before { background: linear-gradient(90deg, #4f46e5, #60a5fa); }
.stat-card.green::before { background: linear-gradient(90deg, #059669, #34d399); }
.stat-card.orange::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat-card.purple::before { background: linear-gradient(90deg, #7c3aed, #c084fc); }
.stat-card.red::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.stat-card.warning::before { background: linear-gradient(90deg, #ea580c, #fb923c); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 10px -4px rgba(15,23,42,.25); }
.stat-card.blue .stat-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.stat-card.purple .stat-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.stat-card.red .stat-icon { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.stat-card.warning .stat-icon { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.stat-label { font-size: 12.5px; color: var(--text-2); margin-top: 12px; font-weight: 500; }
.stat-value { font-size: 27px; font-weight: 800; margin-top: 3px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; font-family: var(--font-mono); letter-spacing: .3px; }

/* 阶段分布条 */
.stage-bars { display: flex; flex-direction: column; gap: 12px; }
.stage-bar-row { display: flex; align-items: center; gap: 12px; }
.stage-bar-label { width: 74px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.stage-bar-track { flex: 1; height: 30px; background: var(--bg); border-radius: 9px; overflow: hidden; position: relative; box-shadow: inset 0 1px 3px rgba(15,23,42,.05); }
.stage-bar-fill { height: 100%; border-radius: 9px; display: flex; align-items: center; justify-content: flex-end; padding-right: 11px; font-size: 12px; font-weight: 700; color: #fff; transition: width .7s cubic-bezier(.22,.9,.3,1); text-shadow: 0 1px 2px rgba(0,0,0,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.stage-bar-count { width: 46px; text-align: right; font-weight: 700; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ============ 招聘看板 ============ */
.kanban { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 20px; align-items: flex-start; scroll-behavior: smooth; }
.kanban-col {
  background: rgba(244,246,251,.85); border: 1px solid rgba(231,234,243,.85);
  border-radius: var(--radius-lg); min-width: 264px; width: 264px; flex-shrink: 0;
  display: flex; flex-direction: column; max-height: calc(100vh - 168px);
  transition: border-color .2s, box-shadow .2s;
}
.kanban-col-header { padding: 14px 16px 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13.5px; letter-spacing: .1px; }
.kanban-col-header .stage-name { display: flex; align-items: center; gap: 8px; }
.kanban-col-header .stage-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(15,23,42,.05); }
.kanban-col-header .count {
  background: #fff; border: 1px solid var(--border); color: var(--text-2);
  border-radius: 20px; padding: 2px 11px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; box-shadow: var(--shadow-xs);
}
.kanban-cards { padding: 4px 12px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 70px; }
.kanban-col.dragover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.14), var(--shadow-md); background: rgba(238,242,255,.75); }
/* v4.62 自定义看板列管理 */
.kanban-col-del { cursor: pointer; font-size: 13px; opacity: .45; transition: opacity .15s, color .15s; user-select: none; }
.kanban-col-del:hover { opacity: 1; color: #dc2626; }
.kanban-add-col {
  min-width: 120px; width: 120px; border-style: dashed; justify-content: center;
  background: transparent; align-self: stretch; min-height: 120px;
}
.kanban-add-col:hover { border-color: var(--primary); }

.kcard {
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  box-shadow: var(--shadow-xs); padding: 13px 14px;
  cursor: grab; transition: all .2s cubic-bezier(.22,.9,.3,1); position: relative; overflow: hidden;
}
.kcard::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3.5px; border-radius: 0 4px 4px 0; transition: top .2s, bottom .2s; }
.kcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9deee; }
.kcard:hover::before { top: 8px; bottom: 8px; }
.kcard.match-high::before { background: linear-gradient(180deg, #10b981, #34d399); }
.kcard.match-mid::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.kcard.match-low::before { background: linear-gradient(180deg, #cbd5e1, #e2e8f0); }
.kcard.dragging { opacity: .45; transform: rotate(2.5deg) scale(.98); box-shadow: var(--shadow-lg); }
.kcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kcard-name { font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard-match { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; letter-spacing: .3px; }
.kcard-match.high { background: var(--success-soft); color: #047857; }
.kcard-match.mid { background: var(--warning-soft); color: #b45309; }
.kcard-match.low { background: #f1f5f9; color: var(--text-3); }
.kcard-job { font-size: 12px; color: var(--text-2); margin-top: 7px; font-weight: 500; }
.kcard-meta { display: flex; gap: 6px; margin-top: 9px; font-size: 11px; color: var(--text-2); flex-wrap: wrap; align-items: center; }
.kcard-meta span { background: var(--bg); padding: 3px 8px; border-radius: 7px; border: 1px solid rgba(231,234,243,.8); }
.kcard-meta .salary-tag { color: #b45309; font-weight: 700; background: var(--warning-soft); border-color: rgba(245,158,11,.25); }
.kcard-channel { margin-left: auto; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* ============ 漏斗分析 ============ */
.funnel-wrap { display: grid; grid-template-columns: 1fr 330px; gap: 18px; margin-bottom: 18px; }
.funnel-chart { background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; }
.funnel-step { display: flex; align-items: center; gap: 14px; margin-bottom: 9px; position: relative; }
.funnel-label { width: 92px; font-size: 13px; color: var(--text-2); text-align: right; font-weight: 600; flex-shrink: 0; }
.funnel-bar {
  height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px; transition: width .8s cubic-bezier(.22,.9,.3,1);
  min-width: 66px; text-shadow: 0 1px 2px rgba(0,0,0,.15); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -6px rgba(15,23,42,.35);
}
.funnel-bar-1 { background: linear-gradient(135deg, #4f46e5, #60a5fa); }
.funnel-bar-2 { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.funnel-bar-3 { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.funnel-bar-4 { background: linear-gradient(135deg, #d97706, #fbbf24); }
.funnel-bar-5 { background: linear-gradient(135deg, #059669, #34d399); }
.funnel-pct { font-size: 11.5px; color: var(--text-3); width: 46px; font-family: var(--font-mono); flex-shrink: 0; }

.funnel-metrics { display: flex; flex-direction: column; gap: 12px; }
.metric-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 15px 17px; box-shadow: var(--shadow-xs); transition: all .22s; position: relative; overflow: hidden;
}
.metric-card::after { content: ''; position: absolute; right: -20px; top: -20px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.1), transparent 70%); }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric-card .m-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.metric-card .m-value { font-size: 23px; font-weight: 800; margin-top: 3px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.metric-card .m-sub { font-size: 11px; margin-top: 3px; color: var(--text-3); }
.good { color: #059669 !important; }
.warn { color: #d97706 !important; }
.bad { color: #dc2626 !important; }

.insight-list { display: flex; flex-direction: column; gap: 10px; }
.insight-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bg); border: 1px solid rgba(231,234,243,.8); border-radius: 11px; transition: all .18s; }
.insight-item:hover { border-color: #d9deee; box-shadow: var(--shadow-xs); transform: translateX(3px); }
.insight-icon { font-size: 17px; line-height: 1.3; }
.insight-item p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ============ 渠道 / 趋势 ============ */
.channel-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.channel-name { width: 86px; font-size: 13px; text-align: right; color: var(--text-2); font-weight: 500; flex-shrink: 0; }
.channel-track { flex: 1; background: var(--bg); border-radius: 8px; height: 24px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(15,23,42,.06); }
.channel-fill { height: 100%; background: linear-gradient(90deg, #4f46e5, #818cf8); border-radius: 8px; transition: width .7s cubic-bezier(.22,.9,.3,1); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.channel-num { width: 44px; font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.trend-chart { display: flex; align-items: flex-end; gap: 5px; height: 168px; padding-top: 10px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.trend-bar { width: 68%; background: linear-gradient(180deg, #818cf8, #4f46e5); border-radius: 6px 6px 2px 2px; min-height: 3px; transition: height .6s cubic-bezier(.22,.9,.3,1); position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.trend-bar:hover { opacity: .9; transform: scaleY(1.03); transform-origin: bottom; }
.trend-label { font-size: 10px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ============ 岗位管理 ============ */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.job-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-xs); transition: all .22s cubic-bezier(.22,.9,.3,1); position: relative; overflow: hidden;
}
.job-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3.5px; background: linear-gradient(180deg, #4f46e5, #8b5cf6); opacity: 0; transition: opacity .2s; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dfe3f1; }
.job-card:hover::before { opacity: 1; }
.job-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.job-dept { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.job-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.job-badge.open { background: var(--success-soft); color: #047857; }
.job-badge.closed { background: #f1f5f9; color: var(--text-3); }
.job-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.job-meta span { font-size: 11.5px; background: var(--bg); padding: 3px 9px; border-radius: 7px; color: var(--text-2); }
.job-meta .salary { color: #b45309; font-weight: 700; background: var(--warning-soft); }
.job-progress { margin-top: 14px; }
.job-progress-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }
.progress-track { height: 7px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #4f46e5, #8b5cf6); border-radius: 10px; transition: width .7s cubic-bezier(.22,.9,.3,1); }
.job-skills { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.skill-tag { font-size: 11px; padding: 3px 9px; background: var(--primary-soft); color: var(--primary); border-radius: 7px; font-weight: 600; }
.job-source { font-size: 11px; color: var(--text-3); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* ============ 候选人列表 ============ */
.cand-list { display: flex; flex-direction: column; gap: 9px; }
.cand-row {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border); cursor: pointer; transition: all .2s; box-shadow: var(--shadow-xs);
}
.cand-row:hover { background: #f8fafc; border-color: #d9deee; transform: translateX(3px); box-shadow: var(--shadow-sm); }
.cand-avatar {
  width: 40px; height: 40px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px -3px rgba(15,23,42,.35);
}
.cand-info { flex: 1; min-width: 0; }
.cand-info .name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.cand-info .sub { font-size: 12px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-score { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: var(--primary-soft) !important; color: var(--primary) !important; flex-shrink: 0; }
.cand-tag { font-size: 11px; padding: 3px 9px; border-radius: 7px; background: var(--bg); color: var(--text-2); border: 1px solid rgba(231,234,243,.8); flex-shrink: 0; }

/* ============ 弹窗 ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 6vh 20px; overflow-y: auto; }
.modal-mask.show { display: flex; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 18px; width: 480px; max-width: 100%;
  box-shadow: var(--shadow-lg); animation: modalIn .28s cubic-bezier(.22,.9,.3,1); overflow: hidden;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-lg { width: 720px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #fafbff, #fff); }
.modal-header h3 { font-size: 16px; font-weight: 800; }
.modal-close { background: none; border: none; font-size: 16px; color: var(--text-3); padding: 4px 8px; border-radius: 8px; transition: all .15s; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 20px 22px; }

.upload-zone {
  border: 2px dashed var(--border); border-radius: 14px; padding: 34px 20px; text-align: center;
  cursor: pointer; transition: all .2s; background: #fafbff; margin-bottom: 16px;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-soft); }
.upload-icon { font-size: 34px; margin-bottom: 8px; }
.upload-zone p { font-size: 14px; font-weight: 600; color: var(--text-2); }
.upload-hint { font-size: 11.5px; color: var(--text-3); margin-top: 6px; display: block; }

.parse-result { margin-top: 16px; padding: 14px 16px; background: var(--success-soft); border: 1px solid rgba(16,185,129,.3); border-radius: 12px; animation: viewIn .3s ease; }
.parse-result.error { background: var(--danger-soft); border-color: rgba(239,68,68,.3); }
.parse-result h4 { font-size: 14px; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 72px 1fr; gap: 6px 12px; font-size: 13px; align-items: center; }
.kv span:first-child { color: var(--text-3); }
.kv b { color: var(--text); }
.match-score { margin-top: 12px; display: inline-block; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }

/* ============ 候选人详情 ============ */
.detail-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.detail-avatar { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, #4f46e5, #8b5cf6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; box-shadow: 0 8px 20px -6px rgba(79,70,229,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.detail-name { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.detail-role { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.match-detail { background: var(--primary-soft); border: 1px solid rgba(79,70,229,.2); border-radius: 11px; padding: 11px 14px; font-size: 13px; margin-bottom: 14px; }
.stage-flow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.stage-chip { font-size: 12px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); background: #fff; color: var(--text-2); transition: all .18s; }
.stage-chip:hover { border-color: var(--primary); color: var(--primary); }
.stage-chip.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(79,70,229,.5); }
.stage-chip.passed { background: var(--success-soft); border-color: rgba(16,185,129,.3); color: #047857; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.detail-item { background: var(--bg); border: 1px solid rgba(231,234,243,.8); border-radius: 10px; padding: 9px 12px; }
.detail-item label { font-size: 11px; color: var(--text-3); display: block; }
.detail-item .value { font-size: 13px; font-weight: 600; margin-top: 2px; }
.detail-section { margin-bottom: 16px; }
.detail-section h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.work-history-item { border-left: 3px solid var(--primary-soft); padding: 8px 0 8px 14px; margin-bottom: 4px; }
.wh-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 13.5px; }
.wh-time { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); font-weight: 400; }
.wh-desc { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }

/* ============ 历史记录 ============ */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item { background: var(--bg); border: 1px solid rgba(231,234,243,.8); border-radius: 11px; padding: 12px 14px; }
.h-time { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.h-main { font-size: 13px; margin-top: 4px; font-weight: 500; }
.h-detail { font-size: 12px; color: var(--text-2); margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }

/* ============ 空状态 / Toast ============ */
.empty-state { text-align: center; color: var(--text-3); padding: 30px 20px; font-size: 13px; }
.e-icon { font-size: 30px; margin-bottom: 8px; }
.toast {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 300;
  background: #0f172a; color: #fff; padding: 11px 22px; border-radius: 12px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); animation: toastIn .25s cubic-bezier(.22,.9,.3,1);
}
.toast.success { background: linear-gradient(135deg, #059669, #10b981); }
.toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==========================================================
   AI 招聘智能体（对标 Moka）
   ========================================================== */
.ai-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 30px 34px; margin-bottom: 20px;
  background: linear-gradient(120deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
  color: #fff; box-shadow: 0 16px 44px -14px rgba(49,46,129,.55);
}
.ai-hero-glow {
  position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,70,239,.45), transparent 65%);
  pointer-events: none; animation: glowFloat 6s ease-in-out infinite;
}
.ai-hero-glow::after {
  content: ''; position: absolute; left: -120px; top: 120px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.4), transparent 65%);
}
@keyframes glowFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-14px,10px) scale(1.06); } }
.ai-hero-content { position: relative; z-index: 2; }
.ai-hero-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2px; color: #a5b4fc; text-transform: uppercase; }
.ai-hero-content h2 { font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -.5px;
  background: linear-gradient(90deg, #fff 40%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ai-hero-content p { color: rgba(221,214,254,.8); font-size: 13.5px; margin-top: 8px; max-width: 640px; }
.ai-hero-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ai-hero-chips span {
  font-size: 11.5px; padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); color: #e0e7ff;
}

.ai-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; background: rgba(255,255,255,.7); padding: 6px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-xs); width: fit-content; }
.ai-tab {
  padding: 8px 16px; border: none; border-radius: 10px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .18s; white-space: nowrap;
}
.ai-tab:hover { background: var(--bg); color: var(--text); }
.ai-tab.active { background: linear-gradient(135deg, #4f46e5, #6d28d9); color: #fff; box-shadow: 0 5px 14px -5px rgba(79,70,229,.6); }

.ai-panel { display: none; }
.ai-panel.active { display: block; animation: viewIn .3s ease; }

.ai-search-box { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 10px 10px 10px 16px; box-shadow: var(--shadow-sm); transition: all .2s; }
.ai-search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.12), var(--shadow-md); }
.ai-search-icon { font-size: 18px; }
.ai-search-box input { flex: 1; border: none; outline: none; font-size: 14.5px; background: transparent; padding: 8px 4px; }
.ai-search-examples { display: flex; align-items: center; gap: 8px; margin: 12px 2px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.chip-btn {
  font-size: 11.5px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); transition: all .15s; box-shadow: var(--shadow-xs);
}
.chip-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }

.ai-parsed { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; padding: 12px 14px; background: var(--primary-soft); border: 1px solid rgba(79,70,229,.2); border-radius: 12px; font-size: 12px; }
.ai-parsed .p-tag { padding: 3px 10px; background: #fff; border-radius: 20px; color: var(--primary); font-weight: 600; border: 1px solid rgba(79,70,229,.2); }

.ai-tool-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.ai-tool-hint { font-size: 11.5px; color: var(--text-3); }

.ai-result-list { display: flex; flex-direction: column; gap: 10px; }
.ai-cand-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 15px 16px;
  display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-xs); transition: all .2s; cursor: pointer;
}
.ai-cand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #dfe3f1; }
.ai-cand-avatar { width: 42px; height: 42px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px -3px rgba(15,23,42,.35); }
.ai-cand-main { flex: 1; min-width: 0; }
.ai-cand-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-cand-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-cand-reason { font-size: 11.5px; color: var(--text-2); background: var(--bg); border-radius: 8px; padding: 6px 10px; margin-top: 7px; line-height: 1.5; }
.ai-cand-reason .r-summary { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.ai-cand-reason .r-line { display: flex; align-items: flex-start; gap: 4px; padding: 1px 0; }
.ai-cand-reason .r-good { color: #047857; }
.ai-cand-reason .r-warn { color: #b45309; }
.ai-cand-score {
  font-size: 15px; font-weight: 800; padding: 5px 13px; border-radius: 20px; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.ai-cand-score.high { background: var(--success-soft); color: #047857; }
.ai-cand-score.mid { background: var(--warning-soft); color: #b45309; }
.ai-cand-score.low { background: #f1f5f9; color: var(--text-3); }

/* 面试题 */
.ai-q-section { margin-bottom: 18px; }
.ai-q-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.ai-q-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.ai-q-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; margin-bottom: 9px;
  box-shadow: var(--shadow-xs); transition: all .18s; border-left: 3px solid var(--primary-soft);
}
.ai-q-item:hover { border-left-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.ai-q-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); margin-right: 8px; }
.ai-q-text { font-size: 13.5px; font-weight: 600; line-height: 1.55; }
.ai-q-point { font-size: 12px; color: var(--text-2); margin-top: 6px; display: flex; gap: 5px; align-items: flex-start; }
.ai-q-point::before { content: '🎯'; flex-shrink: 0; }
.ai-eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ai-eval-item { background: var(--bg); border: 1px solid rgba(231,234,243,.8); border-radius: 11px; padding: 11px 13px; }
.ai-eval-item .dim { font-size: 12.5px; font-weight: 700; }
.ai-eval-item .w { font-size: 14px; font-weight: 800; color: var(--primary); }
.ai-eval-item .d { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.ai-tip-box { background: var(--warning-soft); border: 1px solid rgba(245,158,11,.25); border-radius: 12px; padding: 12px 15px; font-size: 12.5px; color: #92400e; }

/* 面试纪要 */
.ai-note-summary { background: var(--primary-soft); border: 1px solid rgba(79,70,229,.2); border-radius: 12px; padding: 13px 15px; font-size: 13px; margin-bottom: 14px; }
.ai-note-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ai-note-col { border-radius: 12px; padding: 13px 15px; font-size: 12.5px; }
.ai-note-col.strength { background: var(--success-soft); border: 1px solid rgba(16,185,129,.25); }
.ai-note-col.concern { background: var(--danger-soft); border: 1px solid rgba(239,68,68,.25); }
.ai-note-col h5 { font-size: 12.5px; margin-bottom: 8px; }
.ai-note-col ul { padding-left: 16px; display: flex; flex-direction: column; gap: 5px; }
.radar-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.radar-legend { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 8px; }
.radar-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.radar-row .rl { width: 58px; color: var(--text-2); }
.radar-row .rt { flex: 1; height: 8px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.radar-row .rf { height: 100%; border-radius: 10px; background: linear-gradient(90deg, #4f46e5, #8b5cf6); transition: width .6s ease; }
.radar-row .rv { width: 30px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.verdict-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 7px 16px; border-radius: 24px; margin-top: 4px; }
.verdict-badge.pass { background: var(--success-soft); color: #047857; }
.verdict-badge.pending { background: var(--warning-soft); color: #b45309; }
.verdict-badge.fail { background: var(--danger-soft); color: #b91c1c; }
.ai-note-save { margin-top: 14px; display: flex; gap: 10px; align-items: center; }

/* JD 生成 */
.jd-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.jd-head { padding: 18px 22px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.jd-title { font-size: 18px; font-weight: 800; }
.jd-meta { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.jd-meta span { font-size: 11.5px; padding: 3px 10px; background: #fff; border: 1px solid var(--border); border-radius: 20px; color: var(--text-2); }
.jd-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.jd-section h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.jd-section ul { padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.jd-section li { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.jd-compliance { background: var(--danger-soft); border: 1px solid rgba(239,68,68,.25); border-radius: 11px; padding: 11px 14px; font-size: 12.5px; color: #b91c1c; }
.jd-tip { background: var(--bg); border: 1px dashed var(--border); border-radius: 11px; padding: 11px 14px; font-size: 12px; color: var(--text-3); }
.jd-salary-hint { font-size: 15px; font-weight: 800; color: var(--primary); }

/* 数据洞察 */
.insight-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  margin-bottom: 12px; box-shadow: var(--shadow-xs); transition: all .2s; border-left: 4px solid var(--primary);
}
.insight-card:hover { transform: translateX(3px); box-shadow: var(--shadow-md); }
.insight-card.good { border-left-color: #10b981; }
.insight-card.warn { border-left-color: #f59e0b; }
.insight-card.info { border-left-color: #3b82f6; }
.insight-card .i-title { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.insight-card .i-desc { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.suggest-list { display: flex; flex-direction: column; gap: 8px; }
.suggest-item { display: flex; gap: 10px; align-items: flex-start; background: var(--primary-soft); border: 1px solid rgba(79,70,229,.18); border-radius: 11px; padding: 11px 14px; font-size: 13px; color: #3730a3; }
.ai-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ai-kpi { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 13px 15px; box-shadow: var(--shadow-xs); }
.ai-kpi .k-label { font-size: 11.5px; color: var(--text-3); }
.ai-kpi .k-value { font-size: 21px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ai-kpi .k-sub { font-size: 10.5px; color: var(--text-3); margin-top: 2px; font-family: var(--font-mono); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .grid-2, .funnel-wrap { grid-template-columns: 1fr; }
  .ai-note-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sidebar { width: 68px; }
  .sidebar .logo-text, .sidebar .nav-item .nav-label, .sidebar .nav-item .nav-badge, .sidebar-footer .version { display: none; }
  /* 窄屏图标模式也保留 ✏️ 重命名入口（hover 显示） */
  .sidebar .nav-item .nav-edit { display: inline; }
  .nav-item { justify-content: center; padding: 12px 6px; }
  .nav-item.active::before { display: none; }
  /* 六大板块分组窄屏收起：分组标题只留图标 */
  .nav-group-title { justify-content: center; padding: 2px 0; }
  .nav-group-title .nav-group-label, .nav-group-title .nav-edit { display: none; }
  .nav-group-empty { display: none; }
  .main { margin-left: 68px; padding: 18px; }
  .kanban-col { min-width: 240px; width: 240px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== AI 面试模拟 ===== */
.ai-iv-tips { background: var(--primary-soft); border: 1px solid rgba(79,70,229,.2); border-radius: 10px; padding: 9px 13px; font-size: 12px; color: #4338ca; margin: 12px 0; line-height: 1.6; }
.ai-iv-q { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; margin-bottom: 10px; box-shadow: var(--shadow-xs); border-left: 3px solid var(--primary-soft); }
.ai-iv-q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.ai-iv-q-no { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.ai-iv-q-text { font-size: 13.5px; font-weight: 600; line-height: 1.55; margin-bottom: 9px; }
.ai-iv-answer { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; resize: vertical; background: var(--bg); transition: border-color .2s; }
.ai-iv-answer:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.ai-iv-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ai-iv-dim { background: var(--bg); border: 1px solid rgba(231,234,243,.8); border-radius: 11px; padding: 11px 13px; }
.ai-iv-dim-name { font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.ai-iv-dim-bar { height: 8px; background: #eef0f6; border-radius: 99px; overflow: hidden; }
.ai-iv-dim-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #8b5cf6); transition: width .8s ease; }
.ai-iv-dim-score { font-size: 15px; font-weight: 800; color: var(--primary); margin-top: 6px; }
.ai-iv-dim-score small { font-size: 10px; color: var(--text-3); }
.ai-iv-r { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 9px; border-left: 3px solid #a5b4fc; }
.ai-iv-r-head { font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.ai-iv-r-q { font-size: 13px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; }
.ai-iv-r-fb { font-size: 12px; color: var(--text-2); margin: 3px 0; }
.ai-iv-r-kw { font-size: 11.5px; color: #047857; background: var(--success-soft); display: inline-block; padding: 2px 8px; border-radius: 6px; margin: 3px 0; }
.ai-iv-r-fu { font-size: 11.5px; color: #b45309; background: var(--warning-soft); padding: 5px 9px; border-radius: 6px; margin-top: 5px; }

/* ===== 提问教练 ===== */
.coach-overall { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.coach-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow-xs); }
.coach-item-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.coach-score { font-size: 15px; font-weight: 800; padding: 2px 10px; border-radius: 20px; font-variant-numeric: tabular-nums; }
.coach-score.c-good { background: var(--success-soft); color: #047857; }
.coach-score.c-mid { background: var(--warning-soft); color: #b45309; }
.coach-score.c-bad { background: #fee2e2; color: #b91c1c; }
.coach-level { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.coach-q { font-size: 13px; font-weight: 600; flex: 1; min-width: 200px; }
.coach-dims { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0 4px; }
.coach-dim { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; }
.coach-dim.d-good { background: var(--success-soft); color: #047857; }
.coach-dim.d-mid { background: var(--warning-soft); color: #b45309; }
.coach-dim.d-bad { background: #fee2e2; color: #b91c1c; }
.coach-advice { font-size: 12px; color: var(--text-2); background: var(--bg); border-radius: 8px; padding: 8px 11px; margin-top: 6px; line-height: 1.65; }

/* ===== 对话式 BI ===== */
.ask-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 15px 17px; margin-top: 12px; box-shadow: var(--shadow-sm); border-left: 3px solid var(--primary); animation: fadeUp .35s ease; }
.ask-q { font-size: 12.5px; color: var(--text-3); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.ask-intent { font-size: 10.5px; font-weight: 800; padding: 2px 9px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }
.ask-a { font-size: 13.5px; line-height: 1.75; color: var(--text); }
.ask-chart { margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.ask-bar-row { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.ask-bar-label { width: 84px; text-align: right; color: var(--text-2); font-weight: 600; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-bar-track { flex: 1; height: 9px; background: #eef0f6; border-radius: 99px; overflow: hidden; }
.ask-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #a78bfa); transition: width .7s ease; }
.ask-bar-val { width: 72px; color: var(--text-3); flex-shrink: 0; }

/* ===== 候选人详情编辑 ===== */
.detail-actions { display: flex; gap: 8px; align-items: center; }
.cand-edit-form .detail-hero { margin: -4px 0 14px; }
.edit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.cand-edit-form .form-row { display: flex; flex-direction: column; gap: 5px; }
.cand-edit-form .form-row label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.cand-edit-form input,
.cand-edit-form select,
.cand-edit-form textarea {
  padding: 8px 10px; border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: 13px; background: #fff; color: var(--text-1); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cand-edit-form input:focus,
.cand-edit-form select:focus,
.cand-edit-form textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
#wh-editor { display: flex; flex-direction: column; gap: 12px; }
.wh-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr auto; gap: 8px;
  padding: 12px; background: #f8f9fc; border-radius: 10px; border: 1px solid var(--gray-200);
}
.wh-row .wh-desc { grid-column: 1 / -1; }
.wh-row input,
.wh-row textarea { padding: 7px 9px; border: 1px solid var(--gray-200); border-radius: 7px; font-size: 13px; }
.wh-row .btn-danger { background: #fee2e2; color: #991b1b; border: none; }
.wh-row .btn-danger:hover { background: #fecaca; }

/* ============ AI 专家团新增面板样式（寻聘官/招聘官/应聘助手/陪练/追问） ============ */
.ai-script-block {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; border-left: 3px solid var(--primary-soft);
}
.ai-script-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 800; margin-bottom: 7px; color: var(--text-2);
}
.ai-script-text {
  font-size: 13px; line-height: 1.65; color: var(--text-2);
  background: var(--bg); border-radius: 9px; padding: 10px 12px;
}
.ai-screen-suggest {
  font-size: 11.5px; color: var(--text-2); background: #f8f9fc;
  border-radius: 8px; padding: 6px 10px; margin-top: 7px; line-height: 1.5;
}
.ai-action-line {
  font-size: 12.5px; line-height: 1.6; color: var(--text-2);
  background: var(--bg); border-radius: 9px; padding: 8px 12px; margin-bottom: 7px;
  border-left: 3px solid var(--success);
}
.ai-mail-subject {
  font-size: 12px; color: var(--text-3); margin-bottom: 8px;
}
.ai-mock-key { font-size: 12px; color: #047857; margin-top: 8px; }
.ai-mock-pit { font-size: 12px; color: #b45309; margin-top: 4px; }
.ai-mock-list { display: flex; flex-direction: column; gap: 6px; }
.ai-mock-li {
  font-size: 12.5px; color: var(--text-2); background: var(--bg);
  border-radius: 8px; padding: 7px 11px; line-height: 1.5;
}

/* ============ 人选推送 · 多维表格 ============ */
.track-stats {
  display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.track-stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; min-width: 120px; flex: 1;
}
.track-stat-card .num { font-size: 26px; font-weight: 800; color: var(--primary); }
.track-stat-card .label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.track-stat-card.green .num { color: #16a34a; }
.track-stat-card.orange .num { color: #ea580c; }
.track-stat-card.blue .num { color: #2563eb; }

.track-table-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: auto; max-height: calc(100vh - 300px);
}
.track-table {
  width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap;
}
.track-table th {
  background: var(--bg); padding: 10px 12px; text-align: left; font-weight: 700;
  color: var(--text-3); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 1;
}
.track-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-2);
  vertical-align: middle;
}
.track-table tr:hover { background: #f8f9fc; }
/* 操作列固定右侧 v4.30 — 强化 z-index 确保始终可点 */
.track-table th:last-child, .track-table td:last-child {
  position: sticky !important; right: 0 !important;
  background: #fff !important; box-shadow: -5px 0 10px -8px rgba(15,23,42,.25);
  min-width: 72px;
}
.track-table th:last-child { background: var(--bg) !important; z-index: 10 !important; }
.track-table td:last-child { z-index: 5 !important; }
.track-table tr:hover td:last-child { background: #f8f9fc !important; }
/* 确保操作按钮本身可点击 */
.track-table td:last-child .track-action-btn {
  position: relative; z-index: 20; pointer-events: auto !important;
}
.track-table .cand-name { font-weight: 700; color: var(--text-1); }
/* v4.30 快速删除图标（hover 行时出现在姓名旁，第一列始终可见） */
.track-table .quick-del {
  cursor: pointer; opacity: 0; transition: opacity .15s; font-size: 12px; color: #dc2626;
  display: inline-block; margin-left: 4px; vertical-align: middle;
}
.track-table tr:hover .quick-del { opacity: .5; }
.track-table .quick-del:hover { opacity: 1 !important; }
.track-table .match-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px;
}
.match-badge.high { background: #dcfce7; color: #166534; }
.match-badge.mid { background: #fef9c3; color: #854d0e; }
.match-badge.low { background: #fee2e2; color: #991b1b; }

.round-cell { text-align: center; }
.round-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px;
  border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.round-badge.gray { background: #f1f5f9; color: #64748b; }
.round-badge.blue { background: #dbeafe; color: #1e40af; }
.round-badge.orange { background: #fed7aa; color: #9a3412; }
.round-badge.green { background: #dcfce7; color: #166534; }
.round-badge.red { background: #fee2e2; color: #991b1b; }
.round-badge.empty { background: transparent; color: #cbd5e1; border: 1px dashed #cbd5e1; }
.round-badge:hover { opacity: .8; transform: scale(1.05); }

.push-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px;
  border-radius: 6px; font-size: 11px; font-weight: 600;
}
.push-badge.pushed { background: #dcfce7; color: #166534; }
.push-badge.unpushed { background: #f1f5f9; color: #64748b; }

/* 入职跟进列 */
.follow-cell { text-align: center; vertical-align: middle; }
.follow-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.follow-badge.offer { background: #fef3c7; color: #92400e; }
.follow-badge.hired { background: #dcfce7; color: #166534; }
.follow-badge.onb { background: #ccfbf1; color: #0f766e; }
.follow-badge.reg { background: #0d9488; color: #fff; }
.follow-sub { font-size: 11px; color: var(--text-3); margin: 3px 0 5px; }

.track-action-btn {
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.track-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.track-action-btn.push { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.track-action-btn.push:hover { background: #1557b0; }
.track-action-btn.cal { background: #0089ff; color: #fff; border-color: #0089ff; }
.track-action-btn.cal:hover { background: #006ed6; }
.track-action-btn.cal.done { background: #e8f5ff; color: #0089ff; border-color: #0089ff; cursor: default; }
.track-action-btn.edit { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.track-action-btn.edit:hover { background: #d97706; }
.track-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============ 知识库 ============ */
.kb-stats {
  display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.kb-stat-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .15s;
}
.kb-stat-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.kb-stat-chip .chip-count { font-weight: 800; }
.kb-stat-chip:hover { border-color: var(--primary); }

.kb-dingtalk-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 10px 14px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; flex-wrap: wrap;
}

.kb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.kb-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; transition: all .2s; position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.kb-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.kb-card-head {
  display: flex; align-items: flex-start; gap: 10px;
}
.kb-card-body { flex: 1; min-width: 0; }
.kb-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 2px;
}
.kb-card-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.kb-card-icon.jd { background: #dbeafe; }
.kb-card-icon.policy { background: #fef3c7; }
.kb-card-icon.training { background: #e0e7ff; }
.kb-card-icon.onboarding { background: #dcfce7; }
.kb-card-icon.interview { background: #fce7f3; }
.kb-card-icon.other { background: #f1f5f9; }
.kb-card-title {
  font-size: 15px; font-weight: 700; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kb-card-cat {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px;
  font-weight: 600; margin-top: 4px;
}
.kb-card-cat.jd { background: #dbeafe; color: #1e40af; }
.kb-card-cat.policy { background: #fef3c7; color: #92400e; }
.kb-card-cat.training { background: #e0e7ff; color: #4338ca; }
.kb-card-cat.onboarding { background: #dcfce7; color: #166534; }
.kb-card-cat.interview { background: #fce7f3; color: #9d174d; }
.kb-card-cat.other { background: #f1f5f9; color: #64748b; }
.kb-card-summary {
  font-size: 12px; color: var(--text-3); line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.kb-card-meta {
  display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3);
}
.kb-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.kb-card-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--bg); color: var(--text-3);
}
.kb-card-actions {
  display: flex; gap: 6px; margin-top: 10px;
}
.kb-card-btn {
  font-size: 12px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); cursor: pointer; transition: all .15s;
}
.kb-card-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.kb-card-btn.main { background: var(--primary); color: #fff; border-color: var(--primary); }
.kb-card-btn.main:hover { background: var(--primary-dark, #2563eb); }
.kb-card-btn.danger:hover { background: #ef4444; border-color: #ef4444; }
.kb-source-badge {
  position: absolute; top: 10px; right: 10px; font-size: 10px; padding: 1px 6px;
  border-radius: 4px; background: #1a73e8; color: #fff;
}

/* ---------- 知识库 AI 检索 ---------- */
.kb-search-panel { margin-bottom: 20px; }
.kb-search-head { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 12px 0 10px; }
.kb-search-terms { color: var(--primary); font-weight: 700; }
.kb-search-item {
  display: flex; gap: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 8px; cursor: pointer; transition: all .15s;
}
.kb-search-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.kb-search-rank {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.kb-search-body { flex: 1; min-width: 0; }
.kb-search-title { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kb-search-score { font-size: 10.5px; color: #166534; background: #dcfce7; padding: 1px 7px; border-radius: 10px; font-weight: 700; }
.kb-search-snippet { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin-top: 4px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kb-search-meta { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* 轮次编辑弹窗 */
.round-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.round-modal.active { display: flex; }
.round-modal-box {
  background: #fff; border-radius: 16px; padding: 24px; width: 460px; max-width: 90vw;
  max-height: 80vh; overflow: auto;
}
.round-modal-box h3 { margin-bottom: 16px; }
.round-form-group { margin-bottom: 12px; }
.round-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-2); }
.round-form-group input, .round-form-group select, .round-form-group textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px;
}
.round-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ---------- 登录遮罩（访问密码） ---------- */
.login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(99,102,241,.28), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(6,182,212,.16), transparent 55%),
    rgba(15,23,42,.94);
  backdrop-filter: blur(6px);
}
.login-card {
  width: 340px; padding: 38px 32px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  text-align: center;
}
.login-logo { font-size: 27px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: 1px; }
.login-title { font-size: 13px; color: rgba(255,255,255,.68); margin-bottom: 24px; }
.login-card input[type="password"] {
  width: 100%; padding: 12px 14px; border-radius: 10px; box-sizing: border-box;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: 14px; outline: none; transition: border-color .15s;
}
.login-card input[type="password"]:focus { border-color: #818cf8; }
.login-card input::placeholder { color: rgba(255,255,255,.35); }
.login-btn { width: 100%; margin-top: 14px; padding: 11px; font-size: 15px; letter-spacing: 4px; }
.login-error { min-height: 20px; margin-top: 10px; font-size: 12.5px; color: #fca5a5; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }

/* ============ v4.4 简历库 + 删除功能 ============ */
.btn-danger {
  background: #fee2e2; color: #b91c1c; border-color: #fecaca;
}
.btn-danger:hover { background: #fecaca; color: #991b1b; border-color: #fca5a5; box-shadow: 0 4px 12px -4px rgba(220,38,38,.4); }
.track-action-btn.del { background: #dc2626; color: #fff; border-color: #dc2626; }
.track-action-btn.del:hover { background: #b91c1c; }

.job-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.job-card-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* 简历库 */
.lib-summary {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px;
}
.lib-summary-item {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 14px; font-size: 12.5px;
}
.lib-summary-item .num { font-size: 20px; font-weight: 800; color: var(--primary); }
.lib-summary-item.green .num { color: #16a34a; }
.lib-summary-item.blue .num { color: #2563eb; }
.lib-summary-item.tip { color: var(--text-3); border-style: dashed; background: transparent; }
.resumelib-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px;
}
.lib-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .15s, transform .15s;
}
.lib-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.lib-card-head { display: flex; align-items: center; gap: 10px; }
.lib-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.lib-cand-info { flex: 1; min-width: 0; }
.lib-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.lib-name .match-badge { font-size: 10.5px; padding: 1px 6px; }
.lib-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-tag {
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-2);
}
.lib-tag.job { background: rgba(79,70,229,.08); color: var(--primary); border-color: rgba(79,70,229,.2); }
.lib-tag.dim { color: var(--text-3); border-style: dashed; }
.lib-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.lib-actions { display: flex; gap: 6px; border-top: 1px dashed var(--border); padding-top: 10px; }

/* ============ 岗位画像 ============ */
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.profile-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s;
}
.profile-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.profile-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.profile-title { font-weight: 700; font-size: 15px; }
.profile-dept { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.profile-salary { font-size: 13px; font-weight: 600; color: var(--primary); }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--bg); border-radius: 10px; padding: 10px 8px; }
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ps-value { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ps-value.good { color: var(--success); }
.ps-value.bad { color: var(--danger); }
.ps-value.warn { color: var(--warning); }
.ps-label { font-size: 11px; color: var(--text-3); }
.profile-progress .progress-fill.warn { background: linear-gradient(90deg, #f59e0b, #f97316); }
.profile-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.profile-time { font-size: 11.5px; color: var(--text-3); }

.profile-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.profile-detail-head h4 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dept-tag { font-size: 11px; background: rgba(79,70,229,.1); color: var(--primary); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.profile-detail-actions { display: flex; gap: 8px; }
.profile-overview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.po-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.po-num { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.po-num.good { color: var(--success); }
.po-num.bad { color: var(--danger); }
.po-num.warn { color: var(--warning); }
.po-label { font-size: 11.5px; color: var(--text-3); }

.dist-list { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.dist-row { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; }
.dist-name { font-size: 12.5px; color: var(--text-2); }
.dist-track { height: 9px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.dist-fill { height: 100%; border-radius: 10px; transition: width .4s; }
.dist-fill.high { background: linear-gradient(90deg, #22c55e, #16a34a); }
.dist-fill.mid { background: linear-gradient(90deg, #f59e0b, #f97316); }
.dist-fill.low { background: linear-gradient(90deg, #ef4444, #dc2626); }
.dist-num { font-size: 12px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }

.fail-list { display: flex; flex-direction: column; gap: 10px; }
.fail-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.fail-card.ability { border-left: 3px solid var(--danger); }
.fail-card.attitude { border-left: 3px solid var(--warning); }
.fail-card.culture { border-left: 3px solid #8b5cf6; }
.fail-card.other { border-left: 3px solid var(--text-3); }
.fail-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.fail-count { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fail-desc { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

.profile-tags { display: flex; flex-direction: column; gap: 10px; }
.tag-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag-label { font-size: 12px; color: var(--text-3); margin-right: 4px; min-width: 60px; }
.skill-tag.soft { background: rgba(139,92,246,.1); color: #7c3aed; border-color: rgba(139,92,246,.25); }

.screen-table { display: flex; flex-direction: column; }
.screen-head, .screen-row {
  display: grid; grid-template-columns: 1.4fr 70px 90px 100px 1.2fr 40px;
  align-items: center; gap: 10px; padding: 9px 10px;
}
.screen-head { font-size: 11.5px; color: var(--text-3); background: var(--bg); border-radius: 8px; font-weight: 600; }
.screen-row { border-bottom: 1px dashed var(--border); font-size: 13px; }
.screen-row:hover { background: var(--bg); }
.sr-cand { display: flex; flex-direction: column; min-width: 0; }
.sr-name { font-weight: 600; }
.sr-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-badge { font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.score-badge.high { color: var(--success); }
.score-badge.mid { color: var(--warning); }
.score-badge.low { color: var(--danger); }
.sr-stage { font-size: 12px; color: var(--text-2); }
.sr-reason { font-size: 12px; font-weight: 600; }
.sr-reason.good { color: var(--success); }
.sr-reason.bad { color: var(--danger); }
.sr-detail { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 月度需求 ============ */
.demand-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.demand-kpi-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow-sm);
}
.dk-num { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dk-num.good { color: var(--success); }
.dk-num.bad { color: var(--danger); }
.dk-num.warn { color: var(--warning); }
.dk-label { font-size: 12px; color: var(--text-3); }

/* ============ v4.37 月末提醒横幅 + 招聘漏斗 ============ */
.month-end-reminder {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(220,38,38,.08), rgba(249,115,22,.07));
  border: 1px solid rgba(220,38,38,.28); border-radius: 14px;
}
.month-end-reminder .rem-icon { font-size: 26px; line-height: 1.2; }
.month-end-reminder .rem-body { flex: 1; min-width: 0; }
.month-end-reminder .rem-title { font-size: 14px; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.month-end-reminder .rem-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rem-item {
  font-size: 12px; padding: 4px 10px; border-radius: 8px; cursor: pointer;
  background: rgba(220,38,38,.06); border: 1px dashed rgba(220,38,38,.35); color: var(--text-1);
  transition: all .15s ease;
}
.rem-item:hover { background: rgba(220,38,38,.14); border-color: var(--danger); }
.rem-item b { color: var(--danger); }
.rem-item em { font-style: normal; color: var(--text-3); margin-left: 6px; font-size: 11px; }

/* 需求明细表 · 招聘漏斗列 */
.funnel-cell { cursor: pointer; min-width: 150px; }
.funnel-cell:hover { background: var(--accent-soft) !important; }
.funnel-line { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.fl { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-resume { background: rgba(37,99,235,.1); color: #2563eb; }
.fl-screen { background: rgba(14,165,233,.1); color: #0ea5e9; }
.fl-iv { background: rgba(124,58,237,.1); color: #7c3aed; }
.fl-arrow { color: var(--text-3); font-size: 11px; }
.funnel-sub { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.funnel-chip { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.funnel-chip.declined { background: rgba(220,38,38,.1); color: #dc2626; }
.funnel-chip.offer { background: rgba(217,119,6,.12); color: #d97706; }
.funnel-chip.onboard { background: rgba(22,163,74,.12); color: #16a34a; }
.funnel-more { font-size: 10.5px; color: var(--text-3); }

/* 岗位漏斗弹窗 */
.demand-funnel-modal { width: min(960px, 94vw); }
.funnel-head { padding: 6px 4px 12px; }
.fh-title { font-size: 17px; font-weight: 800; }
.fh-dept { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 8px; }
.fh-meta { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.funnel-steps { display: flex; align-items: stretch; gap: 2px; margin: 10px 0 14px; }
.funnel-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.fs-num { font-size: 18px; font-weight: 800; padding: 8px 6px; border-radius: 10px; width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.fs-label { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.fs-arrow { position: absolute; right: -6px; top: 12px; font-size: 20px; color: var(--text-3); z-index: 2; }
.f-blue { background: rgba(37,99,235,.1); color: #2563eb; }
.f-cyan { background: rgba(14,165,233,.1); color: #0ea5e9; }
.f-purple { background: rgba(124,58,237,.1); color: #7c3aed; }
.f-amber { background: rgba(217,119,6,.12); color: #d97706; }
.f-red { background: rgba(220,38,38,.1); color: #dc2626; }
.f-green { background: rgba(22,163,74,.12); color: #16a34a; }
.funnel-pass { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pass-block {
  flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
}
.pass-round { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.pass-names { display: flex; flex-wrap: wrap; gap: 5px; }
.pass-name {
  font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: rgba(22,163,74,.1);
  color: #16a34a; font-weight: 600; white-space: nowrap;
}
.pass-name i { font-style: normal; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.pass-empty { font-size: 11.5px; color: var(--text-3); }
.funnel-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.funnel-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 720px; }
.funnel-table thead th { position: sticky; top: 0; background: var(--bg-2); color: var(--text-2); font-weight: 600; padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.funnel-table tbody td { padding: 9px 10px; border-bottom: 1px dashed var(--border); vertical-align: middle; }
.funnel-table tbody tr:hover { background: var(--bg); }
.rv-name { font-weight: 700; white-space: nowrap; }
.rv-none { color: var(--text-3); text-align: center; }
.rv-status { font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.rv-pending { background: rgba(148,163,184,.15); color: #64748b; }
.rv-scheduled { background: rgba(245,158,11,.14); color: #d97706; }
.rv-pass { background: rgba(22,163,74,.12); color: #16a34a; }
.rv-fail { background: rgba(220,38,38,.1); color: #dc2626; }
.rv-iv { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.rv-date { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.rv-result { font-size: 10.5px; color: var(--text-3); margin-top: 2px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.funnel-tip { margin-top: 12px; font-size: 11.5px; color: var(--text-3); }
.dk-sub { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; margin-top: 2px; }
.dk-sub.good { background: rgba(22,163,74,.1); color: #16a34a; }
.dk-sub.warn { background: rgba(245,158,11,.14); color: #d97706; }
.demand-unmatched-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, rgba(245,158,11,.1), rgba(249,115,22,.08));
  border: 1px dashed rgba(245,158,11,.5); color: var(--text-1); font-size: 13px;
  transition: all .15s ease;
}
.demand-unmatched-banner:hover { background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(249,115,22,.12)); border-color: var(--warning); }
.demand-unmatched-banner b { color: var(--warning); }
.unmatched-resumes-modal { width: min(720px, 94vw); }
.um-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.um-row:last-child { border-bottom: none; }
.um-cand { flex: 1; min-width: 220px; }
.um-name { font-weight: 700; font-size: 13.5px; }
.um-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.um-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.um-select { min-width: 200px; max-width: 260px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text-1); font-size: 12px; }
.um-empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 13px; }
.stage-badge { font-size: 11px; padding: 2px 9px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.stage-badge.s-new { background: rgba(37,99,235,.1); color: #2563eb; }
.stage-badge.s-screened { background: rgba(14,165,233,.1); color: #0ea5e9; }
.stage-badge.s-interview { background: rgba(124,58,237,.1); color: #7c3aed; }
.stage-badge.s-offer { background: rgba(217,119,6,.12); color: #d97706; }
.stage-badge.s-pending_onboard { background: rgba(245,158,11,.14); color: #d97706; }
.stage-badge.s-hired, .stage-badge.s-onboard, .stage-badge.s-regularized { background: rgba(22,163,74,.12); color: #16a34a; }
.stage-badge.s-rejected { background: rgba(220,38,38,.1); color: #dc2626; }
.of-accepted { font-size: 11px; padding: 2px 8px; border-radius: 12px; background: rgba(22,163,74,.12); color: #16a34a; font-weight: 600; white-space: nowrap; }
.of-declined { font-size: 11px; padding: 2px 8px; border-radius: 12px; background: rgba(220,38,38,.1); color: #dc2626; font-weight: 600; white-space: nowrap; }
.of-sent { font-size: 11px; padding: 2px 8px; border-radius: 12px; background: rgba(217,119,6,.12); color: #d97706; font-weight: 600; white-space: nowrap; }

.sum-row { padding: 12px 4px; border-bottom: 1px dashed var(--border); }
.sum-row:last-child { border-bottom: none; }
.sum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.sum-name { font-weight: 600; font-size: 13.5px; }
.sum-num { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sum-sub { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.progress-fill.warn { background: linear-gradient(90deg, #f59e0b, #f97316); }

.demand-table { display: flex; flex-direction: column; }
.demand-row {
  display: grid; grid-template-columns: 1.6fr 1.1fr 90px 84px; gap: 14px; align-items: center;
  padding: 12px 10px; border-bottom: 1px dashed var(--border);
}
.demand-row:hover { background: var(--bg); }
.dr-main { min-width: 0; }
.dr-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dr-sub { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.dr-progress { display: flex; flex-direction: column; gap: 6px; }
.dr-nums { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.manual-tag, .auto-tag { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 6px; font-weight: 500; }
.manual-tag { background: rgba(139,92,246,.12); color: #7c3aed; }
.auto-tag { background: rgba(22,163,74,.12); color: #16a34a; }
.status-badge { font-size: 11.5px; padding: 3px 10px; border-radius: 20px; text-align: center; font-weight: 600; }
.status-badge.open { background: rgba(37,99,235,.1); color: #2563eb; }
.status-badge.closed { background: rgba(22,163,74,.12); color: #16a34a; }
.status-badge.paused { background: rgba(148,163,184,.15); color: #64748b; }
.status-badge.recruiting { background: rgba(245,158,11,.14); color: #d97706; }
.dr-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* 月度需求分栏表格（类似 Excel） */
.demand-sheet-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 1460px; }
.demand-sheet-table thead th { position: sticky; top: 0; background: var(--bg-2); color: var(--text-2); font-weight: 600; padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.demand-sheet-table tbody td { padding: 8px 8px; border-bottom: 1px dashed var(--border); vertical-align: middle; }
.demand-sheet-table tbody tr:hover { background: var(--bg); }
.demand-sheet-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.demand-sheet-table td.actions { white-space: nowrap; }

/* 可编辑单元格（v4.14） */
.demand-edit-hint { font-size: 12px; color: var(--text-3); padding: 6px 2px 10px; }
.cell-edit { cursor: text; border-radius: 6px; transition: background .15s; position: relative; }
.cell-edit:hover { background: rgba(59,130,246,.08); box-shadow: inset 0 0 0 1px rgba(59,130,246,.25); }
.cell-edit.editing { padding: 2px; background: #fff; }
.cell-edit .cell-placeholder { color: var(--text-3); opacity: .65; font-weight: 400; }
.cell-edit.cell-empty:hover .cell-placeholder { color: var(--primary); opacity: 1; }
.cell-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cell-input {
  width: 100%; min-width: 56px; padding: 4px 6px; font-size: 12.5px;
  border: 1.5px solid var(--primary); border-radius: 6px; outline: none;
  background: #fff; color: var(--text-1); box-sizing: border-box;
}
.cell-select { height: 28px; }
td.cell-hr { white-space: nowrap; }
.hr-bound { margin-right: 4px; font-size: 11px; }

/* 迷你进度条（完成率/留存率） */
.mini-progress-wrap { display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: flex-end; }
.mini-progress { flex: 1; min-width: 46px; max-width: 90px; height: 6px; background: var(--bg-2); border-radius: 8px; overflow: hidden; }
.mini-progress-fill { height: 100%; border-radius: 8px; background: #2e9e5b; transition: width .3s; }
.mini-progress-fill.warn { background: #f59e0b; }
.mini-progress-fill.bad { background: #e5484d; }
.mini-progress-fill.done { background: #2e9e5b; }
.mini-progress-txt { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.mini-progress-txt.warn { color: #d97706; }
.mini-progress-txt.bad { color: #e5484d; }
.mini-progress-txt.done { color: #2e9e5b; }

/* 对接HR钉钉成员选择浮层（v4.14） */
.member-picker {
  position: fixed; z-index: 2000; width: 300px; background: var(--bg-1);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16);
  overflow: hidden;
}
.member-picker .mp-header { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); }
.member-picker .mp-header input { flex: 1; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; outline: none; background: var(--bg); color: var(--text-1); }
.member-picker .mp-header input:focus { border-color: var(--primary); }
.mp-list { max-height: 260px; overflow: auto; }
.mp-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; cursor: pointer; border-bottom: 1px dashed var(--border); font-size: 13px; }
.mp-item:hover { background: rgba(59,130,246,.08); }
.mp-item .mp-name { font-weight: 600; color: var(--text-1); }
.mp-item .mp-dept { font-size: 11px; color: var(--text-3); }
.mp-empty { padding: 18px 12px; text-align: center; color: var(--text-3); font-size: 12px; line-height: 1.7; }
.mp-footer { padding: 10px; border-top: 1px solid var(--border); background: var(--bg); }
.mp-footer input { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; outline: none; background: var(--bg-1); color: var(--text-1); width: calc(100% - 64px); margin-right: 6px; }

/* 批量粘贴（v4.14） */
.modal-lg .modal { max-width: 780px; }
.btn-strong { border-color: var(--primary); color: var(--primary); }
.batch-tip { font-size: 12px; color: var(--text-3); background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px; margin-top: 4px; line-height: 1.7; }
.batch-tip b { color: var(--text-2); }
.batch-preview-head { font-size: 13px; color: var(--text-2); padding: 10px 0 6px; }
.batch-preview-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 4px; }
.batch-preview-table thead th { background: var(--bg-2); color: var(--text-2); font-weight: 600; padding: 8px; text-align: left; border-bottom: 1px solid var(--border); }
.batch-preview-table tbody td { padding: 8px; border-bottom: 1px dashed var(--border); }
.batch-preview-table tbody tr:hover { background: var(--bg); }

/* ============ 专员漏斗对比表 ============ */
.rtable { display: flex; flex-direction: column; }
.rtable-row {
  display: grid; grid-template-columns: 1.3fr repeat(5, 1fr) 0.9fr; gap: 8px; align-items: center;
  padding: 10px 12px; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.rtable-head { font-size: 11.5px; color: var(--text-3); font-weight: 600; background: var(--bg); border-radius: 8px; border-bottom: none; }
.rtable-name { font-weight: 700; }
.rtable-sub { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-left: 3px; }
.rate-pill { padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.rate-pill.good { background: rgba(22,163,74,.12); color: #16a34a; }
.rate-pill.warn { background: rgba(245,158,11,.14); color: #d97706; }
.rate-pill.bad { background: rgba(220,38,38,.1); color: #dc2626; }
@media (max-width: 900px) {
  .profile-overview { grid-template-columns: repeat(3, 1fr); }
  .screen-head, .screen-row { grid-template-columns: 1.2fr 60px 80px 80px 1fr 36px; font-size: 12px; }
  .demand-row { grid-template-columns: 1.3fr 1fr 80px 76px; gap: 8px; }
}

/* ============ v4.6 增强：文件徽标 / 冰山模型 / 图片预览 / 需求上传 / 岗位附件 ============ */
.warn-tag { font-style: normal; font-size: 11px; color: #d97706; background: rgba(245,158,11,.12); padding: 2px 8px; border-radius: 6px; font-weight: 600; margin-left: 4px; }
.file-badge { position: relative; width: 44px; height: 44px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; font-size: 9px; }
.file-badge.img { border: 1px solid var(--border); }
.file-badge.img img { width: 100%; height: 100%; object-fit: cover; }
.file-badge.img span { position: absolute; margin-top: 26px; background: rgba(0,0,0,.55); color: #fff; padding: 0 4px; border-radius: 4px; }
.file-badge.doc { background: var(--bg); border: 1px dashed var(--border); color: var(--text-2); }
.file-badge .fb-icon { font-size: 18px; line-height: 1; }
.file-badge .fb-ext { font-size: 8.5px; font-weight: 700; margin-top: 2px; }

.profile-img-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; }
.profile-img-preview img { max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; }
.profile-img-caption { font-size: 11.5px; color: var(--text-3); }
.raw-text { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.7; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: var(--text-2); margin: 0; }

/* docx 岗位说明书 iframe 预览 */
.docx-preview-frame {
  width: 100%;
  height: 640px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f5f6f8;
  overflow: hidden;
}
@media (max-width: 768px) {
  .docx-preview-frame { height: 520px; }
}

.iceberg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.iceberg-col { border-radius: 12px; padding: 12px 14px; }
.iceberg-col.above { background: rgba(37,99,235,.05); border: 1px solid rgba(37,99,235,.18); }
.iceberg-col.below { background: rgba(139,92,246,.06); border: 1px solid rgba(139,92,246,.22); }
.iceberg-col-title { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.iceberg-col.above .iceberg-col-title { color: #2563eb; }
.iceberg-col.below .iceberg-col-title { color: #7c3aed; }
.iceberg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.iceberg-divider { height: 1px; background: var(--border); margin: 14px 0; }
.duty-list { display: flex; flex-direction: column; gap: 6px; }
.duty-item { font-size: 12.5px; color: var(--text-2); display: flex; gap: 8px; line-height: 1.6; }
.duty-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 7px; }
.check-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.check-label input { width: auto; }

.du-rows { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; padding: 2px; }
.du-row { display: grid; grid-template-columns: 1.6fr 1fr .9fr 1fr 64px 1fr 1fr 32px; gap: 6px; align-items: center; }
.du-row input { width: 100%; min-width: 0; }

.jfile-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; }
.jfile-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.jfile-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 1px solid var(--border); flex-shrink: 0; }
.jfile-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.jfile-meta { flex: 1; min-width: 0; }
.jfile-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jfile-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.jfile-actions { display: flex; gap: 6px; }
@media (max-width: 900px) {
  .iceberg-grid { grid-template-columns: 1fr; }
  .du-row { grid-template-columns: 1fr 1fr; }
}

/* ============ v4.16 按HR拆解 + 批量分配 ============ */
.hr-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hr-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  background: var(--bg); transition: box-shadow .15s, transform .1s, border-color .15s;
}
.hr-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); border-color: var(--accent); }
.hr-card-wait { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); border-style: dashed; }
.hr-card-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.hr-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hr-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.hr-avatar-wait { background: var(--text-3); }
.hr-card-name { font-weight: 600; font-size: 14px; }
.hr-tag { font-size: 11px; padding: 2px 7px; border-radius: 20px; background: var(--bg-2); color: var(--text-3); white-space: nowrap; }
.hr-tag-bound { background: var(--success-soft, rgba(34,197,94,.12)); color: var(--success, #16a34a); }
.hr-tag-wait { background: rgba(234,179,8,.12); color: #b45309; }
.hr-tag-active { background: var(--accent); color: #fff; }
.hr-card-nums { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.hr-card-nums strong { color: var(--text-1); font-size: 15px; margin-right: 2px; }
.hr-card-nums .good { color: var(--success, #16a34a); }
.hr-card-sub { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.demand-sheet-table td.chk, .demand-sheet-table th.chk { width: 32px; padding: 8px 4px 8px 10px; text-align: center; }
.demand-sheet-table td.chk input, .demand-sheet-table th.chk input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--accent); }

/* v4.16.1 修复：来自招聘专员兜底的需求也归到HR卡片 */
.hr-tag-recruiter { background: rgba(59,130,246,.12); color: #1d4ed8; }

/* ============ v4.23 试用期管理 + 花名册识别 + 简历查重 ============ */
.prob-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.roster-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(14,165,233,.06), rgba(14,165,233,.02));
  border: 1px dashed var(--accent, #2563eb); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px;
}
.prob-table-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.prob-table-wrap .track-table { margin: 0; border: none; }
.prob-table-wrap .track-table th { background: var(--bg-2); }
.prob-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; line-height: 1.5;
}
.prob-opt-btn {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-1); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .12s; line-height: 1.3;
}
.prob-opt-btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.prob-opt-btn small { display: block; font-weight: 400; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.prob-history-item {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px;
  border-left: 3px solid var(--accent); background: var(--bg-secondary, var(--bg-2));
  margin-bottom: 8px; font-size: 12.5px;
}
.prob-history-item .ph-time { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.prob-history-item .ph-op { color: var(--text-2); font-size: 11.5px; margin-top: 2px; }
.prob-history-item .ph-note { margin-top: 3px; color: var(--text-2); white-space: pre-wrap; }

/* 简历查重面板 */
.dup-panel {
  border: 1px solid #d8b4fe; border-radius: 12px; padding: 14px 16px;
  background: linear-gradient(180deg, rgba(124,58,237,.04), transparent);
  margin-bottom: 16px;
}
.dup-panel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.dup-group { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 10px; background: var(--bg); }
.dup-group-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 8px; }
.dup-member {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
  background: var(--bg-secondary, var(--bg-2));
}
.dup-member:last-child { margin-bottom: 0; }
