/* ==========================================================================
   AI辅助招聘 — 设计系统
   浅色主题 / 工具型 / 卡片式
   ========================================================================== */

:root {
  --bg: #f5f6fa;
  --bg-soft: #eef0f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --border: #e4e6ef;
  --border-strong: #d2d6e4;

  --text: #16192b;
  --text-2: #4b5063;
  --muted: #838aa0;
  --faint: #a8aec1;

  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef0ff;
  --primary-line: #c7c9f7;

  --success: #059669;
  --success-soft: #e7f7f1;
  --warn: #d97706;
  --warn-soft: #fdf3e4;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --info: #2563eb;
  --info-soft: #eaf1fe;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(22, 25, 43, .05);
  --shadow-sm: 0 2px 8px rgba(22, 25, 43, .06);
  --shadow: 0 6px 24px rgba(22, 25, 43, .08);
  --shadow-lg: 0 18px 48px rgba(22, 25, 43, .14);

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }

/* ---------- 布局 ---------- */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #5b52ea 0%, #7c6cf5 55%, #22b8cf 100%);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(79, 70, 229, .32);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-link {
  padding: 7px 13px; border-radius: 999px; color: var(--text-2);
  font-size: 13.5px; font-weight: 550; cursor: pointer; border: none; background: none;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--primary-soft); color: var(--primary-dark); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user { max-width: 130px; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

.page { padding: 30px 0 72px; }
.page-head { margin-bottom: 22px; }
.page-title { font-size: 22px; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 940px) {
  .grid-2, .grid-3, .grid-4, .grid-main { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 移动端导航（汉堡 + 抽屉） ---------- */

.nav-burger {
  display: none; flex: none; width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center; gap: 0;
  flex-direction: column; gap: 4px;
  border: none; background: none; border-radius: 10px; cursor: pointer;
  margin-left: -8px;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .2s, opacity .2s;
}
.nav-burger:hover { background: var(--bg-soft); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 59; background: rgba(22, 25, 43, .42);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
  width: min(82vw, 320px); background: var(--surface);
  box-shadow: var(--shadow-lg); transform: translateX(-102%);
  transition: transform .28s cubic-bezier(.3,.9,.4,1);
  display: flex; flex-direction: column;
}
.nav-drawer.on { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 16px; border-bottom: 1px solid var(--border);
}
.nav-drawer-head .modal-x { margin-left: auto; }
.nav-drawer-user { min-width: 0; }
.nav-drawer-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-drawer-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav-drawer-links {
  display: flex; flex-direction: column; padding: 10px 12px;
  overflow-y: auto; flex: 1;
}
.nav-drawer-links .nav-link {
  display: flex; align-items: center; padding: 12px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
}
.nav-drawer-links .nav-link.active { background: var(--primary-soft); color: var(--primary-dark); }
.nav-drawer-foot { padding: 14px 12px; border-top: 1px solid var(--border); }

body.nav-open { overflow: hidden; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-user { display: none; }
  .nav-signout { display: none; }
}

/* ---------- 卡片 ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .06s, box-shadow .15s;
}
.btn:hover:not(:disabled) { background: var(--bg-soft); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, .28);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-soft); }
.btn-danger { color: var(--danger); border-color: #f2c4c4; background: var(--danger-soft); }
.btn-danger:hover:not(:disabled) { background: #fbdede; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 11px; }

/* ---------- 表单 ---------- */

.field { margin-bottom: 15px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.label .req { color: var(--danger); margin-left: 3px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.err { font-size: 12.5px; color: var(--danger); margin-top: 5px; min-height: 0; }

.input, .textarea, .select {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  color: var(--text); background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
.select { cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }

.row-inline { display: flex; gap: 8px; }
.row-inline .input { flex: 1; }

/* ---------- 标签 / 徽章 ---------- */

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg-soft); color: var(--text-2); white-space: nowrap;
}
.tag-primary { background: var(--primary-soft); color: var(--primary-dark); }
.tag-success { background: var(--success-soft); color: var(--success); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-info { background: var(--info-soft); color: var(--info); }

.chip {
  display: inline-block; padding: 3px 9px; margin: 0 5px 5px 0;
  border-radius: 7px; font-size: 12px; background: var(--bg-soft);
  color: var(--text-2); border: 1px solid var(--border);
}
.chip-hit { background: var(--success-soft); color: var(--success); border-color: #b7e6d4; }
.chip-miss { background: var(--danger-soft); color: var(--danger); border-color: #f5c9c9; }
.chip-hit::before { content: "✓ "; font-weight: 800; }
.chip-miss::before { content: "✕ "; font-weight: 800; }

/* ---------- 分数 ---------- */

.score-ring {
  --pct: 0;
  --ring: var(--primary);
  width: 132px; height: 132px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--bg-soft) 0);
  display: grid; place-items: center; position: relative;
}
.score-ring::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface);
}
.score-ring-val {
  position: relative; z-index: 1; text-align: center; line-height: 1.1;
}
.score-ring-num { font-size: 38px; font-weight: 750; letter-spacing: -.03em; }
.score-ring-unit { font-size: 12px; color: var(--muted); font-weight: 600; }

.score-sm { font-weight: 750; font-size: 15px; }
.c-high { color: var(--success); }
.c-mid { color: var(--info); }
.c-low { color: var(--warn); }
.c-bad { color: var(--danger); }

/* ---------- 维度条 ---------- */

.dim { margin-bottom: 13px; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.dim-name { font-size: 13px; color: var(--text-2); font-weight: 600; }
.dim-val { font-size: 13px; font-weight: 700; }
.bar { height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .5s cubic-bezier(.3,.9,.4,1); }

/* ---------- 列表 / 表格 ---------- */

.list { display: flex; flex-direction: column; }
.list-item {
  padding: 15px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.list-item:last-child { border-bottom: none; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover { background: var(--surface-2); }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12px; font-weight: 650; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

/* ---------- 分段控件 ---------- */

.seg { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  border: none; background: none; padding: 7px 15px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.seg button.on { background: var(--surface); color: var(--primary-dark); box-shadow: var(--shadow-xs); }

/* ---------- 空态 / 加载 ---------- */

.empty { text-align: center; padding: 46px 24px; color: var(--muted); }
.empty-icon { font-size: 30px; margin-bottom: 10px; opacity: .55; }
.empty-title { font-size: 14.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.empty-sub { font-size: 13px; }

.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner-dark { border-color: var(--border-strong); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.dots::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 25%, #e7e9f2 50%, var(--bg-soft) 75%);
  background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: 7px;
}
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- 提示条 ---------- */

.alert {
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px;
  display: flex; gap: 9px; align-items: flex-start; line-height: 1.55;
}
.alert-info { background: var(--info-soft); color: #1d4ed8; }
.alert-warn { background: var(--warn-soft); color: #b45309; }
.alert-danger { background: var(--danger-soft); color: #b91c1c; }
.alert-success { background: var(--success-soft); color: #047857; }

/* ---------- Toast ---------- */

.toast-host {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 9px; align-items: center;
  pointer-events: none;
}
.toast {
  background: #1f2338; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); max-width: 460px;
  animation: toastIn .22s ease-out;
}
.toast.ok { background: #067a5b; }
.toast.err { background: #b32020; }
.toast.warn { background: #b45309; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 模态 ---------- */

.modal-host {
  position: fixed; inset: 0; z-index: 900; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(22, 25, 43, .42); backdrop-filter: blur(3px);
}
.modal-host.on { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); width: 100%;
  max-width: 620px; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-body { padding: 22px; }
.modal-foot {
  padding: 15px 22px; border-top: 1px solid var(--border); display: flex;
  justify-content: flex-end; gap: 9px; background: var(--surface-2);
  position: sticky; bottom: 0;
}
.modal-x {
  border: none; background: none; font-size: 21px; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 2px 6px; border-radius: 6px; font-family: inherit;
}
.modal-x:hover { background: var(--bg-soft); color: var(--text); }

/* ---------- 首次初始化（强制引导） ---------- */

.setup-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 24px;
  background: var(--bg-soft);
}
.setup-overlay.hidden { display: none; }
.setup-card {
  background: var(--surface); border-radius: var(--radius-lg); width: 100%;
  max-width: 520px; padding: 26px 28px 20px; box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease-out;
}
.setup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.setup-title { font-size: 18px; font-weight: 700; }
.setup-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.setup-steps { display: flex; align-items: center; margin-bottom: 20px; }
.setup-step { display: flex; align-items: center; gap: 8px; }
.setup-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 13px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.setup-step.is-done .setup-step-num { background: #16a34a; }
.setup-step-t { font-size: 14px; font-weight: 600; }
.setup-step.is-done .setup-step-t { color: var(--muted); }
.setup-step-done { color: #16a34a; font-weight: 700; font-size: 16px; }
.setup-step-divider {
  flex: 1; height: 2px; background: var(--border); margin: 0 10px; min-width: 20px;
}
.setup-block { margin-top: 4px; }
.setup-foot {
  margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center;
  line-height: 1.6;
}

/* ---------- 文件拖放 ---------- */

.drop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; cursor: pointer; background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop-icon { font-size: 26px; margin-bottom: 8px; opacity: .7; }
.drop-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.drop-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- 登录页 ---------- */

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 480px; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-hero { display: none; } }

.auth-hero {
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(99, 102, 241, .17), transparent 62%),
    radial-gradient(760px 460px at 82% 92%, rgba(6, 182, 212, .15), transparent 60%),
    linear-gradient(160deg, #fbfbff 0%, #f2f3fb 100%);
  padding: 56px 60px; display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
}
.auth-hero h1 { font-size: 40px; line-height: 1.2; margin-bottom: 14px; letter-spacing: -.03em; }
.auth-hero .lead { font-size: 16.5px; color: var(--text-2); max-width: 480px; line-height: 1.7; }
.auth-feats { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; max-width: 500px; }
.auth-feat { display: flex; gap: 13px; align-items: flex-start; }
.auth-feat-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); font-size: 16px; box-shadow: var(--shadow-xs);
}
.auth-feat-t { font-weight: 650; font-size: 14px; }
.auth-feat-d { font-size: 13px; color: var(--muted); }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: var(--surface); overflow-y: auto; }
.auth-card { width: 100%; max-width: 372px; }
.auth-tabs { display: flex; gap: 2px; background: var(--bg-soft); padding: 3px; border-radius: 10px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; border: none; background: none; padding: 8px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); font-family: inherit;
}
.auth-tabs button.on { background: var(--surface); color: var(--primary-dark); box-shadow: var(--shadow-xs); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }

/* ---------- 工具类 ---------- */

.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.ml-auto { margin-left: auto; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.flex-1 { flex: 1; min-width: 0; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.text-center { text-align: center; }
.mono { font-family: var(--mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.hidden { display: none !important; }
.divider-h { height: 1px; background: var(--border); margin: 16px 0; }

.kv { display: flex; gap: 10px; font-size: 13px; padding: 5px 0; }
.kv-k { color: var(--muted); width: 74px; flex: none; }
.kv-v { color: var(--text); word-break: break-word; }

.section-title {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}

.rank-badge {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 750; background: var(--bg-soft); color: var(--text-2); flex: none;
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.rank-3 { background: linear-gradient(135deg, #fdba74, #fb923c); color: #fff; }

.ai-block { border-left: 3px solid var(--primary-line); padding-left: 13px; margin-bottom: 15px; }
.ai-block:last-child { margin-bottom: 0; }
.ai-block-t { font-size: 13px; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.ai-list { margin: 0; padding-left: 17px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.ai-list li { margin-bottom: 3px; }

.bar-stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg-soft); }
.bar-stack > i { display: block; height: 100%; }

/* ---------- 心仪岗位（收藏星标） ---------- */

.fav-btn {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 17px; line-height: 1; padding: 3px 6px; border-radius: 7px;
  color: var(--faint); transition: color .15s, background .15s;
}
.fav-btn:hover { background: var(--warn-soft); color: var(--warn); }
.fav-btn.is-on { color: #f59e0b; }

/* ---------- AI 改简历：改动对照 ---------- */

.rw-text {
  font-family: inherit; font-size: 13.5px; line-height: 1.75;
  background: var(--surface-2); min-height: 260px;
}
.rw-diff {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 10px; background: var(--surface);
}
.rw-diff-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.rw-reason { font-size: 12px; color: var(--muted); }
.rw-line {
  font-size: 13px; line-height: 1.65; padding: 8px 11px; border-radius: 7px;
  margin-bottom: 6px; white-space: pre-wrap; word-break: break-word;
}
.rw-line:last-child { margin-bottom: 0; }
.rw-before {
  background: var(--danger-soft); color: #9b2c2c;
  text-decoration: line-through; text-decoration-color: rgba(155, 44, 44, .45);
}
.rw-after { background: var(--success-soft); color: #05603a; }
.rw-apply-tip { margin-right: auto; }

/* ---------- 演示模式提示条（仅本地预览出现） ---------- */

.demo-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 9999; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; padding: 9px 10px 9px 16px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  font-size: 12.5px; line-height: 1; max-width: calc(100vw - 32px);
}
.demo-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft); flex: none;
}
.demo-text { color: var(--text-2); }
.demo-link {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-weight: 600; text-decoration: none; transition: background .15s;
}
.demo-link:hover { background: var(--primary-line); }
@media print { .demo-banner { display: none; } }

/* ---------- 昵称：字符规则 / 违规判定 ---------- */

.nick-state {
  margin-top: 9px; font-size: 12.5px; line-height: 1.5;
  padding: 8px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
}
.nick-state.is-idle { color: var(--muted); }
.nick-state.is-ok {
  color: var(--success); background: var(--success-soft);
  border-color: #b7e6d4; font-weight: 600;
}
.nick-state.is-bad {
  color: var(--danger); background: var(--danger-soft);
  border-color: #f5c9c9; font-weight: 600;
}

.nick-sugg {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin-top: 9px; font-size: 12.5px;
}
.nick-sugg-l { color: var(--muted); }
.nick-chip {
  padding: 4px 11px; border-radius: 999px; cursor: pointer;
  border: 1px dashed var(--primary-line); background: var(--primary-soft);
  color: var(--primary-dark); font-size: 12.5px; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.nick-chip:hover { background: #e3e6ff; border-color: var(--primary); border-style: solid; }

.nick-rules {
  margin-top: 12px; padding: 12px 14px; font-size: 12px; line-height: 1.65;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.nick-rules code {
  font-family: var(--mono); font-size: 11.5px; padding: 1px 5px;
  background: var(--bg-soft); border-radius: 5px; color: var(--text);
}
.nick-rules-t {
  font-weight: 650; color: var(--text); margin: 9px 0 2px;
}
.nick-rules-t:first-child { margin-top: 0; }

/* ---------- 昵称引导条 ---------- */

.nick-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 22px; font-size: 13px;
  background: linear-gradient(90deg, #eef0ff, #f7f5ff);
  border-bottom: 1px solid var(--primary-line); color: var(--text-2);
}
.nick-banner-i {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 11px;
}
.nick-banner-go {
  font-weight: 650; color: var(--primary-dark); text-decoration: none;
  border-bottom: 1px dashed var(--primary-line); padding-bottom: 1px;
}
.nick-banner-go:hover { border-bottom-style: solid; }
.nick-banner-x {
  margin-left: auto; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 17px; line-height: 1; padding: 0 4px;
}
.nick-banner-x:hover { color: var(--text); }

/* ==========================================================================
   岗位批量导入向导
   ========================================================================== */

.select-sm { padding: 6px 28px 6px 10px; font-size: 12.5px; }

.ji-drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.ji-drop:hover, .ji-drop.on {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.ji-drop.on { transform: scale(1.005); }
.ji-drop-icon { font-size: 38px; line-height: 1; margin-bottom: 14px; }
.ji-drop-title { font-size: 15px; font-weight: 650; color: var(--text); }
.ji-drop-title .link { color: var(--primary); text-decoration: underline; cursor: pointer; }
.ji-drop-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.ji-drop-hint {
  font-size: 12px; color: var(--faint); margin-top: 18px;
  padding-top: 16px; border-top: 1px dashed var(--border);
  max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* —— 内置数据集（随站点发布，无需用户上传文件） —— */
.ji-builtin { margin-top: 20px; }
.ji-builtin-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--faint); font-size: 12px; margin-bottom: 14px;
}
.ji-builtin-divider::before,
.ji-builtin-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.ji-builtin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.ji-builtin-title { font-size: 13.5px; font-weight: 650; color: var(--text); }
.ji-builtin-sub {
  font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.65;
  max-width: 520px;
}
.ji-builtin-sub b { color: var(--primary); }
.ji-builtin-row .btn { white-space: nowrap; flex: none; }
@keyframes ji-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .ji-builtin-row { flex-direction: column; align-items: stretch; }
  .ji-builtin-row .btn { width: 100%; }
}

.ji-stage { animation: ji-in .22s ease; }
@keyframes ji-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ji-filebar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.ji-fileicon { font-size: 18px; }
.ji-fileinfo {
  flex: 1; min-width: 0; font-size: 13px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ji-fileinfo b { color: var(--text); }

.ji-section {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px; background: var(--surface);
}
.ji-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.ji-sec-head h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }

.ji-mapgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 10px;
}
.ji-maprow {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-2);
}
.ji-mapcol { flex: 1; min-width: 0; }
.ji-mapname {
  font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ji-mapsample {
  font-size: 11.5px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ji-maprow .select { width: 132px; flex: none; }

.ji-previewbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ji-previewbar .text-xs { margin-left: auto; }
.ji-preview { max-height: 340px; overflow: auto; }
.ji-preview td.ji-cell {
  font-size: 12px; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ji-diagrow { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.ji-diaglabel { width: 76px; flex: none; font-size: 12.5px; color: var(--text-2); }
.ji-diagbar {
  flex: 1; height: 7px; border-radius: 4px;
  background: var(--bg-soft); overflow: hidden;
}
.ji-diagbar i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.ji-diagpct {
  width: 42px; flex: none; text-align: right; font-size: 12px;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.ji-diagmeta { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.ji-tips { margin-top: 14px; margin-bottom: 0; }

.ji-actions { display: flex; align-items: center; gap: 14px; padding-top: 2px; }

.ji-importing { text-align: center; padding: 48px 24px; }
.ji-importing-title { font-size: 15px; font-weight: 650; margin: 16px 0 20px; }
.ji-progressbar {
  height: 10px; border-radius: 6px; background: var(--bg-soft);
  overflow: hidden; max-width: 460px; margin: 0 auto;
}
.ji-progressbar div {
  height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), #7c6bf0);
  transition: width .3s;
}
.ji-importstat { font-size: 13px; color: var(--text-2); margin: 14px 0 18px; line-height: 1.8; }

.ji-done { text-align: center; padding: 40px 24px; }
.ji-done-icon { font-size: 40px; line-height: 1; }
.ji-done-title { font-size: 17px; font-weight: 700; margin: 12px 0 22px; }
.ji-done-stats { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin-bottom: 24px; }
.ji-stat { display: flex; flex-direction: column; gap: 4px; }
.ji-stat-num { font-size: 26px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.ji-stat-label { font-size: 12px; color: var(--muted); }
.ji-errlist {
  text-align: left; max-width: 560px; margin: 0 auto 20px;
  background: var(--danger-soft); border: 1px solid #f6c9c9;
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 12.5px; color: var(--text-2);
}
.ji-errlist ul { margin: 8px 0 0; padding-left: 18px; }
.ji-errlist li { margin-bottom: 4px; line-height: 1.6; }
.ji-done-actions { display: flex; justify-content: center; gap: 10px; }

.ji-error { text-align: center; padding: 40px 24px; }
.ji-error-icon { font-size: 38px; line-height: 1; }
.ji-error-title { font-size: 16px; font-weight: 700; margin: 12px 0 8px; }
.ji-error-msg {
  font-size: 13px; color: var(--text-2); line-height: 1.7;
  max-width: 520px; margin: 0 auto 20px;
}
.ji-loading { padding: 30px; text-align: center; }

/* ==================== 岗位库分页 ==================== */

.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--border);
}
.pager-btns { display: flex; gap: 8px; }
.pager-btns .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 排行筛选条 */
.rank-filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .015);
}

/* 岗位来源标注（数据源要求保留原始出处与链接） */
.job-source {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ==================== 用户详情（管理员视角） ==================== */

.avatar-lg { width: 44px; height: 44px; font-size: 17px; }

.ud-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ud-sec { margin-bottom: 18px; }
.ud-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--text-2);
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ud-block {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2);
}
.ud-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px;
}

/* 简历原文：保留换行与缩进，超长时折叠 */
.ud-pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text-2);
}
.ud-pre-fold { max-height: 200px; overflow: hidden; position: relative; }
.ud-pre-fold::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--surface));
}

.ud-empty { font-size: 13px; color: var(--muted); padding: 4px 0 10px; margin: 0; }

.ud-list { display: flex; flex-direction: column; gap: 8px; }
.ud-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px;
}

.table-sm th, .table-sm td { padding: 8px 12px; }
.table-sm td { font-size: 13px; }

@media (max-width: 940px) {
  .ud-pre { font-size: 12px; }
}

/* ==========================================================================
   VIP 会员 / 简历优化向导
   ========================================================================== */

.tag-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-weight: 700; letter-spacing: .3px;
}
.tag-upsell { background: var(--primary-soft); color: var(--primary-dark); font-weight: 650; }
a.tag-upsell:hover { text-decoration: none; background: var(--primary-line); }

.vip-dot {
  display: inline-block; margin-left: 6px; padding: 1px 6px; vertical-align: 1px;
  border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .3px;
  background: rgba(255, 255, 255, .26); color: #fff;
  border: 1px solid rgba(255, 255, 255, .42);
}

/* ---- 会员中心状态卡 ---- */
.vip-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 20px 22px;
  background: linear-gradient(120deg, #f7f8fc 0%, #eef0f7 100%);
}
.vip-hero.is-vip {
  background: linear-gradient(120deg, #fff8ec 0%, #fdf1dc 62%, #f7f8fc 100%);
  border-color: #f0dcb4;
}
.vip-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vip-hero-badge {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .5px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs);
}
.vip-hero.is-vip .vip-hero-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(217, 119, 6, .3);
}
.vip-hero-title { font-size: 16px; font-weight: 700; }
.vip-hero-sub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.vip-hero-act { flex: none; }

/* ---- 套餐卡片 ---- */
.vip-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(208px, 1fr)); }
.vip-plan {
  position: relative; padding: 18px 16px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.vip-plan.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.vip-plan-tag {
  position: absolute; top: -10px; right: 12px;
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
}
.vip-plan-name { font-size: 14.5px; font-weight: 700; }
.vip-plan-price { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.vip-plan-orig { font-size: 12.5px; font-weight: 500; color: var(--faint); text-decoration: line-through; margin-left: 7px; }
.vip-plan-days { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vip-plan-feats { margin: 12px 0 14px; padding-left: 16px; font-size: 12.5px; color: var(--text-2); }
.vip-plan-feats li { margin-bottom: 4px; }

/* ---- 收款码 ---- */
.pay-qr {
  margin-top: 16px; padding: 18px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2);
}
.pay-qr img {
  display: block; width: 220px; max-width: 100%; height: auto; margin: 0 auto;
  border-radius: 10px; background: #fff; border: 1px solid var(--border);
}
.pay-qr-tip { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }

/* ---- 开通说明 ---- */
.vip-notice {
  margin-top: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-2);
}
.vip-notice summary { cursor: pointer; padding: 11px 14px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.vip-notice ol { margin: 0; padding: 0 14px 14px 32px; font-size: 12.5px; color: var(--text-2); line-height: 1.9; }

/* ---- 兑换 ---- */
.vip-redeem { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); }
.vip-redeem .row-inline { margin-top: 8px; }
.vip-redeem .input { max-width: 300px; letter-spacing: .5px; }

/* ---- 订单信息块 ---- */
.vip-order-box {
  display: grid; gap: 8px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2);
}

/* ---- 技能核对向导 ---- */
.opt-stat {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 11px 14px; margin-bottom: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: 13px; color: var(--text-2);
}
.opt-stat b { color: var(--text); font-size: 14px; }
.opt-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}
.opt-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 46vh; overflow-y: auto; padding: 2px;
}
.opt-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.opt-name { font-size: 13.5px; font-weight: 600; min-width: 0; }
.opt-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.opt-radio {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.opt-radio input { margin: 0; cursor: pointer; }
.opt-radio:has(input:checked) {
  border-color: var(--primary-line); background: var(--primary-soft);
  color: var(--primary-dark); font-weight: 600;
}
.opt-radio.opt-yes:has(input:checked) {
  border-color: var(--success); background: var(--success-soft); color: var(--success);
}
.opt-cat {
  margin-bottom: 18px; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2);
}
.opt-cat-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.opt-cat-icon { font-size: 18px; line-height: 1; }
.opt-cat-title { display: flex; flex-direction: column; min-width: 0; }
.opt-cat-title b { font-size: 14px; color: var(--text); }
.opt-cat-hint { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.opt-cat-badge {
  margin-left: auto; font-size: 12px; color: var(--text-2);
  padding: 3px 10px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border);
}
.opt-sub { font-size: 12px; color: var(--text-2); font-weight: 400; }
.opt-cat .opt-list { max-height: none; }
.opt-cov { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 12px; }
.opt-cov summary { cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 600; }
.opt-cov > div { margin-top: 8px; }
.opt-foot {
  margin: 22px -22px -22px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ---- AI 诊断 + 双选项引导 ---- */
.chip-warn { background: var(--warn-soft, #fef4e6); color: var(--warn, #b45309); border-color: #f3d9b3; }
.chip-warn::before { content: "? "; font-weight: 800; }

/* ---- 标准简历模板范文 ---- */
.tpl-prose-wrap { margin-top: 4px; }
.tpl-prose {
  margin: 0; padding: 16px 18px; white-space: pre-wrap; word-break: break-word;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 13px; line-height: 1.7; color: var(--text-1);
  background: var(--bg-2, #f7f8fa); border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 10px); max-height: 420px; overflow-y: auto;
}
.tpl-prose-loading { padding: 34px 0; text-align: center; }
.tpl-actions { display: flex; align-items: center; }
.tpl-actions .btn-sm { padding: 6px 12px; font-size: 13px; }

.opt-diag { padding: 10px 0; }
.opt-diag .opt-name { line-height: 1.5; }
.opt-diag .chip { margin-left: 6px; }

.opt-mode-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 18px;
}
.opt-mode {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 20px 18px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); transition: all .18s;
  font-family: inherit;
}
.opt-mode:hover {
  border-color: var(--primary-line); background: var(--primary-soft);
  transform: translateY(-2px); box-shadow: var(--shadow-sm, 0 4px 12px rgba(0,0,0,.06));
}
.opt-mode-icon { font-size: 26px; line-height: 1; }
.opt-mode-title { font-size: 16px; font-weight: 700; color: var(--text); }
.opt-mode-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

@media (max-width: 940px) {
  .opt-mode-grid { grid-template-columns: 1fr; }
}

/* ---- 兑换码展示 ---- */
.code-big {
  padding: 16px; margin: 4px 0 8px; text-align: center;
  font-size: 22px; font-weight: 700; letter-spacing: 2px; word-break: break-all;
  border: 1px dashed var(--primary-line); border-radius: var(--radius);
  background: var(--primary-soft); color: var(--primary-dark);
}
.code-list {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; max-height: 46vh; overflow-y: auto; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2);
}

@media (max-width: 940px) {
  .vip-hero { padding: 16px; }
  .vip-hero-main { gap: 12px; }
  .vip-plan-price { font-size: 22px; }
  .opt-list { max-height: 40vh; }
  .opt-row { align-items: flex-start; }
  .vip-redeem .input { max-width: none; }
}

/* ---------- 简历优化板块 ---------- */

/* 心仪岗位快捷选择：一排可点的岗位名 */
.rw-jobs {
  display: flex; flex-wrap: wrap; gap: 7px;
  max-height: 132px; overflow-y: auto; padding: 2px 0;
}
.rw-job-chip {
  max-width: 100%; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-family: inherit; line-height: 1.3;
  background: var(--surface-2, #f6f7f9); color: var(--text-2);
  border: 1px solid var(--border); transition: all .15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rw-job-chip:hover { border-color: var(--primary-line); color: var(--primary-dark); }
.rw-job-chip.on {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 600;
}

/* 三步说明 */
.rw-steps { display: flex; flex-direction: column; gap: 12px; }
.rw-step { display: flex; gap: 11px; align-items: flex-start; }
.rw-step > b {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; font-size: 12px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.rw-step > div { min-width: 0; font-size: 13px; line-height: 1.55; }
.rw-step > div > b { display: block; }

@media (max-width: 940px) {
  .rw-jobs { max-height: none; }
}

/* ---------- 后台：岗位库为空的引导卡 ---------- */

.jg-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jg-icon {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--primary-soft);
}
.jg-text { flex: 1; min-width: 260px; }
.jg-title { font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.jg-sub { font-size: 13px; line-height: 1.65; color: var(--text-2); }
.jg-act { flex: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .jg-act { width: 100%; }
  .jg-act .btn { flex: 1; }
}

/* ---------- 后台：待核对收款清单 ---------- */

.recon-note {
  font-size: 13px; line-height: 1.65; color: var(--text-2);
}
.recon-warn {
  margin-top: 8px; padding: 8px 11px; border-radius: 8px;
  background: var(--warn-soft); color: var(--warn); font-weight: 500;
}
.recon-pre {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2, #f6f7f9); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.75; color: var(--text);
  white-space: pre-wrap; word-break: break-all;
  max-height: 210px; overflow: auto;
}

/* ---------- 方案 A（收款码 + 人工对账）的两处提醒 ---------- */

/* 后台订单挂了超过一天：该处理了 */
.recon-stale { color: var(--danger); font-weight: 600; }

/* 套餐卡片：这个套餐还有一笔没付完的订单，按钮已换成「继续付款」 */
.vip-plan.has-pending { border-color: #eccf9a; }
.vip-plan-pend {
  margin-top: 7px; font-size: 12px; line-height: 1.5; text-align: center;
  color: var(--warn);
}

/* ==================== 岗位分类浏览（分层 + 推荐） ==================== */

.tax-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 13px; color: var(--faint); margin-bottom: 10px;
}
.tax-crumb { color: var(--faint); }
.tax-crumb.on { color: var(--text); font-weight: 600; }
.tax-crumb-sep { color: var(--faint); }

.tax-title { font-size: 15px; font-weight: 650; color: var(--text); }
.tax-hint { font-size: 12px; color: var(--faint); margin: 4px 0 14px; }

.tax-group-title {
  font-size: 12px; font-weight: 650; color: var(--faint);
  margin: 14px 0 8px; padding-left: 2px; letter-spacing: .02em;
}
.tax-group-title:first-child { margin-top: 0; }

.tax-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.tax-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px; text-align: left; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color .15s, transform .15s, box-shadow .15s;
  color: var(--text);
}
.tax-card:hover { border-color: var(--primary); box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.tax-card .tax-icon { font-size: 24px; line-height: 1; }
.tax-card .tax-name { font-size: 14px; font-weight: 650; }
.tax-card .tax-desc { font-size: 12px; color: var(--faint); line-height: 1.4; }
.tax-card .tax-count { font-size: 12px; color: var(--success); }

.tax-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--border);
}

.tax-matched-title { font-size: 13px; font-weight: 650; color: var(--text); margin: 16px 0 8px; }
.tax-jobs { display: flex; flex-direction: column; gap: 8px; }
.tax-job {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px; text-align: left; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: border-color .15s;
}
.tax-job:hover { border-color: var(--primary); }
.tax-job-title { font-size: 14px; font-weight: 600; flex: 1 1 auto; }
.tax-job-meta { font-size: 12px; color: var(--faint); }
.tax-job-salary { font-size: 12px; color: var(--success); font-weight: 600; }

.tax-rec-list { display: flex; flex-direction: column; gap: 10px; }
.tax-rec {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.tax-rec-main { flex: 1 1 auto; min-width: 0; }
.tax-rec-name { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.tax-rec-cat { font-size: 12px; color: var(--faint); margin-top: 2px; }
.tax-rec-reason { font-size: 12px; color: var(--text); line-height: 1.5; margin-top: 6px; }
.tax-score {
  display: inline-flex; align-items: center; padding: 1px 8px;
  font-size: 12px; font-weight: 700; border-radius: 20px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}

/* ---- 分数成长曲线 ---- */
#growthChart {
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--border);
}
.gc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.gc-title { font-size: 14px; font-weight: 700; }
.gc-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.gc-stat { font-size: 12.5px; color: var(--text-2); }
.gc-stat b { color: var(--text); font-weight: 750; font-size: 14px; }
.gc-stat.gc-up b { color: var(--success); }
.gc-stat.gc-down b { color: var(--danger, #dc2626); }
.gc-svg { width: 100%; height: auto; display: block; }
.gc-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 3; }
.gc-label { fill: var(--faint); font-size: 10px; text-anchor: end; }
.gc-area { fill: var(--primary-soft); opacity: .55; }
.gc-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gc-dot { fill: #fff; stroke: var(--primary); stroke-width: 2; }
.gc-dot:hover { r: 5; fill: var(--primary); }
.gc-hint { font-size: 11.5px; color: var(--faint); margin-top: 4px; text-align: right; }

/* ==========================================================================
   移动端全局适配（≤768px 手机 / ≤640px 小屏）
   ========================================================================== */

@media (max-width: 768px) {
  /* 基础字号与触控目标 */
  html, body { font-size: 15px; }
  .wrap, .wrap-narrow { padding: 0 16px; }
  .nav-inner { padding: 0 12px; height: 56px; gap: 12px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; font-size: 14px; }

  .page { padding: 20px 0 60px; }
  .page-head { margin-bottom: 16px; }
  .page-title { font-size: 19px; }
  .page-sub { font-size: 13px; }
  .page-head > .flex,
  .page-head.flex { gap: 10px; }

  /* 卡片 */
  .card { border-radius: 12px; }
  .card-head { padding: 13px 16px; gap: 10px; flex-wrap: wrap; }
  .card-body { padding: 16px; }
  .card-body.tight { padding: 12px 16px; }
  .card-foot { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }

  /* 表单与按钮触控 */
  .input, .textarea, .select { font-size: 16px; padding: 11px 13px; }
  .btn { padding: 10px 16px; font-size: 14px; min-height: 42px; }
  .btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
  .btn-lg { min-height: 48px; }
  .field { margin-bottom: 14px; }

  /* 分段控件横向可滚动，避免挤爆 */
  .seg { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .seg button { padding: 8px 14px; font-size: 13.5px; }

  /* 表格横向滚动 */
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .table th, .table td { padding: 9px 11px; }
  .table-sm th, .table-sm td { padding: 8px 10px; }

  /* 列表项 */
  .list-item { padding: 13px 16px; gap: 12px; }

  /* 排行筛选条：改成纵向堆叠 */
  .rank-filters { padding: 12px 16px; gap: 8px; align-items: stretch; flex-direction: column; }
  .rank-filters .select, .rank-filters .input { width: 100% !important; }
  .rank-filters .select { flex: 1; }

  /* 分页 */
  .pager { padding: 12px 16px; }

  /* 分数环缩小 */
  .score-ring { width: 108px; height: 108px; }
  .score-ring-num { font-size: 30px; }
  .score-ring::after { inset: 9px; }

  /* 模态框接近全屏 */
  .modal-host { padding: 0; align-items: flex-end; }
  .modal { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-head { padding: 15px 18px; }
  .modal-body { padding: 18px; }
  .modal-foot { padding: 13px 18px; }

  /* toast 不超屏 */
  .toast-host { top: 12px; padding: 0 16px; width: 100%; }
  .toast { max-width: 100%; }

  /* 网格与工具间距 */
  .grid { gap: 14px; }
  .grid-2, .grid-3, .grid-4 { gap: 14px; }
  .grid-main { gap: 14px; }

  /* 分类浏览卡片网格更密 */
  .tax-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
  .tax-card { padding: 12px; }
  .tax-card .tax-icon { font-size: 22px; }
  .tax-card .tax-name { font-size: 13.5px; }

  /* 岗位导入映射网格 */
  .ji-mapgrid { grid-template-columns: 1fr; }
  .ji-drop { padding: 34px 18px; }
  .ji-done-stats { gap: 22px; }

  /* 会员套餐卡 */
  .vip-plans { grid-template-columns: 1fr; }

  /* 空态 */
  .empty { padding: 34px 20px; }

  /* 分数成长曲线：窄屏下标题与统计栏纵向排布，避免横向挤压 */
  #growthChart { padding: 14px 14px 8px; }
  .gc-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gc-stats { margin-left: 0; gap: 10px 16px; }
  .gc-svg { min-height: 120px; }

  /* 个人设置等表单：row-inline（输入框 + 按钮）窄屏纵向堆叠，按钮自适应满宽 */
  .row-inline { flex-direction: column; align-items: stretch; }
  .row-inline .input, .row-inline .select { flex: none; }
  .row-inline .btn { width: 100%; }
  .kv-k { width: 64px; }
}

@media (max-width: 640px) {
  /* 单岗精析操作区：按钮铺满 */
  .card-foot .btn-lg,
  .card-foot .btn-primary { width: 100%; }
  .card-foot { flex-direction: column; align-items: stretch; }

  /* 页面头部按钮与分段控件铺满/换行 */
  .page-head .seg { width: 100%; }
  .page-head .seg button { flex: 1; }

  /* 心仪/历史头部操作按钮铺满 */
  .page-head > .flex:last-child { width: 100%; }
  .page-head > .flex:last-child .btn { flex: 1; }

  /* 初始引导弹层可滚动 */
  .setup-overlay { padding: 16px; align-items: flex-start; overflow-y: auto; }
  .setup-card { padding: 20px 18px 16px; max-height: none; }

  /* 登录页 */
  .auth-panel { padding: 24px 18px; }
  .auth-card { max-width: 100%; }

  /* 简历文本域 */
  #resumeText { min-height: 200px; }

  /* 全量排行：卡片头操作区堆叠 */
  #panel-ranking .card-head { flex-direction: column; align-items: stretch; }
  #panel-ranking .card-head .flex { flex-wrap: wrap; }
  #panel-ranking .card-head .btn { flex: 1; }
}
