/* ============================================================
   才库猎头业务系统 · 设计系统 v2
   配色：才库深蓝 + 鎏金（延续官网品牌色）
   ============================================================ */

:root {
  /* 品牌色 */
  --c-primary: #0A1628;
  --c-primary-2: #122A4C;
  --c-primary-3: #1B3A66;
  --c-gold: #C9A227;
  --c-gold-dark: #A8861B;
  --c-gold-light: #F3E8C1;

  /* 中性色 */
  --c-bg: #F2F4F8;
  --c-card: #FFFFFF;
  --c-border: #E2E8F0;
  --c-border-2: #CBD5E1;
  --c-text: #1B2430;
  --c-text-2: #64748B;
  --c-text-3: #94A3B8;

  /* 语义色 */
  --c-success: #0A7A3D;
  --c-success-bg: #E6F4EC;
  --c-danger: #DC2626;
  --c-danger-bg: #FEEBEB;
  --c-warn: #D97706;
  --c-warn-bg: #FDF3E3;
  --c-info: #2563EB;
  --c-info-bg: #EAF0FE;

  /* 尺寸 */
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar-w: 224px;
  --shadow: 0 1px 3px rgba(10, 22, 40, 0.08), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 10px 30px rgba(10, 22, 40, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--c-primary-3); text-decoration: none; }
a:hover { color: var(--c-gold-dark); }

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

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  color: #D6DEEA;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--c-gold), #E6C65C);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  flex-shrink: 0;
}

.brand-name { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.brand-sub { font-size: 11px; color: #8FA3BF; }

.sidebar-nav { flex: 1; padding: 12px 10px; }

.nav-group { margin-bottom: 6px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #C3CFE0;
  font-size: 13.5px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(201, 162, 39, 0.28), rgba(201, 162, 39, 0.08)); color: #F5D97A; font-weight: 600; }
.nav-item .ico { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-item .badge { margin-left: auto; }

.nav-label {
  font-size: 12px;
  font-weight: 600;
  color: #93A7C4;
  padding: 16px 12px 6px;
  letter-spacing: 1px;
  text-transform: none;
  position: relative;
}
.nav-label::before {
  content: '';
  position: absolute; left: 12px; top: 6px;
  width: 16px; height: 2px;
  background: var(--c-gold, #C9A227);
  border-radius: 2px;
}
.nav-label::after {
  content: '';
  display: block;
  margin-top: 6px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #6B7F9C;
}

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

.topbar {
  height: 58px;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-title { font-size: 16px; font-weight: 700; color: var(--c-primary); }

.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-text-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-2), var(--c-primary-3));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}

.content { padding: 22px 24px 40px; flex: 1; }

/* ============ 通用组件 ============ */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; color: var(--c-primary); font-weight: 700; }
.page-head .sub { color: var(--c-text-2); font-size: 13px; margin-top: 2px; }

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad { padding: 18px 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }

.stat-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-ico.blue { background: var(--c-info-bg); }
.stat-ico.gold { background: var(--c-gold-light); }
.stat-ico.green { background: var(--c-success-bg); }
.stat-ico.red { background: var(--c-danger-bg); }
.stat-num { font-size: 22px; font-weight: 800; color: var(--c-primary); line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--c-text-2); }

