/* 央国企 / 高端就业 服务管理系统 —— 全局样式 */
:root {
  --brand: #1F4E79;
  --brand-2: #2E75B6;
  --accent: #C55A11;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --line: #E3E8EF;
  --line-2: #EEF1F6;
  --ink: #1F2733;
  --ink-2: #59657A;
  --ink-3: #97A1B2;
  --ok: #15A34A;
  --ok-bg: #E6F6EC;
  --warn: #D97706;
  --warn-bg: #FEF3E2;
  --bad: #DC2626;
  --bad-bg: #FDECEC;
  --info: #2563EB;
  --info-bg: #E8F0FE;
  --r: 10px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .04), 0 4px 14px rgba(16, 30, 54, .06);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.6 "Microsoft YaHei", "微软雅黑", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 210px; flex: 0 0 210px; background: var(--brand); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar .logo b { display: block; font-size: 15px; letter-spacing: .5px; }
.sidebar .logo span { display: block; font-size: 11px; color: rgba(255,255,255,.62); margin-top: 4px; }
.nav { padding: 10px 0; flex: 1; overflow: auto; }
.nav a {
  display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.82);
  padding: 10px 18px; font-size: 14px; border-left: 3px solid transparent;
}
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.nav a.on { background: rgba(255,255,255,.14); color: #fff; border-left-color: #F2B441; font-weight: 700; }
.nav a i { font-style: normal; width: 16px; text-align: center; opacity: .9; }
.sidebar .foot { padding: 12px 18px; font-size: 11px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.12); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--card); border-bottom: 1px solid var(--line); padding: 0 24px;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 700; }
.topbar .sub { font-size: 12px; color: var(--ink-3); margin-left: 10px; font-weight: 400; }
.content { padding: 20px 24px 40px; }

