/* ════════════════════════════════════════════════════════════
   JobRadar · 职雷 — Stylesheet
   精致现代 SaaS 仪表盘 · 雷达科技感
   （重写：视觉升级，结构/类名/变量保持兼容，功能不变）
═══════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS 变量 ── */
:root {
  /* 品牌色（保留 #1A56DB，扩展为渐变体系） */
  --brand:        #1A56DB;
  --brand-2:      #3B82F6;
  --brand-deep:   #1442B0;
  --brand-light:  #EBF2FF;
  --brand-grad:   linear-gradient(135deg, #2563EB 0%, #1A56DB 55%, #1E40AF 100%);

  --green:        #0E9F6E;
  --green-light:  #E9F8F2;
  --orange:       #FF5A1F;
  --orange-light: #FFF1EB;
  --red:          #E02424;
  --red-light:    #FCEBEB;
  --purple:       #534AB7;
  --purple-light: #ECEBFB;
  --amber:        #BA7517;
  --amber-light:  #FAEEDA;
  --teal-light:   #E1F5EE;
  --teal-dark:    #085041;

  /* 中性面板 */
  --c-bg-0:  #ffffff;
  --c-bg-1:  #F4F6FB;
  --c-bg-2:  #EDF0F7;
  --c-border:   rgba(17, 24, 39, 0.08);
  --c-border-2: rgba(17, 24, 39, 0.15);
  --c-text-1: #0F1729;
  --c-text-2: #5B6577;
  --c-text-3: #95A0B3;

  /* 阴影 / 高度系统 */
  --shadow-xs: 0 1px 2px rgba(15, 23, 41, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 41, 0.06), 0 1px 2px rgba(15, 23, 41, 0.04);
  --shadow-md: 0 6px 16px -6px rgba(15, 23, 41, 0.12), 0 2px 6px -2px rgba(15, 23, 41, 0.07);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 41, 0.20), 0 8px 16px -8px rgba(15, 23, 41, 0.10);
  --glow-brand: 0 8px 24px -6px rgba(26, 86, 219, 0.40);

  /* 字体 */
  /* Sora 已移除（Google Fonts 在中国无法访问），直接使用系统字体 */
  --font-display: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-w:   232px;
  --top-h:    60px;
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* Dark mode — 已禁用：强制浅色主题，移动端显示更友好 */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg-1);
  color: var(--c-text-1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(26, 86, 219, 0.18); color: var(--c-text-1); }

/* 自定义滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--c-border-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); background-clip: padding-box; }

/* ── 动画关键帧 ── */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawerIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(26, 86, 219, 0.30); }
  70%  { box-shadow: 0 0 0 8px rgba(26, 86, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 86, 219, 0); }
}
@keyframes radarSpin { to { transform: rotate(360deg); } }

/* ── Layout ── */
.shell { display: flex; height: 100vh; overflow: hidden; }
.main  {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  position: relative;
  /* 氛围背景：雷达光晕 + 细网格 */
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(720px 480px at 8% 108%, rgba(83, 74, 183, 0.08), transparent 55%),
    linear-gradient(var(--c-border) 1px, transparent 1px) 0 0 / 100% 56px,
    var(--c-bg-1);
  background-attachment: fixed;
}
.page  { display: none; flex-direction: column; flex: 1; min-height: 0; }
.page.active { display: flex; }
.content { flex: 1; min-height: 0; padding: 22px 26px 32px; overflow-y: auto; }

/* 页面切换 / 加载时，主内容区直接子元素错峰淡入 */
.page.active .content > * { animation: fadeUp .5s cubic-bezier(.22,.61,.36,1) both; }
.page.active .content > *:nth-child(1) { animation-delay: .02s; }
.page.active .content > *:nth-child(2) { animation-delay: .08s; }
.page.active .content > *:nth-child(3) { animation-delay: .14s; }
.page.active .content > *:nth-child(4) { animation-delay: .20s; }
.page.active .content > *:nth-child(5) { animation-delay: .26s; }
.page.active .content > *:nth-child(6) { animation-delay: .32s; }
.page.active .content > *:nth-child(n+7) { animation-delay: .36s; }

/* ── Nav ── */
.nav {
  width: var(--nav-w);
  background:
    linear-gradient(180deg, rgba(26,86,219,0.04), transparent 220px),
    var(--c-bg-0);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}
.nav-brand {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav-logo {
  width: 44px; height: 44px;
  background: var(--brand-grad);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
  box-shadow: var(--glow-brand);
  position: relative;
}
.nav-logo i { position: relative; z-index: 1; animation: radarSpin 9s linear infinite; }
.nav-logo::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.45), transparent 55%);
}
.nav-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.nav-sub   { font-size: 13px; color: var(--c-text-2); margin-top: 2px; }
.nav-menu  { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-footer{ padding: 10px 10px 14px; border-top: 1px solid var(--c-border); }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  color: var(--c-text-2);
  margin-bottom: 3px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  user-select: none;
  animation: fadeUp .4s ease both;
}
.nav-menu .nav-item:nth-child(1) { animation-delay: .02s; }
.nav-menu .nav-item:nth-child(2) { animation-delay: .05s; }
.nav-menu .nav-item:nth-child(3) { animation-delay: .08s; }
.nav-menu .nav-item:nth-child(4) { animation-delay: .11s; }
.nav-menu .nav-item:nth-child(5) { animation-delay: .14s; }
.nav-menu .nav-item:nth-child(6) { animation-delay: .17s; }
.nav-menu .nav-item:nth-child(7) { animation-delay: .20s; }
.nav-menu .nav-item:nth-child(8) { animation-delay: .23s; }
.nav-menu .nav-item:nth-child(9) { animation-delay: .26s; }
.nav-item i { font-size: 19px; width: 20px; text-align: center; transition: transform .18s ease; }
.nav-item::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--brand-grad); transition: transform .2s ease;
}
.nav-item:hover  { background: var(--c-bg-2); color: var(--c-text-1); }
.nav-item:hover i { transform: scale(1.1); }
.nav-item.active {
  background: var(--brand-light); color: var(--brand); font-weight: 600;
}
.nav-item.active::before { transform: translateY(-50%) scaleY(1); }

/* ── 返回总览按钮 ── */
.topbar-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--c-text-2); border-color: var(--c-border);
  padding: 5px 12px; border-radius: 20px;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
}
.topbar-back-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-light); }
.topbar-back-btn i { font-size: 14px; }

/* ── Topbar ── */
.topbar {
  height: var(--top-h);
  background: color-mix(in srgb, var(--c-bg-0) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 10px;
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 15;
}
.topbar-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; flex: 1; display: flex; align-items: center; gap: 10px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-2);
  background: var(--c-bg-0);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-1);
  transition: background .16s, border-color .16s, transform .12s, box-shadow .16s;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: var(--shadow-xs);
}
.btn:hover    { background: var(--c-bg-2); border-color: var(--c-border-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active   { transform: translateY(0) scale(.98); }
.btn.primary  { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--glow-brand); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 10px 28px -6px rgba(26,86,219,0.50); }
.btn.sm       { padding: 5px 11px; font-size: 12px; }
.btn.full     { width: 100%; justify-content: center; padding: 11px; }
.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--c-text-2);
  padding: 6px; border-radius: var(--radius-sm);
  font-size: 16px; line-height: 1;
  transition: background .15s, color .15s, transform .12s;
  font-family: inherit;
}
.icon-btn:hover { background: var(--c-bg-2); color: var(--c-text-1); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.92); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.b-gray   { background: var(--c-bg-2);       color: var(--c-text-2); border-color: var(--c-border); }
.b-blue   { background: var(--brand-light);   color: #1647C5; border-color: rgba(26,86,219,0.18); }
.b-green  { background: var(--green-light);   color: #047857; border-color: rgba(14,159,110,0.20); }
.b-teal   { background: var(--teal-light);    color: var(--teal-dark); border-color: rgba(8,80,65,0.16); }
.b-amber  { background: var(--amber-light);   color: var(--amber); border-color: rgba(186,117,23,0.22); }
.b-red    { background: var(--red-light);     color: #C81E1E; border-color: rgba(224,36,36,0.20); }
.b-purple { background: var(--purple-light);  color: #4C40A8; border-color: rgba(83,74,183,0.20); }

/* Dark mode badge overrides — 已禁用 */

/* ── Cards ── */
.card {
  position: relative;
  background: var(--c-bg-0);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.section-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; display: flex; align-items: center; }

/* ── Stat grid ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  position: relative; overflow: hidden;
  background: var(--c-bg-0);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s, border-color .22s;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--brand-grad); opacity: .85;
}
.stat-card::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,0.10), transparent 70%);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(26,86,219,0.25); }
.stat-card.clickable { cursor: pointer; }
.stat-card.clickable.active { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.15), var(--shadow-lg); transform: translateY(-2px); }
.stat-card.clickable.active .stat-note { color: #f97316; font-weight: 600; }
.stat-label { font-size: 12px; color: var(--c-text-2); margin-bottom: 8px; font-weight: 500; position: relative; }
.stat-val   { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; position: relative; font-variant-numeric: tabular-nums; }
.stat-val.blue   { color: var(--brand); }
.stat-val.green  { color: var(--green); }
.stat-val.orange { color: var(--orange); }
.stat-note  { font-size: 11px; color: var(--c-text-3); margin-top: 7px; position: relative; }

/* ── Two-col layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.two-col > .card { margin-bottom: 0; }

/* ── Funnel ── */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.funnel-label { width: 58px; color: var(--c-text-2); flex-shrink: 0; }
.funnel-bar-wrap { flex: 1; background: var(--c-bg-2); border-radius: 6px; height: 22px; overflow: hidden; }
.funnel-bar {
  height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 9px;
  font-size: 11px; color: #fff; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  transform-origin: left;
}
.page.active .funnel-bar { animation: growBar .9s cubic-bezier(.22,.61,.36,1) both; animation-delay: .25s; }
.funnel-num { width: 28px; text-align: right; font-weight: 700; font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ── Deadline list ── */
.deadline-list { display: flex; flex-direction: column; gap: 0; }
.deadline-item { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: var(--radius-sm); border-bottom: 1px solid var(--c-border); transition: background .15s; }
.deadline-item:hover { background: var(--c-bg-1); }
.deadline-item:last-child { border-bottom: none; }
.deadline-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.deadline-dot.red    { background: var(--red);    box-shadow: 0 0 0 3px var(--red-light); animation: pulseRing 2s infinite; }
.deadline-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }
.deadline-dot.blue   { background: var(--brand);  box-shadow: 0 0 0 3px var(--brand-light); }
.deadline-co  { font-size: 13px; font-weight: 600; flex: 1; }
.deadline-pos { font-size: 12px; color: var(--c-text-2); margin-top: 1px; }
.deadline-date { font-size: 12px; font-weight: 600; flex-shrink: 0; }
.deadline-date.red    { color: var(--red); }
.deadline-date.orange { color: var(--orange); }
.deadline-date.amber  { color: #D97706; }
.deadline-date.blue   { color: var(--brand); }
.deadline-dot.amber   { background: #D97706; box-shadow: 0 0 0 3px #FEF3C7; }

/* ── Dashboard 新组件 ── */
.dash-quick { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 18px; border-radius: var(--radius-lg); border: 1px solid var(--c-border);
  background: var(--c-bg-0); cursor: pointer; font-size: 12px; color: var(--c-text-2);
  transition: all .18s; box-shadow: var(--shadow-sm); font-family: inherit; flex: 1; min-width: 70px;
}
.dash-quick-btn i { font-size: 20px; color: var(--brand); }
.dash-quick-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* 新统计卡 */
.dash-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.dash-stat-card {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--c-bg-0); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all .18s;
  border-left: 3px solid var(--card-color, var(--brand));
}
.dash-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--c-bg-1); }
.dash-stat-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--card-color, var(--brand)) 12%, transparent);
  color: var(--card-color, var(--brand)); font-size: 18px;
}
.dash-stat-body { min-width: 0; }
.dash-stat-val   { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--card-color, var(--brand)); line-height: 1.1; }
.dash-stat-label { font-size: 11.5px; font-weight: 600; color: var(--c-text-1); margin-top: 1px; }
.dash-stat-note  { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }

