/* 就业通 · 2026-10-08
 * Canonical visual layer. Legacy component defaults live in @layer legacy.
 * Keep navigation, account pages, data views and overlays on these tokens.
 */
:root {
  color-scheme: light;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
  --font-mono: Consolas, monospace;
  --surface: #fff; --background: #f7f8fa; --sidebar: #f1f3f5;
  --bg-50: var(--surface); --bg-100: var(--background); --bg-200: #f0f3f4; --bg-300: #e7ecee; --bg-400: #dbe1e4;
  --text-900: #202c32; --text-800: #2b3940; --text-700: #40515a; --text-600: #53636c; --text-500: #64757e; --text-400: #778791;
  --border-100: #edf0f2; --border-200: #e2e7ea; --border-300: #d1dade; --border-400: #aab9c1;
  --brand-50: #eaf3ef; --brand-100: #dcebe4; --brand-200: #bfd9cb; --brand-300: #94bba7; --brand-400: #648e79;
  --brand-500: #376d56; --brand-600: #2b5946; --brand-700: #244d3e; --brand-800: #1d3e33; --brand-900: #182f28;
  --primary: var(--brand-500); --primary-hover: var(--brand-600); --primary-foreground: #fff;
  --foreground: var(--text-900); --muted-foreground: var(--text-500); --card: var(--surface); --card-foreground: var(--text-900);
  --border: var(--border-200); --input: var(--border-300); --ring: var(--brand-500); --secondary: var(--bg-200); --accent: var(--brand-50);
  --success-50: #edf5f0; --success-100: #e5f1e9; --success-500: #3d7b58; --success-700: #2d6544;
  --error-50: #fff2f1; --error-100: #fbe8e6; --error-500: #bb504b; --error-700: #9c3e38;
  --vip-50: #f6f3eb; --vip-100: #eee9da; --vip-400: #9b8554; --vip-500: #87713f; --vip-600: #746034; --vip-700: #68542d; --vip-800: #5d4b28; --vip-900: #4e4026;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 10px; --radius-xl: 12px; --radius-2xl: 12px;
  --shadow-xs: none; --shadow-sm: none; --shadow: none; --shadow-md: 0 4px 20px #1c343b0c; --shadow-lg: 0 12px 40px #1c343b16;
  --rail-width: 208px; --rail-collapsed: 64px; --nav-h: 60px;
  --ds-z-overlay: 1000; --ds-z-modal: 1100; --ds-z-toast: 1200;
  --focus-ring: 0 0 0 3px #376d5624;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --surface: #1b2429; --background: #151d22; --sidebar: #182126;
  --bg-200: #253137; --bg-300: #2e3c43; --bg-400: #3c4c55;
  --text-900: #e8eff2; --text-800: #dce6ea; --text-700: #c7d4db; --text-600: #adbec7; --text-500: #97abb6; --text-400: #8096a2;
  --border-100: #253238; --border-200: #303f47; --border-300: #43565f; --border-400: #5b737e;
  --brand-50: #243b32; --brand-100: #2d4a3d; --brand-200: #3a5e4b; --brand-300: #648f78; --brand-400: #92b69f;
  --brand-500: #91bfa4; --brand-600: #a8ceb8; --brand-700: #bddcc9; --brand-800: #cee5d6; --brand-900: #e1eee7;
  --primary-foreground: #142b20; --success-50: #21392b; --success-100: #284632; --success-500: #88ba9c; --success-700: #a9d0b8;
  --error-50: #392527; --error-100: #4a2c2e; --error-500: #df9692; --error-700: #f0b8b3;
  --vip-50: #322f23; --vip-100: #423b2b; --vip-500: #c6b88a; --vip-600: #d2c597; --vip-700: #decea1; --vip-800: #e6d9b4; --vip-900: #eee4ca;
  --focus-ring: 0 0 0 3px #91bfa42b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; }
body.app-body { margin: 0; min-height: 100dvh; height: auto; overflow: visible; font: var(--app-font-size, 14px)/1.65 var(--font-sans); color: var(--text-900); background: var(--background); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; }
button:disabled { opacity: .45; cursor: not-allowed; }
h1, h2, h3, h4 { font-family: var(--font-sans); letter-spacing: -.025em; color: var(--text-900); }
svg { flex-shrink: 0; }
p { text-wrap: pretty; }
.app-layout { display: flex; width: 100%; max-width: none; min-height: calc(100dvh - 64px); height: auto; margin: 0; padding: 0; align-items: flex-start; }
.app-main { flex: 1; width: 0; min-width: 0; margin: 0; display: flex; flex-direction: column; overflow: visible; }
.app-content { flex: 1; width: 100%; min-width: 0; max-width: var(--layout-max, 1600px); padding: 22px 28px; margin: 0 auto; overflow: visible; }
.app-content > .page-container { max-width: 1040px; padding: 0; margin: 0 auto; width: 100%; }
.app-content > .admin-container { max-width: 1360px; padding: 0; margin: 0 auto; width: 100%; }
/* Navigation: one flat rail, no promotional surfaces or decorative stripes. */
.app-sidebar { position: sticky; top: 0; flex: 0 0 var(--rail-width); width: var(--rail-width); height: 100dvh; padding: 0 12px; display: flex; flex-direction: column; background: var(--sidebar); border: 0; border-right: 1px solid var(--border-200); box-shadow: none; transition: width .18s, flex-basis .18s; z-index: 45; overflow: hidden; }
.sidebar-header { height: 76px; min-height: 76px; padding: 0 6px; gap: 8px; border: 0; display: flex; align-items: center; }
.sidebar-logo { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.sidebar-logo-icon { display: block; width: 28px; height: 28px; border-radius: 7px; object-fit: contain; box-shadow: none; flex-shrink: 0; }
.sidebar-logo-text { font-size: 16px; font-weight: 600; color: var(--text-900); white-space: nowrap; letter-spacing: -.04em; }
.sidebar-collapse-btn { display: flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 30px; border: 0; border-radius: 5px; color: var(--text-500); background: transparent; opacity: 1; cursor: pointer; }
.sidebar-collapse-btn:hover { background: var(--bg-300); color: var(--text-900); }
.sidebar-nav { padding: 8px 0; overflow-y: auto; flex: 1; min-height: 0; }
.sidebar-group-title { margin: 0; padding: 8px 12px; font-size: 11px; font-weight: 500; line-height: 20px; letter-spacing: .08em; color: var(--text-500); text-transform: none; }
.sidebar-group-title-secondary { margin-top: 24px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; min-height: 40px; height: auto; margin: 3px 0; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); color: var(--text-600); background: transparent; box-shadow: none; font-size: 13px; font-weight: 400; line-height: 22px; text-decoration: none; transition: color .15s, background .15s; }
.sidebar-item > svg { width: 17px; height: 17px; color: inherit; opacity: .8; stroke-width: 1.65; }
.sidebar-item:hover { background: var(--bg-300); color: var(--text-900); transform: none; }
.sidebar-item-active, .sidebar-item-active:hover { color: var(--brand-700); background: var(--brand-100); font-weight: 600; box-shadow: none; }
/* 2026-11-07：深色下 brand-700 在深绿底上只有 3.91:1，提到 brand-800。
   这条必须放在 design-system（无 @layer），否则会被 style.css 的 legacy 层压住。 */
[data-theme="dark"] .sidebar-item-active,
[data-theme="dark"] .sidebar-item-active:hover { color: var(--brand-800); }
[data-theme="dark"] .sidebar-item-active .sidebar-badge { color: var(--brand-800); }
.sidebar-item::before, .sidebar-item::after, .sidebar-item-active::before, .sidebar-item-active::after { content: none; display: none; }
.sidebar-footer { padding: 12px 0 16px; border-top: 1px solid var(--border-200); background: transparent; flex-shrink: 0; }
.theme-toggle { width: 100%; height: 36px; padding: 8px 12px; gap: 10px; justify-content: flex-start; background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--text-600); font-size: 12px; box-shadow: none; }
.theme-toggle:hover { background: var(--bg-300); }
.sidebar-user { display: flex; gap: 10px; align-items: center; margin: 8px 0 0; padding: 8px 10px; border: 0; background: transparent; box-shadow: none; border-radius: var(--radius-sm); }
.sidebar-user:hover { background: var(--bg-300); }
.sidebar-user-avatar, .toolbar-user-avatar { width: 30px; height: 30px; flex: 0 0 30px; background: var(--bg-300); color: var(--text-600); border: 1px solid var(--border-200); box-shadow: none; border-radius: 50%; font-size: 12px; }
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-size: 12px; color: var(--text-800); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-sub { font-size: 11px; color: var(--text-500); line-height: 1.6; }
.app-sidebar.collapsed { width: var(--rail-collapsed); flex-basis: var(--rail-collapsed); padding: 0 10px; }
.app-sidebar.collapsed .sidebar-header { height: 92px; min-height: 92px; flex-direction: column; justify-content: center; padding: 10px 0; gap: 4px; }
.app-sidebar.collapsed .sidebar-logo { flex: 0; }
.app-sidebar.collapsed .sidebar-collapse-btn { display: flex; height: 24px; flex: 0 0 24px; transform: rotate(180deg); }
.app-sidebar.collapsed .sidebar-logo-text, .app-sidebar.collapsed .sidebar-item-text, .app-sidebar.collapsed .sidebar-group-title, .app-sidebar.collapsed .sidebar-user-info, .app-sidebar.collapsed .theme-toggle-text { display: none; }
.app-sidebar.collapsed .sidebar-item { display: flex; width: 44px; min-height: 42px; justify-content: center; padding: 10px; margin: 4px 0; }
.app-sidebar.collapsed .sidebar-footer { padding: 12px 0; }
.app-sidebar.collapsed .theme-toggle, .app-sidebar.collapsed .sidebar-user { width: 44px; justify-content: center; padding: 7px; }
.app-sidebar.collapsed .sidebar-user-avatar { display: flex; }
.sidebar-tip { background: var(--text-900); color: var(--surface); border: 0; border-radius: 5px; box-shadow: var(--shadow-md); font: 12px/1.5 var(--font-sans); }
/* Header and controls */
.app-toolbar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 64px; min-height: 64px; padding: 12px 32px; background: var(--surface); border: 0; border-bottom: 1px solid var(--border-200); box-shadow: none; backdrop-filter: none; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.view-title { font-size: 13px; color: var(--text-600); font-weight: 500; gap: 9px; }
.view-title svg { color: var(--text-500); }
.toolbar-right { margin-left: auto; }
#toolbarAuthArea { display: flex; align-items: center; gap: 10px; }
.toolbar-user-trigger { border: 0; background: transparent; border-radius: var(--radius-sm); gap: 8px; padding: 3px 6px; color: var(--text-700); box-shadow: none; }
.toolbar-user-name { max-width: 120px; font-size: 12px; }
.toolbar-user-dropdown { background: var(--surface); border: 1px solid var(--border-200); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; height: auto; padding: 7px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; line-height: 20px; box-shadow: none; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { transform: none; box-shadow: none; }
.btn-primary { color: var(--primary-foreground); background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { color: var(--primary-foreground); background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline { color: var(--text-700); border-color: var(--border-300); background: var(--surface); }
.btn-outline:hover, .btn-ghost:hover { background: var(--bg-200); border-color: var(--border-300); }
.btn-ghost { color: var(--text-600); background: transparent; }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: 12px; }
.btn-lg { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn-icon, .btn-fav { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; border: 1px solid transparent; border-radius: 5px; color: var(--text-500); background: transparent; }
.btn-icon:hover, .btn-fav:hover { background: var(--bg-200); color: var(--brand-700); }
.btn-link { color: var(--brand-700); font-size: 12px; font-weight: 500; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }
/* 深色下 12px 的文字链接需要更亮的绿色，brand-700 只有 4.15:1。 */
[data-theme="dark"] .btn-link { color: var(--brand-800); }
[data-theme="dark"] .btn-link:hover { color: var(--brand-900); }
.form-input, .form-select, .toolbar-select, .mobile-filter-input { min-width: 0; min-height: 40px; padding: 9px 12px; font: 13px/20px var(--font-sans); color: var(--text-800); background: var(--surface); border: 1px solid var(--border-300); border-radius: var(--radius-sm); box-shadow: none; }
.form-input:focus, .form-select:focus, .toolbar-select:focus, .mobile-filter-input:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--focus-ring); }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-700); margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }
.form-input::placeholder, .search-box input::placeholder { color: var(--text-400); }
.search-box { height: 40px; width: min(400px, 100%); min-width: 0; background: var(--surface); border: 1px solid var(--border-300); border-radius: var(--radius-sm); box-shadow: none; }
.search-box:focus-within { border-color: var(--brand-400); box-shadow: var(--focus-ring); }
.search-box input { width: 100%; min-width: 0; font-size: 13px; color: var(--text-800); height: 100%; padding: 0 12px 0 38px; background: transparent; }
.search-icon { color: var(--text-500); width: 16px; height: 16px; left: 13px; }
.mobile-hamburger { display: none; }
/* Job index: title, dedicated search/action row, then the data. */
/* 2026-10-09 密度收紧：岗位列表是高频筛选工具，标题区压成一行级别，
   不要再用落地页式大标题把首屏吃掉 1/4。 */
