/* ==========================================================================
   青禾校招工具 · 统一设计系统
   分层：1) 设计令牌  2) 基础与排版  3) 全局导航  4) 通用组件
        5) 状态组件（加载/空/错误/提示）  6) 页面级样式  7) 响应式
   说明：保留 --ink/--muted/--paper/--card/--line/--green/--green-soft/
   --danger/--shadow 等历史变量名与 career/tools/admin 页面依赖的基类，
   保证未重构页面视觉一致且不破坏功能。
   ========================================================================== */

/* ---------------------------------------------------------------- 1. 令牌 */
:root {
  /* 品牌与语义色 */
  --brand: #176b52;
  --brand-strong: #0f513e;
  --brand-soft: #edf5f1;
  --brand-line: #c9ddd4;
  --ink: #0a0a0a;
  --muted: #525252;
  --faint: #78716c;
  --bg: #f7f6f2;
  --card: #ffffff;
  --line: rgba(0, 0, 0, .06);
  --line-strong: #e7e5e4;
  --danger: #b54434;
  --danger-soft: #fbeeec;
  --warning: #9a6a16;
  --warning-soft: #fdf4e3;
  --success: #237a4b;
  --success-soft: #eaf6ef;

  /* 历史变量别名（career.css / tools.css / search-integrity.css 依赖） */
  --paper: var(--bg);
  --green: var(--brand);
  --green-soft: var(--brand-soft);

  /* 编辑部工作台扩展令牌（ox-alpha 第二轮视觉）：朱砂批注 / 靛蓝档案 / 桌面深纸 */
  --accent-seal: #bb3a2a;
  --accent-seal-soft: #f9ece9;
  --accent-archive: #31597e;
  --accent-archive-soft: #edf3f8;
  --paper-deep: #efede6;

  /* 字体与排版 */
  --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --display: "Noto Serif SC", "Songti SC", "Source Han Serif SC", STSong, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* 间距阶（4px 基线） */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;

  /* 圆角与阴影 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(10, 10, 10, .03), 0 8px 22px rgba(10, 10, 10, .035);
  --shadow-hover: 0 1px 2px rgba(10, 10, 10, .04), 0 12px 28px rgba(10, 10, 10, .065);
  --shadow-pop: 0 20px 55px rgba(10, 10, 10, .16);

  /* 控件尺寸 */
  --ctl-h: 44px;
  --ctl-h-sm: 32px;
  --ctl-h-lg: 46px;

  --topbar-h: 64px;
  --sidebar-w: 256px;
  --shell-w: 1180px;
}

