/* 候选人列表 + 候选人详情样式（对应 page-candidates.js）
 */

/* ── 候选人页：页头 + 筛选栏 ── */
.cand-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
/* 筛选栏：始终单行（窄屏时搜索框收缩、分段控件内部横向滚动，不折行） */
.cand-filter {
  display: flex; gap: 10px; align-items: center; margin-bottom: 14px;
  flex-wrap: nowrap; min-width: 0;
}

/* 搜索框（带图标） */
.cand-search {
  position: relative; display: flex; align-items: center;
  flex: 0 1 220px; min-width: 128px;
}
.cand-search > svg {
  position: absolute; left: 11px; width: 14px; height: 14px;
  stroke: var(--ov-ink-4); fill: none; stroke-width: 2;
  stroke-linecap: round; pointer-events: none;
}
.cand-search input {
  width: 100%; height: 34px; padding: 0 12px 0 32px;
  border: 1px solid var(--ov-line); border-radius: 8px; font-size: 13px;
  font-family: inherit; color: var(--ov-ink); background: #fff; outline: none;
  transition: border-color .15s;
}
.cand-search input::placeholder { color: var(--ov-ink-4); }
.cand-search input:focus { border-color: var(--ov-brand); }
.cand-search input:focus + svg { stroke: var(--ov-brand); }

/* 状态分段控件（可收缩：空间不足时自身横向滚动，而不是把整栏挤成两行） */
.cand-seg {
  display: flex; background: #F1F5F9; border-radius: 8px; padding: 3px; gap: 2px;
  flex: 0 1 auto; min-width: 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cand-seg::-webkit-scrollbar { display: none; }
.cand-seg button {
  border: none; background: transparent; font-family: inherit;
  font-size: 12.5px; font-weight: 500; color: var(--ov-ink-3);
  padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  flex: 0 0 auto;
  transition: color .12s, background .12s;
}
.cand-seg button:hover { color: var(--ov-ink); }
.cand-seg button.on {
  background: #fff; color: var(--ov-brand); font-weight: 560; box-shadow: var(--ov-shadow-sm);
}
.cand-seg button .n { font-size: 11px; color: var(--ov-ink-4); margin-left: 4px; font-variant-numeric: tabular-nums; }
.cand-seg button.on .n { color: var(--ov-brand); }

.cand-sel {
  height: 34px; padding: 0 10px; border: 1px solid var(--ov-line); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--ov-ink-2); background: #fff; cursor: pointer;
  flex: 0 0 auto; max-width: 180px;
}
.cand-sel:focus { border-color: var(--ov-brand); outline: none; }
.cand-clear {
  height: 34px; padding: 0 12px; border: 1px solid var(--ov-line); border-radius: 8px;
  background: #fff; font-size: 12.5px; color: var(--ov-ink-3); cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s; flex: 0 0 auto; white-space: nowrap;
}
.cand-clear:hover { border-color: var(--ov-brand); color: var(--ov-brand); }

/* 窄屏（平板/手机）才允许折行，避免元素被压得过窄 */
@media (max-width: 820px) {
  .cand-filter { flex-wrap: wrap; }
  .cand-search { flex: 1 1 100%; }
  .cand-seg { flex: 1 1 100%; }
  .cand-sel { flex: 0 1 auto; }
}