/* 状态分布 */
.dist-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s; }
.dist-row:hover { background: var(--c-bg-1); }
.dist-icon { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.dist-label { font-size: 12px; color: var(--c-text-2); width: 50px; flex-shrink: 0; }
.dist-bar-wrap { flex: 1; height: 6px; background: var(--c-bg-2); border-radius: 3px; overflow: hidden; }
.dist-bar { height: 100%; border-radius: 3px; transition: width .6s ease; }
.dist-num { font-size: 12px; font-weight: 700; width: 24px; text-align: right; flex-shrink: 0; }

/* 最近动态 */
.activity-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.activity-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.activity-body { flex: 1; min-width: 0; font-size: 12.5px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.activity-co { font-weight: 600; color: var(--c-text-1); }
.activity-arrow { color: var(--c-text-3); }
.activity-status { font-weight: 600; }
.activity-time { font-size: 11px; color: var(--c-text-3); flex-shrink: 0; }

/* 推荐岗位卡片 */
.dash-reco-card {
  display: flex; gap: 12px; align-items: center; padding: 13px 10px;
  border-radius: var(--radius-sm); border-bottom: 1px solid var(--c-border);
  transition: background .15s;
}
.dash-reco-card:last-child { border-bottom: none; }
.dash-reco-card:hover { background: var(--c-bg-1); }
.dash-reco-logo { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; }
.dash-reco-info { flex: 1; min-width: 0; }
.dash-reco-co { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.dash-reco-pos { font-size: 12px; color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.dash-reco-meta { display: flex; gap: 10px; font-size: 11.5px; color: var(--c-text-3); flex-wrap: wrap; }
.dash-reco-meta span { display: flex; align-items: center; gap: 3px; }
.dash-reco-apply {
  flex-shrink: 0; display: flex; align-items: center; gap: 4px; font-size: 12px;
  color: var(--brand); border: 1px solid var(--brand); border-radius: 20px;
  padding: 4px 12px; text-decoration: none; transition: background .15s;
}
.dash-reco-apply:hover { background: var(--brand-light); }

/* section-title action */
.section-title-action {
  margin-left: auto; font-size: 12px; color: var(--brand); font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 2px;
}
.section-title-action:hover { text-decoration: underline; }

/* 漏斗转化率 & 挂科 */
.funnel-conv { font-size: 11px; color: var(--c-text-3); width: 34px; text-align: right; flex-shrink: 0; }
.funnel-hung { font-size: 12px; color: #9CA3AF; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--c-border); display: flex; align-items: center; gap: 5px; }

/* 空状态提示 */
.dash-empty-tip { padding: 18px 0; font-size: 13px; color: var(--c-text-3); display: flex; align-items: center; gap: 7px; justify-content: center; }

@media (max-width: 900px) {
  .dash-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-quick-btn span { display: none; }
}

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; padding: 12px 16px;
  background: var(--c-bg-1);
  font-weight: 600; font-size: 12.5px; color: var(--c-text-2);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
  letter-spacing: 0.02em; text-transform: uppercase;
}
th:first-child { border-top-left-radius: var(--radius-md); }
th:last-child  { border-top-right-radius: var(--radius-md); }
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr.data-row { cursor: pointer; transition: background .15s; }
tr.data-row:hover td { background: var(--brand-light); }
tr.data-row:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

/* ── 校招信息库：滚动下拉 + 表头吸顶 ── */
#page-jobdb .table-wrap { overflow: visible; }
#page-jobdb thead th {
  position: sticky; top: 0; z-index: 5;
  box-shadow: 0 1px 0 var(--c-border);
}
.jobdb-count { font-size: 12.5px; color: var(--c-text-2); }
.jobdb-new {
  font-size: 9.5px; padding: 1px 5px; letter-spacing: 0.04em;
  vertical-align: middle; margin-left: 2px;
}
.jdb-urgent { color: var(--orange); font-weight: 600; }
.stat-val.purple { color: #7E5BEF; }
.jdb-spin { display: inline-block; animation: radarSpin .8s linear infinite; }

/* ── 登录 / 注册弹窗 ── */
.auth-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px; background: var(--c-bg-0);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px 28px;
  animation: fadeUp .28s cubic-bezier(.22,.61,.36,1) both;
}
.auth-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; background: transparent; color: var(--c-text-3);
  border-radius: 50%; font-size: 17px; transition: background .15s, color .15s;
}
.auth-close:hover { background: var(--c-bg-2); color: var(--c-text-1); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.auth-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.auth-sub { font-size: 12.5px; color: var(--c-text-2); margin-bottom: 20px; line-height: 1.5; }
.auth-field { margin-bottom: 14px; }
.auth-field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--c-text-2); margin-bottom: 6px; }
.auth-field > input {
  width: 100%; padding: 10px 13px; border-radius: var(--radius-md);
  border: 1px solid var(--c-border-2); background: var(--c-bg-0);
  font-size: 13.5px; color: var(--c-text-1); font-family: inherit; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.auth-field > input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.auth-reg-only { display: none; }  /* 登录模式下隐藏，注册模式 JS 控制显示 */
.auth-error { font-size: 12.5px; color: #E02424; min-height: 18px; margin-bottom: 4px; }
.auth-submit { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }
.auth-switch { text-align: center; font-size: 12.5px; color: var(--c-text-2); margin-top: 16px; }
.auth-switch a { color: var(--brand); font-weight: 600; text-decoration: none; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }

/* ── 侧栏底部账号区 ── */
.nav-account { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 2px; }
.nav-user-name { font-size: 12.5px; color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; cursor: pointer;
  font-size: 12px; font-family: inherit; color: var(--c-text-2);
  background: transparent; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 4px 9px;
  transition: all .15s;
}
.nav-logout:hover { color: #E02424; border-color: rgba(224,36,36,0.4); }
.nav-login {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-size: 13px; font-family: inherit; color: #fff; background: var(--brand-grad);
  border: none; border-radius: var(--radius-md); padding: 9px 12px; box-shadow: var(--glow-brand);
  transition: filter .15s;
}
.nav-login:hover { filter: brightness(1.06); }

/* ── 校招库免费上限提示 ── */
.jdb-cap {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 26px; color: var(--c-text-2); font-size: 13px;
  background: var(--brand-light); border: 1px dashed var(--brand); border-radius: var(--radius-lg); margin-top: 4px;
}
.jdb-cap > i { font-size: 26px; color: var(--brand); }

/* ── 定价 / 会员 ── */
.pricing-status {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text-2);
  background: var(--c-bg-0); border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: 12px 16px; margin-bottom: 18px;
}
.pricing-status.is-member { background: var(--amber-light); border-color: rgba(186,117,23,0.22); color: var(--amber); }
.pricing-status > i { font-size: 17px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pricing-card {
  position: relative; background: var(--c-bg-0); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pricing-card.best { border-color: var(--brand); box-shadow: 0 8px 30px -10px rgba(26,86,219,0.35); }
.pricing-badge {
  position: absolute; top: -10px; right: 16px; font-size: 11px; font-weight: 600; color: #fff;
  background: var(--brand-grad); border-radius: 20px; padding: 2px 11px; box-shadow: var(--glow-brand);
}
.pricing-name { font-size: 14px; font-weight: 600; color: var(--c-text-2); margin-bottom: 10px; }
.pricing-price { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.pricing-cur { font-size: 18px; font-weight: 600; margin-right: 2px; vertical-align: 6px; }
.pricing-per { font-size: 12px; color: var(--c-text-3); margin-top: 6px; }
.pricing-feats { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pricing-feats li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--c-text-1); line-height: 1.5; }
.pricing-feats li > i { font-size: 14px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.pricing-buy { width: 100%; justify-content: center; padding: 10px; }
.pricing-note { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--c-text-3); margin-top: 18px; }
.pricing-note > i { font-size: 14px; }

/* ── 校招信息库：Hero ── */
.jdb-hero { margin-bottom: 18px; }
.jdb-hero-label { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.jdb-hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.jdb-hero-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 8px; }
.jdb-hero-sub { font-size: 13.5px; color: var(--c-text-2); line-height: 1.6; max-width: 720px; }
.jdb-hero-btn { flex-shrink: 0; }

/* ── 特性条 ── */
.jdb-strip {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(110deg, var(--brand-light), color-mix(in srgb, var(--c-bg-0) 70%, var(--brand-light)));
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 14px 20px; margin-bottom: 18px;
}
.jdb-strip-lead { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 280px; }
.jdb-strip-lead > i { font-size: 22px; color: var(--brand); flex-shrink: 0; }
.jdb-strip-lead b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.jdb-strip-lead span { font-size: 12px; color: var(--c-text-2); }
.jdb-strip-feats { display: flex; gap: 22px; flex-wrap: wrap; }
.jdb-feat { display: flex; align-items: center; gap: 8px; }
.jdb-feat > i { font-size: 17px; color: var(--brand); }
.jdb-feat b { display: block; font-size: 12.5px; }
.jdb-feat span { font-size: 11px; color: var(--c-text-3); }

/* 简历模板标签 */
.resume-tpl-tag {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  background: #fff; border: 1px solid var(--c-border);
  font-size: 11px; color: var(--c-text-2); white-space: nowrap;
}

/* ── 筛选卡 ── */
.jdb-filter-card { padding: 16px 18px; }
.jdb-tabs-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.jdb-tabs { display: flex; gap: 6px; }
.jdb-tab {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 14px; border-radius: var(--radius-md); font-size: 13px; font-family: inherit;
  color: var(--c-text-1); background: var(--c-bg-1); border: 1px solid var(--c-border);
  transition: all .15s;
}
.jdb-tab:hover { border-color: var(--brand); }
.jdb-tab.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--glow-brand); }
.jdb-tab-count { font-size: 11px; padding: 0 6px; border-radius: 20px; background: rgba(0,0,0,0.06); font-variant-numeric: tabular-nums; }
.jdb-tab.active .jdb-tab-count { background: rgba(255,255,255,0.22); }
.jdb-count-info { font-size: 12.5px; color: var(--c-text-2); }
.jdb-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jdb-quick-label { font-size: 12.5px; color: var(--c-text-3); margin-right: 2px; }
.jdb-chip {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  padding: 5px 11px; border-radius: 20px; font-size: 12px; font-family: inherit;
  color: var(--c-text-2); background: var(--c-bg-0); border: 1px solid var(--c-border-2);
  transition: all .15s;
}
.jdb-chip > i { font-size: 13px; }
.jdb-chip:hover { border-color: var(--brand); color: var(--brand); }
.jdb-chip.active { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }
.jdb-spacer { flex: 1; }
.jdb-view-toggle { display: inline-flex; background: var(--c-bg-1); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 2px; }
.jdb-view {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-family: inherit;
  color: var(--c-text-2); background: transparent; border: none; transition: all .15s;
}
.jdb-view.active { background: var(--c-bg-0); color: var(--brand); box-shadow: var(--shadow-xs); font-weight: 600; }
.jdb-reset { flex-shrink: 0; }
.jdb-search-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jdb-search-row .search-box { flex: 1; min-width: 240px; }

/* ── 岗位卡片网格 ── */
/* ── 今日新增横幅 ── */
.today-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #f97316;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(249,115,22,.18);
  animation: bannerIn .28s cubic-bezier(.22,.61,.36,1);
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.today-banner-left {
  display: flex; align-items: center; gap: 14px;
}
.today-banner-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249,115,22,.22);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249,115,22,.22); }
  50%       { box-shadow: 0 0 0 8px rgba(249,115,22,.08); }
}
.today-banner-left > i { font-size: 22px; color: #f97316; flex-shrink: 0; }
.today-banner-left strong { display: block; font-size: 14.5px; color: #9a3412; margin-bottom: 3px; }
.today-banner-left span { font-size: 12.5px; color: #c2410c; }
.today-banner-left b { font-variant-numeric: tabular-nums; }
.today-banner-exit {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px;
  border: 1.5px solid #f97316; background: #fff;
  color: #f97316; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s, transform .15s;
}
.today-banner-exit:hover { background: #f97316; color: #fff; transform: scale(1.04); }
.today-banner-exit i { font-size: 14px; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.job-card {
  background: var(--c-bg-0); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 15px 16px; display: flex; flex-direction: column; gap: 11px;
  box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(26,86,219,0.22); }
.job-card--expired {
  opacity: .5; filter: grayscale(.75);
  background: var(--c-bg-1); border-color: var(--c-border);
  pointer-events: auto;
}
.job-card--expired:hover { transform: none; box-shadow: var(--shadow-xs); border-color: var(--c-border); }
.job-card--expired .jc-deadline { color: var(--c-text-2) !important; }
.job-card--expired::after { content: '已截止'; position: absolute; top: 10px; right: 12px;
  font-size: 10px; color: #9ca3af; background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 4px; padding: 1px 6px; pointer-events: none; }
.job-card { position: relative; }
/* 过期表格行 */
tr.row--expired td { opacity: .45; filter: grayscale(.7); }
.jc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.jc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.jc-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.jc-deadline { font-size: 13px; color: var(--c-text-2); font-weight: 600; }
.jc-deadline.urgent { color: var(--orange); }
.jc-updated { font-size: 12px; color: var(--brand); }
.jc-co { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.jc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--c-text-2); }
.jc-city { display: inline-flex; align-items: center; gap: 3px; }
.jc-city > i { font-size: 14px; color: var(--c-text-3); }
.jc-industry { color: var(--c-text-3); }
.jc-pos {
  display: flex; gap: 7px; font-size: 14px; color: var(--c-text-1); line-height: 1.5;
  background: var(--c-bg-1); border-radius: var(--radius-sm); padding: 9px 11px;
}
.jc-pos > i { font-size: 15px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.jc-pos > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jc-actions { display: flex; gap: 8px; margin-top: auto; }
.jc-apply { flex: 1; justify-content: center; }
.jc-add { flex: 1; justify-content: center; }
.jc-add:disabled, .jc-apply:disabled { opacity: .55; cursor: default; }
.jdb-empty { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--c-text-2); font-size: 13px; }
.jdb-empty > i { font-size: 30px; display: block; margin-bottom: 8px; opacity: .4; }

/* ── Filter bar ── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-row {
  display: flex; gap: 6px; padding: 12px 26px;
  background: color-mix(in srgb, var(--c-bg-0) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-border); flex-wrap: wrap;
  position: sticky; top: var(--top-h); z-index: 10;
}
.search-box {
  flex: 1; min-width: 160px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-2);
  background: var(--c-bg-0);
  transition: border-color .16s, box-shadow .16s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.search-box input { border: none; background: transparent; font-size: 13px; color: var(--c-text-1); outline: none; width: 100%; font-family: inherit; }
.search-box i { color: var(--c-text-2); font-size: 16px; flex-shrink: 0; }
.filter-select {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-2);
  background: var(--c-bg-0);
  font-size: 13px;
  color: var(--c-text-1);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .16s, box-shadow .16s;
}
.filter-select:hover { border-color: var(--c-text-3); }
.filter-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); outline: none; }

/* ── Tabs ── */
.tab {
  padding: 6px 15px; border-radius: 20px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent;
  color: var(--c-text-2);
  transition: all .16s; white-space: nowrap;
}
.tab.on  { border-color: rgba(26,86,219,0.30); background: var(--brand-light); color: var(--brand); font-weight: 600; box-shadow: var(--shadow-xs); }
.tab:not(.on):hover { background: var(--c-bg-2); color: var(--c-text-1); }
.cnt { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 18px; font-size: 13px; color: var(--c-text-2); }
.page-num { padding: 5px 11px; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s, color .15s; font-variant-numeric: tabular-nums; }
.page-num:hover  { background: var(--c-bg-2); color: var(--c-text-1); }
.page-num.active { background: var(--brand-grad); color: #fff; box-shadow: var(--glow-brand); }

/* ── Form ── */
.form-stack { display: flex; flex-direction: column; gap: 13px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field      { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--c-text-2); font-weight: 600; }
.field input,
.field select,
.field textarea {
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-2);
  background: var(--c-bg-0);
  font-size: 13px; color: var(--c-text-1);
  outline: none; font-family: inherit;
  transition: border-color .16s, box-shadow .16s;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--c-text-3); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.field textarea { resize: vertical; min-height: 68px; }
.req   { color: var(--red); }
.hint  { font-size: 12px; color: var(--c-text-2); }
.flex-input { flex: 1; padding: 9px 12px; border-radius: var(--radius-md); border: 1px solid var(--c-border-2); background: var(--c-bg-0); font-size: 13px; color: var(--c-text-1); outline: none; font-family: inherit; transition: border-color .16s, box-shadow .16s; }
.flex-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list label { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.autofill-form { background: var(--c-bg-1); border-radius: var(--radius-md); padding: 18px; border: 1px solid var(--c-border); }
.autofill-form .form-row { margin-bottom: 13px; }
.autofill-form .form-row:last-child { margin-bottom: 0; }

/* ── Resume ── */
.resume-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.resume-card {
  background: var(--c-bg-0); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 18px;
  cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: var(--shadow-sm);
}
.resume-card:hover  { border-color: rgba(26,86,219,0.40); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.resume-card.active { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-light), var(--c-bg-0)); box-shadow: var(--glow-brand); }
.resume-card.dashed { border-style: dashed; border-width: 1.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 138px; box-shadow: none; }
.resume-card.dashed:hover { background: var(--brand-light); }
.resume-icon { width: 46px; height: 54px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 23px; }
.resume-icon.blue  { background: var(--brand-light); color: var(--brand); }
.resume-icon.green { background: var(--green-light); color: var(--green); }
.resume-name { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.resume-meta { font-size: 11px; color: var(--c-text-2); }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; font-size: 11px; background: var(--c-bg-2); color: var(--c-text-2); border: 1px solid var(--c-border); }
.resume-preview { background: var(--c-bg-1); border-radius: var(--radius-md); padding: 22px; border: 1px solid var(--c-border); }
.resume-text { font-size: 12px; color: var(--c-text-2); line-height: 1.85; }

/* ── Info banner ── */
.info-banner { background: linear-gradient(120deg, var(--brand-light), color-mix(in srgb, var(--brand-light) 40%, var(--c-bg-0))) !important; border-color: rgba(26,86,219,0.22) !important; display: flex; gap: 13px; align-items: flex-start; }

/* ── 自动填充 ── */
.af-upload-card { padding: 0 !important; overflow: hidden; }
.af-upload-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px 24px; gap: 10px; text-align: center;
  border: 2px dashed var(--c-border); border-radius: var(--radius-lg);
  transition: border-color .2s, background .2s; cursor: pointer;
}
.af-upload-inner.af-drag-over, #af-drop-area.af-drag-over .af-upload-inner {
  border-color: var(--brand); background: var(--brand-light);
}
.af-upload-icon { font-size: 42px; color: var(--brand); opacity: .7; margin-bottom: 4px; }
.af-upload-title { font-size: 15px; font-weight: 600; color: var(--c-text-1); }
.af-upload-sub { font-size: 13px; color: var(--c-text-3); }
.af-upload-btns { display: flex; gap: 10px; margin-top: 6px; }
.af-file-label { cursor: pointer; }
.af-status-card { display: flex !important; align-items: center; gap: 12px; font-size: 13px; color: var(--c-text-2); }
.af-result-banner { background: linear-gradient(120deg, #ECFDF5, color-mix(in srgb, #ECFDF5 40%, var(--c-bg-0))) !important; border-color: rgba(5,150,105,0.22) !important; }
/* 字段识别高亮动画 */
.af-highlight { animation: afPulse .6s ease 2; }
@keyframes afPulse {
  0%,100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(5,150,105,0.35); border-color: #10B981 !important; }
}
.af-field input, .af-field select { transition: box-shadow .2s, border-color .2s; }

/* ── AI components ── */
.ai-score-wrap { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.ai-score-circle {
  position: relative;
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  background: conic-gradient(var(--brand) 0 76%, var(--c-bg-2) 76% 100%);
  box-shadow: var(--glow-brand);
}
.ai-score-circle::before {
  content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--c-bg-0);
}
.score-num   { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--brand); position: relative; line-height: 1; font-variant-numeric: tabular-nums; }
.score-label { font-size: 11px; color: var(--c-text-2); position: relative; margin-top: 3px; }
.ai-suggest-list { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.ai-suggest { display: flex; gap: 11px; padding: 11px 14px; border-radius: var(--radius-md); font-size: 13px; line-height: 1.55; border: 1px solid transparent; }
.ai-suggest i { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.ai-suggest.warn { background: var(--orange-light); border-color: rgba(255,90,31,0.18); }
.ai-suggest.warn i { color: var(--orange); }
.ai-suggest.ok   { background: var(--green-light); border-color: rgba(14,159,110,0.18); }
.ai-suggest.ok i { color: var(--green); }
.ai-suggest.info { background: var(--brand-light); border-color: rgba(26,86,219,0.18); }
.ai-suggest.info i { color: var(--brand); }
.ai-chat { background: var(--c-bg-1); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 18px; margin-top: 16px; }
.ai-msg  { display: flex; gap: 11px; margin-bottom: 12px; }
.ai-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-grad); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; flex-shrink: 0; box-shadow: var(--glow-brand); }
.ai-bubble { background: var(--c-bg-0); border: 1px solid var(--c-border); border-radius: 4px 14px 14px 14px; padding: 11px 14px; font-size: 13px; line-height: 1.6; max-width: 85%; box-shadow: var(--shadow-xs); }
.ai-input { display: flex; gap: 8px; margin-top: 10px; }
.ai-input input { flex: 1; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--c-border-2); background: var(--c-bg-0); font-size: 13px; color: var(--c-text-1); outline: none; font-family: inherit; transition: border-color .16s, box-shadow .16s; }
.ai-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }

/* ── AI 匹配卡片 ── */
.match-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border);
}
.match-list-title { font-size: 14px; font-weight: 600; color: var(--c-text-1); display: flex; align-items: center; gap: 7px; }
.match-list-badge { font-size: 12px; background: var(--brand-light); color: var(--brand); border-radius: 20px; padding: 2px 10px; font-weight: 600; }

