* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #24292f; }
a { color: #185fa5; text-decoration: none; }

.topnav {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: 0 28px; height: 56px; position: sticky; top: 0; z-index: 10;
}
.brand { font-size: 16px; font-weight: 600; color: #0c447c; white-space: nowrap; }
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a {
  padding: 7px 16px; border-radius: 8px; color: #57606a; font-size: 14px;
  transition: all .15s;
}
.nav-links a:hover { background: #f0f2f5; }
.nav-links a.active { background: #185fa5; color: #fff; }

.engine-badge {
  font-size: 12px; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.engine-badge.llm { background: #e1f5ee; color: #0f6e56; }
.engine-badge.mock { background: #faeeda; color: #854f0b; }

/* 全屏平铺布局：内容占满整个视口宽度，不再限制为 1100px */
.container { max-width: none; width: 100%; margin: 20px 24px; padding: 0; }
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px; margin-bottom: 20px;
}
.card h2 { font-size: 15px; margin-bottom: 14px; color: #24292f; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; color: #57606a; }
.form-group input, .form-group textarea, .form-group select {
  border: 1px solid #d0d7de; border-radius: 8px; padding: 9px 12px;
  font-size: 14px; font-family: inherit; outline: none; transition: border .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #185fa5; }
.form-group textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-group .hint { font-size: 12px; color: #8b949e; }

.btn {
  display: inline-block; border: none; border-radius: 8px; cursor: pointer;
  font-size: 14px; padding: 9px 20px; transition: all .15s; font-family: inherit;
}
.btn-primary { background: #185fa5; color: #fff; }
.btn-primary:hover { background: #0c447c; }
.btn-secondary { background: #f0f2f5; color: #24292f; }
.btn-secondary:hover { background: #e2e5e9; }
.btn-danger { background: #fff; color: #a32d2d; border: 1px solid #f7c1c1; }
.btn-danger:hover { background: #fcebeb; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* border-collapse: separate 是 position: sticky 在表格中生效的前提（collapse 会导致 sticky 失效） */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  text-align: left; padding: 8px 10px; color: #57606a; font-weight: 500;
  border-bottom: 1px solid #e5e7eb; background: #fafbfc; white-space: nowrap;
}
.table td { padding: 8px 10px; border-bottom: 1px solid #f0f2f5; vertical-align: top; }
.table tr:hover td { background: #fafbfc; }
.table .jd-preview, .table .resume-preview { color: #57606a; max-width: 340px; }
.preview-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13px; line-height: 1.5;
}

.empty { text-align: center; padding: 40px 0; color: #8b949e; font-size: 14px; }
.empty .big { font-size: 30px; margin-bottom: 8px; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; margin-right: 6px; margin-bottom: 4px;
}
.tag-blue { background: #e6f1fb; color: #185fa5; }
.tag-green { background: #e1f5ee; color: #0f6e56; }
.tag-amber { background: #faeeda; color: #854f0b; }
.tag-red { background: #fcebeb; color: #a32d2d; }
.tag-gray { background: #f1efe8; color: #5f5e5a; }

/* 匹配结果卡片 */
.score-ring {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; flex-shrink: 0;
}
.score-high { background: #e1f5ee; color: #0f6e56; }
.score-mid { background: #faeeda; color: #854f0b; }
.score-low { background: #fcebeb; color: #a32d2d; }

.match-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 18px; margin-bottom: 14px; cursor: pointer;
  transition: box-shadow .15s;
}
.match-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.match-info { flex: 1; min-width: 0; }
.match-info h3 { font-size: 15px; margin-bottom: 4px; }
.match-info .meta { font-size: 12px; color: #8b949e; margin-bottom: 8px; }
.match-summary { font-size: 13px; color: #57606a; line-height: 1.6; white-space: pre-wrap; }

/* 报告弹层 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 640px; max-width: 92vw;
  max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
}
.modal-head h3 { font-size: 15px; }
.modal-close { border: none; background: none; font-size: 20px; cursor: pointer; color: #8b949e; line-height: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; line-height: 1.7; font-size: 14px; white-space: pre-wrap; }
.modal-body .section { margin-bottom: 12px; }
.modal-box {
  background: #fff; border-radius: 14px; width: 640px; max-width: 92vw;
  max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

/* 附件简历预览弹层 */
.modal-box.preview-box {
  width: 920px; max-width: 96vw; height: 84vh; max-height: 84vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.preview-body { padding: 0; flex: 1; overflow: hidden; position: relative; }
.preview-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.banner {
  border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; line-height: 1.6;
}
.banner-warn { background: #faeeda; color: #633806; border: 1px solid #fac775; }
.banner-ok { background: #e1f5ee; color: #085041; border: 1px solid #9fe1cb; }
.banner-ok a { color: #0f6e56; text-decoration: underline; }

.check-cell { text-align: center; }
.check-cell input { width: 16px; height: 16px; cursor: pointer; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.toolbar select { min-width: 260px; }
.btn-group { display: flex; gap: 8px; }

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .brand { font-size: 14px; }
  .nav-links a { padding: 7px 10px; font-size: 13px; }
}

/* ---------- 批量导入简历 ---------- */
.import-desc { font-size: 13px; color: #57606a; margin-bottom: 12px; line-height: 1.7; }
.import-desc .hint { display: block; margin-top: 2px; }

#drop-zone {
  border: 2px dashed #c9d1d9;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: #fafbfc;
}
#drop-zone:hover, #drop-zone.dragging { border-color: #2f81f7; background: #f0f6ff; }
#drop-zone .dz-icon { font-size: 32px; margin-bottom: 6px; }
#drop-zone .dz-text { font-size: 14px; color: #24292f; }
#drop-zone .dz-link { color: #2f81f7; text-decoration: underline; }
#drop-zone .dz-sub { font-size: 12px; color: #8b949e; margin-top: 4px; }

.parse-status { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.parse-status.ok { background: #e1f5ee; color: #0f6e56; }
.parse-status.error { background: #fcebeb; color: #a32d2d; }

.preview-card {
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
  background: #fff;
}
.preview-card.preview-error { border-color: #f5c6c6; background: #fdf6f6; }
.preview-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; gap: 8px; flex-wrap: wrap;
}
.preview-head strong { font-size: 14px; }
.check-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check-wrap input { width: 16px; height: 16px; }
.preview-tags { display: flex; gap: 6px; }
.preview-fields { display: flex; flex-direction: column; gap: 8px; }
.pf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-item label { display: block; font-size: 12px; color: #57606a; margin-bottom: 3px; }
.pf-item input, .pf-item textarea {
  width: 100%; padding: 7px 10px; border: 1px solid #d0d7de; border-radius: 6px;
  font-size: 13px; font-family: inherit; box-sizing: border-box; background: #fff; color: #24292f;
}
.pf-item textarea { resize: vertical; line-height: 1.5; }
.skill-line { font-size: 13px; color: #24292f; line-height: 1.6; }
.work-line { font-size: 13px; color: #57606a; line-height: 1.6; max-height: 80px; overflow-y: auto; background: #f6f8fa; border-radius: 6px; padding: 8px 10px; }
.error-text { font-size: 13px; color: #a32d2d; }

.import-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #eaeef2;
}
.import-actions .btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 720px) {
  .pf-row { grid-template-columns: 1fr; }
}

/* ---------- 人才地图 (Mapping) ---------- */
.tag-deep { background: #0f6e56; color: #fff; }
.map-group { margin-bottom: 18px; }
.map-group-title {
  font-size: 13px; font-weight: 600; color: #185fa5;
  background: #f0f6ff; border: 1px solid #dbeafe;
  border-radius: 8px 8px 0 0; padding: 8px 14px;
}
.map-member {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid #e5e7eb; border-top: none; padding: 12px 14px;
  background: #fff; transition: background .15s;
}
.map-member:hover { background: #fafbfc; }
.map-member:last-child { border-radius: 0 0 8px 8px; }
.mm-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm-main strong { font-size: 14px; }
.mm-note {
  font-size: 12px; color: #57606a; line-height: 1.6;
  background: #f6f8fa; border-radius: 6px; padding: 6px 10px;
  white-space: pre-wrap;
}
.mm-foot { display: flex; align-items: center; gap: 10px; }
.mm-status {
  border: 1px solid #d0d7de; border-radius: 6px; padding: 4px 8px;
  font-size: 12px; font-family: inherit; background: #fff; color: #24292f;
  cursor: pointer; outline: none; transition: border-color .15s;
}
.mm-status:focus { border-color: #2f81f7; }
.mm-time { font-size: 12px; color: #8b949e; flex: 1; }
.mm-foot form { margin-left: auto; }

/* 候选人状态 */
.status-select {
  border: 1px solid #d0d7de; border-radius: 6px; padding: 4px 6px;
  font-size: 12px; font-family: inherit; background: #fff; color: #24292f;
  cursor: pointer; outline: none;
}
.status-select:focus { border-color: #2f81f7; }

/* ================= P0 新增：客户管理 / Pipeline 看板 / 跟进记录 ================= */

/* 客户合作状态标签 */
.tag.st-amber { background: #fff8c5; color: #9a6700; border: 1px solid #d4a72c; }
.tag.st-green { background: #dafbe1; color: #116329; border: 1px solid #4ac26b; }
.tag.st-gray  { background: #f6f8fa; color: #57606a; border: 1px solid #d0d7de; }
.tag.st-red   { background: #ffebe9; color: #cf222e; border: 1px solid #ff818266; }

/* 双栏布局（客户详情页） */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

/* 联系记录 / 跟进记录列表 */
.note-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.note-item { border-left: 3px solid #2f81f7; background: #f6f8fa; border-radius: 0 8px 8px 0; padding: 8px 12px; }
.note-time { font-size: 12px; color: #8b949e; margin-bottom: 4px; }
.note-content { font-size: 13px; color: #24292f; line-height: 1.6; white-space: pre-wrap; }

/* 跟进记录弹窗 */
.note-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; z-index: 900;
}
.note-modal[hidden] { display: none; }
.note-modal-box {
  width: min(560px, 92vw); background: #fff; border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.22); overflow: hidden;
}
.note-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid #e5e7eb; font-size: 15px;
}
.note-modal-close { cursor: pointer; font-size: 20px; color: #8b949e; line-height: 1; }
.note-modal-close:hover { color: #cf222e; }
.note-modal-body { padding: 16px 18px; }
.note-modal-body textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #d0d7de; border-radius: 8px;
  padding: 8px 10px; font-family: inherit; font-size: 13px; resize: vertical;
}
.note-modal-body textarea:focus { outline: none; border-color: #2f81f7; }

/* Pipeline 拖拽看板 */
.kanban-wrap { overflow-x: auto; padding-bottom: 10px; }
.kanban { display: flex; gap: 14px; min-width: max-content; padding: 4px 0 10px; }
.kanban-col {
  width: 220px; flex: none; background: #f6f8fa;
  border: 1px solid #e5e7eb; border-radius: 10px; display: flex; flex-direction: column;
  max-height: 72vh;
}
.kanban-col-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; font-size: 13px; font-weight: 600; border-radius: 10px 10px 0 0;
}
.kb-count {
  background: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; color: #57606a;
}
.kb-blue   { background: #ddf4ff; color: #0969da; }
.kb-purple { background: #fbefff; color: #8250df; }
.kb-teal   { background: #d4f8f0; color: #0c7d6b; }
.kb-amber  { background: #fff8c5; color: #9a6700; }
.kb-orange { background: #ffe8d1; color: #bc4c00; }
.kb-deep-green { background: #dafbe1; color: #116329; }
.kb-red    { background: #ffebe9; color: #cf222e; }
.kanban-cards {
  padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px;
  border-radius: 0 0 10px 10px;
}
.kanban-empty {
  border: 2px dashed #d0d7de; border-radius: 8px; text-align: center;
  color: #8b949e; font-size: 12px; padding: 14px 0;
}
.kanban-cards.drop-hint { background: #ddf4ff; outline: 2px dashed #2f81f7; outline-offset: -4px; }
.kcard {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 10px 12px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .15s, transform .15s;
}
.kcard:hover { box-shadow: 0 3px 10px rgba(0,0,0,.10); }
.kcard.dragging { opacity: .55; transform: rotate(2deg); cursor: grabbing; }
.kcard-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.kcard-score {
  font-size: 12px; font-weight: 700; background: #dafbe1; color: #116329;
  border-radius: 10px; padding: 1px 8px;
}
.kcard-sub { font-size: 12px; color: #57606a; margin-top: 4px; }
.kcard-reason { font-size: 12px; color: #cf222e; margin-top: 4px; background: #ffebe9; border-radius: 6px; padding: 3px 6px; }
.kcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kcard-date { font-size: 11px; color: #8b949e; }
.kcard-del { cursor: pointer; color: #8b949e; font-size: 15px; line-height: 1; }
.kcard-del:hover { color: #cf222e; }

/* 淘汰原因选项 */
.reject-options { display: flex; flex-wrap: wrap; gap: 8px; max-width: 300px; }

/* 筛选栏（品聘风格） */
.filter-form {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
}
.filter-item { display: flex; flex-direction: column; gap: 5px; min-width: 140px; flex: 1; max-width: 220px; }
.filter-item label { font-size: 12px; color: #57606a; font-weight: 500; }
.filter-item input, .filter-item select {
  border: 1px solid #d0d7de; border-radius: 8px; padding: 8px 10px;
  font-size: 13px; font-family: inherit; outline: none; transition: border .15s; background: #fff;
}
.filter-item input:focus, .filter-item select:focus { border-color: #185fa5; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; }
.filter-actions .btn { padding: 8px 18px; }
.clear-filter {
  float: right; font-size: 12px; color: #8b949e; font-weight: 400;
}
.clear-filter:hover { color: #cf222e; }

/* ============== 候选人页左侧导航 ============== */
.cand-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.cand-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin-top: 0;
}
.cand-sidebar-section + .cand-sidebar-section { margin-top: 10px; }
.cand-sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: #57606a;
  padding: 4px 6px;
  margin-bottom: 6px;
  cursor: default;
  user-select: none;
}
.cand-sidebar-details > summary { list-style: none; }
.cand-sidebar-details > summary::-webkit-details-marker { display: none; }
.cand-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cand-sidebar-list li { list-style: none; }
.cand-sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #24292f;
  text-decoration: none;
  transition: background .12s;
  word-break: break-all;
}
.cand-sidebar-list a:hover { background: #f0f4f8; }
.cand-sidebar-list .active a,
.cand-sidebar-list a.active {
  background: linear-gradient(90deg,#e8f1fb,#f4f8fc);
  color: #185fa5;
  font-weight: 600;
}
.cand-sidebar-list .active a .cnt,
.cand-sidebar-list a.active .cnt {
  background: #185fa5;
  color: #fff;
}
.cand-sidebar-tree li { padding-left: 0; }
.cand-sidebar-tree li a {
  padding-left: 18px;
  font-size: 12px;
  color: #57606a;
}
.cand-sidebar-tree li.active a {
  font-weight: 600;
}
.cand-sidebar-empty {
  font-size: 12px;
  color: #8b949e;
  padding: 6px 10px;
}
.cand-sidebar-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  text-align: center;
  font-size: 12px;
}
.cand-sidebar-foot a { color: #8b949e; text-decoration: none; }
.cand-sidebar-foot a:hover { color: #cf222e; }
.cand-sidebar .cnt {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f0f4f8;
  color: #57606a;
  font-size: 11px;
  text-align: center;
  font-weight: 500;
}
.cand-main {
  flex: 1 1 auto;
  min-width: 0;
}
.view-banner {
  background: #f0f6fc;
  border: 1px dashed #b6d4f0;
  color: #185fa5;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.view-banner .clear-filter {
  margin-left: auto;
  float: none;
}
@media (max-width: 1100px) {
  .cand-layout { flex-direction: column; }
  .cand-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    max-height: none;
  }
}

/* 报表中心 */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
}
.kpi-item {
  background: #f6f8fa; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px 12px; text-align: center;
}
.kpi-num { font-size: 26px; font-weight: 700; color: #185fa5; line-height: 1.2; }
.kpi-num.kpi-green { color: #116329; }
.kpi-num.kpi-red { color: #cf222e; }
.kpi-label { font-size: 12px; color: #57606a; margin-top: 6px; }
.report-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .report-two-col { grid-template-columns: 1fr; } }

.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: flex; align-items: center; gap: 10px; }
.funnel-label { width: 64px; font-size: 13px; color: #24292f; text-align: right; flex: none; }
.funnel-bar-wrap { flex: 1; background: #f6f8fa; border-radius: 6px; height: 18px; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 6px; min-width: 2px; transition: width .3s; }
.funnel-num { width: 90px; font-size: 12px; color: #57606a; flex: none; }
.fb-blue   { background: linear-gradient(90deg, #54aeff, #0969da); }
.fb-purple { background: linear-gradient(90deg, #c297ff, #8250df); }
.fb-teal   { background: linear-gradient(90deg, #4ae3c0, #0c7d6b); }
.fb-amber  { background: linear-gradient(90deg, #f7d660, #9a6700); }
.fb-orange { background: linear-gradient(90deg, #ffb782, #bc4c00); }
.fb-deep-green { background: linear-gradient(90deg, #57cd6f, #116329); }
.fb-red    { background: linear-gradient(90deg, #ff8182, #cf222e); }
.fb-gray   { background: linear-gradient(90deg, #c8cdd2, #6e7781); }
.fb-green  { background: linear-gradient(90deg, #57cd6f, #116329); }

.trend-cell { display: inline-flex; align-items: center; gap: 8px; }
.trend-bar { display: inline-block; height: 12px; border-radius: 4px; }
.tb-blue { background: #54aeff; }
.tb-purple { background: #c297ff; }
.tb-green { background: #57cd6f; }

/* 员工业务统计 */
.report-filter-bar { margin-bottom: 12px; }
.period-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.period-tab {
  padding: 5px 10px; border: 1px solid #d0d7de; border-radius: 6px;
  background: #fff; color: #24292f; font-size: 13px; cursor: pointer;
}
.period-tab:hover { background: #f6f8fa; }
.period-tab.active {
  background: #0969da; border-color: #0969da; color: #fff;
}
.report-filter-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
}
.report-filter-row .filter-item { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.report-filter-row .filter-item label { font-size: 12px; color: #57606a; }
.report-filter-row .filter-item select,
.report-filter-row .filter-item input {
  padding: 6px 8px; border: 1px solid #d0d7de; border-radius: 6px; font-size: 13px;
}
.report-filter-row .filter-actions { display: flex; gap: 8px; margin-left: auto; }
.perf-table th.num,
.perf-table td.num { text-align: right; }
.perf-table tfoot { background: #f6f8fa; }
.perf-table tfoot td { border-top: 2px solid #d0d7de; }

/* 四列表单行 */
.form-row.four-col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .form-row.four-col { grid-template-columns: repeat(2, 1fr); } }

/* 高级筛选栏（品聘 4 列风格） */
.filter-form.advanced { display: block; }
.filter-form.advanced .filter-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px;
  margin-bottom: 12px;
}
.filter-form.advanced .filter-row:last-child { margin-bottom: 0; }
.filter-form.advanced .filter-item { min-width: 0; max-width: none; }
.filter-form.advanced .filter-item.wide { grid-column: 1 / 3; }
.filter-form.advanced .filter-actions {
  grid-column: 3 / 5; justify-content: flex-end; align-items: flex-end;
  display: flex; gap: 8px; margin-left: 0;
}
@media (max-width: 900px) {
  .filter-form.advanced .filter-row { grid-template-columns: repeat(2, 1fr); }
  .filter-form.advanced .filter-item.wide { grid-column: 1 / 3; }
  .filter-form.advanced .filter-actions { grid-column: 1 / 3; justify-content: flex-start; }
}
@media (max-width: 540px) {
  .filter-form.advanced .filter-row { grid-template-columns: 1fr; }
  .filter-form.advanced .filter-item.wide { grid-column: auto; }
  .filter-form.advanced .filter-actions { grid-column: auto; }
}

/* 职位筛选：折叠双视角 */
.filter-advanced {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d0d7de;
}
.filter-advanced.open { display: block; }
#filter-more-btn { min-width: 76px; }
.filter-actions-label { display: block; height: 17px; }
.filter-actions-col .filter-actions { margin-left: 0; }

/* 全局新建 + 号浮层 */
.create-fab {
  position: fixed; right: 28px; bottom: 28px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #185fa5; color: #fff; font-size: 32px; line-height: 1;
  border: none; box-shadow: 0 4px 16px rgba(24, 95, 165, 0.35);
  cursor: pointer; z-index: 90; transition: transform .15s, background .15s;
  display: flex; align-items: center; justify-content: center;
}
.create-fab:hover { background: #0c447c; transform: scale(1.05); }

.create-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45);
  z-index: 95;
}
.create-overlay[hidden] { display: none; }

.create-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 60px); overflow-y: auto;
  background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 100;
  display: flex; flex-direction: column;
}
.create-modal[hidden] { display: none; }

.create-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 0; border-bottom: 1px solid #e5e7eb;
}

.create-tabs {
  display: flex; gap: 8px;
}

.create-tab {
  background: transparent; border: none; border-bottom: 2px solid transparent;
  padding: 10px 18px; font-size: 14px; color: #57606a; cursor: pointer;
  font-family: inherit; transition: all .15s;
}

.create-tab:hover { color: #185fa5; }
.create-tab.active { color: #185fa5; border-bottom-color: #185fa5; font-weight: 600; }

.create-close {
  background: transparent; border: none; font-size: 24px; color: #8b949e;
  cursor: pointer; line-height: 1; padding: 4px 8px;
}
.create-close:hover { color: #cf222e; }

.create-modal-body { padding: 20px; }

.create-panel { display: none; }
.create-panel.active { display: block; }

/* ---------- 候选人详情页 ---------- */
.cand-detail-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
}
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 18px; font-size: 13px;
}
.info-grid label {
  display: block; font-size: 12px; color: #8b949e; margin-bottom: 2px;
}
.info-grid span { color: #24292f; }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; align-items: start;
}
.detail-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }

.note-add-row textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #d0d7de; border-radius: 8px;
  padding: 10px 12px; font-family: inherit; font-size: 13px; resize: vertical; margin-bottom: 8px;
}
.note-add-row textarea:focus { outline: none; border-color: #2f81f7; }
.note-add-row .hint { margin-left: 10px; }

.resume-full {
  font-size: 13px; color: #24292f; line-height: 1.8; white-space: pre-wrap;
  background: #f6f8fa; border-radius: 8px; padding: 14px 16px; max-height: 420px; overflow-y: auto;
}

.upload-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid #e5e7eb; border-radius: 8px; background: #fafbfc; font-size: 13px;
}
.file-item .file-icon { font-size: 16px; }
.file-item .file-name { font-weight: 600; color: #185fa5; text-decoration: none; word-break: break-all; }
.file-item .file-name:hover { text-decoration: underline; }

/* ---------- 看板卡片候选人链接 ---------- */
.kcard-link { color: inherit; text-decoration: none; }
.kcard-link:hover { color: #185fa5; text-decoration: underline; }
.kcard-phone { font-size: 12px; color: #8b949e; margin: 2px 0; }

/* ---------- 收藏星标 ---------- */
.btn-fav {
  padding: 3px 8px; font-size: 16px; line-height: 1.2; cursor: pointer;
  background: #fff; border: 1px solid #d0d7de; border-radius: 6px; color: #8b949e;
  margin-right: 4px; vertical-align: middle;
}
.btn-fav:hover { border-color: #e3b341; color: #e3b341; }
.btn-fav.active { color: #e3b341; border-color: #e3b341; background: #fff8c5; }
.fav-mark { color: #e3b341; font-size: 15px; margin-left: 5px; }
.fav-check .check-label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 14px; color: #24292f; padding: 8px 0; font-weight: 500;
}
.fav-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ---------- 新建候选人：简历上传区 ---------- */
.resume-upload {
  display: flex; align-items: center; gap: 14px;
  border: 2px dashed #d0d7de; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px;
  background: #f6f8fa; cursor: pointer; flex-wrap: wrap;
  transition: border-color .15s, background .15s;
}
.resume-upload:hover, .resume-upload.drag { border-color: #2f81f7; background: #eef4fd; }
.resume-upload-icon { font-size: 26px; line-height: 1; }
.resume-upload-text { flex: 1; min-width: 200px; }
.resume-upload-text strong { font-size: 14px; color: #24292f; }
.resume-upload-text .hint { display: block; margin-top: 4px; }
.resume-upload-status { font-size: 13px; color: #57606a; flex-basis: 100%; }
.resume-upload-status.ok { color: #1a7f37; font-weight: 600; }
.resume-upload-status.error { color: #cf222e; font-weight: 600; }

/* ---------- 批量操作栏 / 分页 ---------- */
.batch-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 12px;
  background: #f6f8fa; border: 1px solid #d0d7de; border-radius: 8px;
}
.batch-bar .check-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 500; }
.batch-bar input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.row-check { width: 16px; height: 16px; cursor: pointer; }
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 16px; flex-wrap: wrap;
}
.pagination a {
  padding: 5px 14px; border: 1px solid #d0d7de; border-radius: 6px;
  font-size: 13px; color: #24292f; background: #fff; text-decoration: none;
}
.pagination a:hover { border-color: #5865f2; color: #5865f2; }
.pagination .page-info { font-size: 13px; color: #57606a; }
.pagination .pg-disabled { padding: 5px 14px; font-size: 13px; color: #c7cdd4; }

/* ---------- 看板卡片：AI 分析 / 操作图标 ---------- */
.kcard-ai {
  font-size: 12px; color: #5865f2; background: #eef2ff;
  border-radius: 6px; padding: 3px 8px; margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kcard-ai-none { cursor: pointer; color: #8b949e; background: #f6f8fa; }
.kcard-ai-none:hover { color: #5865f2; background: #eef2ff; }
.kcard-act {
  cursor: pointer; font-size: 13px; color: #57606a;
  text-decoration: none; padding: 1px 3px; border-radius: 4px;
}
.kcard-act:hover { color: #5865f2; background: #eef2ff; }

/* ---------- 面试日历 ---------- */
.cal-table { width: 100%; border-collapse: collapse; margin-top: 14px; table-layout: fixed; }
.cal-table th {
  padding: 8px 6px; font-size: 13px; color: #57606a;
  border-bottom: 2px solid #d0d7de; text-align: center;
}
.cal-cell {
  vertical-align: top; height: 96px; border: 1px solid #eaeef2;
  padding: 4px 6px; font-size: 12px;
}
.cal-cell.cal-other { background: #fafbfc; color: #c7cdd4; }
.cal-cell.cal-today { background: #fff8c5; }
.cal-day { font-weight: 600; color: #57606a; margin-bottom: 4px; }
.cal-today .cal-day { color: #9a6700; }
.cal-iv {
  display: block; margin-bottom: 3px; padding: 2px 6px; border-radius: 5px;
  background: #ddf4ff; color: #0969da; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-iv:hover { background: #b6e3ff; }
.cal-iv.st-completed { background: #dafbe1; color: #1a7f37; }
.cal-iv.st-cancelled { background: #f6f8fa; color: #8b949e; text-decoration: line-through; }

/* ---------- 推荐报告 ---------- */
.report-card { max-width: 900px; margin: 0 auto; }
.report-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.report-doc {
  background: #fff; border: 1px solid #d0d7de; border-radius: 10px;
  padding: 36px 44px; font-size: 14px;
}
.report-head { text-align: center; border-bottom: 2px solid #24292f; padding-bottom: 16px; margin-bottom: 8px; }
.report-head h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: 2px; }
.report-date { font-size: 12px; color: #8b949e; }
.report-section { margin-top: 22px; }
.report-section h3 { font-size: 15px; margin: 0 0 10px; color: #24292f; border-left: 4px solid #5865f2; padding-left: 8px; }
.report-table { width: 100%; }
.report-table td { border: 1px solid #eaeef2; padding: 7px 12px; font-size: 13px; }
.report-table .rl { width: 110px; color: #57606a; background: #f6f8fa; font-weight: 500; }
.report-score { text-align: center; margin-bottom: 12px; }
.score-num { font-size: 44px; font-weight: 800; }
.score-high { color: #1a7f37; }
.score-mid { color: #9a6700; }
.score-low { color: #cf222e; }
.score-unit { font-size: 13px; color: #8b949e; margin-left: 6px; }
.report-reason {
  white-space: pre-wrap; font-family: inherit; font-size: 13.5px; line-height: 1.8;
  background: #f6f8fa; border: 1px solid #eaeef2; border-radius: 8px;
  padding: 16px 20px; margin: 0; color: #24292f;
}
.report-footer { margin-top: 30px; text-align: center; font-size: 12px; color: #8b949e; border-top: 1px solid #eaeef2; padding-top: 14px; }
@media print {
  .topnav, .create-fab, .create-overlay, .create-modal, .no-print { display: none !important; }
  .container { padding: 0; margin: 0; }
  .report-card { box-shadow: none; border: none; }
  .report-doc { border: none; padding: 0; }
}

/* ================= P4：主题色变量（跟随 body.theme-xxx 切换） ================= */
:root { --primary: #2563eb; --primary-hover: #1d4ed8; --primary-light: #eff6ff; }
body.theme-blue   { --primary: #2563eb; --primary-hover: #1d4ed8; --primary-light: #eff6ff; }
body.theme-orange { --primary: #f97316; --primary-hover: #ea580c; --primary-light: #fff7ed; }
body.theme-green  { --primary: #10b981; --primary-hover: #059669; --primary-light: #ecfdf5; }
body.theme-purple { --primary: #7c3aed; --primary-hover: #6d28d9; --primary-light: #f5f3ff; }
body.theme-red    { --primary: #e11d48; --primary-hover: #be123c; --primary-light: #fff1f2; }

/* 用变量覆盖原有硬编码主题色（追加在文件末尾，同优先级下后者生效） */
a { color: var(--primary); }
.brand { color: var(--primary); }
.nav-links a:hover { background: var(--primary-light); }
.nav-links a.active { background: var(--primary); color: #fff; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.filter-item input:focus, .filter-item select:focus { border-color: var(--primary); }
.kpi-num { color: var(--primary); }
.create-fab { background: var(--primary); }
.create-fab:hover { background: var(--primary-hover); }
.create-tab:hover { color: var(--primary); }
.create-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ================= P4：右上角用户菜单 ================= */
.user-menu { position: relative; white-space: nowrap; }
.user-menu-btn {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  cursor: pointer; font-family: inherit; padding: 4px 8px; border-radius: 8px;
}
.user-menu-btn:hover { background: #f0f2f5; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
.user-name { font-size: 13px; color: #24292f; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.user-caret { font-size: 10px; color: #8b949e; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff;
  border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
  min-width: 200px; padding: 6px; z-index: 50;
}
.user-dropdown-header { padding: 10px 12px; border-bottom: 1px solid #f0f2f5; display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.user-dropdown-header .hint { font-size: 12px; }
.user-dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: #24292f; font-size: 14px; }
.user-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.user-dropdown .logout-link { color: #a32d2d; }
.user-dropdown .logout-link:hover { background: #fcebeb; color: #a32d2d; }

/* ================= 列表操作下拉菜单 ================= */
.action-dropdown { position: relative; display: inline-block; z-index: 1; }
.action-dropdown.open { z-index: 50; }
.action-menu-btn {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid #d0d7de;
  background: #fff; color: #57606a; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.action-menu-btn:hover { background: #f0f2f5; color: #24292f; border-color: #c7cdd4; }
.action-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 4px); background: #fff;
  border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.12);
  min-width: 140px; padding: 5px; z-index: 40; text-align: left;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.action-dropdown-menu.up {
  top: auto; bottom: calc(100% + 4px);
}
.action-dropdown-menu a,
.action-dropdown-menu button,
.action-dropdown-menu [type="submit"] {
  display: block; width: 100%; padding: 8px 10px; border: none; border-radius: 6px;
  background: transparent; color: #24292f; font-size: 13px; text-align: left;
  font-family: inherit; cursor: pointer; text-decoration: none;
}
.action-dropdown-menu a:hover,
.action-dropdown-menu button:hover,
.action-dropdown-menu [type="submit"]:hover { background: var(--primary-light); color: var(--primary); }
.action-dropdown-menu .action-danger { color: #a32d2d; }
.action-dropdown-menu .action-danger:hover { background: #fcebeb; color: #a32d2d; }
.action-dropdown-menu .action-sep { height: 1px; background: #f0f2f5; margin: 4px 0; }
.action-dropdown[open] .action-menu-btn,
.action-dropdown.open .action-menu-btn { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.action-submenu { position: relative; }
.action-submenu-label {
  display: block; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: 13px;
  color: #24292f; text-align: left; cursor: default;
}
.action-submenu-label:hover { background: var(--primary-light); color: var(--primary); }
.action-submenu-body {
  display: none; position: absolute; left: calc(100% + 4px); top: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12); min-width: 120px; padding: 5px; z-index: 50;
}
.action-submenu:hover .action-submenu-body { display: block; }
.action-submenu-body button {
  display: block; width: 100%; padding: 7px 10px; border: none; border-radius: 6px;
  background: transparent; color: #24292f; font-size: 13px; text-align: left;
  font-family: inherit; cursor: pointer;
}
.action-submenu-body button:hover { background: var(--primary-light); color: var(--primary); }

/* ================= P4：登录页 ================= */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
}
.login-card {
  background: #fff; border-radius: 16px; padding: 40px 44px; width: 380px; max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center;
}
.login-logo {
  width: 56px; height: 56px; border-radius: 14px; color: #fff; font-size: 30px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.login-title { font-size: 20px; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: #8b949e; margin-bottom: 20px; }
.login-error { background: #fcebeb; color: #a32d2d; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.login-btn { width: 100%; margin-top: 6px; padding: 11px; font-size: 15px; }
.login-hint { font-size: 12px; color: #8b949e; margin-top: 18px; }
.login-card .form-group { text-align: left; margin-bottom: 14px; }

/* ================= P4：系统设置 / 用户管理辅助样式 ================= */
.page-title { font-size: 18px; margin-bottom: 16px; color: #24292f; }
.alert { padding: 10px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-ok { background: #e1f5ee; color: #0f6e56; }
.alert-error { background: #fcebeb; color: #a32d2d; }
.table-wrap { overflow-x: auto; }
.table-wrap .table { min-width: max-content; }

/* 操作列固定在表格最右侧，避免列过多时被推到可视区域外 */
.table-wrap .table th[data-col="actions"],
.table-wrap .table td[data-col="actions"] {
  position: sticky;
  right: 0;
  z-index: 10;
  box-shadow: -2px 0 4px rgba(0,0,0,.05);
  border-left: 1px solid #e5e7eb;
}
.table-wrap .table thead th[data-col="actions"] { background: #fafbfc; z-index: 11; }
.table-wrap .table tbody td[data-col="actions"] { background: #fff; }
.table-wrap .table tr:hover td[data-col="actions"] { background: #fafbfc; }
/* 展开下拉菜单时，把当前单元格提到最前，避免被下方行覆盖 */
.table-wrap .table td[data-col="actions"].action-open,
.table-wrap .table th[data-col="actions"].action-open { z-index: 20; }
/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .table-wrap .table thead th[data-col="actions"] { background: var(--card-bg, #161b22); }
  .table-wrap .table tbody td[data-col="actions"] { background: var(--card-bg, #161b22); }
}
.form-row.three-col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .form-row.three-col { grid-template-columns: 1fr; } }
.inline-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-form input, .inline-form select {
  border: 1px solid #d0d7de; border-radius: 6px; padding: 5px 8px; font-size: 13px; font-family: inherit;
}
.chk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #57606a; white-space: nowrap; }
.online-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 12px; }
.theme-card { border: 2px solid #e5e7eb; border-radius: 12px; padding: 12px; cursor: pointer; text-align: center; transition: all .15s; display: block; }
.theme-card:hover { border-color: #c7cdd4; }
.theme-card.selected { border-color: var(--primary); background: var(--primary-light); }
.theme-card input { display: none; }
.theme-preview { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.theme-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.theme-bar { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; padding: 6px 8px; }
.theme-name { font-size: 13px; font-weight: 500; }

/* ================= 列表工具栏：批量操作下拉 + 显示/隐藏列 ================= */
.batch-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.batch-left, .batch-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 候选人列表姓名左侧：附件 + 跟进快捷入口 */
.name-row-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.name-row-head .icon-btn {
  background: transparent; border: none; padding: 2px 6px; border-radius: 6px;
  font-size: 12px; color: #57606a; cursor: pointer; display: inline-flex; align-items: center; gap: 3px;
  line-height: 1.4; font-family: inherit; white-space: nowrap;
}
.name-row-head .icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.name-row-head .icon-btn:disabled { opacity: .6; cursor: wait; }
.name-row-head a { color: var(--primary); text-decoration: none; }
.batch-dropdown { position: relative; display: inline-block; }
.batch-dropdown-menu {
  position: absolute; left: 0; top: calc(100% + 5px); background: #fff;
  border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.12);
  min-width: 150px; padding: 5px; z-index: 40; text-align: left;
  display: none;
}
.batch-dropdown.open .batch-dropdown-menu { display: block; }
.batch-dropdown-menu button {
  display: block; width: 100%; padding: 8px 10px; border: none; border-radius: 6px;
  background: transparent; color: #24292f; font-size: 13px; text-align: left;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.batch-dropdown-menu button:hover { background: var(--primary-light); color: var(--primary); }
.batch-dropdown-menu .action-danger { color: #a32d2d; }
.batch-dropdown-menu .action-danger:hover { background: #fcebeb; color: #a32d2d; }
.batch-dropdown-menu .action-sep { height: 1px; background: #f0f2f5; margin: 4px 0; }
.batch-dropdown.open > .btn { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }

.batch-edit-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px;
}
.batch-edit-field {
  display: flex; flex-direction: column; gap: 6px;
}
.batch-edit-field label { font-size: 13px; color: #24292f; }
.batch-edit-field input, .batch-edit-field select {
  border: 1px solid #d0d7de; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-family: inherit;
}
.batch-edit-field input:focus, .batch-edit-field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
@media (max-width: 560px) {
  .batch-edit-grid { grid-template-columns: 1fr; }
}

.btn-icon {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid #d0d7de;
  background: #fff; color: #57606a; font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.btn-icon:hover { background: #f0f2f5; color: #24292f; border-color: #c7cdd4; }

.cols-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cols-modal[hidden] { display: none; }
.cols-modal-box {
  background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.18);
  width: 560px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column;
}
.cols-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #f0f2f5;
}
.cols-modal-head strong { font-size: 15px; color: #24292f; }
.cols-modal-close {
  width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #57606a; font-size: 20px; line-height: 1;
}
.cols-modal-close:hover { background: #f0f2f5; color: #24292f; }
.cols-modal-body { padding: 16px 18px; overflow-y: auto; }
.cols-hint { font-size: 12px; color: #8b949e; margin-bottom: 12px; }
.cols-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
}
.cols-grid label {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #24292f;
  cursor: pointer; padding: 6px 8px; border-radius: 6px; user-select: none;
}
.cols-grid label:hover { background: #f6f8fa; }
.cols-grid input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; flex: none; }
.cols-grid .col-disabled { color: #8b949e; cursor: not-allowed; }
.resume-dims-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.resume-dims-list {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dim-options-list { max-height: 280px; overflow-y: auto; }
.dim-option-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px; background: #f6f8fa;
  margin-bottom: 8px; font-size: 14px;
}
.dim-option-row button { padding: 4px 10px; font-size: 12px; }
.dim-option-actions { display: flex; gap: 6px; }

.cols-modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 18px; border-top: 1px solid #f0f2f5;
}
.col-hidden { display: none !important; }

/* 城市二级编辑器 */
.city-editor { display: flex; gap: 16px; min-height: 320px; }
.city-editor .city-provinces,
.city-editor .city-cities { flex: 1; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #fafbfc; }
.city-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; font-size: 14px; margin-bottom: 10px; color: #24292f;
}
.city-section-title button { padding: 4px 10px; font-size: 12px; }
.city-list { max-height: 320px; overflow-y: auto; }
.city-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 8px; border-radius: 6px; background: #fff; margin-bottom: 6px;
  border: 1px solid transparent; cursor: pointer; font-size: 13px;
}
.city-row:hover { border-color: #d0d7de; }
.city-row.active { border-color: var(--primary); background: var(--primary-light); }
.city-row .city-name { flex: 1; }
.city-row button { padding: 2px 8px; font-size: 12px; }
.city-actions { display: flex; gap: 6px; }

/* 职能多级树编辑器 */
.function-tree { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.function-node { margin-left: 18px; }
.function-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 6px; margin-bottom: 4px;
  background: #f6f8fa; font-size: 14px;
}
.function-row:hover { background: #eef1f4; }
.function-toggle { cursor: pointer; width: 14px; text-align: center; color: #57606a; font-size: 12px; user-select: none; }
.function-toggle.placeholder { visibility: hidden; }
.function-name { flex: 1; }
.function-actions { display: flex; gap: 4px; }
.function-actions button { padding: 3px 6px; font-size: 12px; }
.function-actions .btn-sort {
  background: #fff; color: #57606a; border: 1px solid #d0d7de;
  min-width: 22px; padding: 2px 4px;
}
.function-actions .btn-sort:hover:not(:disabled) { background: #f0f2f5; color: #24292f; }
.function-actions .btn-sort:disabled { opacity: .35; cursor: not-allowed; }
.function-children { border-left: 1px dashed #d0d7de; margin-left: 6px; padding-left: 8px; }

@media (max-width: 640px) {
  .city-editor { flex-direction: column; }
}