/* ── 候选人单元格：头像 / 匹配度环 / 要点 chip / 状态点 / 操作 ── */
.cand-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cand-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 620;
}
.cand-avatar.hi  { background: #DCFCE7; color: #15803D; }
.cand-avatar.mid { background: #DBEAFE; color: #1D4ED8; }
.cand-avatar.lo  { background: #F1F5F9; color: #64748B; }
.cand-name { font-size: 13.5px; font-weight: 560; color: var(--ov-ink); line-height: 1.3; }
.cand-meta { font-size: 11.5px; color: var(--ov-ink-4); margin-top: 2px; }

.cand-score { display: inline-flex; align-items: center; gap: 9px; }
.cand-ring {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cand-ring.hi  { background: #DCFCE7; color: #15803D; }
.cand-ring.mid { background: #DBEAFE; color: #1D4ED8; }
.cand-ring.lo  { background: #FEF3C7; color: #B45309; }
.cand-ring.na  { background: #F1F5F9; color: var(--ov-ink-4); }
.cand-score-label { font-size: 11.5px; font-weight: 520; white-space: nowrap; }
.cand-score-label.hi  { color: #15803D; }
.cand-score-label.mid { color: #1D4ED8; }
.cand-score-label.lo  { color: #B45309; }
.cand-score-label.na  { color: var(--ov-ink-4); }

.cand-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cand-tag {
  font-size: 11px; font-weight: 520; padding: 3px 8px; border-radius: 6px;
  background: #F1F5F9; color: var(--ov-ink-3); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cand-tag i { font-style: normal; font-size: 9px; opacity: .72; margin-left: 3px; }
.cand-tag.hi  { background: #ECFDF5; color: #059669; }
.cand-tag.mid { background: var(--ov-brand-50); color: var(--ov-brand); }
.cand-tag.lo  { background: #F8FAFC; color: var(--ov-ink-4); }

/* 匹配度还原分角标（门槛否决但能力分保留时） */
.cand-restore { display: block; font-size: 10px; color: var(--ov-ink-4); margin-top: 1px; white-space: nowrap; }

/* 门槛评估列（列表） */
.cand-gate {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 560; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
}
.cand-gate.pass { background: #ECFDF5; color: #059669; }
.cand-gate.fail { background: #FEF2F2; color: #B91C1C; }
.cand-gate.warn { background: #FFFBEB; color: #B45309; }
.cand-gate.na   { background: #F1F5F9; color: var(--ov-ink-4); font-weight: 500; }
.cand-gate-sub {
  display: block; font-size: 10.5px; color: var(--ov-ink-4); margin-top: 4px;
  max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cand-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 520; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
}
.cand-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 5px; }
.cand-status.bl { background: var(--ov-brand-50); color: var(--ov-brand); }
.cand-status.gr { background: #DCFCE7; color: #15803D; }
.cand-status.by { background: #FEF3C7; color: #B45309; }
.cand-status.or { background: #FFEDD5; color: #C2410C; }
.cand-status.rd { background: #FEE2E2; color: #B91C1C; }
.cand-status.pu { background: #EDE9FE; color: #6D28D9; }
.cand-status.gy { background: #F1F5F9; color: var(--ov-ink-3); }

.cand-act {
  color: var(--ov-brand); font-size: 12.5px; font-weight: 540;
  cursor: pointer; white-space: nowrap; background: none; border: none;
  font-family: inherit; padding: 0;
}
.cand-act:hover { text-decoration: underline; }

/* 候选人/岗位表格的次级文字 */
.cand-pos { color: var(--ov-ink-2); font-size: 13px; }
.cand-time { color: var(--ov-ink-4); font-size: 12.5px; white-space: nowrap; }

/* Arco Tag 变体 */
.ov-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 520; padding: 2px 9px;
  border-radius: 999px; white-space: nowrap;
  background: #F1F5F9; color: #475569;
}
.ov-tag-gr { background: #DCFCE7; color: #16A34A; }

/* ══════════════════════════════════════════════════════════════
   候选人详情页
   ══════════════════════════════════════════════════════════════ */
.cd-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.cd-back {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px 0 10px;
  border: 1px solid var(--ov-line); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 12.5px; font-weight: 520; color: var(--ov-ink-2);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.cd-back:hover { border-color: var(--ov-brand); color: var(--ov-brand); }
.cd-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cd-nav { display: flex; align-items: center; gap: 8px; }
.cd-nav-btn {
  width: 30px; height: 30px; border: 1px solid var(--ov-line); border-radius: 8px;
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ov-ink-3); transition: border-color .12s, color .12s, background .12s;
}
.cd-nav-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cd-nav-btn:hover:not([disabled]) { border-color: var(--ov-brand); color: var(--ov-brand); }
.cd-nav-btn[disabled] { opacity: .35; cursor: not-allowed; }
.cd-nav-count { font-size: 12.5px; color: var(--ov-ink-3); font-variant-numeric: tabular-nums; min-width: 46px; text-align: center; }

.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .cd-grid { grid-template-columns: minmax(0, 1fr); } }
.cd-col { min-width: 0; }
.cd-col > * + * { margin-top: 16px; }

.cd-card {
  background: #fff; border: 1px solid var(--ov-line);
  border-radius: var(--ov-radius); box-shadow: var(--ov-shadow-sm); overflow: hidden;
}
.cd-card-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--ov-line-soft);
}
.cd-card-t { font-size: 13.5px; font-weight: 620; color: var(--ov-ink); }
.cd-card-s { font-size: 11.5px; color: var(--ov-ink-4); margin-top: 2px; }
.cd-body { padding: 18px 20px; }
.cd-body + .cd-body { border-top: 1px solid var(--ov-line-soft); }

/* ── Hero（白卡 + 分数环，与全站浅色语言统一） ── */
.cd-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--ov-line-soft);
}
.cd-hero-main { min-width: 0; }
.cd-hero-name {
  font-size: 21px; font-weight: 680; color: var(--ov-ink); letter-spacing: .2px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cd-hero-name .cand-status { font-size: 12px; margin-top: 2px; }
.cd-hero-sub { font-size: 13.5px; color: var(--ov-ink-2); margin-top: 6px; font-weight: 500; }
.cd-hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 12px; font-size: 12px; color: var(--ov-ink-3);
}
.cd-hero-meta b { color: var(--ov-ink); font-weight: 560; }
.cd-hero-side { text-align: center; flex: 0 0 auto; }
.cd-ring {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.cd-ring-inner {
  width: 54px; height: 54px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cd-ring-num {
  font-size: 19px; font-weight: 680; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-hero-score-label { font-size: 11.5px; color: var(--ov-ink-4); margin-top: 7px; }
.cd-hero-verdict {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 560;
}
.cd-vd-by { background: #FEF3C7; color: #B45309; }
.cd-vd-rd { background: #FEE2E2; color: #B91C1C; }

/* ── 评估结论 ── */
.cd-verdict { border-radius: 10px; border: 1px solid; padding: 14px 16px; }
.cd-verdict.match   { background: #F0FDF4; border-color: #BBF7D0; }
.cd-verdict.partial { background: #FFFBEB; border-color: #FDE68A; }
.cd-verdict.reject  { background: #FEF2F2; border-color: #FECACA; }
.cd-v-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cd-v-badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.cd-verdict.match   .cd-v-badge { background: #16A34A; }
.cd-verdict.partial .cd-v-badge { background: #D97706; }
.cd-verdict.reject  .cd-v-badge { background: #DC2626; }
.cd-v-score { font-size: 11.5px; font-weight: 580; color: var(--ov-ink-3); font-variant-numeric: tabular-nums; }
.cd-v-text { font-size: 13px; line-height: 1.85; color: var(--ov-ink-2); }
.cd-v-p { margin-bottom: 8px; }
.cd-v-p:last-child { margin-bottom: 0; }

/* ── 命中要点 ── */
.cd-hls { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-hl {
  padding: 5px 11px; border-radius: 7px; background: var(--ov-brand-50);
  color: var(--ov-brand-600); border: 1px solid #BFDBFE;
  font-size: 11.5px; font-weight: 500;
}

/* ── 能力匹配条 ── */
.cd-bar-row { display: flex; align-items: center; gap: 12px; }
.cd-bar-row + .cd-bar-row { margin-top: 14px; }
.cd-bar-k { flex: 0 0 56px; font-size: 12px; color: var(--ov-ink-3); }
.cd-bar-k em { display: block; font-style: normal; font-size: 10px; color: var(--ov-ink-4); margin-top: 1px; }
.cd-bar-track { flex: 1; height: 6px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.cd-bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .3s ease; }
.cd-bar-v { flex: 0 0 32px; text-align: right; font-size: 12.5px; font-weight: 580; font-variant-numeric: tabular-nums; }

/* ── 硬性门槛评估卡（结论与能力分分离表达） ── */
.cd-gate-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FEF2F2; border: 1px solid #FECACA; }
.cd-gate-item + .cd-gate-item { margin-top: 8px; }
.cd-gate-ico {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: #FEE2E2;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.cd-gate-ico svg { width: 11px; height: 11px; stroke: #DC2626; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cd-gate-rule { font-size: 12.5px; font-weight: 600; color: #B91C1C; line-height: 1.55; }
.cd-gate-tag { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.cd-gate-tag.rd   { background: #FEE2E2; color: #B91C1C; }
.cd-gate-tag.gr   { background: #DCFCE7; color: #15803D; }
.cd-gate-tag.warn { background: #FEF3C7; color: #B45309; }
.cd-gate-strategy {
  margin-top: 12px; padding: 9px 12px; border-radius: 9px;
  background: #F8FAFC; border: 1px solid var(--ov-line-soft);
  font-size: 11.5px; color: var(--ov-ink-2); line-height: 1.7;
}
.cd-gate-recover { margin-top: 10px; font-size: 11px; color: var(--ov-ink-4); line-height: 1.6; }
.cd-gate-recover span { display: block; }
.cd-gate-recover button {
  margin-top: 8px; font-family: inherit; font-size: 11.5px;
  color: var(--ov-ink-2); background: #fff; border: 1px solid var(--ov-line);
  border-radius: 7px; padding: 5px 12px; cursor: pointer;
}
.cd-gate-recover button:hover { border-color: var(--ov-brand); color: var(--ov-brand); }
.cd-gate-quiet { display: flex; align-items: center; gap: 9px; }
.cd-gate-ok {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #DCFCE7;
  display: flex; align-items: center; justify-content: center;
}
.cd-gate-ok svg { width: 12px; height: 12px; stroke: #059669; stroke-width: 2.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cd-gate-quiet-t { font-size: 12.5px; color: #15803D; font-weight: 600; }
.cd-gate-hint { font-size: 12px; color: var(--ov-ink-4); line-height: 1.7; }

/* 逐条判定：证据原文 + 通过项折叠（gate_checks，后端补齐后生效；缺省回退规则原文） */
.cd-gate-ev {
  margin-top: 5px; padding: 7px 10px; border-radius: 8px;
  background: #FFFFFF; border: 1px solid #FECACA;
  font-size: 11.5px; color: var(--ov-ink-3); line-height: 1.65;
}
.cd-gate-ev::before { content: '简历证据'; display: block; font-size: 10px; font-weight: 600; color: var(--ov-ink-4); margin-bottom: 3px; }
.cd-gate-fold { margin-top: 10px; }
.cd-gate-fold summary {
  font-size: 11.5px; color: var(--ov-ink-3); cursor: pointer; user-select: none;
  text-align: center; padding: 4px 0; border-radius: 999px; background: #F8FAFC;
  border: 1px solid var(--ov-line); list-style: none; width: 60%; margin: 0 auto;
}
.cd-gate-fold summary::-webkit-details-marker { display: none; }
.cd-gate-fold[open] summary { color: var(--ov-ink-2); }
.cd-gate-fold .cd-gate-pass-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 10px;
  background: #F8FAFC; border: 1px solid var(--ov-line-soft);
}
.cd-gate-fold .cd-gate-pass-item + .cd-gate-pass-item { margin-top: 6px; }
.cd-gate-fold .cd-gate-pass-item .cd-gate-rule { color: var(--ov-ink-2); font-weight: 520; }
.cd-gate-fold .cd-gate-ico {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: #DCFCE7;
  display: flex; align-items: center; justify-content: center;
}
.cd-gate-fold .cd-gate-ico svg { width: 10px; height: 10px; stroke: #059669; stroke-width: 2.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── 加权公式（能力卡底部，公开口径） ── */
.cd-formula {
  margin-top: 12px; padding: 9px 12px; border-radius: 9px;
  background: #F8FAFC; border: 1px dashed var(--ov-line);
  font-size: 10.5px; color: var(--ov-ink-3); line-height: 1.7;
}
.cd-formula b { color: var(--ov-ink-2); font-variant-numeric: tabular-nums; }

/* ── 筛选流程 ── */
.cd-flow { position: relative; }
.cd-flow-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.cd-flow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1;
  flex: 0 0 8px; margin-top: 5px;
}
.cd-flow-item.on .cd-flow-dot { background: var(--ov-brand); box-shadow: 0 0 0 3px #DBEAFE; }
.cd-flow-k { flex: 0 0 74px; font-size: 12.5px; color: var(--ov-ink-3); }
.cd-flow-v { font-size: 12.5px; color: var(--ov-ink); font-weight: 520; }

/* ── 工作经历时间线 ── */
.cd-tl-item {
  position: relative; padding: 0 0 18px 22px;
  border-left: 1px solid var(--ov-line); margin-left: 5px;
}
.cd-tl-item:last-child { padding-bottom: 2px; }
.cd-tl-dot {
  position: absolute; left: -5px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1;
}
.cd-tl-item:first-child .cd-tl-dot { background: var(--ov-brand); box-shadow: 0 0 0 3px #DBEAFE; }
.cd-tl-co { font-size: 14px; font-weight: 600; color: var(--ov-ink); }
.cd-tl-sub { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; }
.cd-tl-pos { font-size: 12px; color: var(--ov-ink-3); }
.cd-tl-period { font-size: 12px; color: var(--ov-ink-4); white-space: nowrap; }
.cd-tl-desc { font-size: 12.5px; color: var(--ov-ink-2); line-height: 1.75; margin-top: 10px; }
.cd-tl-line { position: relative; padding-left: 12px; margin-bottom: 6px; }
.cd-tl-line:last-child { margin-bottom: 0; }
.cd-tl-line::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: #CBD5E1;
}

/* ── 教育 ── */
.cd-edu { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.cd-edu + .cd-edu { border-top: 1px dashed var(--ov-line); }
.cd-edu-school { font-size: 13.5px; font-weight: 560; color: var(--ov-ink); }
.cd-edu-sub { font-size: 12px; color: var(--ov-ink-3); margin-top: 2px; }
.cd-edu-period { font-size: 12px; color: var(--ov-ink-4); white-space: nowrap; }

/* ── 自我描述 ── */
.cd-about { font-size: 13px; line-height: 1.85; color: var(--ov-ink-2); }
.cd-about-p { margin-bottom: 7px; }
.cd-about-p:last-child { margin-bottom: 0; }

/* ── 骨架屏 ── */
.cd-sk-hero { height: 132px; background: linear-gradient(135deg, rgba(42,111,245,.16) 0%, rgba(29,78,216,.16) 60%, rgba(30,58,175,.16) 100%); }
.cd-sk-line {
  height: 12px; border-radius: 6px; margin-bottom: 12px;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%; animation: cd-shimmer 1.4s infinite;
}
.cd-sk-line:last-child { margin-bottom: 0; }
.cd-sk-line.w90 { width: 90%; } .cd-sk-line.w80 { width: 80%; }
.cd-sk-line.w70 { width: 70%; } .cd-sk-line.w50 { width: 50%; }
@keyframes cd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── 详情页空态/提示 ── */
.cd-hint {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 9px;
  background: #FFFBEB; border: 1px solid #FDE68A;
  font-size: 12.5px; line-height: 1.7; color: #92400E;
}
.cd-hint svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; stroke: #D97706; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