/* 表格 */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl thead th {
  text-align: left;
  padding: 10px 14px;
  background: #F8FAFC;
  color: var(--c-text-2);
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.tbl tbody td { padding: 11px 14px; border-bottom: 1px solid #EEF2F7; vertical-align: middle; }
.tbl tbody tr:hover { background: #FAFBFD; }
.tbl .num { font-variant-numeric: tabular-nums; }

/* 徽章 */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}
.badge.blue { background: var(--c-info-bg); color: var(--c-info); }
.badge.gold { background: var(--c-gold-light); color: var(--c-gold-dark); }
.badge.green { background: var(--c-success-bg); color: var(--c-success); }
.badge.red { background: var(--c-danger-bg); color: var(--c-danger); }
.badge.purple { background: #F3E8FF; color: #7C3AED; }
.badge.cyan { background: #ECFEFF; color: #0E7490; }
.badge.gray { background: #EEF2F7; color: var(--c-text-2); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  background: #fff;
  color: var(--c-text);
  border-color: var(--c-border-2);
}
.btn:hover { border-color: var(--c-primary-3); color: var(--c-primary-3); }
.btn-primary { background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark)); color: #fff; border-color: transparent; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.05); color: #fff; }
.btn-dark { background: var(--c-primary); color: #fff; border-color: transparent; }
.btn-dark:hover { background: var(--c-primary-2); color: #fff; }
.btn-danger { background: var(--c-danger-bg); color: var(--c-danger); border-color: transparent; }
.btn-danger:hover { background: var(--c-danger); color: #fff; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 16px; }
.form-item { display: flex; flex-direction: column; gap: 5px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 12.5px; font-weight: 600; color: var(--c-text-2); }
.form-item label .req { color: var(--c-danger); }
.form-item input, .form-item select, .form-item textarea {
  padding: 8px 12px;
  border: 1px solid var(--c-border-2);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.form-item textarea { resize: vertical; min-height: 72px; }
.form-item .hint { font-size: 11.5px; color: var(--c-text-3); }

.form-actions { display: flex; gap: 10px; margin-top: 20px; }

/* 搜索栏 */
.search-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search-bar input[type="text"], .search-bar select {
  padding: 8px 12px;
  border: 1px solid var(--c-border-2);
  border-radius: 8px;
  font-size: 13.5px;
  min-width: 220px;
}
.search-bar input:focus, .search-bar select:focus { outline: none; border-color: var(--c-gold); }

/* 分页 */
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 5px 11px;
  border: 1px solid var(--c-border);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--c-text-2);
  background: #fff;
}
.pagination a:hover { border-color: var(--c-gold); color: var(--c-gold-dark); }
.pagination .cur { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* 空状态 */
.empty { text-align: center; padding: 46px 20px; color: var(--c-text-3); }
.empty .ico { font-size: 36px; margin-bottom: 10px; }

/* 消息提示 */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert.error { background: var(--c-danger-bg); color: var(--c-danger); }
.alert.success { background: var(--c-success-bg); color: var(--c-success); }
.alert.info { background: var(--c-info-bg); color: var(--c-info); }

/* 页脚 */
.footer-note { text-align: center; color: var(--c-text-3); font-size: 12px; padding: 18px 0 6px; }

/* ============ 登录页 ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(27, 58, 102, 0.35), transparent 60%),
    linear-gradient(150deg, #0A1628 0%, #0F1F3A 55%, #122A4C 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--c-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 34px 34px 30px;
}

.login-brand { text-align: center; margin-bottom: 24px; }
.login-logo {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-gold), #E6C65C);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.35);
}
.login-title { font-size: 19px; font-weight: 800; color: var(--c-primary); }
.login-sub { font-size: 12.5px; color: var(--c-text-2); margin-top: 3px; }

.login-form .form-item { margin-bottom: 14px; }
.login-form label { font-size: 13px; }

/* ============ 工作台 ============ */
.todo-list { list-style: none; }
.todo-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid #EEF2F7;
  font-size: 13.5px;
}
.todo-list li:last-child { border-bottom: none; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.todo-dot.gold { background: var(--c-gold); }
.todo-dot.green { background: var(--c-success); }
.todo-dot.red { background: var(--c-danger); }

.section-title { font-size: 14.5px; font-weight: 700; color: var(--c-primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--c-gold); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
/* 客户详情：左资料窄、右职位宽 */
.client-detail-grid { grid-template-columns: 5fr 7fr; }
@media (max-width: 900px) { .client-detail-grid { grid-template-columns: 1fr; } }
/* 职位详情：左基础信息(40%)、右跟单动态(60%) */
.job-detail-grid { grid-template-columns: 40% 60%; }
@media (max-width: 1000px) { .job-detail-grid { grid-template-columns: 1fr; } }
/* 客户职位订单卡 */
.c-pos-list { display:flex; flex-direction:column; gap:10px; }
.c-pos-card { display:block; padding:14px 16px; border:1px solid #E2E8F0; border-radius:10px; text-decoration:none; color:inherit; transition:box-shadow .15s,border-color .15s; }
.c-pos-card:hover { border-color:#2563EB; box-shadow:0 4px 14px rgba(37,99,235,.10); }
.c-pos-top { display:flex; align-items:center; gap:8px; }
.c-pos-title { font-size:16px; font-weight:700; color:#0F172A; margin-right:auto; text-decoration:none; }
.c-pos-title:hover { color:#2563EB; }
.c-pos-meta { margin-top:6px; font-size:13px; color:#64748B; }
.c-pos-time { margin-top:2px; color:#94A3B8; font-size:12.5px; }
/* 订单下候选人跟单条 */
.c-cand-list { margin-top:10px; padding-top:10px; border-top:1px dashed #EEF2F7; display:flex; flex-direction:column; gap:6px; }
.c-cand { display:flex; align-items:center; gap:8px; font-size:13.5px; flex-wrap:wrap; }
.c-cand-name { font-weight:700; color:#1E293B; text-decoration:none; }
.c-cand-name:hover { color:#2563EB; }
.c-cand-title { color:#64748B; font-size:12.5px; }
.c-cand .badge { font-size:12px; }
.c-cand-time { margin-left:auto; color:#94A3B8; font-size:12px; }
.c-cand-empty { color:#94A3B8; font-size:12.5px; padding:4px 0; }
/* 跟单阶段配色 */
.st-sourced { background:#EFF6FF; color:#1D4ED8; }
.st-recommended { background:#F0F9F4; color:#15803D; }
.st-interview { background:#FFFBEB; color:#B45309; }
.st-accepted, .st-background, .st-offer_sent, .st-agreed { background:#F5F3FF; color:#6D28D9; }
.st-onboarded, .st-guarantee, .st-closed { background:#ECFDF5; color:#047857; }
.st-rejected, .st-exited { background:#FEF2F2; color:#B91C1C; }
.st-declined { background:#FFF7ED; color:#C2410C; }
.st-backup { background:#F1F5F9; color:#475569; }
/* 职位列表 · 推荐候选人 chips */
.cand-cell { min-width:150px; }
.cand-chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.cand-chip { font-size:12.5px; padding:2px 10px; border-radius:999px; background:#EFF6FF; color:#1D4ED8; text-decoration:none; white-space:nowrap; line-height:1.7; }
.cand-chip:hover { background:#DBEAFE; }
.cand-chip.cand-dead { background:#FEF2F2; color:#B91C1C; text-decoration:line-through; }
.cand-more { font-size:12.5px; color:#64748B; cursor:pointer; white-space:nowrap; padding:2px 4px; }
.cand-count { font-size:12px; color:#64748B; margin-bottom:5px; }
/* 职位列表：整表居中 + 姓名单行横排 */
.pos-table thead th, .pos-table tbody td { text-align:center; }
.pos-table tbody td { vertical-align:middle; }
.pos-table .cand-cell { min-width:0; }
.pos-table .cand-count { text-align:center; }
.pos-table .cand-chips { flex-wrap:nowrap; justify-content:center; overflow-x:auto; gap:6px; padding:2px 0; }
.pos-table .cand-chips::-webkit-scrollbar { height:4px; }
.pos-table .cand-chips::-webkit-scrollbar-thumb { background:#CBD5E1; border-radius:4px; }
.pos-table .op-cell { white-space:nowrap; }
.pos-table .op-cell .btn-sm { margin:0 3px; }
/* 移出项目 · 红色幽灵小按钮 */
.btn-danger-line { background:#fff; color:var(--c-danger,#DC2626); border:1px solid #F1C6C6; }
.btn-danger-line:hover { background:#FEF2F2; }
.pipe-remove { margin-top:8px; }
/* 选人页过滤输入框 */
.field-search { width:100%; padding:8px 12px; border:1px solid var(--c-border,#E2E8F0); border-radius:8px; font-size:13.5px; margin-bottom:8px; box-sizing:border-box; }
/* 阶段流转历史时间线 */
.stage-history { width:100%; margin-top:6px; }
.stage-history > summary { cursor:pointer; font-size:12.5px; color:#64748B; user-select:none; }
.stage-history > summary:hover { color:#2563EB; }
.stage-timeline { list-style:none; margin:8px 0 0; padding:0 0 0 4px; border-left:2px solid #E2E8F0; }
.stage-timeline li { position:relative; padding:4px 0 4px 16px; font-size:13px; }
.stage-timeline li::before { content:''; position:absolute; left:-6px; top:11px; width:9px; height:9px; border-radius:50%; background:#2563EB; border:2px solid #fff; }
.st-time { color:#94A3B8; font-size:12px; margin-right:8px; }
.st-node { color:#334155; }
.st-note { color:#64748B; margin-left:6px; }
.st-by { color:#94A3B8; font-size:12px; }

/* 职位详情 · 业务跟单动态（专用规整布局） */
.pipe-list { display:flex; flex-direction:column; gap:12px; }
.pipe-row {
  border:1px solid #E8EDF3; border-radius:12px; background:#FBFCFE;
  padding:13px 15px; display:flex; flex-direction:column; gap:5px;
}
.pipe-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pipe-name { font-size:15px; font-weight:700; color:#0F172A; text-decoration:none; flex:1; min-width:0; }
.pipe-name:hover { color:#2563EB; }
.pipe-top .badge { flex-shrink:0; font-size:12px; padding:3px 10px; border-radius:999px; white-space:nowrap; }
.pipe-meta { font-size:13px; color:#64748B; line-height:1.6; word-break:break-word; }
.pipe-time { font-size:12px; color:#94A3B8; }
.pipe-row .stage-history { margin-top:4px; }
.pipe-row .stage-timeline { margin-top:8px; }
.pipe-row .stage-timeline li { padding:7px 0 7px 16px; font-size:12.5px; line-height:1.7; }
.pipe-row .stage-timeline li::before { top:13px; }
.pipe-row .st-time { display:inline-block; min-width:118px; margin-right:10px; }
.pipe-row .st-note { display:inline-block; margin-left:0; margin-top:2px; }
.pipe-row .st-by { display:block; margin-top:1px; }
.c-pos-meta { margin-top:6px; font-size:13px; color:#64748B; }
/* 决策人简介卡 */
.dm-card { background:#F8FAFC; border-radius:10px; padding:12px 14px; }
.dm-name { font-size:17px; font-weight:800; color:#0F172A; margin-bottom:6px; }
.dm-age { font-size:13px; font-weight:500; color:#64748B; }
.dm-row { font-size:14px; color:#334155; margin-top:4px; display:flex; gap:8px; }
.dm-k { flex-shrink:0; font-weight:700; color:#64748B; min-width:56px; }

/* ============ 候选人档案 / 推荐报告 ============ */
.report-paper {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 38px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 14px;
  color: #1F2937;
}

.report-head {
  border-bottom: 3px solid var(--c-primary);
  padding-bottom: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}
.report-head .org { font-size: 20px; font-weight: 800; color: var(--c-primary); }
.report-head .doc { font-size: 12.5px; color: var(--c-text-2); text-align: right; }

.report-cand { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.report-photo {
  width: 72px; height: 128px;   /* 9:16 竖版证件照比例 */
  border-radius: 8px;
  border: 1px solid var(--c-border);
  object-fit: cover;
  background: #F1F5F9;
  flex-shrink: 0;
}
.report-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-3); font-size: 12px; text-align: center; line-height: 1.5;
}
.report-name { font-size: 22px; font-weight: 800; color: var(--c-primary); }
.report-title { font-size: 14px; color: var(--c-text-2); margin-top: 2px; }
.report-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

/* 信息表格（概况） */
.itbl { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.itbl th, .itbl td { border: 1px solid var(--c-border); padding: 8px 12px; font-size: 13px; }
.itbl th { background: #F8FAFC; color: var(--c-text-2); font-weight: 600; width: 96px; white-space: nowrap; }
.itbl td { color: #1F2937; }

/* 院校级别徽章（教育经历标注） */
.school-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  font-size: 11px; line-height: 1.6; border-radius: 10px;
  font-weight: 600; white-space: nowrap; vertical-align: 1px;
}
.badge-985 { background: #FDE8E8; color: #B91C1C; border: 1px solid #F5B5B5; }
.badge-211 { background: #FEF3C7; color: #92400E; border: 1px solid #F6D878; }
.badge-dual { background: #DCFCE7; color: #166534; border: 1px solid #A7E3B5; }
.badge-normal { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }
.itbl th { background: #F8FAFC; color: var(--c-text-2); font-weight: 600; width: 96px; white-space: normal; }

/* 分段 */
.seg { margin-bottom: 18px; }
.seg-title {
  font-size: 15px; font-weight: 800; color: var(--c-primary);
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-gold);
  margin-bottom: 12px;
}
.seg-title .no {
  width: 22px; height: 22px;
  background: var(--c-primary);
  color: #fff; border-radius: 6px;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 工作履历大表格 */
.jtbl { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.jtbl thead th {
  background: #0A1628; color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--c-primary);
}
.jtbl tbody td { border: 1px solid var(--c-border); padding: 10px 12px; font-size: 13.5px; vertical-align: top; }
.jtbl tbody tr.jrow-even { background: #F8FAFC; }
.jtbl tbody tr.jrow-odd { background: #FFFFFF; }

.mtag { font-weight: 700; color: #0A1628; font-size: 12.5px; }
.mval { color: #475569; }
.subgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 16px; margin-bottom: 6px; }
.subgrid .item { display: flex; gap: 6px; font-size: 13px; }
.subgrid .item .mtag { flex-shrink: 0; }

/* 工作履历技能标签：横排圆角 chip，不逐行铺开（智联来源） */
.work-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.work-skill-tags .skill-chip {
  background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0;
  font-size: 12px; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

.duty-text { white-space: pre-wrap; line-height: 1.75; color: #334155; }

/* 长文本自然分段：按原文换行拆成段，段与段之间留白（配合 EJS 里的 paras() 渲染） */
.para-block { white-space: normal; }
.para-block > span { display: block; margin: 0 0 8px; }
.para-block > span:last-child { margin-bottom: 0; }

/* 工作单位简介（简历原文里的「工作单位简介」段落，独立成块、不并入职责） */
.intro-box { margin: 2px 0 10px; padding: 9px 12px 10px; background: #F8FAFC; border-left: 3px solid var(--c-accent, #C9A24B); border-radius: 0 6px 6px 0; }
.intro-label { display: inline-block; font-size: 11.5px; color: #8A6D2F; background: #FDF6E3; border: 1px solid #F0E0B8; padding: 1px 8px; border-radius: 10px; margin-bottom: 5px; }
.intro-text { white-space: pre-wrap; line-height: 1.7; color: #475569; font-size: 13.5px; }

/* 项目经历 */
.ptbl { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.ptbl thead th { background: #F1F5F9; color: var(--c-primary-2); font-weight: 700; font-size: 13px; padding: 7px 12px; border: 1px solid var(--c-border); text-align: left; }
.ptbl tbody td { border: 1px solid var(--c-border); padding: 9px 12px; font-size: 13px; vertical-align: top; }

/* 顾问评语 */
.note-box { background: var(--c-gold-light); border-left: 4px solid var(--c-gold); border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 13px; color: #5B4A12; white-space: pre-wrap; }

/* 报告页脚 */
.report-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--c-border); font-size: 11.5px; color: var(--c-text-3); }

/* 流水线 */
.pipe-stage {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: #EEF2F7; color: var(--c-text-2);
}
.pipe-stage.done { background: var(--c-success-bg); color: var(--c-success); }
.pipe-stage.cur { background: var(--c-gold-light); color: var(--c-gold-dark); }

/* 详情定义列表 */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.dl .item { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #EEF2F7; font-size: 13.5px; }
.dl .item .k { color: var(--c-text-2); flex-shrink: 0; min-width: 90px; }
.dl .item .v { color: var(--c-text); word-break: break-all; }

/* 打印（推荐报告） */
@media print {
  .sidebar, .topbar, .no-print, .btn { display: none !important; }
  .content { padding: 0; }
  .report-paper { border: none; box-shadow: none; padding: 0; max-width: 100%; }
  body { background: #fff; }
}

/* 简历附件区 */
.att-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.att-table th { text-align: left; font-size: 12px; color: #64748B; padding: 4px 8px; border-bottom: 2px solid #E2E8F0; }
.att-table td { font-size: 13px; color: #0F172A; padding: 7px 8px; border-bottom: 1px solid #EEF2F7; vertical-align: middle; }
.att-table .muted { color: #94A3B8; font-size: 12px; }
.badge { display: inline-block; background: #EEF4FF; color: #1E40AF; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.mini-btn { display: inline-block; background: #fff; border: 1px solid #CBD5E1; color: #1E3A8A; font-size: 12px; padding: 3px 10px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.mini-btn:hover { background: #F1F5F9; }
.mini-btn.danger { color: #B91C1C; border-color: #FCA5A5; }
.att-name { color: #1D4ED8; text-decoration: underline; }
.att-name:hover { color: #1E3A8A; }
.inline-form { display: inline; }
.att-upload { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.att-upload input[type=file] { font-size: 12px; }
.att-note { flex: 1; min-width: 200px; border: 1px solid #CBD5E1; border-radius: 6px; padding: 5px 8px; font-size: 13px; }

/* ============================================================
   候选人评价系统 + 列表搜索分行 + 整体小美化（v3）
   ============================================================ */

/* ---------- 搜索区：关键词单独一行 ---------- */
.search-2row { flex-direction: column; gap: 10px; padding: 14px 16px 14px; margin-bottom: 14px; }
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-row-q { display: flex; gap: 10px; align-items: center; }
.search-label { font-size: 13px; font-weight: 600; color: var(--c-text-2); flex-shrink: 0; width: 48px; }
.search-row-q input[type="text"] { flex: 1; min-width: 260px; height: 38px; }
.search-row input[type="text"], .search-row select { height: 38px; min-width: 160px; }
.search-row .btn { height: 38px; }

/* 输入/下拉统一：圆角、聚焦金色描边、更柔和 */
.search-bar input, .search-bar select, .form-item input, .form-item select, .form-item textarea {
  transition: border-color .15s, box-shadow .15s;
}
.search-bar input:focus, .search-bar select:focus {
  outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(201,162,39,.16);
}

/* ---------- 评价页布局 ---------- */
.eval-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .eval-layout { grid-template-columns: 1fr; } }
.eval-form-card, .eval-history { padding: 18px 18px; }
.eval-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.eval-tab {
  padding: 7px 16px; border-radius: 8px; border: 1px solid var(--c-border-2);
  background: #fff; color: var(--c-text-2); font-size: 13.5px; cursor: pointer; font-weight: 600;
}
.eval-tab.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.eval-pane { display: none; }
.eval-pane.active { display: block; }

/* 星级（点击打分） */
.star-row { display: inline-flex; gap: 3px; align-items: center; }
.star { font-size: 20px; color: #CBD5E1; cursor: pointer; line-height: 1; transition: color .12s, transform .12s; }
.star:hover { transform: scale(1.15); }
.star.star-on, .star-on { color: #F0B429; }
.star-tip { font-size: 12.5px; color: var(--c-text-2); margin-left: 8px; }

/* 五星维度块 */
.eval-dim { padding: 12px 14px; margin-bottom: 12px; background: #FAFBFD; border-radius: 8px; }
.eval-dim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.eval-dim-name { font-size: 14px; font-weight: 800; }
.eval-dim-score { font-size: 12.5px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.eval-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; gap: 12px; }
.eval-item-name { font-size: 13.5px; color: #334155; }
.eval-total {
  margin: 14px 0; padding: 12px 16px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-gold-light), #FBF3D9);
  color: #5B4A12; font-size: 15px;
}
.eval-total b { font-size: 22px; color: var(--c-gold-dark); }

/* 历史评价卡片 */
.eval-history .seg { margin-bottom: 10px; }
.eval-card { border: 1px solid var(--c-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.eval-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.eval-stars-show { color: #F0B429; letter-spacing: 1px; }
.eval-score-num { font-weight: 800; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.eval-meta { font-size: 12px; color: var(--c-text-3); margin-left: auto; }
.eval-meta-sub { font-size: 11.5px; color: var(--c-text-3); margin-top: 4px; }
.eval-dim-mini { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--c-text-2); margin: 4px 0 6px; }
.eval-comment { font-size: 13.5px; color: #334155; line-height: 1.7; white-space: pre-wrap; margin-top: 4px; }

/* ---------- 档案页浮动评价侧栏（跟随滚动、不遮挡） ---------- */
/* ---------- 档案双栏：简历纸 + 右侧 sticky 辅助栏（评价/同事） ---------- */
.profile-layout { display: flex; gap: 22px; align-items: flex-start; max-width: 1180px; margin: 0 auto; }
.profile-main { flex: 1; min-width: 0; }
.profile-main .report-paper { max-width: none; margin: 0; }
.profile-side {
  flex: 0 0 252px; width: 252px;
  position: sticky; top: 76px; align-self: flex-start;
  display: flex; flex-direction: column; gap: 14px;
}
.eval-dock {
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.eval-dock-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; font-size: 14px; font-weight: 800; color: var(--c-primary); cursor: pointer;
  background: linear-gradient(135deg, var(--c-gold-light), #FBF3D9);
}
.eval-dock-arrow { transition: transform .15s; font-size: 12px; color: var(--c-gold-dark); }
.eval-dock-body { padding: 12px 14px; max-height: 52vh; overflow-y: auto; }
.eval-dock-body.folded { display: none; }
.eval-dock-score { font-size: 13px; color: var(--c-text-2); margin-bottom: 6px; }
.eval-dock-score b { font-size: 18px; color: var(--c-gold-dark); }
.eval-dock-row { font-size: 13px; color: #F0B429; margin-bottom: 6px; }
.eval-dock-list { margin: 8px 0; }
.eval-dock-item { padding: 8px 0; border-bottom: 1px dashed #EEF2F7; font-size: 12.5px; }
.eval-dock-who { color: var(--c-text-3); margin-left: 6px; }
.eval-dock-cmt { color: #475569; margin-top: 3px; line-height: 1.6; }

/* 右侧同事关联卡 */
.rel-side {
  background: #fff; border: 1px solid #E7DCC0; border-radius: 12px; padding: 14px;
  box-shadow: var(--shadow);
}
.rel-side-title { font-size: 14px; font-weight: 800; color: var(--c-primary); margin-bottom: 10px; }
.rel-side .rel-sub { font-size: 12.5px; font-weight: 600; color: var(--c-text-2); margin: 10px 0 6px; }
.rel-side .rel-list { display: flex; flex-direction: column; gap: 8px; }
.rel-side .rel-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 9px 11px; border: 1px solid #EFE6CE; border-radius: 10px; background: #FFFCF4;
}
.rel-side .rel-name { font-weight: 700; color: var(--c-primary); text-decoration: none; font-size: 13.5px; }
.rel-side .rel-name:hover { text-decoration: underline; }
.rel-side .rel-meta { color: #556; font-size: 12.5px; }
.rel-side .rel-titles { color: #667; font-size: 12px; width: 100%; }
.rel-side .rel-period { color: #889; font-size: 12px; }
.rel-side .rel-kind { font-size: 11.5px; color: #8A6D2F; background: #FDF3D7; border-radius: 999px; padding: 2px 9px; }
.rel-side .rel-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.rel-side .rel-chip { font-size: 12.5px; color: #334155; background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 999px; padding: 3px 11px; }
.rel-side .rel-chip b { color: #8A6D2F; }

@media (max-width: 1100px) { .profile-side { display: none; } }
@media print { .profile-side { display: none !important; } .profile-layout { display: block; } }

/* ---------- 小美化：按钮/表格更精致 ---------- */
.btn { box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.btn-primary { box-shadow: 0 3px 10px rgba(201,162,39,.28); }
.tbl tbody tr:hover { background: #F6F9FF; }
.pagination .cur { background: var(--c-primary); }

/* 顶栏角色标签（中文名旁） */
.role-tag {
  display: inline-block; margin-left: 7px; padding: 1px 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--c-gold-light); color: var(--c-gold-dark); vertical-align: 1px;
}
.topbar { box-shadow: 0 1px 0 rgba(10,22,40,.04); }
.topbar-user { font-weight: 500; color: var(--c-text); }
.topbar-user .avatar { box-shadow: 0 2px 6px rgba(10,22,40,.18); }

/* 下拉/输入在紧凑区统一高度与圆角 */
.search-bar select, .search-bar input { border-radius: 8px; }
.card { box-shadow: 0 2px 10px rgba(10,22,40,.05); }

/* ---------- 全量搜索一体化胶囊 + 四字段单列（列表页） ---------- */
.search-2row { row-gap: 14px; }
.search-row-q {
  width: 100%; display: flex; align-items: stretch; height: 52px !important;
  background: #fff; border: 1.5px solid #E7DCC0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(10,22,40,.05); transition: border-color .18s, box-shadow .18s;
}
.search-row-q:focus-within { border-color: #C9A227 !important; box-shadow: 0 0 0 3px rgba(201,162,39,.18); }
.search-row-q .fullsearch-tag {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 100%;
  padding: 0 20px; background: linear-gradient(135deg, #C9A227 0%, #DDB63E 100%);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1.5px; white-space: nowrap;
  border: none !important; border-right: 1px solid rgba(255,255,255,.35) !important; border-radius: 0;
}
.search-row-q .fullsearch-input {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 52px !important;
  border: none !important; outline: none; background: transparent !important; box-shadow: none !important;
  padding: 0 18px; font-size: 14.5px; color: var(--c-text); border-radius: 0 !important;
}
.search-row-q .fullsearch-input::placeholder { color: #9AA5B5; }

/* 第二行：行业/职位/手机号/姓名 四列网格 */
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; }
.field-item { display: flex; flex-direction: column; gap: 5px; }
.field-name { font-size: 12.5px; font-weight: 600; color: var(--c-text-2); padding-left: 2px; }
.field-item input {
  width: 100%; height: 38px; border: 1.5px solid #D8DEE9; border-radius: 8px;
  padding: 0 12px; font-size: 14px; color: var(--c-text); background: #fff; box-sizing: border-box;
}
.field-item input:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
@media (max-width: 900px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .field-grid { grid-template-columns: 1fr; } }
/* 第三行地区/状态行自动换行对齐 */
.search-2row .search-row:last-child { align-items: center; }
.search-2row .search-row:last-child select,
.search-2row .search-row:last-child .btn { height: 38px; min-width: 150px; }

/* ---------- 同事网络 · 同单位人脉 ---------- */
.rel-seg { margin-top: 14px; }
.rel-sub { font-size: 13px; font-weight: 600; color: var(--c-text-2); margin: 10px 0 8px; }
.rel-list { display: flex; flex-direction: column; gap: 8px; }
.rel-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 10px 14px; border: 1px solid #E7DCC0; border-radius: 10px; background: #FFFCF4;
}
.rel-name { font-weight: 700; color: var(--c-primary); text-decoration: none; font-size: 14.5px; }
.rel-name:hover { text-decoration: underline; }
.rel-meta { color: #556; font-size: 13.5px; }
.rel-titles { color: #667; font-size: 13px; }
.rel-period { color: #889; font-size: 12.5px; margin-left: auto; }
.rel-kind { font-size: 12px; color: #8A6D2F; background: #FDF3D7; border-radius: 999px; padding: 2px 10px; }
.rel-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-chip {
  font-size: 13px; color: #334155; background: #F1F5F9; border: 1px solid #E2E8F0;
  border-radius: 999px; padding: 4px 13px;
}
.rel-chip b { color: var(--c-gold-dark, #8A6D2F); }

/* ===== 客户/职位模块补充样式 ===== */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.info-grid > div { display: flex; flex-direction: column; gap: 2px; }
.info-k { font-size: 12px; color: #94A3B8; }
.info-v { font-size: 14px; color: #0F172A; }
.info-v a { color: var(--c-primary, #1E40AF); }

/* 轻量富文本工具栏 */
.rich-editor { border: 1px solid #CBD5E1; border-radius: 8px; overflow: hidden; background:#fff; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
.rich-toolbar button { min-width: 30px; height: 28px; padding: 0 8px; border: none; background: transparent; border-radius: 6px; cursor: pointer; font-size: 13px; color: #334155; }
.rich-toolbar button:hover { background: #E2E8F0; }
.rich-toolbar .sep { width:1px; background:#E2E8F0; margin: 4px 6px; }
.rich-body { min-height: 120px; padding: 12px 14px; line-height: 1.8; font-size: 14px; outline: none; }
.rich-body:empty::before { content: attr(data-ph); color: #94A3B8; }
.rich-editor textarea { display: none; }
.rich-body h2 { font-size:16px; margin:10px 0 6px; }
.rich-body ul,.rich-body ol { padding-left:22px; margin:6px 0; }
.rich-body blockquote { border-left:3px solid var(--c-gold,#C9A24B); background:#FAF6EC; padding:8px 12px; margin:8px 0; color:#5B4A24; }
.rich-body-view { line-height:1.9; font-size:14px; color:#1F2937; }
.rich-body-view p { margin: 6px 0; }
.rich-body-view ul,.rich-body-view ol { padding-left:22px; margin:6px 0; }

/* 附件行 */
.att-group { margin: 12px 0; }
.att-group-title { font-size:13px; font-weight:700; color:#475569; margin-bottom:6px; }
.att-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px dashed #EEF2F7; }
.att-thumb { width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid #E2E8F0; }
.att-meta { flex:1; min-width:0; }
.att-meta strong { font-size:13.5px; }
.att-sub { font-size:12px; color:#94A3B8; margin-top:2px; }
.att-ops { display:flex; gap:6px; }

/* JD 导入条 */
.jd-import-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
/* PDF 在线阅读弹层 */
.pdf-mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 9999; align-items: center; justify-content: center; padding: 3vh 3vw; }
.pdf-box { background:#fff; border-radius:12px; width:min(960px,94vw); height:90vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.pdf-head { display:flex; justify-content:space-between; align-items:center; padding:12px 18px; border-bottom:1px solid #E2E8F0; font-weight:700; color:#1E293B; }
.pdf-frame { flex:1; border:none; width:100%; background:#F1F5F9; }
/* ===== 职位看板（Kanban） ===== */
.kanban { display:flex; gap:14px; overflow-x:auto; padding-bottom:16px; align-items:flex-start; }
.kanban-col { min-width:250px; flex:0 0 250px; background:#F1F5F9; border-radius:10px; display:flex; flex-direction:column; max-height:78vh; }
.kanban-col-head { padding:11px 13px; display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:600; background:#fff; border-radius:10px 10px 0 0; }
.kanban-count { background:#E2E8F0; color:#475569; border-radius:999px; padding:1px 9px; font-size:12px; }
.kanban-body { padding:8px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; flex:1; }
.kanban-empty { color:#94A3B8; font-size:12px; text-align:center; padding:18px 0; }
.kanban-card { background:#fff; border-radius:8px; padding:10px 12px; box-shadow:0 1px 3px rgba(15,23,42,.08); }
.kc-name { font-size:14px; }
.kc-meta { font-size:12px; color:#64748B; margin-top:2px; }
.kc-note { font-size:12.5px; color:#475569; margin:6px 0; line-height:1.5; }
.kc-time { font-size:11px; color:#94A3B8; }
.kc-advance { margin-top:8px; }
.kc-advance .btn { width:100%; }
/* 分叉动作按钮组 */
.kc-actions { margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.kc-actions form { display:flex; flex-direction:column; gap:5px; }
.kc-actions .btn { width:100%; font-size:12.5px; }
.kc-reason { width:100%; box-sizing:border-box; font-size:12px; padding:5px 8px; border:1px solid #E2E8F0; border-radius:6px; }
/* 卡片小标签 */
.kc-tags { margin:5px 0; display:flex; flex-wrap:wrap; gap:5px; }
.chip-tag { font-size:11px; padding:2px 8px; border-radius:999px; background:#EEF2FF; color:#4338CA; }
.chip-round { background:#ECFDF5; color:#047857; }
.chip-reject { background:#FEF2F2; color:#B91C1C; }
.chip-warn { background:#FFFBEB; color:#92400E; }
/* 终态侧区列（灰底，与主泳道区分） */
.kanban-side .kanban-col { background:#ECEFF3; }
.kanban-side .kanban-col-head { background:#F8FAFC; }
/* 补人横幅 */
.replace-banner { display:flex; align-items:center; gap:8px; margin:10px 0 14px; padding:10px 14px; border-radius:10px; background:#FFF7ED; color:#9A3412; border:1px dashed #FB923C; font-size:13.5px; }
.kanban-section-title { font-size:13px; font-weight:700; color:#64748B; margin:16px 2px 8px; letter-spacing:.5px; }
/* ===== 客户模块子菜单 + 级别/紧急 ===== */
.sub-tabs { display:flex; gap:8px; margin:4px 0 14px; flex-wrap:wrap; }
.sub-tab { padding:7px 16px; border-radius:999px; font-size:13.5px; color:#475569; background:#F1F5F9; text-decoration:none; }
.sub-tab.active { background:#1E3A5F; color:#fff; font-weight:600; }
.sub-tab:hover:not(.active) { background:#E2E8F0; }
.grade-badge { font-weight:700; padding:2px 9px; border-radius:6px; font-size:12.5px; }
.g-Ap { background:#7F1D1D; color:#fff; }
.g-A  { background:#B7791F; color:#fff; }
.g-Bp { background:#2563EB; color:#fff; }
.g-B  { background:#64748B; color:#fff; }
.g-C  { background:#CBD5E1; color:#475569; }
.urgency-select { padding:3px 8px; border-radius:6px; font-size:12.5px; border:1px solid #E2E8F0; cursor:pointer; }
.u-urgent { color:#DC2626; border-color:#FCA5A5; font-weight:700; }
.u-high   { color:#D97706; border-color:#FCD34D; font-weight:600; }
.u-normal { color:#64748B; }
/* ===== 客户联系人 ===== */
.ct-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:10px 0; border-bottom:1px solid #F1F5F9; }
.ct-row:last-child { border-bottom:none; }
.ct-left { opacity:.6; }
.ct-main { flex:1; }
.ct-title { color:#64748B; font-weight:400; }
.ct-sub { font-size:12.5px; color:#64748B; margin-top:3px; }
.ct-time { font-size:11px; color:#94A3B8; margin-top:2px; }
.ct-ops { display:flex; gap:6px; flex-shrink:0; align-items:center; }
.ct-main > strong { font-size:17px; font-weight:800; color:#0F172A; }
.ct-main .ct-title { color:#475569; font-weight:600; font-size:14px; margin-left:4px; }
.ct-main .ct-sub { font-size:14.5px; font-weight:700; color:#1E293B; margin-top:5px; }
.ct-main .ct-time { font-size:11px; color:#94A3B8; margin-top:3px; }
/* 主联系人置顶高亮块 */
.ct-primary { background:#EFF6FF; border:1px solid #BFDBFE; border-radius:10px; padding:12px 14px; margin-bottom:4px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.ct-primary-name { font-size:18px; font-weight:800; color:#0F172A; }
.ct-primary .ct-sub { font-size:14.5px; font-weight:700; color:#1E293B; margin-top:5px; }
.pc-edit-btn { flex-shrink:0; white-space:nowrap; }
/* ===== 客户列表协议到期倒计时 ===== */
.expire-date { font-size:11.5px; color:#94A3B8; margin-top:3px; }
.badge.gold strong { font-size:13px; }
/* ============================================================
   背调模块专用样式（.bg-）
   ============================================================ */
.bg-form { display:grid; grid-template-columns:140px 1fr; gap:14px 16px; align-items:center; }
.bg-form > label { color:var(--c-text-2); font-size:13.5px; text-align:right; font-weight:500; }
.bg-form > label.align-top { align-self:flex-start; padding-top:10px; }
.bg-form input[type=text],
.bg-form input[type=number],
.bg-form input[type=date],
.bg-form input[type=email],
.bg-form select,
.bg-form textarea {
  width:100%; padding:9px 12px; font-size:14px; font-family:inherit;
  color:var(--c-text); background:#fff; border:1.5px solid var(--c-border);
  border-radius:var(--radius-sm); transition:all .15s; outline:none;
}
.bg-form input:focus, .bg-form select:focus, .bg-form textarea:focus {
  border-color:var(--c-primary-3); box-shadow:0 0 0 3px rgba(27,58,102,.12);
}
.bg-form textarea { resize:vertical; min-height:72px; line-height:1.6; }

/* 网格小表单（学历/工作履历编辑） */
.bg-grid { display:grid; gap:8px; }
.bg-grid input, .bg-grid select, .bg-grid textarea {
  width:100%; padding:8px 10px; font-size:13px; font-family:inherit;
  border:1.5px solid var(--c-border); border-radius:var(--radius-sm); background:#fff; outline:none;
  transition:all .15s;
}
.bg-grid input:focus, .bg-grid select:focus, .bg-grid textarea:focus {
  border-color:var(--c-primary-3); box-shadow:0 0 0 3px rgba(27,58,102,.1);
}

/* 调查项目复选框行 */
.bg-chks { display:flex; flex-wrap:wrap; gap:14px; font-size:13px; align-items:center; }
.bg-chks label { display:flex; align-items:center; gap:5px; cursor:pointer; color:var(--c-text); }
.bg-chks input[type=checkbox] { width:15px; height:15px; accent-color:var(--c-primary-3); }

/* 工作履历块 */
.bg-work {
  border:1.5px solid var(--c-border); border-radius:var(--radius);
  padding:14px 16px; margin-bottom:14px; background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
.bg-work:hover { border-color:var(--c-border-2); box-shadow:var(--shadow); }
.bg-work-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.bg-work-title { font-size:15.5px; font-weight:700; color:var(--c-text); }
.bg-work-sub { font-size:12.5px; color:var(--c-text-3); font-weight:400; margin-left:6px; }
.bg-work-meta {
  display:grid; grid-template-columns:1fr 1fr; gap:4px 16px;
  font-size:13px; color:var(--c-text-2); padding:8px 10px;
  background:#F8FAFC; border-radius:var(--radius-sm); margin-bottom:8px;
}
.bg-work-meta b { color:var(--c-text); font-weight:600; }
.bg-verifier {
  margin-top:10px; padding-top:10px; border-top:1px dashed var(--c-border);
}
.bg-verifier-title { font-size:13.5px; font-weight:600; color:var(--c-primary-3); margin-bottom:4px; }
.bg-score { font-size:26px; font-weight:800; color:var(--c-success); }
.bg-score small { font-size:12px; color:var(--c-text-3); font-weight:400; }

/* 同事推荐提示块 */
.bg-hint {
  background:linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border:1.5px dashed #93C5FD; padding:10px 12px; border-radius:var(--radius-sm);
  font-size:12.5px; color:var(--c-text); margin-bottom:12px;
}
.bg-hint ul { margin:6px 0 0 18px; padding:0; }

/* details 展开区 */
.bg-details { margin-top:10px; border-top:1px dashed var(--c-border); padding-top:8px; }
.bg-details > summary {
  cursor:pointer; font-size:13px; color:var(--c-primary-3); font-weight:500;
  padding:4px 0; user-select:none; list-style:none;
}
.bg-details > summary::before { content:"▸ "; color:var(--c-gold); }
.bg-details[open] > summary::before { content:"▾ "; }

/* 附件行 */
.bg-att {
  display:flex; align-items:center; justify-content:space-between;
  padding:6px 0; border-bottom:1px dashed var(--c-border); font-size:12.5px;
}
.bg-att-cat {
  display:inline-block; padding:1px 7px; border-radius:10px;
  background:var(--c-info-bg); color:var(--c-info); font-size:11px; margin-right:6px;
}

/* 统计卡 */
.bg-stat {
  background:#fff; border-radius:var(--radius); padding:18px 12px; text-align:center;
  box-shadow:var(--shadow); border-top:3px solid var(--c-border);
}
.bg-stat.primary { border-top-color:var(--c-info); }
.bg-stat.success { border-top-color:var(--c-success); }
.bg-stat.warn { border-top-color:var(--c-warn); }
.bg-stat .num { font-size:30px; font-weight:800; line-height:1.1; }
.bg-stat .label { color:var(--c-text-2); font-size:12.5px; margin-top:4px; }

/* 状态徽章 */
.badge { display:inline-block; padding:2px 9px; border-radius:11px; font-size:12px; font-weight:600; }
.badge.green { background:var(--c-success-bg); color:var(--c-success); }
.badge.blue { background:var(--c-info-bg); color:var(--c-info); }
.badge.red { background:var(--c-danger-bg); color:var(--c-danger); }
.badge.gold { background:var(--c-warn-bg); color:var(--c-warn); }
.badge.gray { background:#F1F5F9; color:var(--c-text-2); }

/* 按钮微调 */
.btn-dark { background:var(--c-primary); color:#fff; border:none; }
.btn-dark:hover { background:var(--c-primary-2); }
.btn-danger-line {
  background:#fff; color:var(--c-danger); border:1.5px solid var(--c-danger);
  padding:6px 12px; border-radius:var(--radius-sm); cursor:pointer; font-size:13px;
}
.btn-danger-line:hover { background:var(--c-danger-bg); }

/* 任务详情左右栏 */
.bg-main { display:grid; grid-template-columns:300px 1fr; gap:14px; align-items:start; }
.bg-side { position:sticky; top:80px; }

/* ===== 客户 CRM：侧边栏子项 ===== */
.nav-sub { margin-left:18px; padding-left:10px; border-left:1px solid rgba(255,255,255,0.08); }
.nav-sub .nav-item { font-size:13px; padding:7px 10px; }
.nav-sub .sub-ico { width:18px; text-align:center; color:#6B7F9C; }

/* ===== 拜访预案 ===== */
.plan-block { padding:10px 0; border-bottom:1px dashed #EEF2F7; }
.plan-block:last-child { border-bottom:none; }
.plan-stage { font-weight:600; font-size:13.5px; color:#1E293B; margin-bottom:4px; }
.plan-text { font-size:13px; line-height:1.8; color:#334155; }
.risk-title { font-weight:600; margin-left:6px; }

/* ===== 跟进看板 ===== */
.follow-groups { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:14px; }
.follow-group-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.follow-count { margin-left:auto; font-size:12px; color:#94A3B8; }
.follow-row { display:flex; gap:10px; padding:10px 0; border-top:1px solid #F1F5F9; align-items:flex-start; }
.follow-main { flex:1; min-width:0; }
.follow-name { font-weight:600; color:#1E293B; text-decoration:none; }
.follow-meta { font-size:12px; color:#64748B; margin-top:3px; }
.follow-last { flex:1.2; }
.follow-next { font-size:13px; color:#0F172A; }
.follow-content { font-size:12px; color:#64748B; margin-top:3px; line-height:1.6; }
.follow-date { font-size:11px; color:#94A3B8; margin-top:3px; }
.follow-ops { display:flex; flex-direction:column; gap:6px; }

/* ===== 客户漏斗 KPI 与横条 ===== */
.funnel-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:16px; }
.kpi { display:block; background:#fff; border:1px solid var(--c-border,#E2E8F0); border-radius:12px; padding:14px 16px; text-decoration:none; color:inherit; }
.kpi:hover { border-color:var(--c-gold,#C9A227); }
.kpi-num { font-size:26px; font-weight:700; color:var(--c-primary,#0A1628); line-height:1.2; }
.kpi-label { font-size:12px; color:#64748B; margin-top:4px; }
.funnel-panel { margin-bottom:16px; }
.funnel-title { font-size:14px; font-weight:600; color:#1E293B; margin-bottom:12px; }
.funnel-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.funnel-bar { height:38px; flex:0 0 auto; display:flex; align-items:center; gap:10px; padding:0 14px; border-radius:10px; color:#fff; min-width:8%; }
.funnel-bar .f-stage-gap {}
.funnel-stage { font-size:13px; font-weight:600; white-space:nowrap; }
.funnel-cnt { font-size:12px; opacity:.85; white-space:nowrap; }
.funnel-bar.f1 { background:#DCE9FB; color:#1E3A5F; }
.funnel-bar.f2 { background:#B9D3F6; color:#1E3A5F; }
.funnel-bar.f3 { background:#8FB8EE; color:#fff; }
.funnel-bar.f4 { background:#5E97E3; color:#fff; }
.funnel-bar.f5 { background:#2F6FC4; color:#fff; }
.funnel-side { display:flex; flex-direction:column; gap:2px; min-width:150px; }
.funnel-share { font-size:12px; color:#1E293B; }
.funnel-conv { font-size:11px; color:#64748B; }
.funnel-note { font-size:12px; color:#64748B; line-height:1.8; margin-top:10px; }
.badge.orange { background:#FFF3E0; color:#B26A00; }
.follow-group.is-dormant { background:#F8FAFC; }

/* ===== 跟进时间线 ===== */
.follow-timeline { display:flex; flex-direction:column; gap:12px; }
.follow-item { padding:10px 12px; background:#F8FAFC; border-radius:10px; }
.follow-item-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.follow-item-date { font-size:12px; color:#64748B; }
.follow-item-by { margin-left:auto; font-size:12px; color:#94A3B8; }