/* 注意：修改本文件后，请同步更新 base.html 中 <link> 的版本号 (?v=xxx)，
   否则浏览器会因 nginx immutable 强缓存继续使用旧样式。 */
/* ============================================================
   猎帮帮 v3 · 设计系统
   原则：简洁、高效、一致 —— 统一 token，减少噪音，突出内容
   ============================================================ */

/* ---- 设计 Token ---- */
:root {
  /* 色彩 */
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #1F2937;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --brand: #2F5F86;
  --brand-strong: #244A69;
  --brand-soft: #EEF3F8;
  --success: #166534;
  --success-soft: #ECFDF3;
  --warning: #B45309;
  --warning-soft: #FEF3C7;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;

  /* 间距 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;

  /* 圆角 */
  --r-sm: 6px; --r: 10px; --r-lg: 14px;

  /* 字号 */
  --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px;
  --fs-lg: 16px; --fs-xl: 20px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04);
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 10px 30px -12px rgba(16,24,40,.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: var(--fs-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }

/* ---- 顶栏 ---- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: var(--s5);
  height: 52px; padding: 0 var(--s6);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: var(--s2); color: var(--ink); flex-shrink: 0; }
.logo-sq {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; background: var(--brand);
}
.logo-sq.big { width: 42px; height: 42px; font-size: 19px; border-radius: var(--r); }
.logo-tx { display: flex; flex-direction: column; line-height: 1.05; }
.logo-nm { font-weight: 700; font-size: 14px; }
.logo-sub { font-size: 9px; letter-spacing: 2px; color: var(--faint); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a {
  padding: 6px 14px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: color .15s, background .15s;
}
.nav a:hover { background: var(--brand-soft); color: var(--ink); }
.nav a.active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.user { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.user-name { font-size: 13px; color: var(--muted); }
.user-out { font-size: 12px; color: var(--faint); transition: color .15s; }
.user-out:hover { color: var(--danger); }

/* ---- 布局 ---- */
.container { max-width: 1240px; margin: 0 auto; padding: var(--s6); }
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap;
}
.page-title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; }
.page-title .muted { font-size: var(--fs-md); font-weight: 400; }
.page-actions { display: flex; gap: var(--s2); }
.section-title { font-size: var(--fs-lg); font-weight: 600; margin: var(--s5) 0 var(--s3); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
/* ---- 卡片 ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-sm); margin-bottom: var(--s4);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s3); font-weight: 600; font-size: var(--fs-base);
}
.empty { color: var(--faint); text-align: center; padding: var(--s6) 0; font-size: var(--fs-md); }
.muted { color: var(--faint); font-size: var(--fs-sm); }
.link { color: var(--brand); }
.link:hover { text-decoration: underline; }
.wrap { white-space: normal; word-break: break-all; }
.count {
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: 1px 8px; font-size: var(--fs-xs); font-weight: 600;
}

/* ---- 表格 ---- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th {
  color: var(--muted); font-weight: 600; font-size: var(--fs-sm);
  background: #FAFBFC; white-space: nowrap;
}
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #F9FAFB; }
.table .clickable { cursor: pointer; }
.table .overdue { background: var(--danger-soft); }

/* ---- 分页 ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-top: var(--s4); }
.pagination .btn.disabled { opacity: .4; pointer-events: none; }
.page-info { font-size: var(--fs-sm); color: var(--muted); }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; min-height: 30px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); font-weight: 500; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { box-shadow: inset 0 1px 2px rgba(16,24,40,.06); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn.danger { color: var(--danger); border-color: #F3C6C6; }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.small { padding: 3px 9px; min-height: 24px; font-size: var(--fs-sm); }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- 标签 ---- */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-sm);
  background: #F3F4F6; color: var(--muted);
  font-size: var(--fs-xs); font-weight: 500; margin-right: 4px; white-space: nowrap;
}
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.warn { background: var(--warning-soft); color: var(--warning); }
.tag.ok { background: var(--brand-soft); color: var(--brand); }
.tag.key { background: #FDE8E8; color: #B91C1C; font-weight: 600; }
.tag.status-已推荐 { background: #F3F4F6; color: var(--muted); }
.tag.status-面试中 { background: var(--brand-soft); color: var(--brand); }
.tag.status-已Offer { background: var(--warning-soft); color: var(--warning); }
.tag.status-已入职 { background: var(--success-soft); color: var(--success); }
.tag.status-不合适 { background: var(--danger-soft); color: var(--danger); }

/* ---- 认证页 ---- */
.auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; }
.auth-card {
  width: 380px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--shadow);
}
.auth-logo { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.auth-title { font-size: var(--fs-lg); font-weight: 700; }
.auth-sub { font-size: var(--fs-xs); color: var(--faint); letter-spacing: 1.5px; }
.auth-form label { display: block; font-size: var(--fs-sm); color: var(--muted); margin: var(--s3) 0 5px; }
.auth-form input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font-size: var(--fs-base);
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,95,134,.12); }
.auth-form .btn { margin-top: var(--s5); }
.auth-error { color: var(--danger); font-size: var(--fs-sm); margin-top: var(--s3); }