/* ------------------------------------------------------- 2. 基础与排版 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { vertical-align: middle; }
a { color: var(--brand); }
[hidden] { display: none !important; }

button, a, summary, input, select, textarea { outline-offset: 2px; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.eyebrow {
  margin: 0 0 var(--s1);
  color: var(--brand);
  font: 700 11px/1.4 var(--mono);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, h4 { line-height: 1.25; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }

/* 图标：所有内联 SVG 统一尺寸与颜色继承 */
.icon {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

/* --------------------------------------------------------- 3. 用户端横向主导航 */
.topbar.user-topbar {
  position: sticky;
  inset: 0 0 auto;
  z-index: 40;
  width: 100%;
  height: var(--topbar-h);
  padding: 0 max(20px, calc((100vw - var(--shell-w)) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 8px rgba(10, 10, 10, .025);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--display); font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.brand small { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; }

.user-topbar .brand { flex: 0 0 auto; margin-right: auto; }
.user-topbar .global-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.user-topbar .global-nav a {
  position: relative;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.user-topbar .global-nav a:hover { color: var(--ink); background: #f5f5f4; }
.user-topbar .global-nav a.active { color: var(--ink); font-weight: 700; }
.user-topbar .global-nav a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--brand);
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .topbar.user-topbar { gap: 14px; padding-inline: 18px; }
  .user-topbar .global-nav a { padding-inline: 7px; font-size: 12px; }
}

/* 移动端导航：纯 CSS 勾选开关，所有页面共享 */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-scrim { display: none; }

/* 中小屏：主导航仍从顶部展开，不形成常驻全局侧栏。 */
@media (max-width: 1100px) {
  .topbar.user-topbar {
    padding: 0 18px;
    gap: var(--s3);
  }
  .user-topbar .nav-toggle-label { display: inline-flex; order: 2; }
  .user-topbar .brand { margin-right: auto; }
  .user-topbar .global-nav {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    z-index: 2;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: var(--shadow-pop);
    transform: translateY(-10px) scale(.985);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
  }
  .user-topbar .global-nav a { padding: 10px 14px; }
  .user-topbar .global-nav a.active::after { left: 2px; right: auto; top: 11px; bottom: 11px; width: 2px; height: auto; }
  .user-topbar .nav-toggle:checked ~ .global-nav { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
  .user-topbar .nav-scrim {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0;
    z-index: 1;
    background: rgba(10, 10, 10, .24);
    opacity: 0;
    visibility: hidden;
    cursor: default;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .user-topbar .nav-toggle:checked ~ .nav-scrim { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------- 4. 通用组件 */
/* 按钮体系：.btn 为基类；保留 .primary-button/.secondary-button/.text-button 兼容 */
.btn,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ctl-h);
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  user-select: none;
}
.btn-primary, .primary-button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover, .primary-button:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-secondary, .secondary-button {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover, .secondary-button:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #9c382a; border-color: #9c382a; }
.btn-ghost-danger { background: var(--card); border-color: var(--line-strong); color: var(--danger); }
.btn-ghost-danger:hover { border-color: var(--danger); }
.btn-sm { min-height: var(--ctl-h-sm); padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: var(--ctl-h-lg); padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .primary-button:disabled, .secondary-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn .icon { width: 16px; height: 16px; }

.text-button {
  border: 0;
  background: none;
  color: var(--brand);
  padding: 4px 2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.text-button:hover { text-decoration: underline; }
.text-button:disabled { color: var(--faint); cursor: not-allowed; text-decoration: none; }
.text-button.danger { color: var(--danger); }

/* 表单体系 */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.5; font-weight: 400; }
.input,
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="search"], .field input[type="number"], .field input[type="file"],
.field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--ctl-h);
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; line-height: 1.6; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 106, 79, .12);
  outline: none;
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[type="file"] { padding: 8px 12px; }
.field input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.check-row input { width: auto; margin-top: 3px; accent-color: var(--brand); }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-pad { padding: var(--s5); }

/* 徽章与标签 */
.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: var(--r-pill);
  padding: 3px 9px;
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
.badge.active, .badge.added, .badge.restored, .job-status.active { background: var(--success-soft); color: var(--success); }
.badge.updated { background: var(--warning-soft); color: var(--warning); }
.badge.offline, .job-status.offline { background: var(--danger-soft); color: var(--danger); }
.job-status.unknown { background: var(--bg); color: var(--muted); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
/* 变化类型不只靠颜色：新增=实心菱形，更新=空心圆。 */
.badge.added { background: var(--accent-seal-soft); color: var(--accent-seal); }
.badge.added::before, .badge.updated::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.badge.updated::before { width: 5px; height: 5px; background: transparent; border: 2px solid currentColor; border-radius: 50%; transform: none; }
.tag { background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.tag-location { background: #e8f4ff; border-color: #a8d0f0; color: #1a5a8f; }
.tag-cohort { background: #fff3e0; border-color: #ffd699; color: #b87a00; }
.tag-industry { background: #f3e8ff; border-color: #d5b8f0; color: #6b2d9a; }

/* 页头与容器 */
.page-shell {
  width: min(var(--shell-w), calc(100% - 40px));
  margin: 0 auto;
  padding: var(--s6) 0 64px;
}
.page-heading {
  position: static;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s5);
  margin: -8px -12px var(--s5);
  padding: 8px 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(14px);
}
.page-heading h1 { font-size: clamp(28px, 3.4vw, 38px); margin: 4px 0 8px; }
.page-heading p:last-child { color: var(--muted); font-size: 14px; margin: 0; max-width: 640px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-title h3 { margin: 0; font-size: 16px; }
.section-title > div { display: flex; gap: 14px; align-items: center; }

/* 同步状态条：电讯条造型（mono 元信息 + 左侧靛蓝条） */
.sync-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent-archive);
  border-radius: 4px;
  padding: 9px 14px;
}
.sync-strip strong { color: var(--ink); font-size: 12px; letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); flex: 0 0 auto; }
.dot.ok, .dot.good { background: var(--success); }
.dot.fail { background: var(--danger); }

/* 岗位更新雷达：最近一次成功同步的变化台账（索引台场景） */
.update-radar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-top: 2px solid #22201c;
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 12px var(--s5);
  margin-bottom: var(--s5);
}
.radar-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.radar-head h2 { margin: 0; font-family: var(--display); font-size: 15px; color: var(--ink); white-space: nowrap; }
#radarTime { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.radar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ctl-h-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--muted);
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.radar-chip:hover { border-color: var(--accent-archive); color: var(--ink); }
.radar-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* 选中态不只靠颜色：加粗 + 前置对勾符号 + 浅色底。 */
.radar-chip.is-active { border-color: var(--accent-archive); background: var(--accent-archive-soft); color: var(--accent-archive); font-weight: 600; }
.radar-chip.is-active::before { content: "✓"; font-size: 12px; }
.radar-count {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 1ch;
}
.radar-chip.is-active .radar-count { color: var(--accent-archive); }
.radar-hint { width: 100%; margin: 0; font-size: 12px; color: var(--faint); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .radar-chip { transition: none; }
}

/* ------------------------------------- 5. 状态组件（加载/空/错误/提示） */
/* 旋转加载 */
.spinner {
  display: inline-block;
  width: 26px; height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--r-sm);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4);
  display: grid;
  gap: 10px;
}
.skeleton-line { height: 14px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 10px; }
.skeleton-row { display: flex; gap: 11px; align-items: center; }
.skeleton-row > div { flex: 1; display: grid; gap: 8px; }

/* 通用状态块（空数据 / 错误 / 加载占位） */
.state {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.state .icon-lg { width: 40px; height: 40px; color: var(--faint); stroke-width: 1.4; }
.state h3 { font-size: 16px; margin: 10px 0 2px; color: var(--ink); }
.state p { font-size: 13px; color: var(--muted); margin: 0 0 6px; max-width: 420px; }
.state .btn, .state button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}
.state.loading { border-style: solid; border-color: var(--line); }
.state.loading h3 { font-size: 14px; color: var(--muted); font-weight: 500; }

/* 行内提示条（成功 / 错误 / 信息 / 警告） */
.notice, .account-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}
.notice.ok, .account-notice.ok { background: var(--success-soft); border-color: #bfe0cd; color: var(--success); }
.notice.error, .account-notice.error { background: var(--danger-soft); border-color: #ecc9c3; color: var(--danger); }
.notice.warning, .account-notice.warning { background: var(--warning-soft); border-color: #eed9ae; color: var(--warning); }
.jobs-notice { margin: 0 0 12px; }

/* Toast（由 ui.js 驱动） */
.toast-root {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--shadow-pop);
  animation: toast-in .22s ease;
  pointer-events: auto;
}
.toast.ok { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.leaving { opacity: 0; transform: translateY(-6px); transition: .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.error-text { color: var(--danger); }
.account-muted, .muted { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.pagination button {
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.pagination button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination { flex-wrap: wrap; }
.pagination .page-jump { display: flex; align-items: center; gap: 6px; margin: 0; }
.pagination .page-jump label { color: var(--muted); font-size: 12px; }
.pagination .page-jump input { width: 54px; min-width: 0; padding: 7px 6px; border: 1px solid var(--line); border-radius: 6px; text-align: center; font: inherit; }
.pagination .page-jump span { min-width: 0; }
.pagination .page-jump-error { flex-basis: 100%; margin: 0; text-align: center; color: #b42318; font-size: 12px; }
.pagination .page-total { width: 100%; margin: 0 0 4px; text-align: center; color: var(--muted); font-size: 14px; }
.pagination .page-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.pagination .page-controls[hidden] { display: none; }
.pagination .page-numbers { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers button, .pagination #prevPage, .pagination #nextPage, .pagination .page-gap { min-width: 36px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--brand-line, var(--line-strong)); border-radius: 4px; background: #fff; color: var(--brand); }
.pagination .page-gap { display: inline-grid; place-items: center; color: var(--muted); font-size: 14px; }
.pagination .page-numbers button[aria-current="page"], .pagination #pageJumpButton { border-color: var(--brand); background: var(--brand); color: white; }
.pagination .page-numbers button[aria-current="page"]:hover, .pagination #pageJumpButton:hover:not(:disabled) { border-color: var(--brand-strong); background: var(--brand-strong); color: white; }
.pagination .page-jump input { border-color: var(--brand-line, var(--line-strong)); color: var(--ink); }
.pagination :is(button, input, select):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; box-shadow: none; border-color: var(--brand); }
.pagination .page-jump { margin-left: 12px; }
.pagination #pageJumpButton { min-height: 38px; border-radius: 4px; }
.pagination .pagination-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 480px) { .pagination .page-jump { margin: 6px 0 0; flex-basis: 100%; justify-content: center; } .pagination .page-numbers { gap: 4px; } .pagination .page-numbers button, .pagination #prevPage, .pagination #nextPage, .pagination .page-gap { min-width: 30px; padding-inline: 7px; } }
.pagination span { color: var(--muted); font-size: 12px; min-width: 76px; text-align: center; }
.compact-pagination span { font-size: 12px; color: var(--muted); }

/* 弹窗 */
dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: 88vh;
  border: 0;
  border-radius: var(--r-lg);
  padding: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
dialog::backdrop { background: rgba(15, 32, 27, .55); }
.dialog-close {
  position: sticky;
  float: right;
  top: 12px;
  margin: 12px 12px 0 0;
  border: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dialog-close:hover { background: var(--line); color: var(--ink); }

.source-note { font-size: 12px; color: var(--faint); text-align: center; margin: 24px 0 0; }

/* ===================================================== 6. 页面级样式 */
/* 首页使用独立 home.css；工作台页面继续按业务组件分层。 */
/* ---- 岗位列表：筛选面板（检索条） ---- */
.filter-panel {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: var(--s5);
  box-shadow: var(--shadow);
}
.filter-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filter-title h2 { font-family: var(--display); font-size: 16px; margin: 0; }
.filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(230px, 1fr);
  gap: 14px;
}
.filter-grid > label, .search-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; min-width: 0; }
.search-control {
  display: flex;
  min-width: 0;
  height: var(--ctl-h);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-weight: 400;
}
.search-control:focus-within { border-color: var(--accent-archive); box-shadow: 0 0 0 3px rgba(49, 89, 126, .12); }
.search-control .icon { align-self: center; margin-left: 11px; color: var(--faint); }
.search-control input { flex: 1; min-width: 0; border: 0; padding: 0 10px; background: transparent; font-size: 14px; }
.search-control input:focus { outline: none; box-shadow: none; }
.search-control button {
  border: 0;
  background: var(--accent-archive);
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.search-control button:hover { background: #27496a; }
.filter-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--ctl-h);
  flex-wrap: wrap;
  align-content: flex-end;
}
.filter-grid legend { display: block; width: 100%; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
.filter-grid fieldset label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; color: var(--muted); cursor: pointer; }
.filter-grid input[type="radio"] { accent-color: var(--brand); }

.multi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; align-items: start; }
.multi-filter { position: relative; min-width: 0; align-self: start; }
.multi-filter-control {
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 3px;
  padding: 6px 7px 6px 10px;
  font-size: 13px;
  color: var(--muted);
  display: block;
  min-height: var(--ctl-h);
  overflow: visible;
}
.multi-filter.is-open .multi-filter-control { border-color: var(--accent-archive); color: var(--ink); box-shadow: 0 0 0 2px rgba(49,89,126,.08); }
.multi-filter-control { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; column-gap: 6px; height: 58px; }
.multi-filter-head { display: contents; }
.multi-filter-head .multi-filter-label { grid-column: 1; grid-row: 1; }
.multi-filter-head .filter-menu-toggle { grid-column: 3; grid-row: 1; }
.multi-filter-control .filter-selected { grid-column: 2; grid-row: 1; }
.multi-filter-label { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; }
.filter-selected { display: flex; min-width: 0; max-width: 100%; flex-wrap: nowrap; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 2px 0; scrollbar-width: thin; }
.filter-selected:empty { display: none; }
.filter-menu-toggle {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.filter-menu-toggle::after { content: ""; position: absolute; left: 18px; top: 15px; border: solid var(--faint); border-width: 0 1.6px 1.6px 0; padding: 3px; transform: rotate(45deg); }
.filter-menu-toggle[aria-expanded="true"]::after { top: 19px; transform: rotate(-135deg); }
.filter-menu-toggle:hover { background: var(--brand-soft); }
.filter-menu-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.option-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 230px);
  max-width: min(320px, 82vw);
  max-height: 264px;
  overflow: auto;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
}
.option-list label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 9px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.option-list label:hover { background: var(--brand-soft); }
.option-list input { margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.option-list p { font-size: 12px; color: var(--muted); padding: 6px 9px; margin: 0; }

/* 已选标签与标题同一行；搜索框仅在展开的地点菜单顶部显示。 */
.location-filter-control .loc-chips { min-height: 30px; }
.loc-input {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 31;
  width: max(100%, 230px);
  max-width: min(320px, 82vw);
  height: 44px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
}
.multi-filter.is-open .loc-input { display: block; }
.multi-filter .loc-dropdown { top: calc(100% + 50px); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.loc-input:focus { outline: none; }
.loc-dropdown {
  max-height: 288px;
  margin: 0;
  list-style: none;
}
.loc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  cursor: pointer;
}
.loc-item:hover, .loc-item.active { background: var(--brand-soft); }
.loc-item-name { color: var(--ink); flex: 0 0 auto; }
.loc-item-sub { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-item-state { margin-left: auto; flex: 0 0 auto; color: var(--brand); font-size: 12px; }
.loc-item.selected .loc-item-name { color: var(--brand); font-weight: 600; }
.loc-empty { padding: 10px; font-size: 12.5px; color: var(--muted); }
.filter-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(240px, 72vw);
  gap: 3px;
  border: 1px solid #c3d4e4;
  border-radius: 999px;
  background: var(--accent-archive-soft);
  color: var(--accent-archive);
  padding: 2px 3px 2px 8px;
  font-size: 12px;
  font-weight: 600;
}
.filter-chip:hover { background: #dbe7f2; }
.filter-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip-remove { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; margin: -8px -3px -8px 0; border: 0; border-radius: 50%; background: transparent; color: currentColor; cursor: pointer; font-size: 14px; line-height: 1; }
.filter-chip-remove:hover { background: rgba(49,89,126,.12); }
.filter-chip-remove:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---- 岗位列表：结果 ---- */
.results { margin-top: 20px; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; padding: 0 2px; }
.result-meta h2 { font-size: 14px; margin: 0; font-weight: 600; color: var(--muted); }
.result-meta strong { font-size: 22px; color: var(--ink); margin-right: 2px; }
.result-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; min-width: 0; }
.result-controls label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.result-controls select { min-height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); color: var(--ink); padding: 0 28px 0 9px; font: inherit; cursor: pointer; }
.result-controls select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.job-list { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
.job-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.jobs-master .job-card { border-width: 0 0 1px; }
.job-card:hover { border-color: var(--brand-line); background: #f7faf8; box-shadow: inset 3px 0 0 var(--brand-line); }
.job-card.is-selected { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.job-card.is-selected .job-card-main { outline: none; }
.job-card-main { display: flex; flex: 1; flex-direction: column; cursor: pointer; border-radius: var(--r-sm); }
.job-card-main:focus-visible { outline: 2px solid var(--brand); }
.job-top, .job-foot { display: flex; justify-content: space-between; gap: 12px; }
.company { display: flex; gap: 11px; min-width: 0; }
.company-mark {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--brand);
}
.company > div { min-width: 0; }
.company h3 { font-size: 15px; margin: 1px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company p { font-size: 12px; color: var(--muted); margin: 0; }
.badges, .tags { display: flex; gap: 5px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.job-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.match-hint { font-size: 12px; color: var(--muted); background: var(--brand-soft); border-radius: var(--r-sm); padding: 8px 10px; margin: 0 0 4px; line-height: 1.6; }
.job-foot { align-items: flex-end; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.job-foot time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.job-actions { display: flex; gap: 8px; margin-top: 14px; }
.mark-applied-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease;
}
.mark-applied-button:hover:not(:disabled) { background: var(--brand-soft); }
.mark-applied-button:disabled { border-color: var(--line); color: var(--faint); cursor: not-allowed; }
.mark-applied-button.is-applied { background: var(--success-soft); border-color: #bfe0cd; color: var(--success); }
.applied-action p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.applied-action .mark-applied-button { width: auto; padding: 0 18px; }

/* ---- 岗位详情（档案夹） ---- */
.detail { padding: 32px 32px 36px; }
.detail .eyebrow { color: var(--accent-archive); }
.detail h2 { font-family: var(--display); font-size: 24px; margin: 8px 45px 4px 0; }
.detail-sub { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; margin: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.detail-grid > div { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; font-size: 13px; overflow-wrap: anywhere; }
.detail-grid small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.detail-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.detail-section h3 { font-size: 14px; margin: 0 0 8px; }
.detail-section p { font-size: 13px; line-height: 1.8; color: #35473f; white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.detail-section label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.detail-section select, .detail-section textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 400;
  width: 100%;
}
.detail-section textarea { resize: vertical; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
}
.links a:hover { background: var(--brand-strong); }

/* ---- 全站业务组件的轻量反馈：不覆盖动态状态，不把所有页面做成同一构图。 ---- */
:where(.guide-card, .pathway-card, .svc-card, .account-panel, .career-panel, .tool-workbench, .review-form, .commerce-panel, .order-row, .support-layout > section, .support-layout > aside) {
  transition: transform .22s cubic-bezier(.2,.75,.2,1), border-color .22s ease, box-shadow .22s ease;
}
:where(.guide-card, .pathway-card, .svc-card, .order-row):hover {
  transform: translateY(-3px);
  border-color: rgba(23,107,82,.36);
  box-shadow: var(--shadow-hover);
}
:where(.account-panel, .career-panel, .tool-workbench, .review-form, .commerce-panel, .support-layout > section, .support-layout > aside):hover {
  border-color: rgba(23,107,82,.28);
  box-shadow: 0 14px 34px rgba(34,32,28,.08);
}
:where(.page-heading, .tools-heading, .workbench-heading, .section-title).is-workspace-visible .eyebrow {
  animation: workspace-kicker-in .62s cubic-bezier(.2,.75,.2,1) both;
}
@keyframes workspace-kicker-in {
  from { letter-spacing: .24em; opacity: .35; }
  to { letter-spacing: .14em; opacity: 1; }
}

/* ---- AI 简历页（原稿 → 批注 → 修订的编辑工作台） ---- */
.resume-page { max-width: 1180px; }
.resume-heading { align-items: end; }
.resume-heading > div { max-width: 760px; }
.resume-heading h1 { max-width: 740px; }
.resume-heading-aside { display: grid; justify-items: end; gap: 9px; min-width: 280px; }
.resume-heading-aside > small { color: var(--muted); font-size: 10.5px; }
.resume-motion-diagram {
  position: relative;
  display: grid;
  grid-template-columns: auto 34px auto 34px auto;
  align-items: center;
  min-width: 266px;
  padding: 13px 16px;
  overflow: hidden;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: 700 10px/1 var(--mono);
  letter-spacing: .08em;
}
.resume-motion-diagram i { position: relative; height: 1px; overflow: hidden; background: var(--line-strong); }
.resume-motion-diagram i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--accent-seal), transparent); transform: translateX(-110%); animation: resume-flow-line 3.2s ease-in-out infinite; }
.resume-motion-diagram i:nth-of-type(2)::after { animation-delay: 1.6s; }
.resume-motion-diagram span { position: relative; padding: 3px 4px; background: var(--card); }
@keyframes resume-flow-line { 0%,35% { transform: translateX(-110%); opacity: 0; } 48%,68% { opacity: .8; } 82%,100% { transform: translateX(110%); opacity: 0; } }
.resume-profile-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: -4px 0 20px; padding: 18px 20px; border: 1px solid var(--brand-line); border-left: 4px solid var(--brand); border-radius: var(--r-md); background: linear-gradient(105deg, var(--brand-soft), rgba(255,255,255,.92)); box-shadow: var(--shadow); }
.resume-profile-entry-mark { align-self: stretch; display: grid; place-items: center; min-width: 72px; padding: 8px 12px; border-right: 1px solid var(--brand-line); color: var(--brand-strong); font: 700 11px/1.5 var(--mono); letter-spacing: .08em; }
.resume-profile-entry h2 { margin: 0 0 4px; font-size: 20px; }
.resume-profile-entry p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.resume-profile-entry .primary-button { min-width: 132px; }
.resume-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -6px 0 20px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); background: var(--card); }
.resume-principles article { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; padding: 18px 20px; min-width: 0; overflow: hidden; transition: background .2s ease, transform .2s ease; }
.resume-principles article::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-seal); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2,.75,.2,1); }
.resume-principles article:hover { z-index: 1; background: var(--paper-deep); transform: translateY(-2px); }
.resume-principles article:hover::after { transform: scaleX(1); }
.resume-principles article + article { border-left: 1px solid var(--line-strong); }
.resume-principles article > span { grid-row: 1 / 3; color: var(--accent-seal); font: 700 11px/1.4 var(--mono); }
.resume-principles strong { font: 600 16px/1.3 var(--display); }
.resume-principles p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 3px;
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.provider-badge.mock { background: var(--warning-soft); color: var(--warning); }
.provider-badge.live { background: var(--success-soft); color: var(--success); }
.privacy-strip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  background: var(--warning-soft);
  border: 1px solid #eed9ae;
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: #7a5a1d;
  font-size: 13px;
  line-height: 1.7;
}
.privacy-strip .icon { flex: 0 0 auto; margin-top: 2px; }
.resume-ai { background: var(--card); border: 1px solid var(--line-strong); border-radius: 4px; padding: var(--s5); box-shadow: var(--shadow); }
.resume-form { display: grid; gap: 14px; }
.resume-intake-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 16px; align-items: stretch; }
.resume-form-block { min-width: 0; padding: 20px; border: 1px solid var(--line-strong); border-radius: 4px; transition: border-color .2s ease, box-shadow .2s ease; }
.resume-form-block:focus-within { border-color: #c9bfb0; box-shadow: 0 12px 28px rgba(34,32,28,.055); }
.resume-material-block { display: flex; flex-direction: column; background: var(--paper-deep); }
.resume-target-block { background: var(--card); }
.resume-block-heading { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.resume-block-heading > span { display: grid; place-items: center; width: 24px; height: 24px; color: var(--card); background: var(--accent-seal); border-radius: 50%; font: 700 10px/1 var(--mono); }
.resume-block-heading h2 { margin: 0; font: 600 19px/1.3 var(--display); }
.resume-block-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.resume-target-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resume-material-notes { display: grid; gap: 8px; margin: auto 0 0; padding: 20px 0 0; list-style: none; color: var(--muted); font-size: 12px; }
.resume-material-notes li { position: relative; padding-left: 18px; }
.resume-material-notes li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.resume-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.resume-form input, .resume-form select, .resume-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 400;
}
.resume-form input:focus, .resume-form select:focus, .resume-form textarea:focus {
  border-color: var(--accent-seal);
  box-shadow: 0 0 0 3px rgba(187, 58, 42, .12);
  outline: none;
}
/* 稿件袋：文件上传域用虚线袋口造型。 */
.resume-form input[type="file"] { border-style: dashed; border-width: 1.5px; padding: 15px 12px; background: var(--paper-deep); }
.resume-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.resume-form small { font-size: 12px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.resume-form .wide { grid-column: 1 / -1; }
.consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
  color: #8a3527 !important;
  background: var(--accent-seal-soft);
  border: 1px solid #e5c0ba;
  padding: 12px;
  border-radius: 4px;
  font-weight: 400 !important;
  line-height: 1.6;
}
.consent input { width: auto !important; margin-top: 3px; accent-color: var(--accent-seal); }
.resume-score-note { margin: 0; padding: 11px 14px; color: var(--muted); background: var(--paper-deep); border-left: 3px solid var(--accent-seal); font-size: 12px; line-height: 1.7; }
.resume-score-note strong { color: var(--ink); }
.resume-actions { display: grid; gap: 18px; }
.resume-actions .action-group { min-width: 0; }
.resume-actions .action-group-label { margin: 0 0 9px; font: 700 11px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
.resume-actions .action-group-row { display: flex; gap: 10px; flex-wrap: nowrap; }
.resume-actions .action-flow {
  background: linear-gradient(90deg, rgba(23,107,82,.07), rgba(255,255,255,.72) 68%), var(--card);
  border: 1px solid var(--brand-line);
  border-top: 3px solid var(--brand-strong);
  border-radius: var(--r-sm);
  padding: 16px 18px 18px;
}
.resume-actions .action-flow .action-group-label { color: var(--brand-strong); font: 600 22px/1.2 var(--display); letter-spacing: .02em; }
.resume-actions .action-flow .action-group-row { counter-reset: flowstep; }
.resume-utility-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.resume-actions .action-manage, .resume-actions .action-export { padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.resume-actions .action-export { background: var(--paper-deep); }
.resume-actions button, .suggestion-actions button {
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  min-height: var(--ctl-h);
  padding: 0 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.resume-actions button { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; }
.resume-actions .resume-key-action { position: relative; overflow: hidden; isolation: isolate; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.resume-actions .resume-key-action::after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.22) 45%, transparent 70%); transform: translateX(-125%); transition: transform .55s cubic-bezier(.2,.75,.2,1); }
.resume-actions .resume-key-action:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,81,62,.16); }
.resume-actions .resume-key-action:hover:not(:disabled)::after { transform: translateX(125%); }
.resume-actions .action-flow button::before {
  counter-increment: flowstep;
  content: counter(flowstep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 2px;
  font: 700 11px/1 var(--mono);
}
.resume-actions button:hover:not(:disabled) { background: var(--brand-strong); }
.resume-actions button:disabled { background: var(--paper-deep); color: var(--muted); border-color: var(--line-strong); cursor: not-allowed; }
.resume-actions .action-flow button:disabled::before { border-color: var(--line-strong); color: var(--faint); }
.resume-actions .action-manage button, .resume-actions .action-export button { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.resume-actions .action-manage button:hover:not(:disabled), .resume-actions .action-export button:hover:not(:disabled) { background: var(--card); border-color: var(--brand); color: var(--brand); }
.resume-actions .action-export button { flex: 1 1 0; padding: 0 14px; }
.resume-actions button.danger { background: var(--card); color: var(--danger); border-color: #e0b8b2; }
.resume-actions button.danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.resume-status {
  margin-top: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 11px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.resume-status.error { border-color: #ecc9c3; color: var(--danger); background: var(--danger-soft); }
.resume-status.ok { border-color: #bfe0cd; color: var(--success); background: var(--success-soft); }
.field-error { display: block; min-height: 1.35em; margin-top: 4px; color: var(--danger); font-size: 12px; line-height: 1.45; }
.field-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(190, 67, 52, .12); }
.resume-progress { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper-deep); }
.resume-progress-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); }
.resume-progress-head strong { font-family: var(--display); }
.resume-progress-head span { color: var(--accent-seal); font-weight: 700; font-family: var(--mono); font-size: 11.5px; }
.resume-progress-head span + span { color: var(--muted); font-weight: 500; }
.resume-progress-head small { color: var(--muted); }
.resume-progress-head small { margin-left: auto; }
.resume-progress-bar { height: 8px; margin: 10px 0; overflow: hidden; border-radius: 4px; background: #e6e2d8; box-shadow: inset 0 0 0 1px rgba(34, 32, 28, .08); }
.resume-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent-seal); transition: width .25s ease; }
.resume-progress.active .resume-progress-bar span { background: linear-gradient(90deg, var(--accent-seal), #d97760, var(--accent-seal)); background-size: 200% 100%; animation: resume-progress-flow 1.5s linear infinite; }
.resume-progress-nodes { display: flex; justify-content: space-between; gap: 5px; color: var(--muted); font-size: 11px; }
.resume-progress-nodes span { flex: 1; text-align: center; padding: 4px 2px; border-radius: 3px; font-family: var(--mono); transition: color .18s ease, background .18s ease, transform .18s ease; }
.resume-progress-nodes .current { color: #fff; background: var(--accent-seal); font-weight: 700; }
.resume-progress.active .resume-progress-nodes .current { animation: resume-node-breathe 1.7s ease-in-out infinite; }
.resume-progress-nodes .done { color: var(--success); background: var(--success-soft); }
.resume-progress-nodes .failed { color: #fff; background: var(--danger); font-weight: 700; }
@keyframes resume-progress-flow { to { background-position: -200% 0; } }
@keyframes resume-node-breathe { 50% { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(187,58,42,.16); } }
.resume-documents { margin-top: 12px; }
.document-list { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.document-list > strong { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.document-list button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
}
.document-list button.active { border-color: var(--brand); background: var(--brand-soft); }
.document-list span { font-size: 12px; font-weight: 700; }
.document-list small { font-size: 11px; color: var(--muted); }
.resume-results { margin-top: 16px; }
.readiness-panel { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line-strong); border-top: 3px solid var(--success); border-radius: 4px; background: var(--card); }
.readiness-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.readiness-head h2 { margin: 4px 0 0; font: 600 22px/1.3 var(--display); }
.readiness-head-actions { display: flex; align-items: center; gap: 10px; }
.readiness-head-actions label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.readiness-head-actions select { min-height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--card); color: var(--ink); font: 600 12px/1 var(--sans); }
.readiness-kicker { margin: 0; color: var(--success); font: 700 10px/1 var(--mono); letter-spacing: .14em; }
.readiness-boundary { flex: 0 0 auto; padding: 5px 9px; color: var(--accent-seal); background: var(--accent-seal-soft); border: 1px solid #e5c0ba; border-radius: 3px; font-size: 11px; font-weight: 700; }
.readiness-score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; padding: 20px; background: var(--paper-deep); }
.readiness-score { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; align-items: center; min-width: 0; min-height: 138px; padding: 18px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 8px 20px rgba(34,32,28,.035); }
.readiness-score:last-child:not(.pending) { border-color: #a9d2ba; box-shadow: inset 0 2px 0 var(--success), 0 8px 20px rgba(34,32,28,.035); }
.readiness-score > small { grid-column: 1 / -1; color: var(--muted); font: 700 10px/1 var(--mono); letter-spacing: .12em; }
.readiness-score strong { margin-top: 8px; color: var(--ink); font: 600 56px/.95 var(--display); font-variant-numeric: tabular-nums; }
.readiness-score > strong { color: var(--accent-seal); font-family: var(--display); font-style: normal; font-weight: 700; transform-origin: left center; }
.readiness-score > strong span { position: relative; display: inline-block; text-shadow: 0 1px 0 rgba(187,58,42,.12); }
.score-style-circle .readiness-score > strong span::after { content: ""; position: absolute; inset: -8px -13px -7px -11px; border: 2px solid currentColor; border-radius: 48% 53% 47% 56%; transform: rotate(-4deg); opacity: .72; }
.score-style-hand .readiness-score > strong { font-family: "Segoe Print", "Bradley Hand", "KaiTi", "STKaiti", cursive; font-style: italic; transform: rotate(-2deg); }
.score-style-hand .readiness-score > strong span::after { content: ""; position: absolute; left: -4px; right: -12px; bottom: -8px; height: 12px; border-bottom: 3px solid currentColor; border-radius: 50%; transform: rotate(-4deg); opacity: .78; }
.score-style-stamp .readiness-score > strong span { padding: 7px 10px 5px; border: 3px double currentColor; border-radius: 3px; font-family: "KaiTi", "STKaiti", serif; letter-spacing: -.06em; transform: rotate(-3deg); }
.readiness-score strong em { color: var(--faint); font: 500 13px/1 var(--mono); font-style: normal; }
.readiness-score p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.readiness-score.pending strong { color: var(--faint); }
.readiness-arrow { display: grid; place-items: center; min-width: 58px; color: var(--accent-seal); font: 700 12px/1.3 var(--mono); }
.readiness-arrow svg { width: 42px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.readiness-delta { display: block; margin-top: 4px; color: var(--success); }
.readiness-dimensions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.readiness-dimension { padding: 15px 16px; min-width: 0; transition: background .18s ease; }
.readiness-dimension:hover { background: var(--paper-deep); }
.readiness-dimension + .readiness-dimension { border-left: 1px solid var(--line); }
.readiness-dimension header { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.readiness-dimension header strong:last-child { color: var(--accent-seal); font: 700 16px/1 "Segoe Print", "KaiTi", "STKaiti", cursive; transform: rotate(-2deg); }
.readiness-meter { display: block; width: 100%; height: 5px; margin: 9px 0; overflow: hidden; appearance: none; border: 0; background: var(--line); border-radius: 999px; }
.readiness-meter::-webkit-progress-bar { background: var(--line); border-radius: inherit; }
.readiness-meter::-webkit-progress-value { background: var(--success); border-radius: inherit; }
.readiness-meter::-moz-progress-bar { background: var(--success); border-radius: inherit; }
.readiness-dimension p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.readiness-foot { margin: 0; padding: 13px 20px 16px; color: var(--muted); border-top: 1px dashed var(--line-strong); font-size: 11.5px; line-height: 1.7; }
.analysis-summary { background: var(--card); border: 1px solid var(--line-strong); border-top: 3px solid var(--accent-seal); border-radius: 4px; padding: 16px; margin-bottom: 12px; }
.analysis-summary h2 { font-family: var(--display); font-size: 17px; margin: 0 0 8px; }
.analysis-summary p, .suggestion-card p { font-size: 13px; line-height: 1.75; margin: 6px 0; }
/* 批注卡：左侧红笔脊线；已采纳/已驳回有形态差异。 */
.suggestion-card { position: relative; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent-seal); border-radius: 4px; padding: 16px; margin: 10px 0; background: var(--card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease; }
.suggestion-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.suggestion-card.accepted { border-color: #9fd0b4; border-left-color: var(--success); background: var(--success-soft); }
.suggestion-card.accepted::after {
  content: "已采纳";
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 2px 8px;
  border: 2px solid var(--success);
  border-radius: 3px;
  color: var(--success);
  font: 700 11px/1.5 var(--mono);
  transform: rotate(6deg);
  opacity: .85;
}
.suggestion-card.rejected { opacity: .55; border-left-color: var(--faint); }
.suggestion-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.suggestion-meta span { font-family: var(--mono); font-size: 11px; border-radius: 3px; padding: 3px 9px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.suggestion-card h3 { font-size: 14px; margin: 10px 0 12px; }
.source-quote { background: var(--paper-deep); border-left: 3px solid var(--accent-seal); border-radius: 3px; padding: 9px 11px !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.suggestion-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.suggestion-version { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-deep); }
.suggestion-version > strong { margin-bottom: 8px; color: var(--muted); font: 700 10px/1 var(--mono); letter-spacing: .12em; }
.suggestion-version .source-quote { margin: 0; border-left: 0; padding: 0 !important; background: transparent; }
.suggestion-version label { display: flex; flex: 1; flex-direction: column; font-size: 12px; }
.suggestion-version textarea { flex: 1; }
.suggestion-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.suggestion-actions button { min-height: var(--ctl-h-sm); padding: 0 13px; font-size: 12px; background: var(--card); color: var(--brand); border: 1px solid var(--brand-line); border-radius: 3px; }
.suggestion-actions button:hover { background: var(--brand-soft); }
.suggestion-actions button[data-action="accept"] { background: var(--success); border-color: var(--success); color: #fff; }
.suggestion-actions button[data-action="accept"]:hover { background: #1d6440; }
.suggestion-actions button[data-action="reject"] { color: var(--danger); border-color: #e0b8b2; background: var(--card); }
.suggestion-actions button[data-action="reject"]:hover { background: var(--danger-soft); }
.knowledge-trace { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.mock-warning { color: var(--warning); font-weight: 700; }

/* AI 分析结果：先给可扫描摘要，详细推理按需展开。 */
.analysis-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 12px; }
.analysis-card { min-width: 0; padding: 18px; border: 1px solid var(--line-strong); border-top: 3px solid var(--accent-seal); border-radius: 5px; background: var(--card); }
.analysis-card.hr-screen { border-top-color: var(--success); }
.analysis-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.analysis-card h2 { margin: 3px 0 0; font: 600 20px/1.3 var(--display); }
.analysis-card > p { margin: 10px 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.analysis-eyebrow { margin: 0 !important; color: var(--success) !important; font: 700 10px/1 var(--mono) !important; letter-spacing: .14em; }
.hr-verdict, .target-score { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #a9d2ba; border-radius: 3px; color: var(--success); background: var(--success-soft); font-size: 11px; font-weight: 700; }
.target-score { border-color: #e5c0ba; color: var(--accent-seal); background: var(--accent-seal-soft); font: 700 16px/1.1 "Segoe Print", "KaiTi", cursive; transform: rotate(-2deg); }
.hr-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.hr-checks li { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-deep); }
.hr-checks li span { font-size: 12px; font-weight: 700; }
.hr-checks li strong { color: var(--success); font-size: 11px; }
.hr-checks li[data-status="attention"] strong { color: var(--accent-seal); }
.hr-checks li[data-status="unknown"] strong { color: var(--faint); }
.hr-checks li small { grid-column: 1 / -1; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.target-brief dl { display: grid; gap: 8px; margin: 12px 0; }
.target-brief dl div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.target-brief dt { color: var(--ink); font-size: 11px; font-weight: 700; }
.target-brief dd { min-width: 0; margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.analysis-boundary { margin-bottom: 0 !important; color: var(--faint) !important; font-size: 10.5px !important; }
.analysis-detail { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.analysis-detail summary { padding: 12px 15px; cursor: pointer; color: var(--brand); font-size: 12px; font-weight: 700; }
.analysis-detail[open] summary { border-bottom: 1px solid var(--line); }
.analysis-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 15px; }
.analysis-detail-grid h3 { margin: 0 0 8px; font-size: 13px; }
.analysis-detail-grid p { margin: 6px 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }

/* 逐条审阅工作台：目录固定在左，一次只显示一条建议。 */
.review-workbench { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--card); }
.review-workbench .draft-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: end; margin: 0; padding: 16px 18px 13px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper-deep); }
.review-workbench .draft-toolbar h2 { margin: 4px 0 0; font: 600 19px/1.3 var(--display); color: var(--ink); }
.review-counts { display: grid; justify-items: end; gap: 3px; font-size: 11px; }
.review-counts strong { color: var(--ink); }
.review-counts span { color: var(--success); font-weight: 700; }
.review-progress { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.review-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--success); transition: width .28s ease; }
.review-truth-confirm { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; margin: 14px 16px 0; padding: 12px 13px; border: 1px solid #e4c69b; border-radius: 4px; background: #fff9ed; color: var(--muted); font-size: 11.5px !important; line-height: 1.65; }
.review-truth-confirm input { flex: 0 0 auto; width: auto !important; margin-top: 3px; }
.review-truth-confirm strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12px; }
.review-feedback { margin: 12px 16px 0; padding: 8px 10px; border-left: 3px solid var(--line-strong); background: var(--paper-deep); color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.review-feedback.ok { border-left-color: var(--success); color: var(--success); }
.review-feedback.error { border-left-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.review-feedback.busy { border-left-color: var(--warning); color: var(--warning); }
.suggestion-review-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 430px; margin-top: 12px; border-top: 1px solid var(--line); }
.suggestion-index { padding: 10px; border-right: 1px solid var(--line); background: var(--paper-deep); }
.suggestion-index button { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 8px; align-items: center; width: 100%; min-height: 56px; padding: 9px 10px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.suggestion-index button + button { margin-top: 4px; }
.suggestion-index button:hover, .suggestion-index button.active { border-color: var(--line-strong); background: var(--card); color: var(--ink); }
.suggestion-index button.active { box-shadow: inset 3px 0 0 var(--accent-seal); }
.suggestion-index button > span { grid-row: 1 / 3; color: var(--accent-seal); font: 700 10px/1 var(--mono); }
.suggestion-index button b { min-width: 0; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-index button small { color: var(--faint); font-size: 10px; }
.suggestion-index button[data-status="accepted"] small { color: var(--success); }
.suggestion-index button[data-status="rejected"] { opacity: .6; }
.suggestion-stage { min-width: 0; padding: 16px; }
.suggestion-stage .suggestion-card { min-height: 390px; margin: 0; }
.suggestion-card[hidden] { display: none !important; }
.suggestion-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 80px; }
.suggestion-card-head > strong { color: var(--accent-seal); font-size: 11px; }
.suggestion-card.accepted .suggestion-card-head > strong { color: var(--success); }
.suggestion-basis { color: var(--muted); font-size: 11px !important; }
.suggestion-fill { margin: 12px 0; padding: 12px 14px; border: 1px solid #e5c89a; border-left: 3px solid var(--warning); border-radius: 3px; background: #fff9ed; }
.suggestion-fill > strong { font-size: 12px; }
.suggestion-fill ul { display: grid; gap: 5px; margin: 8px 0; padding: 0; list-style: none; }
.suggestion-fill li { display: grid; grid-template-columns: 24px 1fr; gap: 6px; color: var(--ink); font-size: 11.5px; line-height: 1.55; }
.suggestion-fill li span { color: var(--accent-seal); font: 700 9px/1.7 var(--mono); }
.suggestion-fill p { margin: 0 !important; color: var(--muted); font-size: 10.5px !important; }
.review-completion { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #a9d2ba; background: var(--success-soft); color: var(--success); }
.review-completion[hidden] { display: none; }
.review-completion strong { font-size: 12px; }
.review-completion span { font-size: 11px; }
.review-empty { padding: 30px; text-align: center; color: var(--muted); }

.export-help { display: block; margin-top: 6px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.draft-preview { padding: 0; overflow: hidden; }
.draft-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.draft-preview-head h2 { margin: 4px 0 5px; font-size: 20px; }
.draft-preview-head p:not(.analysis-eyebrow) { margin: 0; color: var(--muted); font-size: 11.5px; }
.draft-preview-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.draft-preview-actions button { min-height: 40px; padding: 0 15px; border: 1px solid var(--brand-line); border-radius: 3px; background: var(--card); color: var(--brand); font-weight: 700; }
.draft-preview-actions button.primary { border-color: var(--success); background: var(--success); color: #fff; }
.draft-result-counts { display: flex; gap: 24px; padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.draft-result-counts strong { color: var(--accent-seal); font: 700 15px/1 "Segoe Print", "KaiTi", cursive; }
.draft-sections { display: grid; gap: 7px; padding: 14px; }
.draft-sections details { border: 1px solid var(--line); border-radius: 3px; background: var(--card); }
.draft-sections summary { padding: 10px 12px; cursor: pointer; font-size: 12px; font-weight: 700; }
.draft-sections details[open] summary { border-bottom: 1px solid var(--line); }
.draft-sections pre { border-radius: 0; background: var(--paper-deep); }

@media (max-width: 980px) {
  .analysis-overview { grid-template-columns: 1fr; }
  .suggestion-review-layout { grid-template-columns: 1fr; }
  .suggestion-index { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .suggestion-index button { flex: 0 0 170px; }
  .suggestion-index button + button { margin-top: 0; }
}
@media (max-width: 639px) {
  .hr-checks, .analysis-detail-grid, .suggestion-compare { grid-template-columns: 1fr; }
  .review-workbench .draft-toolbar { grid-template-columns: 1fr; }
  .review-counts { justify-items: start; }
  .draft-preview-head { align-items: flex-start; flex-direction: column; }
  .draft-preview-actions { width: 100%; }
  .draft-preview-actions button { flex: 1; min-height: 44px; }
  .draft-result-counts { gap: 12px; flex-wrap: wrap; }
  .suggestion-card-head { padding-right: 0; }
}

/* 简历步骤条：编辑流程轨道（原稿 → 对照 → 批注 → 修订） */
.resume-steps { display: flex; gap: 0; margin-bottom: 20px; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: var(--card); }
.resume-steps .step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  font-size: 13px;
  color: var(--faint);
  border-right: 1px solid var(--line);
  min-width: 0;
  transition: color .2s ease, background .2s ease;
}
.resume-steps .step:last-child { border-right: 0; }
.resume-steps .step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
  font-family: var(--mono);
}
.resume-steps .step.active { color: var(--accent-seal); background: var(--accent-seal-soft); font-weight: 600; }
.resume-steps .step.active .num { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(187,58,42,.08); }
.resume-steps .step .num { transition: transform .2s ease, box-shadow .2s ease; }
.resume-steps .step.done { color: var(--success); }

/* ---- 账号中心 ---- */
/* 已登录视图 = 身份卡 + 三项概览统计 + 分区导航 + 独立内容卡；
   不再把整个已登录区域包进单个巨型白色容器。 */
.account-page { max-width: 1120px; }
.account-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.account-auth-panel { max-width: none; margin: 0; }
.auth-landing { display: grid; grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr); gap: clamp(24px, 5vw, 76px); align-items: stretch; margin-bottom: 18px; }
.auth-care-panel { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: clamp(28px, 4vw, 48px); background: var(--paper-deep); border: 1px solid var(--line-strong); border-top: 3px solid var(--accent-seal); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.auth-care-panel::before { content: ""; position: absolute; inset: 18px; pointer-events: none; border: 1px solid rgba(34, 32, 28, .11); }
.auth-care-panel > * { position: relative; }
.auth-care-panel h2 { max-width: 390px; margin: 10px 0 12px; font: 600 clamp(28px, 3.2vw, 40px)/1.28 var(--display); }
.auth-care-panel > p:not(.eyebrow) { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.8; }
.auth-care-list { display: grid; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.auth-care-list li { display: grid; grid-template-columns: 23px 1fr; gap: 10px; align-items: baseline; color: var(--ink); font-size: 14px; line-height: 1.65; }
.auth-care-list span { color: var(--accent-seal); font: 700 11px/1.6 var(--mono); letter-spacing: .08em; }
.auth-illustration-slot { isolation: isolate; position: relative; min-height: 190px; margin-top: auto; border: 1px dashed #b9b2a4; border-radius: 5px; background: rgba(255,255,255,.42); overflow: hidden; }
.auth-illustration-slot::before, .auth-illustration-slot::after { content: ""; position: absolute; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 8px 18px rgba(34,32,28,.09); }
.auth-illustration-slot::before { width: 48%; height: 66%; left: 14%; top: 19%; transform: rotate(-5deg); background: linear-gradient(var(--card) 24%, transparent 24% 27%, var(--card) 27%); }
.auth-illustration-slot::after { width: 42%; height: 54%; right: 13%; top: 25%; transform: rotate(6deg); background: linear-gradient(135deg, var(--warning-soft), var(--card)); }
.auth-illustration-slot .slot-mark { position: absolute; z-index: 1; right: 20%; bottom: 16%; width: 45px; height: 45px; border: 2px double var(--accent-seal); border-radius: 50%; opacity: .75; }
.account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) 20px;
  padding: 12px 16px 0;
}
.account-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.account-tab:hover { color: var(--ink); }
.account-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.account-panel h2 { font-size: 20px; margin: 4px 0 6px; }
.account-intro { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 4px; }
.account-form { display: grid; gap: 14px; max-width: 460px; margin-top: 14px; }
.account-form label { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 600; }
.account-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 400;
  min-height: var(--ctl-h);
}
.account-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 106, 79, .12); outline: none; }
.account-form small { font-size: 12px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.account-form .optional { font-size: 12px; color: var(--faint); font-weight: 400; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.code-row label { min-width: 0; }
.code-actions { display: flex; gap: 6px; align-items: center; }
.code-button { white-space: nowrap; }
.verify-code-button { white-space: nowrap; }
.verify-code-button.verified { color: var(--success); }

/* 已登录工作台容器与身份卡 */
.account-workspace { display: flex; flex-direction: column; gap: 14px; }
.account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.account-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand);
  font-size: 19px;
  font-weight: 700;
}
.account-identity-info { min-width: 0; flex: 1; }
.account-identity-email { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.account-identity-status {
  margin: 3px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}
.account-identity-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* 概览统计：真实数据，点击跳到对应分区 */
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.account-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .1s ease;
}
.account-stat:hover { border-color: var(--brand-line); }
.account-stat:active { transform: scale(.985); }
.account-stat:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.account-stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.account-stat-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.account-stat-hint { font-size: 11px; color: var(--faint); }

/* 分区导航：紧凑左侧栏；移动端转为顶部横向滚动标签 */
.account-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.account-sidebar,
.account-sidebar.signed-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  height: fit-content;
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}
.sidebar-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  border-radius: var(--r-md);
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.sidebar-tab:hover { color: var(--ink); background: var(--bg); }
.sidebar-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
/* 选中态不只靠颜色：左侧标记条 + 字重变化 + 浅色背景。 */
.sidebar-tab.active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.sidebar-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}
.sidebar-note {
  margin: 8px 4px 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-size: 11px;
  line-height: 1.55;
  color: var(--faint);
}

/* 内容分区卡片 */
.account-content { min-width: 0; }
.signed-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.panel-head-text { min-width: 0; }
.panel-head-text h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-desc { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  padding: 1px 8px;
}
.security-form { margin-top: 2px; max-width: 430px; }

/* 设备会话 */
.device-list { display: grid; gap: 10px; }
.device-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--card);
}
/* 当前设备不只靠绿色区分：加粗的左侧色条 + 白底徽章文字。 */
.device-item.current { border-color: #bfe0cd; border-left-color: var(--success); background: var(--success-soft); }
.device-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}
.device-item.current .device-icon { background: #fff; border-color: #bfe0cd; color: var(--success); }
.device-info { min-width: 0; flex: 1; }
.device-info strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.device-info small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.device-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  background: #fff;
  border: 1px solid #bfe0cd;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  white-space: nowrap;
}

/* 已投递岗位 */
.applied-jobs-list { display: grid; gap: 10px; }
.applied-job-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px 11px;
  background: var(--card);
  min-width: 0;
  transition: border-color .15s ease;
}
.applied-job-item:hover { border-color: var(--brand-line); }
.applied-job-main { min-width: 0; }
.applied-job-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 14px; }
.applied-job-title { min-width: 0; }
.applied-job-title strong { font-size: 14px; overflow-wrap: anywhere; }
.applied-job-title h4 { margin: 2px 0 0; font-size: 13px; font-weight: 500; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.job-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: max-content;
  border-radius: var(--r-pill);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.job-status .icon-sm { width: 13px; height: 13px; stroke-width: 2; }
.applied-job-item dl { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 9px 0 0; }
.applied-job-item dl div { min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.applied-job-item dt { font-size: 11px; color: var(--faint); }
.applied-job-item dd { font-size: 12px; margin: 0; overflow-wrap: anywhere; color: var(--muted); }
.applied-job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}
.original-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  min-height: 32px;
}
.original-link:hover { text-decoration: underline; }
.no-link-note { font-size: 12px; color: var(--faint); }
.applied-empty {
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.applied-empty .icon-lg { width: 36px; height: 36px; color: var(--faint); stroke-width: 1.4; }
.applied-empty strong { font-size: 14px; margin-top: 8px; }
.applied-empty p { font-size: 12px; color: var(--muted); margin: 0; max-width: 380px; }
.applied-empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* 问题反馈 */
.feedback-list { display: grid; gap: 10px; }
.feedback-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  background: var(--card);
}
.feedback-main { min-width: 0; }
.feedback-no { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--faint); }
.feedback-main h4 { margin: 2px 0 5px; font-size: 14px; overflow-wrap: anywhere; }
.feedback-meta { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.feedback-status-pending { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.feedback-status-in_progress, .feedback-status-replied { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.feedback-status-resolved, .feedback-status-closed { background: var(--bg); color: var(--muted); }
.view-feedback { flex: 0 0 auto; min-height: 32px; }

/* ---- 账号中心 · 档案袋场景微调（编辑部体系；仅视觉层，不改结构） ---- */
.account-panel { border-radius: 4px; border-color: var(--line-strong); }
.account-tabs { border-bottom: 2px solid #22201c; }
.account-tab.active { color: var(--ink); border-bottom-color: var(--accent-seal); }
.account-identity {
  border-radius: 4px;
  border-color: var(--line-strong);
  border-top: 2px solid #22201c;
}
.account-identity-email { font-family: var(--display); font-size: 16px; }
.account-avatar {
  border-radius: 4px;
  font-family: var(--mono);
  background: var(--paper-deep);
  border-color: var(--line-strong);
  color: var(--ink);
}
.account-stat { border-radius: 4px; }
.account-stat-value { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.device-item { border-radius: 4px; }

/* ---- 客服中心 ---- */
.support-page { max-width: 1080px; }
.support-search { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.support-search label { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 13px; font-weight: 600; }
.support-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  min-height: var(--ctl-h);
  font-size: 14px;
  font-weight: 400;
}
.support-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 106, 79, .12); outline: none; }
.support-search button {
  border: 0;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  padding: 0 18px;
  min-height: var(--ctl-h);
  cursor: pointer;
  font-weight: 600;
}
.support-search button:hover { background: var(--brand-strong); }
.support-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.support-category {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--muted);
  padding: 6px 13px;
  font-size: 13px;
  cursor: pointer;
}
.support-category:hover { border-color: var(--brand); color: var(--brand); }
.support-category.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr); gap: 16px; align-items: start; }
.support-list { display: grid; gap: 10px; }
.support-article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.support-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 15px 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.support-question:hover { background: var(--bg); }
.support-question .icon { color: var(--faint); transition: transform .18s ease; }
.support-question.open .icon { transform: rotate(45deg); color: var(--brand); }
.support-answer { border-top: 1px solid var(--line); padding: 14px 16px 16px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.support-answer p { margin: 0 0 8px; }
.support-answer ol { padding-left: 20px; margin: 0 0 10px; }
.support-answer li { margin-bottom: 4px; }
.support-feedback-panel, .support-records {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.support-feedback-panel { position: sticky; top: calc(var(--topbar-h) + 16px); }
.support-feedback-panel h2, .support-records h2 { font-size: 17px; margin: 0 0 6px; }
.support-feedback-panel .account-form { max-width: none; }
.support-feedback-panel textarea, .support-feedback-panel select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--ink);
}
.support-feedback-panel textarea { resize: vertical; }
.support-feedback-panel select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  min-height: var(--ctl-h);
}
.support-feedback-panel input[type="file"] { font-size: 12px; }
.feedback-success {
  margin-top: 14px;
  border: 1px solid #bfe0cd;
  background: var(--success-soft);
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--success);
}
.feedback-success code { background: rgba(255, 255, 255, .7); padding: 1px 6px; border-radius: 4px; }
.feedback-success textarea {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 13px;
  resize: vertical;
}
.feedback-success p { margin: 8px 0; }
.feedback-success .secondary-button { margin-right: 8px; }
.support-records { margin-top: 16px; }
.feedback-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  margin-top: 10px;
  background: var(--card);
}
.feedback-item > div { min-width: 0; }
.feedback-item strong { font-size: 12px; color: var(--muted); }
.feedback-item h3 { font-size: 14px; margin: 3px 0; overflow-wrap: anywhere; }
.feedback-item p { font-size: 12px; color: var(--muted); margin: 0; }

/* ---- 客服中心 · 工单处理台场景微调（编辑部体系） ---- */
.support-search { border-radius: 4px; border-color: var(--line-strong); }
.support-search button { border-radius: 3px; }
.support-category { border-radius: 3px; font-weight: 600; }
.support-article { border-radius: 4px; border-color: var(--line-strong); }
.support-question { font-family: var(--font); }
.support-feedback-panel, .support-records { border-radius: 4px; border-color: var(--line-strong); border-top: 2px solid #22201c; }
.feedback-success { border-radius: 4px; }

/* ===================================================== 7. 响应式 */
@media (max-width: 960px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .job-list { grid-template-columns: 1fr; }
  .resume-intake-grid { grid-template-columns: 1fr; }
  .resume-principles { grid-template-columns: 1fr; }
  .resume-principles article + article { border-left: 0; border-top: 1px solid var(--line-strong); }
  .readiness-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readiness-dimension:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .readiness-dimension:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .support-layout { grid-template-columns: 1fr; }
  .support-feedback-panel { position: static; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 56px; }
  body { font-size: 14px; }

  .brand small { display: none; }
  .page-shell { width: calc(100% - 28px); padding-top: 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .resume-heading-aside { width: 100%; min-width: 0; justify-items: start; }
  .resume-motion-diagram { width: 100%; min-width: 0; max-width: 320px; }
  .resume-profile-entry { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .resume-profile-entry-mark { display: block; min-width: 0; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .resume-profile-entry .primary-button { width: 100%; }
  .sync-strip { justify-content: flex-start; width: 100%; border-radius: var(--r-md); }
  /* 移动端更新雷达：类型按钮收进单行横向滑动（容器内滚动，不产生页面级横向溢出），
     内边距与间距收紧，控制首屏占用高度。 */
  .update-radar { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 14px; margin-bottom: 12px; }
  .radar-actions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .radar-actions::-webkit-scrollbar { display: none; }
  .radar-chip { flex: 0 0 auto; min-height: 32px; padding: 3px 11px; font-size: 12px; }
  #radarTime, .radar-hint { font-size: 11px; line-height: 1.45; }

  .filter-panel, .resume-ai, .account-panel { padding: 16px; }
  .filter-grid { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .result-meta { align-items: flex-start; flex-direction: column; }
  .result-controls { justify-content: flex-start; width: 100%; }
  .result-controls label { flex: 1 1 130px; }
  .result-controls select { flex: 1; min-height: 42px; }
  .result-controls .text-button { min-height: 42px; display: inline-flex; align-items: center; }
  .multi-grid { grid-template-columns: 1fr 1fr; }
  .option-list { left: 0; right: 0; width: auto; max-width: none; }

  .job-card { padding: 15px; }
  .job-top { align-items: flex-start; }
  .job-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .tags { justify-content: flex-start; }

  .detail { padding: 24px 16px 28px; }
  .detail h2 { font-size: 20px; margin-right: 40px; }
  .detail-grid { grid-template-columns: 1fr; }

  .resume-form .wide { grid-column: auto; }
  .resume-form-block { padding: 16px; }
  .resume-target-grid { grid-template-columns: 1fr; }
  .resume-target-grid .wide { grid-column: auto; }
  .readiness-head { flex-direction: column; padding: 16px; }
  .readiness-score-row { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .readiness-score { min-height: 0; }
  .readiness-score strong { font-size: 48px; }
  .readiness-arrow { grid-template-columns: auto auto; justify-content: center; gap: 8px; transform: rotate(90deg); }
  .readiness-arrow .readiness-delta { transform: rotate(-90deg); margin: 0; }
  .readiness-dimensions { grid-template-columns: 1fr; }
  .readiness-dimension + .readiness-dimension, .readiness-dimension:nth-child(3), .readiness-dimension:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .suggestion-compare { grid-template-columns: 1fr; }
  .resume-actions { gap: 14px; }
  .resume-utility-groups { grid-template-columns: 1fr; gap: 12px; }
  .resume-actions .action-flow .action-group-row { display: grid; grid-template-columns: 1fr; }
  .resume-actions .action-export .action-group-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .resume-actions .action-export button { padding: 0 4px; font-size: 13px; white-space: nowrap; }
  .resume-steps .step span.txt { display: none; }

  .account-tabs { margin: -16px -16px 16px; padding: 10px 10px 0; }
  .account-tab { flex: 1; padding: 12px 8px; text-align: center; }
  .auth-landing { grid-template-columns: 1fr; gap: 14px; }
  .auth-care-panel { padding: 24px 22px; }
  .auth-care-panel h2 { font-size: 28px; }
  .auth-illustration-slot { min-height: 150px; }

  /* 身份卡：窄屏改为两行（头像+邮箱 / 全宽操作按钮） */
  .account-identity { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
  .account-avatar { width: 40px; height: 40px; flex-basis: 40px; font-size: 17px; }
  .account-identity-info { flex: 1 1 calc(100% - 52px); min-width: 0; }
  .account-identity-actions { width: 100%; justify-content: stretch; gap: 8px; }
  .account-identity-actions .btn { flex: 1 1 auto; min-height: var(--ctl-h); padding: 0 12px; white-space: nowrap; }

  /* 概览统计保持三列，收紧内边距 */
  .account-stats { gap: 8px; }
  .account-stat { padding: 10px 12px; gap: 0; }
  .account-stat-value { font-size: 20px; }
  .account-stat-hint { display: none; }

  /* 分区导航转为顶部横向滚动标签；当前标签自动滚入视野 */
  .account-workspace { gap: 12px; }
  .account-layout { grid-template-columns: 1fr; gap: 12px; }
  .account-sidebar,
  .account-sidebar.signed-tabs {
    position: static;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    padding: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .account-sidebar::-webkit-scrollbar { display: none; }
  .sidebar-tab { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 10px 14px; }
  .sidebar-tab.active::before { content: none; }
  /* 移动端选中态：底部标记条 + 字重，不只靠颜色 */
  .sidebar-tab.active { box-shadow: inset 0 -3px 0 var(--brand); }
  .sidebar-note { display: none; }

  .signed-panel { padding: 14px 14px 16px; scroll-margin-top: calc(var(--topbar-h) + 8px); }
  .panel-actions { width: 100%; }
  .panel-actions .btn, .panel-actions .secondary-button { flex: 1 1 auto; min-height: var(--ctl-h); }
  .security-form { max-width: none; }
  .code-row { grid-template-columns: 1fr; }
  .code-actions { width: 100%; }
  .code-actions .code-button { flex: 1; }

  .applied-job-heading { flex-wrap: wrap; }
  .job-status { margin-top: 2px; }
  .applied-job-item dl { flex-direction: column; gap: 6px; }
  .applied-job-actions .btn { flex: 0 0 auto; }
  .feedback-item { align-items: flex-start; }

  .support-search label { align-items: stretch; flex-wrap: wrap; }
  .support-search label input { flex-basis: 100%; }
  .support-search label button { margin-left: auto; }

  dialog { width: calc(100vw - 20px); max-height: 92vh; }
}


@media (max-width: 390px) {
  .multi-grid { grid-template-columns: 1fr; }
  .company-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 14px; }
  .company h3 { font-size: 14px; }
}

/* 降低动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  :where(.guide-card, .pathway-card, .svc-card, .order-row):hover { transform: none; }
}

/* ===================================== 8. 岗位汇总表与详情抽屉 */
.filter-title-actions { display: flex; align-items: center; gap: 14px; }
.filter-toggle { display: none; }

.jobs-index-page { width: min(1600px, calc(100% - 32px)); }
/* 标题区内容轨道与下方筛选卡片（--s5 内边距）起始线协调；仅限岗位页。 */
.jobs-index-page .page-heading { padding-left: 36px; padding-right: 36px; }
@media (max-width: 1024px) {
  .jobs-index-page .page-heading { padding-left: 12px; padding-right: 12px; }
}
.jobs-results { margin-top: 20px; min-width: 0; }
.jobs-resume-entry { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0 0 18px; padding: 16px 22px; border: 1px solid var(--brand-line); border-left: 4px solid var(--brand); background: linear-gradient(105deg,var(--brand-soft),var(--card)); }
.jobs-resume-entry > div { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 14px; align-items: baseline; }
.jobs-resume-entry span { grid-row: 1 / 3; color: var(--brand); font: 700 10px/1.4 var(--mono); letter-spacing: .08em; }
.jobs-resume-entry strong { font-size: 15px; }
.jobs-resume-entry p { margin: 0; color: var(--muted); font-size: 11.5px; }
.jobs-resume-entry .primary-button { flex: 0 0 auto; }
@media (max-width: 1024px) {
  .jobs-resume-entry { align-items: stretch; flex-direction: column; }
  .jobs-resume-entry .primary-button { text-align: center; }
}
/* 岗位页的导航只占据文档顶部；记录浏览时不与外置表头争抢视口。 */
.jobs-page .topbar.user-topbar {
  position: relative;
  inset: auto;
  z-index: 60;
}
.jobs-workspace {
  --job-table-columns: minmax(170px, 1.2fr) 82px 92px minmax(110px, .9fr) 92px minmax(130px, 1fr) minmax(220px, 1.9fr) 72px 104px 110px;
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.jobs-master {
  height: clamp(520px, calc(100dvh - 198px), 860px);
  min-height: 0;
  min-width: 0;
  overflow-x: visible;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  background: var(--card);
}
.jobs-table-hint {
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 12px;
}
.jobs-change-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  min-width: 0;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.jobs-change-legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.change-symbol {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--brand);
  font: 700 14px/1 var(--mono);
}
.change-symbol.change-added { color: var(--accent-archive); }
.change-symbol.change-updated { color: var(--brand); }
.change-symbol.change-restored { color: var(--success); }
.change-symbol.change-offline { color: var(--muted); }
.jobs-table-header,
.job-card {
  display: grid;
  grid-template-columns: var(--job-table-columns);
  min-width: 0;
  width: 100%;
}
.jobs-table-header {
  position: static;
  /* 记录区的细滚动条占用约 10px；为表头预留同一轨道，避免九列逐列漂移。 */
  width: calc(100% - 10px);
  border-bottom: 2px solid #22201c;
  background: #f4f2ec;
  box-shadow: 0 1px 0 rgba(18, 38, 30, .04);
}
.jobs-table-header span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  color: #3c3a34;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
.jobs-master .job-list { display: block; min-width: 0; counter-reset: jobindex; }
.jobs-master .job-card {
  padding: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  box-shadow: none;
  counter-increment: jobindex;
}
.jobs-master .job-card:nth-child(even) { background: #faf9f4; }
.jobs-master .job-card:hover { background: #f2f4f1; box-shadow: inset 3px 0 0 var(--accent-archive); }
.jobs-master .job-card.is-selected { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.job-cell {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  color: #3e4c47;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.job-card-main {
  width: 100%;
  min-height: 44px;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
/* 索引编号：纯 CSS 计数器，位于公司名前。 */
.jobs-master .job-card-main::before {
  content: counter(jobindex, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 20px;
  font: 600 10px/1 var(--mono);
  letter-spacing: .04em;
  color: var(--faint);
}
.job-card-main strong { font-size: 14px; }
.job-card-main:focus-visible { position: relative; z-index: 2; outline: 2px solid var(--brand); outline-offset: -3px; }
.positions-cell { align-items: flex-start; flex-direction: column; justify-content: center; }
.company-cell .job-card-main strong { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.company-size-cell { color: var(--ink); font-weight: 650; }
.company-size-cell > span:not(.company-size-unknown) { display: flex; flex-direction: column; gap: 2px; }
.company-size-cell small { color: var(--brand); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.company-size-unknown { color: var(--faint); font-weight: 500; }
.positions-cell > span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.positions-cell .match-hint { margin: 5px 0 0; color: var(--brand-strong); }
.table-tag { display: inline-flex; width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 3px; background: #eef0f2; color: #3a4652; font-size: 12px; font-weight: 700; }
/* 企业性质按字段值区分（app.js enterpriseTagClass 映射）；颜色仅辅助，文字保留。 */
.enterprise-tag.ent-state { background: #f7e9e5; color: #93402e; }
.enterprise-tag.ent-private { background: var(--accent-archive-soft); color: var(--accent-archive); }
.enterprise-tag.ent-foreign { background: #f1ecf8; color: #5b3d8f; }
.enterprise-tag.ent-jv { background: #efeef2; color: #5a5568; }
.enterprise-tag.ent-public { background: #f8efdd; color: #8a5a12; }
.enterprise-tag.ent-other { background: #eef0f2; color: #3a4652; }
.enterprise-tag.ent-unknown { background: transparent; color: var(--muted); border: 1px dashed var(--faint); }
.cohort-tag { background: #e7f7f1; color: #08745a; white-space: nowrap; }
.cohort-tag.cohort-unknown { background: transparent; color: var(--muted); border: 1px dashed var(--faint); }
.cohort-cell { flex-wrap: wrap; gap: 4px; align-content: center; }
/* 状态不只靠颜色：在招=描边实底，停招=虚线框。 */
.status-open { background: var(--success-soft); color: var(--success); border: 1px solid #bfe0cd; }
.status-closed { background: transparent; color: var(--muted); border: 1px dashed var(--faint); }
.updated-cell time { white-space: nowrap; color: var(--muted); }
.jobs-master .job-actions {
  align-content: center;
  align-items: stretch;
  display: flex;
  justify-content: center;
  gap: 0;
}
.jobs-master .job-actions button { min-height: 32px; padding: 5px 6px; font-size: 11px; white-space: nowrap; }
.jobs-master .job-actions .mark-applied-button { width: 100%; max-width: 112px; }
.jobs-master .job-actions .action-unavailable { color: var(--faint); font-size: 16px; }
.jobs-workspace .pagination {
  min-width: 0;
  padding: 18px 12px 22px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.applied-action .mark-applied-button { margin-right: 8px; }
.job-detail-dialog {
  width: min(720px, calc(100vw - 48px));
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  border-left: 3px solid #22201c;
}
.job-detail-dialog .dialog-close { z-index: 2; }

.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 76px));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 254, 249, .96);
  color: var(--brand);
  box-shadow: 0 4px 16px rgba(30, 42, 36, .14);
  cursor: pointer;
}
.back-to-top:hover { background: var(--brand-soft); border-color: var(--brand); }
.back-to-top .icon { width: 19px; height: 19px; stroke-width: 1.8; }
.back-to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (max-width: 1279px) {
  .jobs-index-page { width: calc(100% - 28px); }
  .jobs-master { height: clamp(500px, calc(100dvh - 198px), 760px); }
  .job-detail-dialog { width: min(620px, calc(100vw - 32px)); }
  .filter-grid fieldset label { padding: 6px 8px; }
  .multi-filter-control { min-height: 44px; }
}

@media (max-width: 1100px) {
  .filter-chip-remove { flex: 0 0 44px; width: 44px; min-height: 44px; }
  .jobs-workspace { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .jobs-master { height: auto; overflow: visible; }
  .jobs-table-hint { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
  .jobs-table-header { display: none; }
  .jobs-master .job-list { display: grid; min-width: 0; gap: 10px; margin-top: 10px; }
  .jobs-master .job-card { grid-template-columns: 1fr 1fr; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
  .job-cell { min-height: 0; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 4px; }
  .job-cell::before { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .05em; }
  .company-cell, .positions-cell, .job-actions { grid-column: 1 / -1; }
  .company-cell::before { content: '公司名称'; }
  .job-card > .job-cell:nth-child(2)::before { content: '公司类型'; }
  .job-card > .job-cell:nth-child(3)::before { content: '企业规模'; }
  .job-card > .job-cell:nth-child(4)::before { content: '所属行业'; }
  .job-card > .job-cell:nth-child(5)::before { content: '招聘对象'; }
  .job-card > .job-cell:nth-child(6)::before { content: '工作地点'; }
  .positions-cell::before { content: '岗位'; }
  .job-card > .job-cell:nth-child(8)::before { content: '招聘状态'; }
  .updated-cell::before { content: '更新时间'; }
  .jobs-master .job-actions { display: flex; border-bottom: 0; }
  .jobs-master .job-actions::before { content: none; }
  .jobs-master .job-actions .mark-applied-button { width: 100%; max-width: none; min-height: 44px; }
  .jobs-workspace .pagination { min-width: 0; }
}

@media (max-width: 640px) {
  .filter-toggle { display: inline-flex; min-height: 44px; }
  .filter-panel:not(.open) .filter-body { display: none; }
  .filter-title { margin-bottom: 0; }
  .filter-panel.open .filter-title { margin-bottom: 14px; }
  .job-detail-dialog { width: 100vw; max-width: 100vw; margin: 0; border-radius: 0; }
  .job-detail-dialog .detail { padding-top: 20px; }
  .filter-grid fieldset label { padding: 9px 10px; min-height: 44px; }
  .filter-chip-remove { flex: 0 0 44px; width: 44px; min-height: 44px; }
  .multi-filter-control { min-height: 44px; }
  /* 紧凑条目：小格改为「标签 数值」同行，避免单卡占据大半屏。 */
  .job-cell { flex-direction: row; align-items: baseline; gap: 8px; padding: 8px 12px; }
  .job-cell::before { flex: 0 0 auto; }
  .job-cell > * { min-width: 0; }
  .positions-cell { flex-direction: column; align-items: flex-start; gap: 3px; }
  .positions-cell > span { -webkit-line-clamp: 3; }
  .company-cell { flex-direction: column; align-items: flex-start; gap: 4px; }
  .jobs-master .job-actions { display: flex; width: auto; }
  .jobs-master .job-actions button { padding: 6px 4px; }
}

/* ===================================== 9. WeUI 桥接与 GSAP 动效配套 */
/* Toast：居中卡片，品牌字体，适配长文案 */
.weui-toast.qh-toast {
  font-family: var(--font);
  z-index: 6000;
  max-width: min(320px, 80vw);
  width: auto;
  min-width: 120px;
  padding: 18px 20px 14px;
}
.weui-toast.qh-toast .weui-toast__content { font-size: 14px; line-height: 1.5; margin-top: 6px; }

/* 确认对话框：品牌色与层级 */
.qh-confirm { position: relative; z-index: 5500; font-family: var(--font); }
.qh-confirm .weui-dialog__title { font-size: 17px; }
.qh-confirm .weui-dialog__bd { font-size: 14px; color: var(--muted); }
.qh-confirm .weui-dialog__btn { cursor: pointer; font-size: 15px; }
.qh-confirm .weui-dialog__btn_primary { color: var(--brand); }
.qh-confirm .weui-dialog__btn_primary.qh-danger { color: var(--danger); }
.qh-confirm .weui-dialog__btn:active { background: var(--bg); }

/* 控件按压反馈（全站按钮/卡片微交互） */
.btn:active, .primary-button:active, .secondary-button:active,
.mark-applied-button:active, .filter-chip:active, .support-category:active {
  transform: scale(.97);
  transition: transform .1s ease;
}

/* 弹窗遮罩淡入（配合 GSAP 弹窗入场） */
dialog::backdrop { animation: qh-backdrop-in .25s ease; }
@keyframes qh-backdrop-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  dialog::backdrop { animation: none; }
  .btn:active, .primary-button:active, .secondary-button:active,
  .mark-applied-button:active, .filter-chip:active, .support-category:active { transform: none; }
}

/* WeUI 对话框按钮改用 <button>（CSP 不允许 javascript: URL），重置原生样式 */
.qh-confirm button.weui-dialog__btn {
  background: transparent;
  border: 0;
  width: 100%;
  font: inherit;
  text-decoration: none;
}

/* 修复：weui 基础 reset（*{margin:0;padding:0}）覆盖了原生 <dialog> 的
   UA margin:auto 居中，显式恢复 */
dialog { margin: auto; }

/* 求职流程节点：记录卡 + 线性 stepper，移动端降为纵向 */
.process-boundary { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.career-record-list { display: grid; gap: 12px; margin-top: 14px; }
.career-record { border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 14px; min-width: 0; }
.career-record.offline { border-color: #d8a39d; background: #fffaf9; }
.career-record-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.career-record-head h3 { font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.career-record-head p { font-size: 11px; color: var(--muted); margin: 4px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.career-record-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.career-record-actions button { white-space: nowrap; }
.process-empty { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px; margin-top: 14px; color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.process-empty button { white-space: nowrap; }
.process-read-error { border: 1px solid #e2b4ae; border-radius: 8px; padding: 12px; margin-top: 14px; color: #8b3028; background: #fff8f7; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.process-read-error span { min-width: 0; overflow-wrap: anywhere; }
.process-read-error strong { font-weight: 700; }
.form-error { color: #a3372e; font-size: 12px; margin: 0; }
.process-dialog-note { color: var(--muted); font-size: 11px; margin: 0 0 10px; }
@media (max-width: 700px) {
  .career-record-head { flex-direction: column; }
  .career-record-actions { justify-content: flex-start; }
  .process-empty { align-items: flex-start; flex-direction: column; }
  .process-empty button { min-height: 38px; }
  .process-read-error { align-items: flex-start; flex-direction: column; }
}
/* AI resume workflow additions */
.provider-badge { background: var(--bg); color: var(--muted); }
.suggestion-card.pending { border-color: var(--line-strong); border-left-color: var(--accent-seal); }
/* 修订框：横线稿纸底纹。 */
.suggestion-card textarea { width: 100%; min-height: 74px; margin-top: 6px; border: 1px solid var(--line-strong); border-radius: 3px; padding: 9px 11px; resize: vertical; background: #fff; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 25px, rgba(34, 32, 28, .05) 25px, rgba(34, 32, 28, .05) 26px); line-height: 26px; }
.confirm-fact { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px; margin-top: 9px; color: var(--warning); font-size: 12px !important; }
.confirm-fact input { width: auto !important; margin-top: 4px; }
.draft-toolbar { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 8px; padding: 12px 14px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 13px; }
/* 清样：修订稿排版，双细线刊头，无内层滚动框。 */
.draft-preview { margin-top: 16px; overflow: hidden; border: 1px solid var(--line-strong); border-top: 3px double #22201c; border-radius: 4px; padding: 0; background: var(--card); }
.draft-preview h2 { font-family: var(--display); font-size: 16px; margin: 0 0 10px; }
.draft-preview h3 { font-size: 13px; margin: 12px 0 4px; }
.draft-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: 13px/1.9 var(--font); background: var(--paper-deep); padding: 12px; border-radius: 3px; }

/* WEB-CAREER-03: sync-change filters now belong to the main filter panel. */
.jobs-page .jobs-change-filters {
 margin: 0 0 16px;
 padding: 10px 0 14px;
 border-bottom: 1px solid var(--line);
}
.jobs-page .jobs-change-filters .radar-chip {
 border-color: var(--brand-line);
 background: white;
 color: var(--brand);
}
.jobs-page .jobs-change-filters .radar-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.jobs-page .jobs-change-filters .radar-chip.is-active {
 border-color: var(--brand);
 background: var(--brand);
 color: white;
}
.jobs-page .jobs-change-filters .radar-count { background: rgba(255, 255, 255, .72); color: var(--brand); }
.jobs-page .jobs-change-filters .radar-chip.is-active .radar-count { background: rgba(255, 255, 255, .2); color: white; }
@media (max-width: 640px) {
 .jobs-page .jobs-change-filters { margin-top: 12px; margin-bottom: 0; padding-bottom: 12px; }
 .jobs-page .filter-panel.open .jobs-change-filters { margin-bottom: 14px; }
}