.match-card {
  position: relative; overflow: hidden;
  background: var(--c-bg-0); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  margin-bottom: 10px; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: var(--shadow-sm);
}
.match-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(26,86,219,.18); }
.match-card.expired { opacity: .7; background: var(--c-bg-1); }
.match-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; background: var(--brand-grad); opacity: 0; transition: opacity .2s; }
.match-card:hover::before { opacity: 1; }

/* 主体行 */
.match-main { display: flex; gap: 14px; align-items: flex-start; }
.match-logo {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; font-family: var(--font-display);
  color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.match-info { flex: 1; min-width: 0; }
.match-co-row { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; flex-wrap: wrap; }
.match-co { font-size: 14px; font-weight: 700; color: var(--c-text-0); }
.match-type-badge { font-size: 10.5px; font-weight: 600; border-radius: 4px; padding: 1px 6px; }
.match-pos { font-size: 12.5px; color: var(--c-text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.match-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.match-meta-item { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--c-text-3); }
.match-deadline-badge { font-size: 11px; font-weight: 500; border-radius: 4px; padding: 1px 7px; }
.match-deadline-badge.urgent   { background: #FEF3C7; color: #B45309; }
.match-deadline-badge.safe     { background: #ECFDF5; color: #065F46; }
.match-deadline-badge.expired  { background: #F3F4F6; color: #9CA3AF; }
.match-deadline-badge.open     { background: #EFF6FF; color: #1D4ED8; }
.match-apply-link { font-size: 11.5px; color: var(--brand); text-decoration: none; display: flex; align-items: center; gap: 3px; padding: 2px 8px; border: 1px solid var(--brand); border-radius: 20px; margin-left: auto; transition: background .15s; flex-shrink: 0; }
.match-apply-link:hover { background: var(--brand-light); }

/* 匹配度环 */
.match-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-left: 12px; }
.match-ring { position: relative; width: 52px; height: 52px; }
.match-ring svg { transform: rotate(-90deg); }
.match-ring-track { fill: none; stroke: var(--c-border); stroke-width: 4; }
.match-ring-fill  { fill: none; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.match-ring-text  { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); }
.match-ring-num   { font-size: 13px; font-weight: 700; line-height: 1; }
.match-ring-pct   { font-size: 9px; color: var(--c-text-3); }
.match-rank-label { font-size: 10px; color: var(--c-text-3); white-space: nowrap; }

/* ── Bar chart ── */
.bar-chart { display: flex; flex-direction: column; gap: 11px; }
.bar-row   { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.bar-label { width: 72px; color: var(--c-text-2); flex-shrink: 0; }
.bar-wrap  { flex: 1; background: var(--c-bg-2); border-radius: 6px; height: 20px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 6px; transform-origin: left; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
.page.active .bar-fill { animation: growBar .9s cubic-bezier(.22,.61,.36,1) both; animation-delay: .25s; }
.bar-num   { width: 48px; text-align: right; color: var(--c-text-2); font-variant-numeric: tabular-nums; }

/* ── Profile ── */
.user-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-grad); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff; flex-shrink: 0; box-shadow: var(--glow-brand); font-family: var(--font-display); }

/* ── Status modal（右侧滑入抽屉）── */
.overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13, 18, 30, 0.42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: stretch; justify-content: flex-end;
  animation: overlayIn .2s ease;
}
.overlay.hidden { display: none; }
.drawer {
  background: var(--c-bg-0);
  border-left: 1px solid var(--c-border);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  width: 100%; max-width: 600px; height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: drawerIn .32s cubic-bezier(.22,.61,.36,1);
}
.drawer-head {
  display: flex; align-items: center; gap: 11px; padding: 18px 22px;
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--c-bg-0) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}
.drawer-head h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; flex: 1; }
.drawer-body { padding: 22px; }
.modal-co-info { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 14px; background: var(--c-bg-1); border: 1px solid var(--c-border); border-radius: var(--radius-md); }
.modal-avatar { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-grad); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; box-shadow: var(--glow-brand); font-family: var(--font-display); }
.field-label { font-size: 11px; font-weight: 700; color: var(--c-text-2); text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 11px; }
.field-label:first-child { margin-top: 0; }

/* ── Pipeline ── */
.pipeline { display: flex; align-items: center; margin-bottom: 22px; }
.pipe-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; cursor: pointer; }
.pipe-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c-border-2); background: var(--c-bg-0); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .22s; z-index: 1; }
.pipe-step:hover .pipe-dot { transform: scale(1.12); }
.pipe-step.done    .pipe-dot { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: var(--glow-brand); }
.pipe-step.current .pipe-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); animation: pulseRing 2s infinite; }
.pipe-step.fail    .pipe-dot { background: var(--red-light); border-color: var(--red); color: var(--red); }
.pipe-step.oc      .pipe-dot { background: var(--green-light); border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.pipe-label { font-size: 11px; color: var(--c-text-2); white-space: nowrap; }
.pipe-step.done .pipe-label,
.pipe-step.current .pipe-label { color: var(--c-text-1); font-weight: 600; }
.pipe-step.fail .pipe-label { color: var(--red); font-weight: 600; }
.pipe-step.oc   .pipe-label { color: var(--green); font-weight: 600; }
.pipe-line { flex: 1; height: 2.5px; background: var(--c-border-2); margin-bottom: 22px; border-radius: 2px; transition: background .3s; }
.pipe-line.done { background: var(--brand); }

/* ── Status grid ── */
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.status-opt { padding: 11px 6px; border-radius: var(--radius-md); border: 1.5px solid var(--c-border); cursor: pointer; text-align: center; transition: all .16s; background: var(--c-bg-0); }
.status-opt:hover    { border-color: rgba(26,86,219,0.40); background: var(--brand-light); transform: translateY(-2px); }
.status-opt.selected { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3px var(--brand-light); }
.status-opt .s-icon  { font-size: 18px; margin-bottom: 5px; display: block; }
.status-opt .s-name  { font-size: 12px; font-weight: 600; }
.status-opt .s-desc  { font-size: 11px; color: var(--c-text-2); margin-top: 1px; }

/* ── Detail block ── */
.detail-block { background: var(--c-bg-1); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 12px; animation: fadeUp .3s ease both; }
.detail-block .form-row { margin-bottom: 12px; }
.detail-block .form-row:last-child { margin-bottom: 0; }
.detail-block.danger { border: 1px solid rgba(224,36,36,0.30); background: var(--red-light); }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; }
.tl-item  { display: flex; gap: 13px; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-left  { display: flex; flex-direction: column; align-items: center; width: 20px; flex-shrink: 0; }
.tl-dot   { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex-shrink: 0; margin-top: 4px; box-shadow: 0 0 0 3px var(--brand-light); }
.tl-dot.gray  { background: var(--c-text-3); box-shadow: 0 0 0 3px var(--c-bg-2); }
.tl-dot.green { background: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.tl-dot.red   { background: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.tl-line  { flex: 1; width: 2px; background: var(--c-border); margin-top: 4px; border-radius: 2px; }
.tl-item:last-child .tl-line { display: none; }
.tl-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.tl-meta  { font-size: 12px; color: var(--c-text-2); }

.divider { height: 1px; background: var(--c-border); margin: 18px 0; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: rgba(15, 23, 41, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 22px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; opacity: 0;
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,.61,.36,1);
  pointer-events: none; z-index: 9999; white-space: nowrap;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.10);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Misc ── */
input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ── 减少动效偏好 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── 平板：图标侧边栏 ── */
@media (max-width: 860px) {
  :root { --nav-w: 72px; }
  .nav-title, .nav-sub { display: none; }
  .nav-brand { justify-content: center; padding: 18px 8px; }
  .nav-item { justify-content: center; padding: 11px 8px; font-size: 0; gap: 0; }
  .nav-item i { width: auto; font-size: 19px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col   { grid-template-columns: 1fr; }
  .resume-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 手机：底部导航 + 全宽内容 ── */
@media (max-width: 540px) {
  /* 把侧边栏变成底部导航栏 */
  .shell { flex-direction: column; height: auto; min-height: 100vh; }

  .nav {
    width: 100vw !important;
    height: 58px !important;
    flex-direction: row;
    position: fixed; bottom: 0; left: 0; right: 0;
    top: auto;
    border-right: none;
    border-top: 1px solid var(--c-border);
    z-index: 200;
    background: color-mix(in srgb, var(--c-bg-0) 94%, transparent);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  }

  /* 隐藏品牌区，账号区压缩显示 */
  .nav-brand { display: none; }
  .nav-footer {
    display: flex; align-items: center;
    padding: 0 8px; border-top: none; border-left: 1px solid var(--c-border);
    flex-shrink: 0;
  }
  .nav-footer .nav-item { font-size: 10.5px !important; flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 0; }
  .nav-footer .nav-item i { font-size: 18px !important; }
  .nav-account { padding: 0; }

  .nav-menu {
    display: flex; flex-direction: row;
    padding: 0; flex: 1; overflow: hidden;
    align-items: stretch;
  }

  /* 每个导航项：垂直排列图标+文字 */
  .nav-item {
    flex: 1; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2px; padding: 6px 2px;
    border-radius: 0; margin-bottom: 0;
    font-size: 10.5px !important;
    color: var(--c-text-3);
    min-width: 0;
  }
  .nav-item i { font-size: 20px !important; width: auto; }
  .nav-item::before { display: none; }     /* 去掉左侧竖条指示器 */
  .nav-item:hover { background: none; transform: none; }
  .nav-item:hover i { transform: none; }
  .nav-item.active { background: none; font-size: 10.5px !important; color: var(--brand); font-weight: 700; }
  .nav-item.active i { color: var(--brand); }

  /* 显示前 5 个 + 个人中心始终可见 */
  .nav-item:nth-child(n+6):not(.nav-item-profile) { display: none; }
  .nav-item-profile i { color: var(--brand); }

  /* 主区域全宽，底部留出 58px 给导航栏 */
  .main { min-width: 0; width: 100%; }
  .page { min-height: calc(100svh - 58px); }
  .content { padding: 14px 14px 74px !important; }

  /* Topbar 精简 */
  .topbar { padding: 0 14px; height: 50px; }
  .topbar-title { font-size: 14.5px; }
  .topbar .btn .btn-label,
  .topbar .btn span:not(.badge) { display: none; }

  /* 统计卡：2×2 */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-val  { font-size: 24px !important; }

  /* 岗位卡片：单列 */
  .job-grid { grid-template-columns: 1fr !important; }

  /* 简历展示条：手机端紧凑 */
  #resume-showcase { padding: 10px 12px !important; }
  #resume-showcase .resume-tpl-tag { font-size: 10px; padding: 1px 6px; }
  #resume-showcase .btn.primary { font-size: 12px; padding: 6px 12px; min-height: 34px; }

  /* Hero 区：手机端大幅精简，让岗位信息直接可见 */
  .jdb-hero { padding: 12px 14px !important; margin-bottom: 0; border-radius: 0; }
  .jdb-hero-radar { display: none; }
  .jdb-hero-tag { display: none; }
  .jdb-hero-title { font-size: 16px !important; margin-bottom: 2px; }
  .jdb-hero-sub   { display: none; }
  .jdb-hero-row   { flex-direction: column; gap: 6px; }
  .jdb-hero-btn   { display: none; }

  /* Feature strip：手机端完全隐藏 */
  .jdb-strip { display: none !important; }

  /* 统计卡：手机端2×2迷你紧凑 */
  .stat-grid { gap: 6px; margin-bottom: 8px; }
  .stat-card { padding: 10px 12px; }
  .stat-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 7px; }
  .stat-val  { font-size: 20px !important; }
  .stat-label { font-size: 11px; }
  .stat-sub, .stat-note { font-size: 10px; display: none; }
  #jdb-stat-today-card .stat-sub, #jdb-stat-open .stat-sub { display: block; font-size: 10px; }

  /* 筛选卡片：紧凑内边距 */
  .jdb-filter-card { padding: 10px 12px !important; margin-bottom: 8px; border-radius: 10px; }
  .jdb-count-info { font-size: 11px; }

  /* 筛选栏 */
  .jdb-tabs-row    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .jdb-search-row  { flex-direction: column; gap: 8px; }
  .filter-select   { width: 100%; }
  .jdb-view-toggle { display: none; } /* 手机只显示卡片视图 */
  .jdb-count-info  { font-size: 12px; }

  /* 手机端表格隐藏，仅展示卡片 */
  #jobdb-table { display: none !important; }
  .jdb-view-toggle { display: none !important; }

  /* 卡片网格：紧凑间距，让更多卡片可见 */
  .job-grid { grid-template-columns: 1fr !important; gap: 8px !important; }

  /* 岗位卡片：紧凑版 */
  .job-card { padding: 10px 12px !important; border-radius: 10px; }
  .jc-co { font-size: 13px; }
  .jc-pos { font-size: 12px; margin-bottom: 6px; }
  .jc-meta { gap: 4px; flex-wrap: wrap; }
  .jc-meta .badge, .jc-meta span { font-size: 10px !important; padding: 2px 7px !important; }
  .jc-deadline { font-size: 10px; }
  .jc-actions { flex-direction: row !important; gap: 6px; }
  .jc-actions .btn { padding: 5px 10px !important; font-size: 11px !important; min-height: 30px; }
  .job-card .badge.jobdb-new { font-size: 10px; padding: 1px 5px; }

  /* 卡片操作按钮纵向排列 */
  .jc-actions { flex-direction: column; gap: 7px; }
  .jc-actions .btn { justify-content: center; }

  /* 分页栏简化：隐藏 prev/next 文字 */
  .pg-bar  { justify-content: center; flex-wrap: wrap; gap: 4px; }
  .pg-arrow span { display: none; }
  .pg-info { width: 100%; text-align: center; margin: 0; }

  /* 今日新增横幅 */
  .today-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
  .today-banner-exit { align-self: flex-end; }

  /* 总览页卡片 */
  .two-col, .resume-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr 1fr; }

  /* 分页顶栏在手机上折叠紧凑 */
  #jobdb-top-pager .pg-bar { padding: 6px 0; }

  /* Toast 适配底部导航 */
  #toast { bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; }

  /* iPhone 刘海屏 safe-area 适配 */
  .nav { padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(58px + env(safe-area-inset-bottom, 0px)) !important; }
  .content { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important; }

  /* ── 移动端底部导航栏：登录/用户按钮紧凑化 ── */
  .nav-login {
    padding: 8px 10px !important; font-size: 11px !important; border-radius: var(--radius-sm) !important;
    width: auto !important; white-space: nowrap;
  }
  .nav-user-name { font-size: 10px; max-width: 60px; }
  .nav-logout { font-size: 10px; padding: 3px 6px; }

  /* ── 移动端卡片紧凑化 ── */
  .card { padding: 14px 14px; margin-bottom: 12px; border-radius: var(--radius-md); }

  /* ── 登录/注册弹窗：满屏适配 ── */
  .auth-modal { padding: 0; align-items: flex-start; }
  .auth-card {
    max-width: 100%; width: 100%; min-height: 100svh;
    border-radius: 0; border: none; padding: 40px 20px 30px;
    box-shadow: none;
  }
  .auth-close { top: 14px; right: 14px; }

  /* ── 表格：小字号 + 紧凑内边距 ── */
  table { font-size: 11.5px; }
  th, td { padding: 9px 10px; }
  th { font-size: 10.5px; }

  /* ── 快捷入口 + 按钮优化（触摸友好）── */
  .dash-quick-btn { padding: 10px 8px; min-height: 44px; }
  .btn { padding: 9px 14px; font-size: 13px; min-height: 40px; }
  .btn.sm { padding: 6px 10px; font-size: 11.5px; min-height: 32px; }

  /* ── 搜索框和筛选下拉全宽 ── */
  .jdb-search-row .search-box { min-width: 0; width: 100%; }
  .jdb-quick { flex-wrap: wrap; gap: 6px; }
  .jdb-chip { font-size: 11.5px; padding: 5px 10px; }

  /* ── 分页按钮触摸优化 ── */
  .pg-btn { min-width: 34px; min-height: 34px; padding: 6px 10px; }

  /* ── 添加岗位表单 ── */
  .form-row { flex-direction: column; gap: 10px; }
  .form-stack .field { margin-bottom: 10px; }
  .field > input, .field > select { padding: 10px 12px; font-size: 14px; }

  /* ── 个人中心卡片 ── */
  #page-profile .card:first-child { flex-direction: column; text-align: center; gap: 12px; }
  #page-profile .card:first-child button { margin-left: 0 !important; width: 100%; }

  /* ── 投递列表移动端批量操作栏 ── */
  #batch-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; font-size: 12px; }
  #batch-bar select, #batch-bar button { font-size: 11px; padding: 5px 10px; }

  /* ── 状态抽屉：手机端全屏，高于底部导航 ── */
  #status-modal { padding: 0; z-index: 300 !important; }
  #status-modal .drawer {
    max-width: 100%; width: 100%; height: 100svh;
    border-radius: 0; margin: 0;
    overflow-y: auto;
  }
  .pipe-label { font-size: 11px; }
  .status-opt { min-height: 60px; padding: 10px 8px; }

  /* ── 总览卡片：手机端 2列+紧凑间距 ── */
  .dash-stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-stat-card { padding: 12px; }
  .dash-stat-val { font-size: 22px; }
  .dash-stat-label { font-size: 11px; }
  .dash-quick-btn { padding: 8px 4px; min-height: 40px; font-size: 11px; gap: 3px; }
  .dash-quick-btn i { font-size: 16px; }
  .dash-quick { gap: 5px; }
  .dash-quick-btn span { display: inline !important; font-size: 11px; }

  /* ── 漏斗图手机端紧凑 ── */
  .funnel-row { gap: 6px; }
  .funnel-label { font-size: 11px; width: 32px; }
  .funnel-num { font-size: 12px; }

  /* ── 弹窗/模态框手机端满屏 ── */
  .ob-overlay-mobile .ob-card { max-width: 100%; border-radius: 0; min-height: 100svh; padding: 30px 20px; }

  /* ════════ 简历编辑器：手机端垂直堆叠 ════════ */
  .re-content { flex-direction: column !important; }
  .re-panel {
    width: 100% !important; flex-shrink: 0;
    overflow-y: visible; border-right: none !important;
    border-bottom: 1px solid var(--c-border);
    padding: 10px 14px !important; max-height: 160px; overflow-y: auto;
  }
  .re-tpls { flex-wrap: wrap; gap: 4px; }
  .re-tpl { font-size: 11px; padding: 4px 10px; border-radius: 14px; }
  .re-group { margin-bottom: 8px; }
  .re-group-title { font-size: 11px; margin-bottom: 4px; }
  .re-ctrl { font-size: 11px; gap: 6px; }
  .re-swatches { gap: 4px; }
  .re-swatch { width: 20px; height: 20px; }
  .re-toolbar { gap: 4px; flex-wrap: wrap; }
  .re-toolbar .btn, .re-toolbar .btn.sm { font-size: 11px; padding: 4px 8px; min-height: 30px; }
  .re-tbtn { width: 28px; height: 28px; font-size: 14px; }
  .re-save-status { font-size: 10px; min-width: 36px; }

  /* ════════ 添加岗位：隐藏侧边占位卡片 ════════ */
  #page-addjob .two-col { grid-template-columns: 1fr !important; }
  #page-addjob .two-col > div:last-child { display: none; }
  .form-stack .field { margin-bottom: 8px; }
  .form-stack .field label { font-size: 12px; }

  /* ════════ 自动填充：紧凑上传区 + 表单堆叠 ════════ */
  .af-upload-inner { padding: 20px 14px; }
  .af-upload-icon { font-size: 36px; }
  .af-upload-title { font-size: 15px; }
  .af-upload-sub { font-size: 12px; }
  .af-upload-btns { flex-direction: column; gap: 8px; }
  .af-upload-btns .btn, .af-file-label { width: 100%; justify-content: center; }
  .autofill-form .form-row { flex-direction: column; gap: 8px; }
  .af-field { margin-bottom: 6px; }

  /* ════════ AI 匹配：卡片紧凑 + 关键词栏换行 ─═ */
  #aimatch-list > div:first-child { flex-wrap: wrap; gap: 4px; }
  #aimatch-list .jdb-empty { padding: 24px 0 !important; }

  /* ════════ 个人中心：表单全宽 ── */
  #page-profile .form-row { flex-direction: column; gap: 8px; }
  #page-profile .card:first-child { flex-direction: column; text-align: center; gap: 12px; }
  #page-profile .card:first-child button { margin-left: 0 !important; width: 100%; }

  /* ════════ 筛选tabs：横向滚动 ── */
  .filter-row { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; gap: 0; }
  .filter-row .tab { flex-shrink: 0; white-space: nowrap; font-size: 12px; padding: 8px 12px; }

  /* 注册引导横幅和CTA手机端紧凑 */
  #reg-banner { padding: 12px 14px !important; }
  #reg-banner > div:first-child { font-size: 13px !important; }
  #reg-cta { padding: 16px 14px !important; }
  #reg-cta > div:nth-child(2) { font-size: 14px !important; }
}

/* ════════ 简历编辑器 ════════ */
.re-toolbar { display: flex; align-items: center; gap: 8px; }
.re-tbtn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); background: var(--c-bg-0); border-radius: var(--radius-sm);
  color: var(--c-text-1); cursor: pointer; font-size: 16px; transition: all .15s;
}
.re-tbtn:hover:not(:disabled) { background: var(--c-bg-2); }
.re-tbtn:disabled { opacity: .4; cursor: default; }
.re-save-status { font-size: 12px; color: var(--c-text-3); min-width: 48px; text-align: right; }