/* ---- 表单控件 ---- */
input, select, textarea {
  padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: var(--fs-md); font-family: inherit; color: var(--ink); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,95,134,.12);
}
textarea { resize: vertical; }

.filter-bar { padding: var(--s3) var(--s4); }
.filter-form { display: flex; gap: var(--s2); flex-wrap: wrap; }
.filter-form input { flex: 2; min-width: 160px; }
.filter-form select { flex: 1; min-width: 120px; }

.form-grid { display: grid; grid-template-columns: 100px 1fr; gap: var(--s2) var(--s3); align-items: center; }
.form-grid label { font-size: var(--fs-sm); color: var(--muted); }
.form-grid textarea { resize: vertical; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); }
.kv-grid label { display: block; font-size: var(--fs-xs); color: var(--faint); margin-bottom: 2px; }
.meta-grid label { display: block; font-size: var(--fs-xs); color: var(--faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }

/* ---- Modal ---- */
.modal {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(15,23,42,.45); z-index: 500; padding: var(--s4);
}
.modal-card {
  width: 480px; max-width: 94vw; max-height: 86vh; overflow: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); font-weight: 600;
}
.modal-body { padding: var(--s4) var(--s5); }
.modal-body label { display: block; font-size: var(--fs-sm); color: var(--muted); margin: var(--s3) 0 4px; }
.modal-body input, .modal-body select, .modal-body textarea { width: 100%; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: var(--s2);
  padding: var(--s3) var(--s5); border-top: 1px solid var(--line);
}
.hint { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--faint); }