.jobs-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.jobs-heading h1 { font-size: 20px; line-height: 1.4; font-weight: 600; margin: 0 0 4px; }
.jobs-heading p { font-size: 12px; line-height: 1.6; color: var(--text-500); margin: 0; }
.jobs-heading-note { font-size: 12px; white-space: nowrap; color: var(--text-500); padding-bottom: 3px; }
.jobs-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.jobs-controls .search-box { flex: 1; max-width: 400px; }
.jobs-controls .toolbar-select { margin-left: auto; width: 104px; cursor: pointer; }
.mobile-filter-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; font: 13px/20px var(--font-sans); border: 1px solid var(--border-300); border-radius: var(--radius-sm); color: var(--text-700); background: var(--surface); cursor: pointer; }
.mobile-filter-btn:hover { background: var(--bg-200); }
.view-switcher { display: inline-flex; height: 40px; padding: 3px; gap: 2px; background: var(--bg-200); border: 1px solid var(--border-200); border-radius: var(--radius-sm); }
.view-switch-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: transparent; color: var(--text-500); border: 0; border-radius: 4px; cursor: pointer; }
.view-switch-btn-active { color: var(--brand-700); background: var(--surface); box-shadow: 0 1px 3px #20303910; }
.table-wrapper { position: relative; width: 100%; max-width: 100%; overflow: auto; border: 1px solid var(--border-200); border-radius: var(--radius-md); background: var(--surface); box-shadow: none; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--border-300) transparent; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.data-table thead th { height: 42px; padding: 10px 14px; color: var(--text-600); background: var(--bg-200); font-size: 12px; font-weight: 600; border: 0; border-bottom: 1px solid var(--border-200); white-space: nowrap; overflow: hidden; }
.data-table tbody tr td { padding: 13px 14px; line-height: 1.6; color: var(--text-700); background: var(--surface); border: 0; border-bottom: 1px solid var(--border-100); vertical-align: middle; }
/* 2026-10-09：去掉写死的 height:66px —— 行高交给内容撑，配合
   fmtSignupDate 的单行截止格式，常规行稳定在 ~48px、双行标题 ~68px。 */
.jobs-page .data-table td.date-cell { overflow: hidden; }
/* 2026-10-09：列居中类名收编。index.js 生效的是 .text-center（原本只靠
   @layer legacy 兜底，优先级层级混乱），这里给出非分层的正式出处；
   旧的 .td-center 命名保留兼容。 */
.data-table td.text-center, .data-table td.td-center { text-align: center; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--bg-100); }
.data-table tbody tr:nth-child(even) { background: transparent; }
/* 2026-11-07：表头内容改为左对齐，排序箭头紧跟文字；筛选按钮单独推到最右侧。
   之前用 space-between，文字、箭头、按钮三者被平均撑开，箭头会飘到列中间。 */