.re-content { padding: 0 !important; overflow: hidden !important; display: flex; }
.re-panel {
  width: 244px; flex-shrink: 0; overflow-y: auto; padding: 16px 14px;
  border-right: 1px solid var(--c-border); background: var(--c-bg-0);
}
.re-group { margin-bottom: 18px; }
.re-group-title { font-size: 11.5px; font-weight: 600; color: var(--c-text-2); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 9px; }
.re-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.re-tpl {
  padding: 7px 8px; font-size: 12.5px; font-family: inherit; cursor: pointer; color: var(--c-text-1);
  background: var(--c-bg-0); border: 1px solid var(--c-border-2); border-radius: var(--radius-sm); transition: all .15s;
}
.re-tpl:hover { border-color: var(--brand); }
.re-tpl.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--glow-brand); }
.re-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; font-size: 12.5px; color: var(--c-text-2); }
.re-ctrl > input[type=color] { width: 36px; height: 24px; padding: 0; border: 1px solid var(--c-border-2); border-radius: 5px; background: none; cursor: pointer; }
.re-ctrl > select, .re-autosave {
  padding: 5px 8px; border-radius: var(--radius-sm); border: 1px solid var(--c-border-2);
  background: var(--c-bg-0); font-size: 12.5px; color: var(--c-text-1); font-family: inherit; outline: none; cursor: pointer;
}
.re-autosave { width: 100%; margin-bottom: 10px; }
.re-addsecs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.re-addsec {
  padding: 7px 8px; font-size: 12.5px; font-family: inherit; cursor: pointer; color: var(--brand);
  background: var(--brand-light); border: 1px solid transparent; border-radius: var(--radius-sm); transition: filter .15s;
}
.re-addsec:hover { filter: brightness(.97); }
.re-undo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 10px; font-size: 12.5px; font-family: inherit; cursor: pointer;
  color: var(--c-text-2); background: var(--c-bg-2); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); transition: background .15s, color .15s;
}
.re-undo-btn:hover:not(:disabled) { background: var(--c-bg-1); color: var(--brand); border-color: var(--brand); }
.re-undo-btn:disabled { opacity: .38; cursor: not-allowed; }
.re-reset {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  padding: 7px; font-size: 12px; font-family: inherit; color: var(--c-text-2);
  background: transparent; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
}
.re-reset:hover { color: #E02424; border-color: rgba(224,36,36,.4); }

.re-canvas-wrap { flex: 1; overflow: auto; padding: 26px; background: var(--c-bg-1); display: flex; justify-content: center; align-items: flex-start; }

.re-canvas {
  --re-pad: 40px 46px; --re-gap: 16px; --re-lh: 1.55; --re-font: var(--font-body);
  --re-fz: 12.5px;   /* 正文基准字号，由 data-fontsize 控制 */
  width: 760px; min-height: 1040px; flex-shrink: 0;
  background: #fff; color: #1f2937; padding: var(--re-pad); line-height: var(--re-lh);
  font-family: var(--re-font); font-size: var(--re-fz);
  box-shadow: 0 4px 24px rgba(0,0,0,.12); border-radius: 2px;
}
.re-canvas[data-font="serif"] { --re-font: Georgia, "Times New Roman", "Songti SC", serif; }
.re-canvas[data-font="mono"]  { --re-font: ui-monospace, "Cascadia Code", Consolas, monospace; }
.re-canvas[data-spacing="compact"] { --re-gap: 10px; --re-lh: 1.42; }
.re-canvas[data-spacing="relaxed"] { --re-gap: 24px; --re-lh: 1.72; }
.re-canvas[data-margin="narrow"] { --re-pad: 26px 30px; }
.re-canvas[data-margin="wide"]   { --re-pad: 56px 66px; }

.re-f { outline: none; border-radius: 3px; transition: background .12s, box-shadow .12s; min-width: 8px; }
.re-f:empty::before { content: attr(data-ph); color: #9ca3af; }
.re-f:hover:not(:focus) { background: rgba(26,86,219,.06); }
.re-f:focus { background: var(--brand-light); box-shadow: 0 0 0 2px var(--brand-light); }

.re-header { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 18px; }
.re-head-main { flex: 1; min-width: 0; }
.re-photo {
  flex-shrink: 0; width: 100px; height: 130px; border-radius: 8px; overflow: hidden; position: relative;
  border: 1.5px dashed #cbd5e1; background: #f8fafc; cursor: pointer; color: #94a3b8; font-size: 11.5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
/* 头像尺寸变体（!important确保覆盖默认值） */
.re-photo[data-photosize="sm"] { width: 80px !important; height: 104px !important; }
.re-photo[data-photosize="md"] { width: 100px !important; height: 130px !important; }
.re-photo[data-photosize="lg"] { width: 120px !important; height: 156px !important; }
.re-photo[data-photosize="xl"] { width: 140px !important; height: 182px !important; }
.re-photo:hover { border-color: var(--re-accent); color: var(--re-accent); }
.re-photo.has { border-style: solid; border-color: #e5e7eb; }
.re-photo > i { font-size: 22px; }
.re-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-photo-del {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s;
}
.re-photo:hover .re-photo-del { opacity: 1; }
/* 联系人合并行 + 删除按钮 */
.re-contacts { position: relative; }
.re-contacts-line { width: calc(100% - 20px); font-size: 13px; color: #6b7280; min-height: 1.5em; white-space: pre-wrap; }
.re-del-contacts {
  position: absolute; top: 0; right: 0; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: transparent; color: #cbd5e1; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s;
}
.re-contacts:hover .re-del-contacts { opacity: 1; }
.re-del-contacts:hover { color: #ef4444; }
/* 悬浮格式工具栏 */
#re-floatbar button:hover { background: rgba(255,255,255,.25) !important; }
#re-floatbar button:active { transform: scale(.9); }
.re-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--c-text-2); cursor: pointer; }
.re-check input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--brand); }
.re-name { font-size: 26px; font-weight: 700; color: #111827; letter-spacing: -.01em; }
.re-title { font-size: 14px; color: var(--re-accent); font-weight: 600; margin-top: 3px; }
.re-contacts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: var(--re-fz); color: #6b7280; }

/* 对齐控制 */
.re-canvas[data-namealign="center"] .re-name, .re-canvas[data-namealign="center"] .re-title { text-align: center; }
.re-canvas[data-namealign="right"]  .re-name, .re-canvas[data-namealign="right"]  .re-title { text-align: right; }
.re-canvas[data-contactsalign="center"] .re-contacts { justify-content: center; }
.re-canvas[data-contactsalign="right"]  .re-contacts { justify-content: flex-end; }
.re-canvas[data-secalign="center"] .re-sec-title { text-align: center; }
.re-canvas[data-secalign="right"]  .re-sec-title { text-align: right; }

.re-sec { margin-bottom: var(--re-gap); position: relative; }
.re-sec-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.re-sec-title { font-size: calc(var(--re-fz) + 2px); font-weight: 700; color: #111827; flex: 1; }
.re-sec-body { font-size: var(--re-fz); }
.re-entry { position: relative; margin-bottom: 11px; padding-left: 2px; }
.re-entry:last-child { margin-bottom: 0; }
.re-entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.re-org { font-weight: 600; color: #111827; font-size: 13.5px; }
.re-date { color: #6b7280; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.re-role { color: #374151; font-size: 12.5px; margin-bottom: 3px; }
.re-bullets { list-style: none; margin: 4px 0 0; padding: 0; }
.re-bullets li { position: relative; padding-left: 14px; margin-bottom: 3px; }
.re-bullets li::before { content: "\2022"; position: absolute; left: 2px; color: var(--re-accent); }
.re-summary { font-size: var(--re-fz); color: #374151; }
.re-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.re-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; font-size: 12px; background: #f3f4f6; border-radius: 5px; color: #374151; }

.re-grip { cursor: grab; color: #cbd5e1; user-select: none; font-size: 14px; letter-spacing: -1px; flex-shrink: 0; padding: 2px 4px; border-radius: 4px; transition: background .15s; }
.re-grip:hover { background: #e2e8f0; color: #64748b; }
.re-grip:active { cursor: grabbing; }
.re-grip-item { position: absolute; left: -16px; top: 2px; }
/* 拖拽经过高亮 */
.re-sec.drag-over { outline: 2px dashed var(--re-accent); outline-offset: 2px; border-radius: 4px; }
/* 模块间距 */
.re-sec { margin-bottom: 15px; }
.re-canvas[data-spacing="compact"] .re-sec { margin-bottom: 8px; }
.re-canvas[data-spacing="normal"] .re-sec { margin-bottom: 15px; }
.re-canvas[data-spacing="relaxed"] .re-sec { margin-bottom: 24px; }
.re-del {
  cursor: pointer; border: none; background: transparent; color: #d1d5db; font-size: 15px; line-height: 1;
  padding: 0 3px; opacity: 0; transition: opacity .12s, color .12s;
}
.re-del:hover { color: #E02424; }
.re-sec:hover .re-del, .re-entry:hover .re-del, .re-tag:hover .re-del { opacity: 1; }
.re-del-sec { font-size: 16px; }
.re-del-b { position: absolute; right: -2px; }
.re-add-mini, .re-add-entry {
  display: inline-flex; align-items: center; gap: 3px; cursor: pointer; font-family: inherit;
  font-size: 11.5px; color: var(--brand); background: transparent; border: 1px dashed var(--c-border-2);
  border-radius: 5px; padding: 3px 8px; margin-top: 5px;
}
.re-add-mini:hover, .re-add-entry:hover { border-color: var(--brand); }
.re-add-entry { width: 100%; justify-content: center; }

.tpl-modern .re-name { color: var(--re-accent); }
.tpl-modern .re-sec-title { color: var(--re-accent); padding-left: 9px; border-left: 3px solid var(--re-accent); }
.tpl-classic .re-header { text-align: center; }
.tpl-classic .re-contacts { justify-content: center; }
.tpl-classic .re-sec-title { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; border-bottom: 2px solid var(--re-accent); padding-bottom: 4px; }
.tpl-minimal .re-name { font-weight: 600; }
.tpl-minimal .re-title { color: #6b7280; }
.tpl-minimal .re-sec-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: #9ca3af; font-weight: 600; }
.tpl-minimal .re-bullets li::before { color: #9ca3af; }
.tpl-ats .re-title, .tpl-ats .re-sec-title { color: #111827; }
.tpl-ats .re-sec-title { border-bottom: 1px solid #111827; padding-bottom: 3px; }
.tpl-ats .re-bullets li::before { color: #111827; }
.tpl-ats .re-tag { background: #fff; border: 1px solid #d1d5db; }
.tpl-timeline .re-sec-body { border-left: 2px solid var(--re-accent); padding-left: 16px; margin-left: 4px; }
.tpl-timeline .re-entry::before { content: ""; position: absolute; left: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--re-accent); box-shadow: 0 0 0 3px #fff; }
.tpl-timeline .re-sec-title { color: var(--re-accent); }
.tpl-nordic .re-sec-title { display: inline-flex; align-items: center; gap: 8px; }
.tpl-nordic .re-sec-title::before { content: ""; width: 12px; height: 12px; background: var(--re-accent); border-radius: 3px; flex-shrink: 0; }

/* ── 字号 ── */
.re-canvas[data-fontsize="xs"] { --re-fz: 11px; }
.re-canvas[data-fontsize="sm"] { --re-fz: 12px; }
.re-canvas[data-fontsize="md"] { --re-fz: 12.5px; }
.re-canvas[data-fontsize="lg"] { --re-fz: 13.5px; }
.re-canvas[data-fontsize="xl"] { --re-fz: 14.5px; }
/* 人文体 */
.re-canvas[data-font="humanist"] { --re-font: "Gill Sans","Optima","Segoe UI","Trebuchet MS",sans-serif; }
/* 姓名字号 */
.re-canvas[data-namesize="sm"] .re-name { font-size: 22px; }
.re-canvas[data-namesize="md"] .re-name { font-size: 26px; }
.re-canvas[data-namesize="lg"] .re-name { font-size: 30px; }
.re-canvas[data-namesize="xl"] .re-name { font-size: 36px; }
/* 标题风格 */
.re-canvas[data-secstyle="upper"]      .re-sec-title { text-transform: uppercase; letter-spacing: .06em; }
.re-canvas[data-secstyle="bold"]       .re-sec-title { font-weight: 800; }
.re-canvas[data-secstyle="color"]      .re-sec-title { color: var(--re-accent); }
.re-canvas[data-secstyle="upper-bold"] .re-sec-title { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
/* 分隔线 */
.re-canvas .re-sec-title { border-bottom: 1px solid #e5e7eb; padding-bottom: 4px; }
.re-canvas[data-divider="thin"]   .re-sec-title { border-bottom: 1px solid #e5e7eb; }
.re-canvas[data-divider="bold"]   .re-sec-title { border-bottom: 2.5px solid var(--re-accent); }
.re-canvas[data-divider="dotted"] .re-sec-title { border-bottom: 1.5px dashed #9ca3af; }
.re-canvas[data-divider="none"]   .re-sec-title { border-bottom: none; padding-bottom: 0; }
/* 配色色板 */
.re-swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.re-swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .15s, border-color .15s; }
.re-swatch:hover { transform: scale(1.2); }
.re-swatch.active { border-color: #1f2937; transform: scale(1.15); }

/* LaTeX 经典：居中页眉 + 衬线（近 Computer Modern）+ 经典分节横线，单色专业 */
.tpl-latex { font-family: "Latin Modern Roman", "CMU Serif", Georgia, "Times New Roman", "Songti SC", serif; color: #1a1a1a; }
.tpl-latex .re-header { text-align: center; border-bottom: 1.5px solid #1a1a1a; padding-bottom: 12px; margin-bottom: 16px; }
.tpl-latex .re-name { font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.tpl-latex .re-title { color: #333; font-weight: 400; font-style: italic; margin-top: 4px; }
.tpl-latex .re-contacts { justify-content: center; color: #333; font-size: 12px; margin-top: 6px; }
.tpl-latex .re-sec-title { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: #1a1a1a; border-bottom: 1px solid #999; padding-bottom: 3px; }
.tpl-latex .re-org { font-weight: 700; }
.tpl-latex .re-role { font-style: italic; color: #333; }
.tpl-latex .re-bullets li::before { color: #1a1a1a; }
.tpl-latex .re-tag { background: transparent; border: 1px solid #bbb; border-radius: 0; }

/* 学术衬线：居中页眉 + 小型大写分节 + 两端对齐正文 */
.tpl-academic { font-family: Georgia, "Times New Roman", "Songti SC", serif; color: #1f2937; }
.tpl-academic .re-header { text-align: center; margin-bottom: 14px; }
.tpl-academic .re-name { font-size: 27px; font-weight: 600; }
.tpl-academic .re-title { color: #4b5563; font-style: italic; }
.tpl-academic .re-contacts { justify-content: center; }
.tpl-academic .re-sec-title { font-variant: small-caps; text-transform: lowercase; letter-spacing: .04em; font-size: 15.5px; color: var(--re-accent); border-bottom: 1px solid var(--re-accent); padding-bottom: 2px; }
.tpl-academic .re-summary, .tpl-academic .re-bullets li { text-align: justify; }

/* Awesome-CV 风：居中细体名字 + 强调色字母间距标题 */
.tpl-awesome { font-family: var(--font-body); color: #2b2b2b; }
.tpl-awesome .re-header { text-align: center; margin-bottom: 16px; }
.tpl-awesome .re-name { font-size: 31px; font-weight: 300; letter-spacing: .03em; }
.tpl-awesome .re-title { color: var(--re-accent); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 600; margin-top: 7px; }
.tpl-awesome .re-contacts { justify-content: center; font-size: 11.5px; }
.tpl-awesome .re-sec-title { color: var(--re-accent); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 700; border-bottom: 1.5px solid #e5e7eb; padding-bottom: 4px; }
.tpl-awesome .re-org { font-weight: 700; }

@media (max-width: 900px) {
  .re-panel { width: 200px; }
  .re-canvas { width: 100%; min-width: 0; }
}

@media print {
  /* 只打印简历画布：隐藏侧栏/工具栏/面板/其它页面，祖先回到正常流，避免被侧栏挤偏 */
  .nav, .topbar, .re-panel, .re-toolbar, #toast, #auth-modal { display: none !important; }
  .page:not(.active) { display: none !important; }
  .shell, .main, .page.active, .content, .re-content, .re-canvas-wrap {
    position: static !important; display: block !important; overflow: visible !important;
    width: auto !important; height: auto !important; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important; background: #fff !important;
  }
  #re-canvas {
    width: 100% !important; max-width: 100% !important; min-height: 0 !important;
    margin: 0 auto !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important;
  }
  .re-grip, .re-del, .re-add-mini, .re-add-entry, .re-photo-del { display: none !important; }
  .re-photo:not(.has) { display: none !important; }   /* 未上传照片则不打印空框 */
  .re-photo { border: none !important; }
  .re-f:hover, .re-f:focus { background: transparent !important; box-shadow: none !important; }
  @page { size: A4; margin: 14mm; }
}

/* ═══════════════════════════════════════════════════
   职雷设计系统补充 Token（--zl-* 供新组件使用）
   不替换现有变量，与原系统并存
═══════════════════════════════════════════════════ */
:root {
  --zl-blue-500: #2563eb; --zl-blue-700: #1d4ed8; --zl-blue-900: #0e2a5c;
  --zl-blue-50:  #dbeafe; --zl-blue-25:  #eff6ff; --zl-blue-100: #bfdbfe;
  --zl-orange: #f97316;
  --zl-border-card: 1px solid #e0eaf8;
  --zl-radius-pill: 9999px;
  --zl-font-cn: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* ═══════════════════════════════════════════════════
   Hero 区增强（雷达装饰 + pill 标签 + 蓝色强调）
═══════════════════════════════════════════════════ */
.jdb-hero { position: relative; overflow: hidden; }

.jdb-hero-radar {
  position: absolute; right: -60px; top: -80px;
  width: 440px; height: 440px; opacity: 0.14;
  pointer-events: none;
}

.jdb-hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--zl-blue-25); color: #1d4ed8;
  font-size: 12px; font-weight: 500;
  padding: 4px 13px; border-radius: var(--zl-radius-pill);
  margin-bottom: 14px; border: 1px solid var(--zl-blue-100);
}
.jdb-hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--zl-blue-500);
  animation: pulse 1.8s ease-in-out infinite;
}
.jdb-hero-accent { color: var(--zl-blue-500); }

/* ═══════════════════════════════════════════════════
   导航 Logo 内嵌 SVG（不再旋转）
═══════════════════════════════════════════════════ */
.nav-logo svg { display: block; flex-shrink: 0; width: 26px; height: 26px; }

/* ═══════════════════════════════════════════════════
   Chip 精确 pill 化 + 选中时蓝色填充（样式微调）
═══════════════════════════════════════════════════ */
.jdb-chip { border-radius: var(--zl-radius-pill); }
.jdb-chip.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}

/* ═══════════════════════════════════════════════════
   数字分页栏（.pg-bar）
═══════════════════════════════════════════════════ */
#jobdb-top-pager { margin-bottom: 4px; }

.pg-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 0;
}

.pg-num, .pg-arrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 34px; height: 34px; padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-2);
  background: var(--c-bg-0);
  color: var(--c-text-2);
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s, box-shadow .14s;
  box-shadow: var(--shadow-xs);
}
.pg-num:hover, .pg-arrow:hover:not(:disabled) {
  border-color: var(--brand); color: var(--brand);
  background: var(--brand-light);
}
.pg-num.active {
  background: var(--brand-grad); color: #fff;
  border-color: transparent; box-shadow: var(--glow-brand);
}
.pg-arrow:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.pg-arrow span { font-size: 12px; }

.pg-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 34px;
  color: var(--c-text-3); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; user-select: none;
}

.pg-info {
  margin-left: 6px;
  font-size: 12px; color: var(--c-text-3);
  white-space: nowrap;
}

.pg-loading {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-text-2); font-size: 13px;
  padding: 10px 0;
}

.pg-nums { display: flex; align-items: center; gap: 4px; }

.pg-cap {
  margin-left: 8px;
}

/* ═══════════════════════════════════════════════════
   设计系统 Alert 组件（提示条）
═══════════════════════════════════════════════════ */
.zl-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 13px; line-height: 1.5;
}
.zl-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.zl-alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #15803d; }
.zl-alert-warn    { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.zl-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