/* ---- 工作台待办 ---- */
.todo-item {
  display: block; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: var(--s2); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.todo-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.todo-item.warn { border-color: #F3C6C6; background: #FFFBFB; }
.todo-name { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.todo-meta { font-size: var(--fs-sm); color: var(--muted); }

/* ---- Kanban 看板 ---- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .kanban { grid-template-columns: 1fr; } }
.kanban-col { background: #F1F3F6; border-radius: var(--r); padding: var(--s2); min-height: 200px; }
.kanban-head {
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
  margin-bottom: var(--s2); padding: 2px 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.kanban-body { display: flex; flex-direction: column; gap: var(--s2); }
.kanban-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s3); font-size: var(--fs-sm);
  transition: box-shadow .15s, border-color .15s;
}
.kanban-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.kanban-name { color: var(--brand); font-weight: 600; font-size: 13.5px; }
.kanban-job { margin-top: 3px; font-size: var(--fs-sm); }
.kanban-meta { color: var(--muted); margin-top: 3px; font-size: var(--fs-xs); }
.kanban-meta .danger { color: var(--danger); font-weight: 600; }
.kanban-round { margin-top: 5px; font-size: var(--fs-xs); color: var(--brand-strong); }
.kanban-score { display: inline-block; margin-top: 5px; font-size: var(--fs-xs); color: var(--warning); font-weight: 600; }
.kanban-report { display: inline-block; margin-top: 5px; font-size: var(--fs-xs); }
.kanban-reason { margin-top: 5px; color: var(--danger); font-size: var(--fs-xs); }
.kanban-ops { display: flex; gap: 4px; margin-top: var(--s2); flex-wrap: wrap; align-items: center; }
.kanban-empty { color: #CBD2DC; text-align: center; padding: var(--s3) 0; font-size: var(--fs-sm); }
.reject-history { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s2); }
.score { display: inline-block; min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); cursor: help; }
.score.good { background: #E6F6EC; color: #1B7F4B; }
.score.mid { background: #FFF4E0; color: #B7791F; }
.score.low { background: #FDECEC; color: #C0392B; }

/* ---- ⋯ 流转菜单 ---- */
.kanban-more { position: relative; display: inline-block; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 300;
  min-width: 130px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg); padding: 4px; display: none;
}
.more-item {
  display: block; padding: 7px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--ink); white-space: nowrap;
}
.more-item:hover { background: var(--brand-soft); color: var(--brand); }

/* ---- 交付统计 ---- */
.delivery-summary { padding: var(--s3) var(--s4); }
.summary-row { display: flex; gap: var(--s3); }
.summary-item { text-align: center; flex: 1; }
.summary-num { font-size: 22px; font-weight: 700; color: var(--brand); }
.summary-label { font-size: var(--fs-sm); color: var(--muted); }
.summary-item.accent .summary-num { color: var(--warning); }

/* ---- 报告 / 维度 ---- */
.dim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3); }
.dim-item { background: #F8FAFC; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); }
.dim-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.dim-label { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.dim-score { font-size: var(--fs-lg); font-weight: 700; color: var(--brand); white-space: nowrap; }
.dim-bar-wrap { height: 6px; background: #EDF0F3; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.dim-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--success)); border-radius: 999px; }
.dim-reason { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.dim-weight { margin-top: 4px; font-size: var(--fs-xs); color: var(--faint); }
.report-md { line-height: 1.75; font-size: 13.5px; }
.report-md h1, .report-md h2, .report-md h3 { margin: var(--s4) 0 var(--s2); line-height: 1.3; color: var(--ink); }
.report-md h1 { font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.report-md h2 { font-size: 15px; }
.report-md h3 { font-size: 13.5px; }
.report-md p { margin: var(--s2) 0; }
.report-md table { width: 100%; border-collapse: collapse; margin: var(--s2) 0; font-size: var(--fs-md); }
.report-md th, .report-md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.report-md th { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.report-md tr:nth-child(even) td { background: #FAFBFC; }
.report-md code { background: #F1F3F6; border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.report-md pre { background: #F8FAFC; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s3); overflow-x: auto; margin: var(--s2) 0; }
.report-md pre code { background: none; padding: 0; }
.report-md blockquote { border-left: 3px solid var(--brand); background: var(--brand-soft); margin: var(--s2) 0; padding: var(--s2) var(--s3); color: var(--muted); }
.report-md ul, .report-md ol { margin: var(--s2) 0 var(--s2) 22px; }
.report-md li { margin: 3px 0; }
.report-md hr { border: none; border-top: 1px solid var(--line); margin: var(--s3) 0; }
.report-md strong { color: var(--ink); }

/* ---- 匹配结果 ---- */
/* ---- 面试进程 ---- */
.round-list { display: flex; flex-direction: column; gap: var(--s3); }
.round-item { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); }
.round-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: 6px; flex-wrap: wrap; }
.round-title { font-weight: 600; }
.round-body { font-size: var(--fs-md); margin-top: 4px; color: var(--muted); }
.round-ops { margin-top: var(--s2); }

/* ---- 其他 ---- */
.exp-item { padding: var(--s2) 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-md); }
.tag-row { margin-top: var(--s2); }
.upload-box input[type=file] { padding: var(--s2); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); }
.upload-box .btn { align-self: flex-start; }
.jd-parse { background: #F8FAFC; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: var(--s3); margin-bottom: var(--s3); }
.jd-parse-title { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin-bottom: var(--s2); }
.jd-parse textarea { width: 100%; }

/* ---- 人脉经营沟通记录 ---- */
.comm-add { display: flex; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.comm-add select { width: auto; }
.comm-add input { flex: 1; min-width: 160px; }
.comm-list { display: flex; flex-direction: column; gap: var(--s2); }
.comm-item { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); }
.comm-summary { flex: 1; font-size: var(--fs-md); }

/* ---- 决策卡弹窗 ---- */
.decide-context {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px; background: #F8FAFC;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: var(--s3); font-size: var(--fs-md);
}
.decide-opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: var(--s2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.decide-opt:hover { border-color: var(--brand); }
.decide-opt.active { border-color: var(--brand); background: var(--brand-soft); }
.decide-opt.active .decide-opt-main::before { content: '● '; color: var(--brand); }
.decide-opt-main { font-weight: 600; font-size: var(--fs-md); }
.decide-opt-desc { color: var(--muted); font-size: var(--fs-sm); text-align: right; }
.invite-form { display: flex; gap: var(--s2); }
.invite-form input[type=email] { flex: 2; }
.invite-form select, .invite-form input[type=number] { flex: 1; }
.invite-result { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.invite-result input { width: 100%; margin-top: 4px; }

/* ---- Toast ---- */
.toast {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%);
  padding: 9px 18px; border-radius: var(--r); background: var(--ink); color: #fff;
  font-size: var(--fs-md); z-index: 999; box-shadow: var(--shadow-lg);
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

/* ---- 人才/报告详情页 ---- */
.archived-banner { background: #FDECEC; color: #C0392B; border: 1px solid #F5C6C6; border-radius: var(--r); padding: 10px 16px; margin-bottom: var(--s2); font-weight: 600; }
.section-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s3); }
.nav-pill { padding: 4px 12px; border-radius: 999px; background: var(--bg-soft, #F1F3F6); color: var(--muted); font-size: var(--fs-sm); text-decoration: none; }
.nav-pill:hover { background: var(--brand-soft, #E8F0FE); color: var(--brand); }
.job-filter { margin-bottom: 6px; }
.report-times { margin: -6px 0 var(--s3); font-size: var(--fs-xs); }
.score-total { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.score-big { font-size: 34px; font-weight: 800; color: var(--brand); min-width: 60px; }
.score-bar-wrap { flex: 1; height: 10px; background: #EDF0F3; border-radius: 999px; overflow: hidden; }
.score-bar { height: 100%; background: linear-gradient(90deg, #2F80ED, #1B7F4B); border-radius: 999px; }
.score-note { color: var(--muted); font-size: var(--fs-xs); }
.dim-item { margin-bottom: var(--s2); }
.dim-head { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.dim-label { color: var(--ink); }
.dim-score { font-weight: 700; color: var(--brand-strong); }
.dim-bar-wrap { height: 6px; background: #EDF0F3; border-radius: 999px; overflow: hidden; margin-top: 3px; }
.dim-bar { height: 100%; background: var(--brand); border-radius: 999px; }
.dim-reason { color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.kanban-offer { margin-top: 5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.link-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.link-row .link { display: inline-flex; align-items: center; gap: 4px; }

/* ---- 职位详情页 ---- */
.meta-strip { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); }
.meta-chip label { display: block; font-size: var(--fs-xs); color: var(--faint); margin-bottom: 1px; }
.meta-chip span { font-size: var(--fs-md); color: var(--ink); }
.job-detail-fold { margin-top: var(--s3); border-top: 1px dashed var(--line); padding-top: var(--s2); }
.job-detail-fold summary { cursor: pointer; color: var(--muted); font-size: var(--fs-sm); user-select: none; }
.job-detail-fold summary:hover { color: var(--brand); }
.job-detail-fold p { margin-top: var(--s2); font-size: var(--fs-md); color: var(--ink); }
.section-title .count { font-size: var(--fs-sm); font-weight: 500; color: var(--faint); margin-left: 6px; }
.section-title .btn { margin-left: 8px; vertical-align: middle; }
.fold-label { margin: var(--s3) 0 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.fold-list { margin: 4px 0 0 20px; font-size: var(--fs-md); }
.fold-list li { margin: 3px 0; }
.tag.faint { background: #F3F4F6; color: var(--faint); }
.tag.key { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }

/* ---- 人才入库页 ---- */
.entry-tabs { display: flex; gap: 6px; margin-bottom: var(--s4); }
.entry-tab { padding: 8px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); cursor: pointer; font-size: var(--fs-md); color: var(--muted); }
.entry-tab:hover { border-color: var(--brand); color: var(--brand); }
.entry-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.pv-title { font-size: var(--fs-lg); font-weight: 700; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr; } }
.pv-text { font-size: var(--fs-md); color: var(--ink); white-space: pre-wrap; }
.batch-item { margin-bottom: var(--s4); }
.batch-item-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.batch-item-head .page-actions { margin-left: auto; }
.batch-item .preview-grid { margin-top: var(--s3); }
.paper-list { display: flex; flex-direction: column; gap: var(--s2); }
.paper-item { padding: var(--s2) 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-md); }
.paper-item:last-child { border-bottom: none; }
.paper-title { font-weight: 600; }
.paper-meta { margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.rec-results { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); margin-top: 6px; }
.rec-item { padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rec-item:hover { background: var(--brand-soft); }
.rec-item.dup { opacity: .55; cursor: not-allowed; }
.rec-item .tag { margin-left: auto; }
.fu-picked { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

/* ---- 评估匹配记录 行式列表 ---- */
.eval-list { display: flex; flex-direction: column; gap: var(--s3); }
.eval-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px var(--s4); display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.eval-cell { display: flex; align-items: center; gap: var(--s3); }
.eval-main { flex: 1 1 260px; flex-direction: column; align-items: flex-start; gap: 2px; }
.eval-head { display: flex; align-items: center; gap: var(--s2); }
.eval-name { font-weight: 600; font-size: 13.5px; color: var(--brand); }
.eval-meta { font-size: var(--fs-sm); }
.eval-dims { flex-wrap: wrap; gap: 4px; }
.dim-chip { font-size: var(--fs-xs); background: #F1F3F6; border-radius: 4px; padding: 2px 6px; color: var(--muted); white-space: nowrap; }
.dim-chip b { color: var(--ink); }
.eval-tail { flex-wrap: wrap; gap: var(--s2); white-space: nowrap; }
.eval-ops { margin-left: auto; flex-wrap: wrap; gap: 4px; }
@media (max-width: 900px) { .eval-row { flex-direction: column; align-items: flex-start; } .eval-ops { margin-left: 0; } }

/* ---- 工作台（今日待办跟进）---- */
.work-date { color: var(--muted); font-size: var(--fs-md); }
.followup-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.stat-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s5) var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; transition: box-shadow .15s, border-color .15s; }
.stat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.stat-icon { font-size: 24px; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-num.danger { color: var(--danger); }
.stat-label { font-size: var(--fs-lg); font-weight: 600; color: var(--ink); }
.stat-sub { font-size: var(--fs-xs); }
.stat-overdue { font-size: var(--fs-sm); color: var(--danger); font-weight: 600; }

/* ---- 全局 Loading 遮罩（AI 长任务反馈） ---- */
.loading-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247, 248, 250, .74);
  backdrop-filter: blur(2px);
}
.loading-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 40px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); max-width: 84vw;
}
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--brand-soft);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: var(--fs-base); color: var(--ink); max-width: 340px; text-align: center; }
.loading-sub { font-size: var(--fs-sm); color: var(--muted); max-width: 340px; text-align: center; }
