/* 中泓简历库 · 原型补充样式（基底为 hr 后台 style.css，此处仅追加差异） */
:root {
  --jl-shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
}

/* ---------- 弹窗（兜底，避免依赖基底版本差异） ---------- */
.modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
}
.modal-x { cursor: pointer; font-size: 22px; line-height: 1; color: var(--text-light); }
.modal-x:hover { color: var(--text); }
.modal-bd { padding: 20px; max-height: 68vh; overflow-y: auto; }
.modal-ft {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}

/* ---------- 全局提示 ---------- */
.jl-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 16px);
  background: #23262b; color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 13.5px; z-index: 3000; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; box-shadow: var(--jl-shadow-lg);
}
.jl-toast.show { opacity: 1; transform: translate(-50%, 0); }
.jl-toast.err { background: var(--red); }

/* ---------- 小组件 ---------- */
.src-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #b0b3ba; margin-right: 6px; vertical-align: 1px;
}
.src-boss { background: #00b38a; }
.src-58 { background: #e64340; }
.src-douyin { background: #23262b; }
.src-kuaishou { background: #ff6a00; }
.src-manual { background: #4a90e2; }
.src-wxapp { background: #07c160; }
.src-web { background: #8a8f99; }

.metric-sub { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.tag-chip {
  display: inline-block; padding: 1px 7px; margin: 1px 3px 1px 0;
  background: #f3f4f6; color: #6b717b; border-radius: 4px; font-size: 11.5px;
}
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--text-sub); }
.danger-text { color: var(--red); }

/* ---------- 概览 ---------- */
.flow-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.flow-step {
  flex: 1; min-width: 110px; text-align: center; padding: 12px 8px;
  background: #fafbfc; border: 1px solid var(--border); border-radius: 8px;
  margin-right: 22px; position: relative;
}
.flow-step:last-child { margin-right: 0; }
.flow-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -17px; top: 50%;
  transform: translateY(-50%); color: var(--brand); font-size: 15px;
}
.flow-step b { display: block; font-size: 20px; color: var(--brand); }
.flow-step span { font-size: 12px; color: var(--text-sub); }
.todo-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid #f2f3f5; font-size: 13px;
}
.todo-item:last-child { border-bottom: none; }

/* ---------- 导入 / 截图识别 ---------- */
.jl-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.jl-tab {
  padding: 9px 18px; cursor: pointer; font-size: 13.5px; color: var(--text-sub);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.jl-tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.jl-pane { display: none; }
.jl-pane.on { display: block; }

.dropzone {
  border: 2px dashed #d5d8dd; border-radius: 12px; background: #fafbfc;
  padding: 36px 20px; text-align: center; color: var(--text-sub);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-light); }
.dropzone strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.dropzone small { font-size: 12px; }

.review-tbl input { padding: 5px 8px; font-size: 13px; }
.review-tbl tr.warn { background: #fff8f4; }
.review-tbl tr.warn td:first-child::before {
  content: '!'; display: inline-block; width: 15px; height: 15px; line-height: 15px;
  text-align: center; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 10px; margin-right: 6px;
}
.conf-bar { display: inline-block; width: 46px; height: 5px; background: #eceff3; border-radius: 3px; }
.conf-bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.conf-bar.low i { background: var(--brand); }

/* ---------- 公域池 / 配额 ---------- */
.quota-bar { height: 8px; background: #eceff3; border-radius: 5px; overflow: hidden; margin: 8px 0 4px; }
.quota-bar i { display: block; height: 100%; background: var(--brand); border-radius: 5px; transition: width .25s; }
.quota-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); }
.rule-note {
  background: var(--brand-light); border-left: 3px solid var(--brand);
  padding: 10px 14px; border-radius: 6px; font-size: 12.5px;
  color: #8a4a20; line-height: 1.8; margin-bottom: 14px;
}

/* ---------- 使用端（移动优先） ---------- */
body[data-app="staff"] { background: #f5f6f8; padding-bottom: 72px; }
.staff-head {
  height: 58px; background: #23262b; color: #fff; display: flex;
  align-items: center; justify-content: space-between; padding: 0 18px;
  position: sticky; top: 0; z-index: 60;
}
.sh-brand { display: flex; align-items: center; gap: 10px; }
.sh-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); flex: none; }
.sh-brand strong { display: block; font-size: 14px; font-weight: 600; }
.sh-brand small { display: block; font-size: 11px; color: #8f959e; }
.sh-right { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.sh-right a { color: #ff9a75; }
.sh-quota {
  background: rgba(255, 107, 53, .16); color: #ffb494;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.staff-wrap { max-width: 1080px; margin: 0 auto; }
body[data-app="staff"] .content { padding: 18px 18px 40px; }

.cand-card {
  background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow); border-left: 3px solid transparent;
}
.cand-card.risk { border-left-color: var(--red); }
.cand-card .cc-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cand-card .cc-name { font-size: 15px; font-weight: 600; }
.cand-card .cc-job { font-size: 12.5px; color: var(--text-sub); margin-top: 2px; }
.cand-card .cc-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px;
  color: #5a5f68; margin: 10px 0;
}
.cand-card .cc-ft {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #f2f3f5; padding-top: 10px; gap: 8px; flex-wrap: wrap;
}

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.tabbar-item {
  flex: 1; text-align: center; color: #8a8f99; font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
}
.tabbar-item .ti { font-size: 19px; line-height: 1.1; }
.tabbar-item.active { color: var(--brand); }

@media (min-width: 769px) {
  .tabbar {
    left: 50%; right: auto; bottom: 20px; transform: translateX(-50%);
    width: 520px; border: 1px solid var(--border); border-radius: 999px;
    box-shadow: var(--jl-shadow-lg); padding: 6px 12px;
  }
  .tabbar-item { flex-direction: row; gap: 7px; font-size: 13px; padding: 6px 0; }
  .tabbar-item .ti { font-size: 15px; }
  body[data-app="staff"] { padding-bottom: 90px; }
}

/* ---------- 登录页兜底 ---------- */
.login-page {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff6f1 0%, #f5f6f8 100%); padding: 20px;
}
.login-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 14px;
  padding: 32px 30px; box-shadow: var(--jl-shadow-lg);
}
.login-card h1 { font-size: 18px; font-weight: 600; text-align: center; }
.login-card .sub { text-align: center; color: var(--text-sub); font-size: 12.5px; margin: 4px 0 22px; }
.login-tip {
  margin-top: 18px; font-size: 11.5px; color: var(--text-sub); line-height: 1.8;
  background: #fafbfc; border-top: 1px solid var(--border); padding: 12px; border-radius: 8px;
}
.login-card .btn-primary { width: 100%; margin-top: 8px; }

/* ---------- 管理端窄屏 ---------- */
@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar-logo h1, .sidebar-logo p, .nav-group-title,
  .nav-item span:not(.ico), .sidebar-foot > div { display: none; }
  .sidebar-logo { padding: 16px 10px; text-align: center; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .nav-item .ico { font-size: 17px; }
  .sidebar-foot { padding: 12px 6px; text-align: center; }
  .sidebar-foot .logout { font-size: 11px; }
  .main { margin-left: 60px; }
  .content { padding: 16px 14px 50px; }
  .topbar { padding: 0 14px; }
}