.data-table .th-content { display: flex; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; }
.data-table .th-content > span { overflow: hidden; text-overflow: ellipsis; }
/* 2026-11-07：表头文字改成真正的 button，键盘 Enter/Space 也能排序；
   外观完全按原来的 span 处理，不引入新的视觉。 */
.data-table .th-sort-btn {
  appearance: none; -webkit-appearance: none;
  border: 0; padding: 0; margin: 0; background: transparent;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.data-table .th-sort-btn:hover { color: var(--text-900); }
.data-table .th-sort-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 2px; }
.th-filter-btn { color: var(--text-400); opacity: .8; width: 22px; height: 22px; margin-left: auto; }
.th-filter-btn:hover, .th-filter-btn.active { color: var(--brand-700); background: var(--brand-50); opacity: 1; }
.jobs-page .data-table th:last-child, .jobs-page .data-table td:last-child { position: sticky; right: 0; border-left: 1px solid var(--border-200); z-index: 2; }
.jobs-page .data-table th:last-child { z-index: 3; }
.job-detail-btn { appearance: none; border: 0; padding: 0; font: 500 13px/1.65 var(--font-sans); text-align: left; color: var(--text-900); background: transparent; cursor: pointer; overflow-wrap: anywhere; }
.job-detail-btn:hover { color: var(--brand-700); text-decoration: underline; }
.job-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.tag, .cat-tag, .staff-tag, .vip-badge { display: inline-flex; align-items: center; padding: 2px 7px; max-width: 100%; min-height: 22px; font-size: 11px; line-height: 18px; font-weight: 400; border: 1px solid var(--border-200); border-radius: 4px; background: var(--bg-100); color: var(--text-600); box-shadow: none; }
/* 2026-10-09：类别列收窄到 96px 后，「医疗卫生招聘」这类 6 字标签放不下，
   加省略号兜底（完整值在筛选与详情里可见）。 */