/* ---------- 通用 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; }
.card > h2 { margin: 0; padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--line-2); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.card > h2 .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.card .body { padding: 16px 18px; }
.card .body.tight { padding: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 820px)  { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- 指标卡 ---------- */
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-2); }
.kpi.a::after { background: var(--accent); } .kpi.g::after { background: var(--ok); }
.kpi.w::after { background: var(--warn); }   .kpi.b::after { background: var(--bad); }
.kpi .k { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.kpi .v { font-size: 28px; font-weight: 700; line-height: 1.25; margin: 3px 0 1px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.kpi .d { font-size: 12px; color: var(--ink-3); }

/* ---------- 条形图 ---------- */
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 148px 1fr 84px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: #EDF1F7; border-radius: 99px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--brand-2); transition: width .4s ease; min-width: 2px; }
.bar-row .num { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 12px; }
.bar-row .num b { color: var(--ink); font-size: 13px; }

/* ---------- 漏斗 ---------- */
.funnel { display: flex; align-items: flex-end; gap: 10px; height: 168px; padding: 6px 0 0; }
.funnel .step { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.funnel .col { width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-2), var(--brand)); transition: height .4s; min-height: 4px; }
.funnel .n { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.funnel .t { font-size: 12px; color: var(--ink-2); }
.funnel .p { font-size: 11px; color: var(--ink-3); }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { background: #F7F9FC; text-align: left; font-weight: 700; color: var(--ink-2); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:hover { background: #FAFBFD; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.c, th.c { text-align: center; }
.table-wrap { overflow: auto; }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- 徽章 ---------- */
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; line-height: 18px; white-space: nowrap; }
.t-ok { background: var(--ok-bg); color: #0F7A36; }
.t-warn { background: var(--warn-bg); color: #A1570A; }
.t-bad { background: var(--bad-bg); color: #B91C1C; }
.t-info { background: var(--info-bg); color: #1D4ED8; }
.t-gray { background: #EFF2F6; color: #55606F; }
.t-accent { background: #FDEDE2; color: #A8480D; }

/* ---------- 按钮 / 表单 ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; font-family: inherit; line-height: 1.4; }
.btn:hover { background: #F6F8FB; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #194066; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: #A8480D; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn.danger { color: var(--bad); border-color: #F3C7C7; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand-2); padding: 4px 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; font-weight: 600; }
.field .req::after { content: " *"; color: var(--bad); }
input[type=text], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: 13px; background: #fff; color: var(--ink); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(46,117,182,.12); }
textarea { resize: vertical; min-height: 62px; }
.filters { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { margin: 0; }
.filters input, .filters select { width: auto; min-width: 150px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 16px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.actions { display: flex; gap: 9px; padding-top: 6px; }

/* ---------- 提示条 ---------- */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.flash.ok { background: var(--ok-bg); color: #0F7A36; border: 1px solid #B9E4C8; }
.flash.err { background: var(--bad-bg); color: #B91C1C; border: 1px solid #F3C7C7; }

/* ---------- 跟进页 ---------- */
.phase-block { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.phase-head { padding: 10px 16px; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.phase-head .meter { font-weight: 400; font-size: 12px; opacity: .95; }
.phase-assess { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 10px 16px; background: #FFFBF5; border-bottom: 1px solid var(--line-2); }
.phase-assess .pa-label { font-size: 12px; font-weight: 700; color: #A8480D; }
.cat-head { padding: 7px 16px; background: #F7F9FC; border-top: 1px solid var(--line-2); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.task-row { display: grid; grid-template-columns: 1fr 210px 118px 118px 108px; gap: 10px; align-items: start; padding: 9px 16px; border-top: 1px solid var(--line-2); }
.task-row:hover { background: #FAFBFD; }
.task-row .tname { font-size: 13px; font-weight: 700; }
.task-row .tmeta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.task-row .acts { margin: 5px 0 0; padding-left: 16px; font-size: 12px; color: var(--ink-2); }
.task-row .acts li { margin: 1px 0; }
.task-row select, .task-row input { font-size: 12px; padding: 4px 7px; }
.row-done .tname { color: var(--ink-3); text-decoration: line-through; }
.sticky-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 22px; align-items: center; backdrop-filter: blur(6px); font-size: 13px; z-index: 10; }
.sticky-bar b { font-variant-numeric: tabular-nums; }

/* ---------- 测评作答 ---------- */
.q-item { padding: 12px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 34px 1fr 380px; gap: 12px; align-items: center; }
.q-item .no { color: var(--ink-3); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.q-item .qtext { font-size: 13.5px; }
.q-item .dim { font-size: 11px; color: var(--ink-3); margin-left: 6px; }
.scale-opts { display: flex; gap: 6px; }
.scale-opts label { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 7px; padding: 6px 2px; font-size: 12px; cursor: pointer; color: var(--ink-2); user-select: none; }
.scale-opts input { display: none; }
.scale-opts input:checked + span { color: #fff; }
.scale-opts label:has(input:checked) { background: var(--brand-2); border-color: var(--brand-2); color: #fff; font-weight: 700; }
@media (max-width: 1000px) { .q-item { grid-template-columns: 28px 1fr; } .scale-opts { grid-column: 2; } }

/* 客观题选项（竖排，选项文字较长） */
.q-item.wide { grid-template-columns: 34px 1fr 430px; }
@media (max-width: 1100px) { .q-item.wide { grid-template-columns: 28px 1fr; } }
.opt-list { display: flex; flex-direction: column; gap: 5px; }
.opt-list label {
  display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: 7px; padding: 7px 10px; font-size: 12.5px; cursor: pointer;
  color: var(--ink-2); line-height: 1.55; background: #fff;
}
.opt-list label:hover { border-color: var(--brand-2); }
.opt-list input { margin: 3px 0 0; flex: 0 0 auto; }
.opt-list label:has(input:checked) { background: #EAF2FB; border-color: var(--brand-2); color: var(--ink); font-weight: 600; }

/* 两两对比（MBTI） */
.pair-row { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.pair-row:first-child { border-top: none; padding-top: 4px; }
.pair-row .side { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #FBFCFE; }
.pair-row .side.win { border-color: #C55A11; background: #FFF9F5; }
.pair-row .side .between { margin-bottom: 5px; font-size: 13px; }
.pair-row .side .between span { font-weight: 800; font-variant-numeric: tabular-nums; }
.pair-row .vs { text-align: center; color: var(--ink-3); font-size: 12px; font-weight: 700; }

/* 测评结论列表 */
.report-list { display: flex; flex-direction: column; gap: 8px; }
.report-item { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #FBFCFE; }
.report-item:hover { border-color: var(--brand-2); background: #F5F9FE; text-decoration: none; }
.report-item .rc { font-size: 16px; font-weight: 800; color: var(--brand); letter-spacing: 1.5px; }
.report-item b { font-size: 13.5px; }

/* ---------- 报告 ---------- */
.result-code { font-size: 40px; font-weight: 800; letter-spacing: 4px; color: var(--brand); line-height: 1.1; }
.dim-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.dim-card .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.dim-card .h b { font-size: 14px; }
.dim-card .h span { font-size: 18px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.dim-card p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); }

/* ---------- 其他 ---------- */
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note-box { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; padding: 9px 13px; border-radius: 8px; font-size: 12.5px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- 简历导入 ---------- */
.import-card { border-color: #BBD3EA; background: linear-gradient(180deg, #F7FBFF 0%, #FFFFFF 60%); }
.import-card textarea { min-height: 120px; font-family: inherit; }
.import-card .field input[type=file] { padding: 5px; background: #fff; }

/* ---------- 可增删的履历行 ---------- */
.exp-list { display: flex; flex-direction: column; gap: 12px; }
.exp-row { border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: #FCFDFF; }
.exp-row:hover { border-color: #C9D8E8; }
.exp-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.exp-line input[type=text], .exp-line select {
  padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-family: inherit; min-width: 0; }
.exp-line input[type=text]:focus, .exp-line select:focus { outline: none; border-color: var(--brand-2); }
.exp-line .f-pos { flex: 1; min-width: 110px; }
.exp-line .f-org { min-width: 130px; }
.exp-row .f-desc { width: 100%; min-height: 62px; font-family: inherit; font-size: 13px; }
.exp-line .chk { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.exp-line .chk input { margin: 0; }
.exp-line .js-del-exp { width: 30px; padding: 6px 0; text-align: center; font-size: 15px; line-height: 1; }
.exp-empty { padding: 16px; margin-bottom: 12px; }

/* ---------- 简历展示（学员详情） ---------- */
.resume-block { margin-bottom: 4px; }
.rb-title {
  font-size: 13px; font-weight: 700; color: var(--brand);
  padding-bottom: 6px; border-bottom: 2px solid #DCE7F3; margin-bottom: 12px;
}
.rb-group { margin-bottom: 14px; }
.rb-group:last-child { margin-bottom: 0; }
.rb-kind {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand-2); border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
}
.rb-item { padding: 9px 0 9px 13px; border-left: 2px solid #E3EAF3; margin-bottom: 6px; }
.rb-item:last-child { margin-bottom: 0; }
.rb-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rb-head b { font-size: 13.5px; }
.rb-pos { font-size: 12.5px; color: var(--brand-2); font-weight: 600; }
.rb-date { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: auto; }
.rb-desc { font-size: 12.5px; color: var(--ink-2); white-space: pre-line; margin-top: 5px; line-height: 1.6; }
.rb-quote {
  font-size: 12.5px; color: var(--ink-2); white-space: pre-line; line-height: 1.75;
  background: #F7FAFD; border-left: 3px solid var(--brand-2);
  border-radius: 0 6px 6px 0; padding: 10px 13px;
}
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px; color: var(--ink); background: #EEF4FA;
  border: 1px solid #D8E5F2; border-radius: 14px; padding: 3px 11px;
}
.miss-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #FFFBEB; border-bottom: 1px solid #FDE68A; padding: 8px 14px; margin: -4px 0 4px;
}
/* 不在表格上沿时，缺项条自身要有边框才像个块 */
.body > .miss-bar { border: 1px solid #FDE68A; border-radius: 8px; padding: 9px 13px; }

/* ========== 登录页 ========== */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #16324F 0%, #22496F 55%, #2E75B6 100%);
  padding: 24px;
}
.login-wrap { width: 100%; max-width: 380px; }
.login-card {
  background: #fff; border-radius: 14px; padding: 30px 28px 24px;
  box-shadow: 0 18px 50px rgba(8, 24, 40, .28);
}
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand b { display: block; font-size: 19px; color: var(--brand); letter-spacing: .5px; }
.login-brand span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.login-card .field { margin-bottom: 14px; }
.login-card .field input { width: 100%; }
.login-tip {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--ink-3); line-height: 1.8; text-align: center;
}

/* ========== 侧边栏底部：当前登录人 ========== */
.sidebar .foot .who { margin-bottom: 9px; line-height: 1.5; }
.sidebar .foot .who b { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .92); }
.sidebar .foot .who span { font-size: 11px; color: rgba(255, 255, 255, .5); }
.sidebar .foot .tiny { font-size: 10.5px; color: rgba(255, 255, 255, .38); line-height: 1.7; }
.sidebar.portal { background: linear-gradient(180deg, #1F4E79 0%, #2E75B6 100%); }
.btn.block { display: flex; width: 100%; justify-content: center; }

/* ========== 403 / 404 ========== */
.sorry { text-align: center; padding: 34px 16px 40px; }
.sorry-code {
  font-size: 52px; font-weight: 800; color: var(--brand-2);
  line-height: 1; letter-spacing: 2px; opacity: .35; margin-bottom: 12px;
}
.sorry p { color: var(--ink-2); font-size: 14px; margin: 0 0 20px; }

/* ========== 账号管理：初始密码 / 提示清单 ========== */
code.pw {
  font-family: Consolas, "Courier New", monospace; font-size: 13px;
  background: #FFF7E6; border: 1px dashed #E8C88A; border-radius: 6px;
  padding: 2px 8px; color: #8A5A00; letter-spacing: .5px;
}
ul.tips { margin: 0; padding-left: 18px; }
ul.tips li { font-size: 12.5px; color: var(--ink-2); line-height: 1.9; margin-bottom: 3px; }
ul.tips li b { color: var(--ink); }