.cat-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-badge { color: var(--vip-700); background: var(--vip-50); border-color: var(--vip-100); }
.date-start, .date-end, .pagination-info strong, .stat-value, .admin-stat-value { font-variant-numeric: tabular-nums; }
.status-dot { width: 5px; height: 5px; margin-right: 6px; }
.pagination-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border: 0; background: transparent; box-shadow: none; }
.pagination-info { font-size: 12px; color: var(--text-500); }
.pagination-info strong { color: var(--text-700); font-weight: 500; }
.pagination-controls { display: flex; gap: 5px; }
.page-btn { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--border-200); border-radius: 5px; background: var(--surface); color: var(--text-600); font-size: 12px; }
.page-btn.active { background: var(--brand-500); border-color: var(--brand-500); color: var(--primary-foreground); }
.filter-chips-bar { flex-wrap: wrap; gap: 10px; padding: 0 0 10px; border: 0; background: transparent; }
.filter-chip { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); border-radius: 5px; font-size: 12px; }
.list-state { margin-bottom: 12px; padding: 24px; border: 1px solid var(--border-200); border-radius: var(--radius-md); text-align: center; background: var(--surface); color: var(--text-500); }
#listLoading { display: flex; justify-content: center; align-items: center; gap: 10px; }
#listError p { margin: 10px 0 16px; }
.empty-state { padding: 40px 20px; min-height: 140px; }
.empty-state-text { color: var(--text-500); font-size: 14px; }
.card-view { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.job-card { padding: 20px; border: 1px solid var(--border-200); border-radius: var(--radius-md); box-shadow: none; background: var(--surface); cursor: default; }
.job-card:hover { transform: none; box-shadow: none; border-color: var(--border-400); }
.job-card-header { gap: 12px; align-items: flex-start; }
.job-card-title { font-size: 16px; line-height: 1.6; font-weight: 600; }
.job-card-org { margin: 8px 0 12px; font-size: 13px; color: var(--text-500); }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 8px 0; margin: 0; border: 0; }
.job-meta-item { font-size: 12px; color: var(--text-600); white-space: normal; overflow-wrap: anywhere; }
.job-card-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-100); margin-top: 12px; padding-top: 12px; }
.job-card-date { display: flex; flex-wrap: wrap; gap: 5px; font-size: 12px; }
/* Account, membership and administration */
.auth-centered { min-height: calc(100dvh - 230px); padding: 40px 0; display: flex; align-items: center; justify-content: center; }
.auth-centered-inner { width: 100%; max-width: 420px; }
.auth-card { padding: 36px; background: var(--surface); border: 1px solid var(--border-200); border-radius: var(--radius-lg); box-shadow: none; }
.auth-title { font-size: 24px; line-height: 1.4; font-weight: 600; margin: 0 0 28px; text-align: left; }
.auth-desc { color: var(--text-500); font-size: 13px; }
.auth-footer { padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--border-100); font-size: 12px; text-align: left; color: var(--text-500); }
.auth-footer a { color: var(--brand-700); }
/* 2026-10-09：「忘记密码？」此前只有 .text-subtle 灰字，看起来不像可点的链接，
   找回密码入口几乎不可发现。认证卡内的链接统一给品牌色 + 悬停下划线。 */
.auth-card a { color: var(--brand-700); font-weight: 500; text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }
.profile-header { margin: 0 0 24px; padding: 24px; background: var(--surface); border: 1px solid var(--border-200); border-radius: var(--radius-md); box-shadow: none; }
.profile-avatar { background: var(--brand-50); color: var(--brand-700); box-shadow: none; border: 1px solid var(--brand-100); border-radius: 50%; }
.profile-section, .admin-card, .stat-card, .admin-stat-card { background: var(--surface); border: 1px solid var(--border-200); border-radius: var(--radius-md); box-shadow: none; padding: 24px; }
.profile-section-title, .admin-card-title { font-size: 16px; font-weight: 600; color: var(--text-900); margin-bottom: 20px; }
.profile-section { margin-bottom: 20px; }
.profile-tabs, .admin-tabs { display: flex; gap: 20px; flex-wrap: wrap; padding: 0; margin-bottom: 24px; border: 0; border-bottom: 1px solid var(--border-200); background: transparent; border-radius: 0; }
.profile-tab, .admin-tab { padding: 10px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--text-500); box-shadow: none; font-size: 13px; }
.profile-tab.active, .admin-tab.active { border-bottom-color: var(--brand-500); background: transparent; color: var(--brand-700); font-weight: 600; }
.stat-value, .admin-stat-value { font-size: 28px; font-weight: 600; line-height: 1.3; color: var(--text-900); }
.stat-label, .admin-stat-label { color: var(--text-500); font-size: 12px; margin-top: 8px; }
.admin-stat-icon { color: var(--text-500); background: var(--bg-200); border-radius: var(--radius-sm); }
.favorite-item { padding: 16px 0; border: 0; border-bottom: 1px solid var(--border-100); background: transparent; box-shadow: none; gap: 14px; }
.favorite-item-info { min-width: 0; }
.vip-hero { text-align: left; padding: 8px 0 28px; margin-bottom: 24px; border: 0; border-bottom: 1px solid var(--border-200); border-radius: 0; background: transparent; box-shadow: none; }
.vip-hero::before, .vip-hero::after, .benefit-card::before, .vip-step::after { display: none; }
.vip-hero h1 { font-size: 28px; line-height: 1.4; font-weight: 600; margin: 0 0 12px; color: var(--text-900); }
.vip-hero p { font-size: 14px; color: var(--text-500); margin: 0 0 20px; }
.vip-status-card { padding: 20px; border: 1px solid var(--brand-100); border-radius: var(--radius-md); background: var(--brand-50); box-shadow: none; }
.vip-status-title, .vip-status-desc { color: var(--text-700); }
.vip-status-icon { color: var(--brand-700); background: transparent; }
.vip-section-title { font-size: 17px; margin: 20px 0 14px; font-weight: 600; text-align: left; }
.vip-steps, .vip-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.vip-step, .benefit-card { text-align: left; padding: 22px; background: var(--surface); border: 1px solid var(--border-200); border-radius: var(--radius-md); box-shadow: none; }
.benefit-card:hover { transform: none; border-color: var(--border-300); box-shadow: none; }
.vip-step-num { width: 28px; height: 28px; margin: 0 0 16px; border-radius: 5px; background: var(--bg-200); color: var(--text-600); font-size: 13px; box-shadow: none; }
.vip-step-title, .benefit-title { font-size: 14px; font-weight: 600; color: var(--text-800); margin-bottom: 8px; }
.vip-step-desc, .benefit-desc { font-size: 13px; line-height: 1.8; color: var(--text-500); }
.vip-note { padding: 16px 20px; border: 1px solid var(--border-200); border-radius: var(--radius-sm); background: var(--bg-200); color: var(--text-600); font-size: 12px; line-height: 1.8; }
.watch-ad-cta { background: var(--brand-50); border: 1px solid var(--brand-100); box-shadow: none; border-radius: var(--radius-md); }
/* Popovers, dialogs and drawers */
.filter-popup { max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border-200); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.filter-popup-header { padding: 14px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border-200); }
.filter-popup-body { padding: 16px; }
.filter-popup-footer { padding: 12px 16px; background: var(--bg-100); border-top: 1px solid var(--border-200); }
.job-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--border-300); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-900); box-shadow: var(--shadow-lg); }
.job-dialog::backdrop { background: #15252d80; }
.job-dialog-header { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border-bottom: 1px solid var(--border-200); }
.job-dialog-header h2 { flex: 1; margin: 0; font: 600 21px/1.5 var(--font-sans); overflow-wrap: anywhere; }
.job-dialog-header .btn-icon { flex: 0 0 36px; font-size: 24px; }
.job-dialog-body { padding: 24px; }
.job-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
.job-details dt { color: var(--text-500); font-size: 12px; }
.job-details dd { margin: 6px 0 0; overflow-wrap: anywhere; }
.job-detail-text { margin: 20px 0; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-filter-drawer { position: fixed; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(440px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; background: var(--surface); z-index: 1100; transform: translateX(100%); visibility: hidden; transition: transform .2s, visibility .2s; }
.mobile-filter-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-filter-overlay { position: fixed; inset: 0; background: #15252d70; z-index: 1000; opacity: 0; pointer-events: none; }
.mobile-filter-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-filter-drawer-header, .mobile-filter-drawer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 20px; border-bottom: 1px solid var(--border-200); }
.mobile-filter-drawer-footer { border-bottom: 0; border-top: 1px solid var(--border-200); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.mobile-filter-drawer-footer .btn { flex: 1; min-height: 44px; }
.mobile-filter-close { width: 36px; height: 36px; padding: 8px; border: 0; color: var(--text-600); background: transparent; cursor: pointer; }
.mobile-filter-drawer-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.mobile-filter-group { margin-bottom: 24px; }
.mobile-filter-group-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.mobile-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-filter-option { padding: 7px 11px; min-height: 36px; border: 1px solid var(--border-200); border-radius: 5px; background: var(--surface); color: var(--text-600); font: 12px/20px var(--font-sans); cursor: pointer; }
.mobile-filter-option.active { color: var(--brand-700); border-color: var(--brand-300); background: var(--brand-50); }
.mobile-filter-range, .mobile-filter-sort-order { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.mobile-filter-input { width: 100%; }
body.filter-open, body.sidebar-open { overflow: hidden; }
.toast { max-width: calc(100vw - 32px); left: 50%; bottom: 28px; top: auto; right: auto; transform: translate(-50%, 20px); background: var(--text-900); color: var(--surface); border-radius: 7px; box-shadow: var(--shadow-lg); font-size: 13px; z-index: 1200; }
.toast.show { transform: translate(-50%, 0); }
#siteFooter.site-footer { width: 100%; margin: auto 0 0; padding: 20px 32px; border: 0; border-top: 1px solid var(--border-200); background: var(--background); color: var(--text-500); font-size: 11px; text-align: center; flex-shrink: 0; }
#siteFooter .site-footer-slogan, #siteFooter .footer-beian-wrap, #siteFooter .copyright-text { color: var(--text-500); }
#siteFooter .footer-beian-wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
#siteFooter .footer-beian-wrap a, #siteFooter .copyright-text a { color: var(--text-600); }
#siteFooter .beian-divider { margin: 0 2px; }
.bottom-nav { background: var(--surface); border-top: 1px solid var(--border-200); box-shadow: none; backdrop-filter: none; }
.bottom-nav-item { font-size: 11px; color: var(--text-500); }
.bottom-nav-item.active { color: var(--brand-700); }
/* 管理员主题编辑器 */
.theme-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.theme-editor-groups { display: grid; gap: 16px; }
.theme-editor-group { padding: 20px; border: 1px solid var(--border-200); border-radius: var(--radius-md); background: var(--surface); }
.theme-editor-group h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.theme-editor-group > p { margin: 0 0 18px; font-size: 12px; color: var(--text-500); }
.theme-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.theme-field { min-width: 0; }
.theme-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 500; color: var(--text-600); }
.theme-color-control { display: flex; align-items: center; gap: 8px; }
.theme-color-control input[type="color"] { width: 42px; height: 40px; padding: 3px; flex: 0 0 42px; border: 1px solid var(--border-300); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.theme-color-control output { min-width: 0; font: 12px/1.4 var(--font-mono); color: var(--text-500); }
.theme-range-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 72px; gap: 12px; align-items: center; margin: 14px 0; }
.theme-range-row label { font-size: 12px; color: var(--text-600); }
.theme-range-row input[type="range"] { width: 100%; accent-color: var(--primary); }
.theme-range-value { min-height: 34px; padding: 6px 8px; border: 1px solid var(--border-200); border-radius: var(--radius-sm); background: var(--bg-100); color: var(--text-700); text-align: center; font: 12px/20px var(--font-mono); }
.theme-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.theme-save-status { font-size: 12px; color: var(--text-500); }
.theme-preview { position: sticky; top: 84px; overflow: hidden; border: 1px solid var(--border-200); border-radius: var(--radius-lg); background: var(--background); }
.theme-preview-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-bottom: 1px solid var(--border-200); background: var(--surface); }
.theme-preview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.theme-preview-body { display: grid; grid-template-columns: 76px 1fr; min-height: 290px; }
.theme-preview-rail { padding: 14px 8px; background: var(--sidebar); border-right: 1px solid var(--border-200); }
.theme-preview-brand { height: 8px; width: 44px; margin: 0 0 18px; border-radius: 4px; background: var(--text-700); }
.theme-preview-nav { height: 24px; margin: 6px 0; border-radius: var(--radius-sm); background: var(--bg-200); }
.theme-preview-nav.active { background: var(--brand-100); }
.theme-preview-main { padding: 18px; }
.theme-preview-title { width: 54%; height: 12px; border-radius: 4px; background: var(--text-800); }
.theme-preview-copy { width: 72%; height: 7px; margin: 9px 0 18px; border-radius: 4px; background: var(--text-400); }
.theme-preview-search { height: 32px; border: 1px solid var(--border-300); border-radius: var(--radius-sm); background: var(--surface); }
.theme-preview-card { margin-top: 14px; padding: 12px; border: 1px solid var(--border-200); border-radius: var(--radius-md); background: var(--surface); }
.theme-preview-line { height: 7px; margin: 7px 0; border-radius: 4px; background: var(--border-200); }
.theme-preview-line.strong { width: 66%; background: var(--text-600); }
.theme-preview-button { width: 72px; height: 26px; margin-top: 12px; border-radius: var(--radius-sm); background: var(--primary); }
[data-ui-density="compact"] .app-content { padding-top: 16px; padding-bottom: 16px; }
[data-ui-density="compact"] .data-table tbody tr td { padding-top: 9px; padding-bottom: 9px; }
[data-ui-density="compact"] .profile-section, [data-ui-density="compact"] .admin-card { padding: 20px; }
[data-ui-density="spacious"] .app-content { padding-top: 30px; padding-bottom: 30px; }
[data-ui-density="spacious"] .data-table tbody tr td { padding-top: 18px; padding-bottom: 18px; }
[data-ui-density="spacious"] .profile-section, [data-ui-density="spacious"] .admin-card { padding: 30px; }
@media (min-width: 601px) {
  .jobs-page[data-jobs-view="card"] .card-view { display: grid !important; }
  .jobs-page[data-jobs-view="card"] .table-wrapper { display: none !important; }
  .jobs-page[data-jobs-view="table"] .card-view { display: none !important; }
  .jobs-page[data-jobs-view="table"] .table-wrapper { display: block !important; }
}
@media (max-width: 1100px) {
  .app-content { padding: 20px; }
  .app-toolbar { padding-inline: 24px; }
  .jobs-heading-note { display: none; }
  .vip-steps, .vip-benefits { gap: 12px; }
  .vip-step, .benefit-card { padding: 18px; }
  .theme-editor-layout { grid-template-columns: 1fr; }
  .theme-preview { position: static; }
}
@media (max-width: 900px) {
  .app-layout { display: block; padding: 0; min-height: calc(100dvh - 100px); }
  .app-main { width: 100%; margin: 0; }
  .app-sidebar, .app-sidebar.collapsed { position: fixed; inset: 0 auto 0 0; width: 244px; max-width: 85vw; height: 100dvh; padding: 0 12px; transform: translateX(-100%); transition: transform .2s; z-index: 1002; }
  .app-sidebar.open, .sidebar-open .app-sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .app-sidebar.collapsed .sidebar-header { flex-direction: row; height: 76px; min-height: 76px; padding: 0 6px; gap: 8px; }
  .app-sidebar.collapsed .sidebar-logo { flex: 1; }
  .app-sidebar.collapsed .sidebar-logo-text, .app-sidebar.collapsed .sidebar-item-text, .app-sidebar.collapsed .sidebar-user-info, .app-sidebar.collapsed .theme-toggle-text { display: block; }
  .app-sidebar.collapsed .sidebar-group-title { display: block; }
  .app-sidebar.collapsed .sidebar-item, .app-sidebar.collapsed .theme-toggle, .app-sidebar.collapsed .sidebar-user { width: 100%; justify-content: flex-start; padding: 9px 12px; }
  .sidebar-collapse-btn, .app-sidebar.collapsed .sidebar-collapse-btn { display: none; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 1001; background: #15252d70; }
  .mobile-hamburger { display: inline-flex; }
  .app-toolbar { height: 60px; min-height: 60px; padding: 10px 20px; gap: 12px; }
  .app-content { padding: 20px 16px; }
  .jobs-heading h1 { font-size: 19px; }
  #siteFooter.site-footer { padding: 20px; }
}
@media (max-width: 600px) {
  .app-toolbar { padding: 10px 12px; }
  .toolbar-left, .toolbar-right { gap: 8px; }
  .view-title { font-size: 12px; }
  .toolbar-user-name, .toolbar-admin-link { display: none !important; }
  .toolbar-login-btn { min-height: 36px; padding: 7px 10px; font-size: 12px; }
  .app-content { padding: 16px 14px; }
  .jobs-heading { margin-bottom: 14px; }
  .jobs-heading h1 { font-size: 18px; margin-bottom: 4px; }
  .jobs-heading p { max-width: 28em; font-size: 12px; }
  .jobs-controls { gap: 8px; margin-bottom: 12px; }
  .jobs-controls .search-box { flex: 1; width: 0; min-width: 0; }
  .jobs-controls .toolbar-select, .jobs-controls .view-switcher { display: none; }
  .search-box, .mobile-filter-btn { height: 44px; min-height: 44px; }
  .search-box input, .form-input, .form-select, .mobile-filter-input { font-size: 16px; }
  .search-box input::placeholder { font-size: 12px; }
  .table-wrapper { display: none !important; }
  .card-view { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .job-card { padding: 18px; }
  .job-card-title { font-size: 16px; }
  .job-card-header .btn-fav { flex: 0 0 40px; height: 40px; }
  .pagination-bar { justify-content: center; gap: 12px; padding: 14px 0; }
  .pagination-bar > .pagination-info { flex: 1; }
  .pagination-bar > .pagination-info:last-child { text-align: right; }
  .pagination-controls { order: 3; flex-basis: 100%; justify-content: center; gap: 4px; }
  .page-btn { min-width: 32px; height: 40px; }
  .auth-centered { min-height: calc(100dvh - 240px); padding: 16px 0; align-items: flex-start; }
  .auth-card { padding: 24px; }
  .auth-title { font-size: 23px; }
  .profile-header, .profile-section, .admin-card { padding: 20px; }
  .profile-tabs, .admin-tabs { gap: 16px; }
  .favorite-item { flex-wrap: wrap; }
  .favorite-item-info { flex-basis: 100%; }
  .vip-hero h1 { font-size: 24px; }
  .vip-steps, .vip-benefits { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vip-step { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; }
  .vip-step-num { grid-row: 1 / 3; margin: 0; }
  .vip-step-desc { grid-column: 2; }
  .job-dialog-header, .job-dialog-body { padding: 20px; }
  .job-details { grid-template-columns: 1fr; gap: 16px; }
  #siteFooter.site-footer { padding: 20px 16px calc(80px + env(safe-area-inset-bottom)); }
  #siteFooter .footer-beian-wrap { flex-direction: column; gap: 2px; }
  #siteFooter .beian-divider { display: none; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .theme-color-grid { grid-template-columns: 1fr; }
  .theme-range-row { grid-template-columns: 1fr 64px; }
  .theme-range-row label { grid-column: 1 / -1; }
  .theme-editor-group { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

