/* =========================================================
   51链职 · 前台视觉系统（专业招聘平台版）
   参考方向：BOSS直聘 / 智联招聘 一类主流招聘平台的观感
   —— 无衬线字体、清晰信息层级、蓝色品牌色 + 橙红薪资强调、
      灰底白卡、8px 圆角、无渐变无装饰，以"扫得动"为第一目标。
   字体：Noto Sans SC（中文）+ Manrope（拉丁/数字）
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --line: #e8ecf3;
  --line-strong: #d8dfea;
  --ink: #0f1b33;
  --ink-2: #5a6478;
  --muted: #8a93a6;
  --muted-2: #b0b7c6;
  --brand: #1f5ae0;
  --brand-dark: #1747b0;
  --brand-soft: #f0f4ff;
  --brand-soft-2: #eaf1ff;
  --salary: #ff5a2c;
  --ok: #12a87a;

  /* 字体 */
  --font: "Noto Sans SC", "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;

  /* 字阶 */
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-26: 26px;
  --fs-28: 28px;

  /* 圆角 */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  /* 阴影：浅灰柔和，只做轻微分層 */
  --sh-1: 0 1px 2px rgba(15, 27, 51, 0.04);
  --sh-2: 0 4px 16px rgba(15, 27, 51, 0.06);
  --sh-3: 0 12px 32px rgba(15, 27, 51, 0.12);

  /* 动效 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;

  --content: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-14);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding-left: 1.2em; }
li { margin-bottom: 6px; }
p { margin: 0; }

: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;
}

.icon {
  width: 16px; height: 16px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-linecap: round;
  stroke-linejoin: round; stroke-width: 1.8;
}

.container { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; }

/* ---------- 2. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand__mark {
  display: grid; width: 32px; height: 32px; place-items: center;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-num);
  font-size: 13px; font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__mark::before { content: "51"; }
.brand__name { font-size: var(--fs-18); font-weight: 700; letter-spacing: -0.01em; }
.brand__sub { display: none; }

.nav__links { display: flex; align-items: center; gap: 32px; flex: 1 1 auto; }
.nav__link {
  position: relative;
  padding: 21px 0;
  color: var(--ink-2);
  font-size: var(--fs-15);
  transition: color var(--dur-fast) ease;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease);
}
.nav__link:hover { color: var(--brand); }
.nav__link.is-active { color: var(--brand); font-weight: 500; }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__icon-btn,
.mobile-menu-btn {
  display: none;
  width: 36px; height: 36px;
  place-items: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-md); color: var(--ink-2);
}

/* ---------- 3. 按钮 ---------- */
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand);
  border-radius: var(--r-md);
  font-size: var(--fs-15); font-weight: 500;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.primary-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.primary-btn:active { transform: translateY(1px); }

.secondary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid transparent; border-radius: var(--r-md);
  font-weight: 500;
}
.secondary-btn:hover { background: var(--brand-soft-2); }

.nav__post {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 18px;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand); border-radius: var(--r-md);
  font-size: var(--fs-14); font-weight: 500;
  transition: background var(--dur-fast) ease;
}
.nav__post:hover { background: var(--brand-dark); }

.outline-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--brand); font-size: var(--fs-14); font-weight: 500;
}
.outline-link .icon { transition: transform var(--dur-base) var(--ease); }
.outline-link:hover .icon { transform: translateX(3px); }

/* ---------- 4b. 搜索框 ---------- */
.portal-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.portal-hero__content {
  display: grid;
  gap: 14px;
  padding: 28px 0 30px;
}
/* 首页检索入口本身就是主角，标题仅保留语义供无障碍与 SEO 读取 */
#portalHeroTitle {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.portal-hero__desc { display: none; }

/* ---------- 4. 数据带 + 搜索区 ---------- */
.portal-stats-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.portal-stats {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.portal-stats__main {
  /* 三个数据点等宽均分，中间 1px 竖线作为分隔列 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 0 18px;
  flex: 1 1 auto;
  max-width: 640px;
}
.portal-stats__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-12); color: var(--muted);
  flex: 0 0 auto;
}
.portal-stats__meta strong {
  display: block;
  font-size: var(--fs-13); color: var(--ink-2); font-weight: 500;
  line-height: 1.4;
}
.portal-stats__meta small { display: block; color: var(--muted); line-height: 1.4; }

.portal-stat {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 0;
  font-size: var(--fs-13);
}
.portal-stat__icon {
  display: grid; width: 32px; height: 32px; place-items: center;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  color: var(--brand);
  background: var(--brand-soft);
}
.portal-stat__icon--blue { color: var(--brand); background: var(--brand-soft); }
.portal-stat__icon--orange { color: var(--salary); background: #fff1ec; }
.portal-stat__icon--indigo { color: #6e4ec8; background: #f1ecff; }
.portal-stat__icon .icon { width: 16px; height: 16px; stroke-width: 2; }
.portal-stat__body { display: inline-flex; flex-direction: column; gap: 1px; }
.portal-stat__num {
  font-family: var(--font-num);
  font-size: var(--fs-16); font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.portal-stat__unit {
  font-family: var(--font); font-size: var(--fs-12); font-weight: 500;
  color: var(--muted); margin-left: 1px;
}
.portal-stat__label { color: var(--muted); font-size: var(--fs-12); line-height: 1.2; }
.portal-stat__divider {
  width: 1px; height: 22px;
  background: var(--line);
}
.portal-stat__pulse {
  position: relative;
  width: 8px; height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ok);
}
.portal-stat__pulse::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: stat-pulse 1.8s ease-out infinite;
}
@keyframes stat-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

.portal-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 132px;
  align-items: stretch;
  height: 52px;
  background: var(--surface);
  border: 1.5px solid var(--brand);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease);
}
.portal-search-box:focus-within { box-shadow: 0 0 0 3px rgba(31, 90, 224, 0.12); }
.portal-search-box__field,
.portal-search-box__city {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  color: var(--muted);
}
.portal-search-box__city { border-left: 1px solid var(--line); }
.portal-search-box input,
.portal-search-box select {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent;
  color: var(--ink); font-size: var(--fs-15);
  outline: none; appearance: none;
}
.portal-search-box input::placeholder { color: var(--muted-2); }
.portal-search-box__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff;
  border: 0; font-size: var(--fs-15); font-weight: 500;
  transition: background var(--dur-fast) ease;
}
.portal-search-box__submit:hover { background: var(--brand-dark); }

.portal-search-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: var(--fs-13); color: var(--muted);
}
.portal-search-links a { color: var(--ink-2); }
.portal-search-links a:hover { color: var(--brand); }
.portal-advanced {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: auto; color: var(--brand);
}

/* ---------- 5. 主体两列 ---------- */
.portal-content { padding: 20px 0 48px; }
.portal-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.portal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--sh-1);
}
.portal-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.portal-panel__head h2 {
  margin: 0;
  font-size: var(--fs-16); font-weight: 600;
}
.portal-panel__head p { margin-top: 4px; font-size: var(--fs-12); color: var(--muted); }
.portal-count {
  font-family: var(--font-num); font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.portal-more { font-size: var(--fs-12); color: var(--muted); }
.portal-more:hover { color: var(--brand); }

/* ---------- 6. 结果条（带了搜索/筛选条件时才出现） ---------- */
.portal-jobs { background: transparent; border: 0; padding: 0; box-shadow: none; }
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 14px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.results-bar[hidden] { display: none; }
.results-bar__count { font-size: var(--fs-14); color: var(--ink-2); }
.results-bar__count .portal-count { font-size: var(--fs-16); }
.results-bar__actions { display: flex; align-items: center; gap: 10px; }
.view-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.view-switch button {
  display: grid; width: 34px; height: 32px; place-items: center;
  background: transparent; border: 0; color: var(--muted);
  transition: all var(--dur-fast) ease;
}
.view-switch button + button { border-left: 1px solid var(--line); }
.view-switch button.is-active { background: var(--brand-soft); color: var(--brand); }
.sort-select {
  height: 32px; padding: 0 26px 0 10px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%235a6478' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font-size: var(--fs-13);
  appearance: none; cursor: pointer;
}

/* ---------- 7. 筛选区 ---------- */
/* 这一行既是筛选卡的标题条，也是整块里"永远可见"的一行——
   职位列表的视图切换 / 排序控件放在这里，而不是留在 .results-bar：
   那条只有在筛选生效时才出现，一清空条件控件就跟着一起消失（2026-09-10 启超报的 bug）。 */
.portal-filter-caption {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 0;
  padding: 7px 16px 6px;
  background: #eff3f9;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  font-size: var(--fs-13); color: var(--muted);
}
/* 标题占住左边，右边的视图切换 / 排序 / 清空条件整组靠右 */
.portal-filter-caption > span:first-child { margin-right: auto; }
.portal-filter-caption > span { display: inline-flex; align-items: center; gap: 6px; }
/* 清空条件前面加一道分隔线：左边是列表控件，右边归筛选自己 */
.portal-filter-caption > a { padding-left: 14px; border-left: 1px solid var(--line-strong); }
.portal-filter-caption a:hover { color: var(--brand); }

.filter-panel {
  padding: 0 16px 12px;
  margin-bottom: 14px;
  background: #eff3f9;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.filter-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 7px 0;
}
.filter-label { display: flex; align-items: center; height: 28px; padding-top: 0; font-size: var(--fs-13); color: var(--muted); }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-option {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 12px;
  background: transparent; border: 0; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: var(--fs-13);
  transition: all var(--dur-fast) ease;
}
.filter-option:empty { display: none; }
.filter-option:hover { background: rgba(15, 27, 51, .07); color: var(--ink); }
.filter-option.is-active {
  background: var(--brand-soft); color: var(--brand); font-weight: 500;
}
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.active-filters:not(.has-items) { display: none; }
.active-filters__label { font-size: var(--fs-12); color: var(--muted); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 6px 0 10px;
  background: var(--brand-soft); border-radius: var(--r-sm);
  color: var(--brand); font-size: var(--fs-12);
}
.filter-chip button { display: grid; width: 16px; height: 16px; place-items: center; background: transparent; border: 0; color: inherit; }
.filter-chip button .icon { width: 11px; height: 11px; }
.filter-reset {
  height: 26px; padding: 0 10px;
  background: transparent; border: 0; color: var(--muted); font-size: var(--fs-12);
}
.filter-reset:hover { color: var(--brand); }

/* ---------- 8. 职位卡片 ---------- */
.job-list { display: grid; gap: 10px; }
.job-card {
  position: relative;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) ease, transform var(--dur-base) var(--ease);
}
.job-card:hover {
  border-color: var(--brand);
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}
/* 顶部行允许换行：双列视图里描述块会落到第二行整行显示 */
.job-card__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
/* 左信息列吃掉剩余宽度（不再把空白交给 space-between 摊开），
   这样右侧描述列的左边缘在所有卡片上对齐，不会随公司名长短左右晃 */
/* 左信息列撑满顶部行高度，右边缘那条线才是"两列之间的分隔线"；
   线不画在右边描述块上——那边有 -webkit-line-clamp 截断，盒高被撑大后截断会失效 */
.job-card__identity {
  display: flex; flex: 1 1 auto; align-self: stretch;
  gap: 12px; min-width: 0;
  padding-right: 14px;
  border-right: 1px solid var(--line-strong);
}
/* 右上的职位描述摘录：与详情页「职位描述」同一份数据（job.duties），
   三行封顶，放不下就出省略号 */
.job-card__desc {
  /* 列宽给到容器的一半（原 300px）：整块连同左侧那条分隔线一起往左挪；
     用百分比不用更大的固定值，窗口变宽时左右两栏的比例才不会跑偏 */
  flex: 0 1 50%;
  min-width: 260px;
  /* 撑满顶部行高度，并让文字在块内上下居中：上下的留白一样多 */
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  /* 与分隔线对称的间距（线在左列右边缘上，左列那边也留了 14px） */
  padding-left: 14px;
}
/* 截断必须单独放一层：它不能跟"撑满高度 + 居中"待在同一个元素上——
   盒子被撑高之后 -webkit-line-clamp 会失效，第 4 行会从省略号下面漏出来 */
.job-card__desc > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: var(--fs-13); line-height: 1.7; color: var(--muted);
}
.job-card__heading { min-width: 0; }
.job-card__title {
  display: inline-block;
  font-size: var(--fs-18); font-weight: 600; color: var(--ink);
  transition: color var(--dur-fast) ease;
}
.job-card:hover .job-card__title { color: var(--brand); }
/* 公司名固定占一行、标签固定占第二行：避免公司名长短导致换行不一致 */
.job-card__company {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  margin-top: 6px;
  font-size: var(--fs-13); color: var(--ink-2);
}
.job-card__company-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.job-card__save {
  display: grid; width: 36px; height: 36px; place-items: center;
  flex: 0 0 auto;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-md); color: var(--muted);
  transition: all var(--dur-fast) ease;
}
.job-card__save:hover { border-color: var(--brand); color: var(--brand); }
/* 已收藏：实心品牌蓝底 + 白色实心图标，跟详情页保持一致，一眼能认出来 */
.job-card__save.is-saved {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.job-card__save.is-saved:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.job-card__save.is-saved .icon { fill: currentColor; stroke-width: 1.2; }

.company-logo {
  display: grid; width: 44px; height: 44px; place-items: center;
  flex: 0 0 auto;
  border-radius: var(--r-md);
  color: #fff; font-size: var(--fs-16); font-weight: 700;
}
.company-logo--indigo { background: var(--brand); }
.company-logo--teal { background: var(--ok); }
.company-logo--orange { background: var(--salary); }
.company-logo--green { background: #12805c; }
.company-logo--blue { background: #0f6fd0; }

.company-verified {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--ok); font-size: var(--fs-12);
}
.company-verified .icon { width: 13px; height: 13px; }
/* 列表卡片上的"优选雇主"标：描金匾额（2026-09-10 启超给参考图指定）。
   尺寸 / 圆角 / 字号沿用上一版，换的是"材质关系"——
   实心金属色块 → 奶油底 + 外深内亮的双线描金边 + 描金字，
   也就是参考图那套"白底 + 金框 + 金字"的关系。
   两点说明：
   1) 参考图是荷叶花边轮廓，但本标高约 22px，花边在这个尺寸下只会糊成锯齿，
      所以小尺寸取的是这套配色的骨架，轮廓仍沿用页面的 4px 圆角；
   2) 这处描边 + 动效是用户明确要求，优先级高于文件开头"无渐变无装饰"的通用基调。 */
.company-premium {
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px;
  border-radius: var(--r-sm);
  /* 奶油底：参考图的底是近白的暖奶油，不是金——金只长在"框"和"字"上。 */
  background: #fffcf3;
  /* 描金字：取框上那道金再压深一档——参考图里的金字是在大尺寸下显厚度的，
     缩到 12px 一味用浅金会发飘、读不清，深一档才立得住（对比度约 4.9:1）。 */
  color: #96650a;
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1.7;
  /* 双线描金边（对应参考图那圈有立体感的金框）：外圈深金 → 留一道奶油缝 → 内圈亮金，
     一亮一暗，远看就是"描上去的两道金线"。用 inset 阴影而不是 border，元素尺寸不变。
     12px 高度下不再给字加压影——那道影只会把笔画边糊掉，反而更飘。 */
  box-shadow:
    inset 0 0 0 1px #c08c22,
    inset 0 0 0 2px #fffcf3,
    inset 0 0 0 3px rgba(224, 176, 74, .9),
    0 1px 2px rgba(150, 105, 20, .16);
}
/* 斜向高光：从左扫到右，扫完停一下再扫（不是一直闪，避免满屏躁动）。
   这次底色是奶油白，不能用白色扫光——白压白等于没有。
   改用淡金带 + 普通混合：扫过底时泛出一层金光，扫过金字时把字提亮一下，
   像是光在匾额上走了一道。 */
.company-premium::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 228, 158, .55) 46%, rgba(255, 248, 226, .8) 53%, rgba(255, 228, 158, .5) 60%, transparent 74%);
  transform: translateX(-130%);
  animation: premium-shine 3.4s cubic-bezier(.45, 0, .35, 1) infinite;
  pointer-events: none;
}
@keyframes premium-shine {
  0%   { transform: translateX(-130%); }
  52%  { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
/* 尊重系统的"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  .company-premium::after { display: none; }
}
.company-premium .icon { width: 12px; height: 12px; fill: currentColor; stroke-width: 1.4; }

.job-card__meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-top: 10px;
  font-size: var(--fs-13); color: var(--muted);
}
.job-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-card__meta .icon { color: var(--muted-2); }

.job-card__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
/* 标签行独占第一行（flex-basis 100%），日期与薪资固定落在第二行：
   原来是"塞得下就一行、塞不下才折"，标签一多一少断点就跟着挪——
   双列视图里同一屏能看到两种底部节奏（有的日期被挤到第二行、有的只有薪资掉下去）。
   固定成两行之后，每张卡底部结构一致，标签多少都只影响第一行内部换行。 */
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.job-tag {
  padding: 4px 8px;
  background: var(--brand-soft); border-radius: var(--r-sm);
  color: var(--brand); font-size: var(--fs-12);
}
.job-tag--accent {
  background: #fff1ec; color: var(--salary);
}
/* 第二行：日期贴左，薪资被顶到最右 */
.job-card__date { font-size: var(--fs-12); color: var(--muted-2); margin-right: auto; }
.job-card__salary {
  font-family: var(--font-num);
  font-size: var(--fs-18); font-weight: 700;
  color: var(--salary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.grid-view .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 双列卡片信息行固定为两行：地区独占第一行，经验和学历统一从第二行开始。 */
.grid-view .job-card__meta { min-height: 38px; align-content: flex-start; }
.grid-view .job-card__meta > span:first-child { flex-basis: 100%; }

/* 双列视图单卡内容区只剩约 370px，放不下"信息列 + 描述列"两列，
   描述改为整行落到公司行下方，行数收到两行 */
.grid-view .job-card__desc {
  order: 9; flex: 0 0 100%; height: 44px; min-height: 44px;
  padding-left: 0; overflow: hidden;
}
.grid-view .job-card__desc > span { -webkit-line-clamp: 2; }
.grid-view .job-card__desc > span { -webkit-line-clamp: 2; }
/* 双列视图描述是整行独占，左列右边不能留竖线（会变成一条悬空的线） */
.grid-view .job-card__identity { align-self: auto; padding-right: 0; border-right: 0; }

.empty-state {
  display: grid; gap: 6px;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}
.empty-state strong { font-size: var(--fs-15); }
.empty-state span { color: var(--muted); font-size: var(--fs-13); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.pagination button {
  min-width: 36px; height: 36px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); color: var(--ink-2);
  font-family: var(--font-num); font-size: var(--fs-13);
  font-variant-numeric: tabular-nums;
  transition: all var(--dur-fast) ease;
}
.pagination button:hover { border-color: var(--brand); color: var(--brand); }
.pagination button.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 9. 侧栏 ---------- */
.portal-side { display: grid; gap: 16px; position: sticky; top: 84px; }

.news-feature {
  display: grid; gap: 6px;
  padding: 14px; margin-bottom: 12px;
  background: var(--brand-soft); border-radius: var(--r-md);
}
.news-feature__label {
  display: inline-block;
  padding: 2px 8px; align-self: start;
  background: var(--brand); border-radius: var(--r-sm);
  color: #fff; font-size: var(--fs-11);
}
.news-feature h3 { margin: 0; font-size: var(--fs-14); font-weight: 600; }
.news-feature p { font-size: var(--fs-12); color: var(--ink-2); }
.news-feature__date { font-size: var(--fs-11); color: var(--muted); }

.news-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-13);
  transition: color var(--dur-fast) ease;
}
.news-list a:last-child { border-bottom: 0; }
.news-list a:hover { color: var(--brand); }
.news-list__tag {
  padding: 2px 0; border-radius: var(--r-sm);
  background: var(--bg); color: var(--muted);
  text-align: center; font-size: var(--fs-11);
}
.news-list time { font-family: var(--font-num); font-size: var(--fs-11); color: var(--muted-2); }

.portal-company-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.portal-company-list a:last-child { border-bottom: 0; }
.portal-company-list a:hover strong { color: var(--brand); }
.portal-company-list .company-logo { width: 40px; height: 40px; font-size: var(--fs-15); }
.portal-company-list strong { display: block; font-size: var(--fs-14); font-weight: 500; transition: color var(--dur-fast) ease; }
.portal-company-list small { color: var(--muted); font-size: var(--fs-12); }
.portal-company-list .icon { color: var(--muted-2); }

.portal-service {
  background: var(--surface);
  border: 1px solid var(--line);
}
.portal-service__orb { display: none; }
.portal-service__icon {
  display: grid; width: 36px; height: 36px; place-items: center;
  margin-bottom: 12px;
  background: var(--brand-soft); border-radius: var(--r-md);
  color: var(--brand);
}
.portal-service h2 { margin: 0 0 6px; font-size: var(--fs-16); font-weight: 600; }
.portal-service p { color: var(--ink-2); font-size: var(--fs-13); margin-bottom: 14px; }
.portal-service a { color: var(--brand); font-size: var(--fs-13); font-weight: 500; }
/* 侧栏静态条目列表 */
.tip-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.tip-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px; align-items: start;
  margin: 0;
}
.tip-list__n {
  display: grid; width: 32px; height: 32px; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--font-num);
  font-size: 12px; font-weight: 700;
  border-radius: var(--r-sm);
}
.tip-list strong {
  display: block; font-size: var(--fs-14); font-weight: 600;
}
.tip-list small {
  display: block; margin-top: 2px;
  font-size: var(--fs-12); color: var(--muted); line-height: 1.6;
}
/* 投递排行的数字：品牌蓝加粗，跟左侧编号呼应，不抢薪资的橙色 */
.tip-list__count {
  color: var(--brand); font-family: var(--font-num); font-weight: 700;
}


/* ---------- 10. 薪资参考 ---------- */
.portal-salary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 24px; align-items: center;
  margin-top: 16px;
}
.portal-salary__copy .portal-kicker {
  display: block; margin-bottom: 6px;
  color: var(--brand); font-size: var(--fs-12);
}
.portal-salary__copy h2 { margin: 0 0 6px; font-size: var(--fs-16); font-weight: 600; }
.portal-salary__copy p { color: var(--ink-2); font-size: var(--fs-13); margin-bottom: 10px; }
.portal-salary__copy a { color: var(--brand); font-size: var(--fs-13); font-weight: 500; }

.portal-salary__bars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; align-items: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.portal-salary__bars span { display: grid; gap: 6px; text-align: center; }
.portal-salary__bars b {
  font-family: var(--font-num); font-size: var(--fs-14); font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.portal-salary__bars i {
  display: block;
  height: calc(var(--h) * 1.1);
  min-height: 16px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.portal-salary__bars small { font-size: var(--fs-11); color: var(--muted); }

/* ---------- 11. 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-md); box-shadow: var(--sh-3);
  font-size: var(--fs-14);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast .icon { color: #6ee7b7; }

/* ---------- 12. 详情页 ---------- */
.breadcrumb-wrap { padding: 14px 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .current { color: var(--ink); }
.breadcrumb .icon { width: 12px; height: 12px; opacity: 0.6; }

.detail-hero-card {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.detail-hero__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.detail-identity { display: flex; gap: 14px; min-width: 0; }
.detail-identity .company-logo { width: 52px; height: 52px; font-size: var(--fs-18); }
.detail-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#detailTitle { margin: 0; font-size: var(--fs-26); font-weight: 700; letter-spacing: -0.01em; }
.detail-badge {
  padding: 3px 8px; border-radius: var(--r-sm);
  background: #fff1ec; color: var(--salary);
  font-size: var(--fs-12);
}
.detail-badge--teal { background: var(--brand-soft); color: var(--brand); }
.detail-company {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin-top: 8px; font-size: var(--fs-14); color: var(--ink-2);
}
.detail-company a { font-weight: 500; color: var(--ink); }
.detail-company a:hover { color: var(--brand); }

.detail-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.detail-salary {
  font-family: var(--font-num);
  font-size: var(--fs-28); font-weight: 700; color: var(--salary);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.detail-save {
  display: grid; width: 44px; height: 44px; place-items: center;
  background: var(--brand-soft); border: 1px solid transparent; border-radius: var(--r-md);
  color: var(--brand);
  transition: all var(--dur-fast) ease;
}
.detail-save:hover { background: var(--brand-soft-2); }
.detail-save.is-saved { background: var(--brand); color: #fff; }
.detail-save.is-saved .icon { fill: currentColor; stroke-width: 1.2; }

/* 点收藏时让书签弹一下，反馈更明确 */
@keyframes savePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.job-card__save.is-pop .icon,
.detail-save.is-pop .icon { animation: savePop 340ms var(--ease); }

.detail-hero__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding-top: 16px;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-14); color: var(--ink-2); }
.detail-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta .icon { color: var(--muted-2); }
.detail-updated { margin-left: auto; font-size: var(--fs-12); color: var(--muted); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px; align-items: start;
  padding: 20px 0 48px;
}
.detail-main { display: grid; gap: 16px; }
.detail-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.detail-card h2 { margin: 0 0 14px; font-size: var(--fs-16); font-weight: 600; }
.detail-card h3 {
  margin: 18px 0 8px;
  font-size: var(--fs-14); font-weight: 500; color: var(--ink);
}
.detail-card h3:first-of-type { margin-top: 0; }
.detail-card ul { color: var(--ink-2); font-size: var(--fs-14); }
.detail-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-card__tags .job-tag { padding: 5px 10px; font-size: var(--fs-13); }

.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.benefit-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--brand-soft); border-radius: var(--r-md);
  color: var(--ink); font-size: var(--fs-13);
}
.benefit-item .icon { color: var(--brand); }

.detail-side { display: grid; gap: 16px; }
.side-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.sticky-card { position: sticky; top: 84px; }
.side-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.side-card__head h3 { margin: 0; font-size: var(--fs-15); font-weight: 600; }
.side-card__more { font-size: var(--fs-12); color: var(--muted); }
a.side-card__more:hover { color: var(--brand); }

.company-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.company-card__name { font-size: var(--fs-15); font-weight: 600; }
.company-facts { display: grid; gap: 8px; }
.company-facts > div { display: flex; justify-content: space-between; gap: 12px; }
.company-fact__label { color: var(--muted); font-size: var(--fs-13); }
.company-fact__value {
  font-size: var(--fs-13); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.side-card .outline-link { margin-top: 14px; }

.map-placeholder {
  height: 150px; margin-bottom: 12px;
  background: linear-gradient(0deg, #eef2f7, #eef2f7), var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
}

.related-job {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.related-job:last-child { border-bottom: 0; }
.related-job__title { display: block; font-size: var(--fs-14); font-weight: 500; }
.related-job:hover .related-job__title { color: var(--brand); }
.related-job__company { display: block; color: var(--muted); font-size: var(--fs-12); }
.related-job__salary {
  flex: 0 0 auto;
  font-family: var(--font-num); font-size: var(--fs-14); font-weight: 700;
  color: var(--salary); font-variant-numeric: tabular-nums;
}

.mobile-apply-bar { display: none; }

/* ---------- 13. 弹窗 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(15, 27, 51, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) ease, visibility var(--dur-base) ease;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  transform: translateY(12px);
  transition: transform var(--dur-base) var(--ease);
}
.modal-backdrop.is-open .modal { transform: none; }
.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { margin: 0; font-size: var(--fs-18); font-weight: 600; }
.modal__head p { margin-top: 4px; color: var(--muted); font-size: var(--fs-13); }
.modal__close {
  display: grid; width: 32px; height: 32px; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--muted);
}
.modal__close:hover { border-color: var(--brand); color: var(--brand); }

.form-grid { display: grid; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field label { color: var(--ink-2); font-size: var(--fs-13); font-weight: 500; }
.form-field input,
.form-field textarea {
  min-height: 44px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); color: var(--ink); font-size: var(--fs-14);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 90, 224, 0.12);
}
.form-note { color: var(--muted); font-size: var(--fs-12); line-height: 1.6; }
.form-submit { width: 100%; margin-top: 4px; }

.success-state { display: none; text-align: center; padding: 20px 0; }
.success-state.is-visible { display: block; }
.success-state__icon {
  display: grid; width: 52px; height: 52px; place-items: center;
  margin: 0 auto 14px;
  background: #e8f8f2; border-radius: 50%; color: var(--ok);
}
.success-state__icon .icon { width: 26px; height: 26px; }
.success-state h3 { margin: 0 0 6px; font-size: var(--fs-18); font-weight: 600; }
.success-state p { color: var(--muted); font-size: var(--fs-13); }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  margin-top: 8px; padding: 36px 0 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: var(--fs-13);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand__name { font-size: var(--fs-16); }
.footer-brand p { margin-top: 10px; color: var(--muted); max-width: 34ch; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links__group h4 { margin: 0 0 12px; font-size: var(--fs-14); font-weight: 600; color: var(--ink); }
.footer-links__group a {
  display: inline-block; padding: 5px 0; color: var(--ink-2);
  transition: color var(--dur-fast) ease;
}
.footer-links__group a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 18px; color: var(--muted); font-size: var(--fs-12);
}

/* ---------- 15. 动效：轻量淡入，不喧宾夺主 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.portal-hero__content { animation: fadeUp 400ms var(--ease) both; }
.portal-jobs { animation: fadeUp 400ms var(--ease) 80ms both; }
.portal-side { animation: fadeUp 400ms var(--ease) 140ms both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1040px) {
  .portal-columns { grid-template-columns: minmax(0, 1fr) 280px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .portal-salary { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__icon-btn { display: grid; }
  .mobile-menu-btn { display: grid; }
  .portal-columns, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .portal-side, .detail-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-card { position: static; }
  .grid-view .job-list { grid-template-columns: minmax(0, 1fr); }
  .nav.is-open .nav__links {
    position: absolute; left: 0; right: 0; top: 64px;
    display: grid; gap: 4px;
    padding: 12px 24px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__link { padding: 10px 0; }
  .nav.is-open .nav__link::after { display: none; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .portal-stats { flex-direction: column; align-items: flex-start; gap: 14px; }
  .portal-stats__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 100%;
    width: 100%;
  }
  .portal-stat__divider { display: none; }
  .portal-search-box { grid-template-columns: minmax(0, 1fr) 110px; height: auto; }
  .portal-search-box__field { grid-column: 1 / -1; height: 48px; border-bottom: 1px solid var(--line); }
  .portal-search-box__city { border-left: 0; height: 48px; }
  .portal-search-box__submit { height: 48px; }
  .portal-stats { gap: 6px 14px; font-size: var(--fs-12); }
  .filter-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .filter-label { padding-top: 0; }
  .job-card { padding: 16px; }
  .job-card__top { flex-direction: row; }
  .job-card__salary { font-size: var(--fs-16); }
  .portal-side, .detail-side { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .detail-hero__top { flex-direction: column; }
  .detail-actions { width: 100%; }
  .detail-actions .primary-btn { flex: 1 1 auto; }
  .detail-updated { margin-left: 0; }
  .mobile-apply-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 16px;
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(15, 27, 51, 0.06);
  }
  .mobile-apply-bar .detail-salary { font-size: var(--fs-20); }
  .mobile-apply-bar .primary-btn { min-height: 40px; padding: 0 20px; }
  body.detail-page { padding-bottom: 72px; }
}

@media (max-width: 420px) {
  .portal-search-box { grid-template-columns: minmax(0, 1fr); }
  .portal-search-box__submit { height: 46px; }
  .company-logo { width: 40px; height: 40px; }
}

/* 福利标签使用薪资标签的强调色；认证与排班在同一行。 */
.job-card__company-tags{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.job-card__company-tags .job-tag--schedule{background:#fff1ec;color:var(--salary)}
.job-tags .job-tag{background:#fff1ec;color:var(--salary)}

/* 交换职位徽章与福利标签颜色 */
.job-card__badge .job-tag--badge{background:#fff1ec;color:var(--salary)}
.job-tags .job-tag{background:var(--brand-soft);color:var(--brand)}

/* 职位名称徽章与标题留出间距，并统一福利标签的文字规格 */
.job-card__badge{display:inline-flex;margin-left:6px;vertical-align:middle}
.job-card__badge .job-tag{padding:4px 8px;font-size:var(--fs-12);line-height:1.2;font-weight:400}

/* 职位名称后的徽章使用蓝色 */
.job-card__badge .job-tag--badge{background:var(--brand-soft);color:var(--brand)}

.brand__logo{display:block;width:128px;height:auto;max-height:42px;object-fit:contain}

.company-logo-image{display:block;width:44px;height:44px;border-radius:var(--r-md);object-fit:cover}

/* 搜索框分隔区域对齐 */
.search-box .search-location, .search-box .search-divider { align-self: center; margin-top: 8px; margin-bottom: 8px; }
.search-box .search-divider { height: 32px; }

/* 投递排行：真实薪资和地区，与职位列表共用格式。 */
#applyRank li { grid-template-columns: 32px minmax(0, 1fr); }
#applyRank li > div { min-width: 0; }
#applyRank .apply-rank__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 3px; }
#applyRank .apply-rank__salary { color: var(--salary); font-family: var(--font-num); font-size: var(--fs-13); font-weight: 600; white-space: nowrap; }
#applyRank .apply-rank__meta small { margin-top: 0; }
#applyRank .apply-rank__location { color: var(--muted); font-size: var(--fs-12); margin-top: 3px; overflow-wrap: anywhere; }

/* 搜索框：搜索与地区之间的分隔线居中，并保留上下留白。 */
.portal-search-box__city { position: relative; border-left: 0; }
.portal-search-box__city::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 32px; background: var(--line); transform: translateY(-50%); }

/* 搜索框整体中线：按表单宽度居中放置短灰色分隔线。 */
.portal-search-box { position: relative; }
.portal-search-box__city { border-left: 0; }
.portal-search-box__city::before { display: none; }
.portal-search-box::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; width: 1px; height: 32px; background: var(--line); transform: translate(-50%, -50%); pointer-events: none; }

/* 地区选择从搜索框中线开始，图标和全国文字靠近中线。 */
.portal-search-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 132px; }
.portal-search-box__city { justify-content: flex-start; padding-left: 12px; padding-right: 12px; }
.portal-search-box__city select { flex: 0 1 auto; width: 72px; }

/* 地区内容紧跟搜索框正中分隔线之后。 */
.portal-search-box::before { background: #d4dbe8; }
.portal-search-box__city { padding-left: 78px; }

.portal-search-box__city { cursor: pointer; }
.portal-search-box__city select { position: relative; z-index: 3; cursor: pointer; pointer-events: auto; }
.portal-search-box__city .icon { position: relative; z-index: 3; pointer-events: none; }

.city-cascade { display: flex; align-items: center; gap: 3px; min-width: 0; flex: 1; }
.city-cascade select { min-width: 0; width: 0; flex: 1 1 0; }
.city-cascade select:disabled { color: var(--muted-2); }

/* 地区按钮式三级面板 */
.city-picker { position: relative; flex: 1; min-width: 0; }
.city-picker__trigger { width: 100%; height: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ink); font-size: var(--fs-15); cursor: pointer; padding: 0; }
.city-picker__trigger .icon { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.city-picker__menu { position: absolute; z-index: 30; top: calc(100% + 10px); left: -12px; display: flex; min-width: 420px; max-height: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 12px 28px rgba(15,27,51,.14); overflow: hidden; }
.city-picker__col { width: 140px; padding: 8px 0; overflow-y: auto; border-right: 1px solid var(--line); }
.city-picker__col:last-child { border-right: 0; }
.city-picker__item { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 36px; padding: 0 14px; border: 0; background: transparent; color: var(--ink-2); text-align: left; font-size: var(--fs-14); cursor: pointer; }
.city-picker__item:hover, .city-picker__item.is-active { background: var(--brand-soft); color: var(--brand); }
.city-picker__arrow { color: var(--brand); font-size: 18px; line-height: 1; }

.city-picker__menu[hidden] { display: none !important; }

/* 三级地区面板需要越出搜索框显示 */
.portal-search-box { overflow: visible; }
.portal-search-box__submit { border-radius: 0 var(--r-lg) var(--r-lg) 0; }

/* 地区下拉面板位于搜索框下方内容之上 */
.portal-search-box { position: relative; z-index: 100; }
.portal-search-box__city { position: relative; z-index: 101; }
.city-picker { position: relative; z-index: 102; }
.city-picker__menu { z-index: 1000; }

/* 顶部搜索下拉层需要高于主内容区域 */
.portal-hero { position: relative; z-index: 1000; }
.portal-hero__content { position: relative; z-index: 1001; }

.city-picker__col[hidden] { display: none !important; }

/* Hide individual non-child options as well as closed panels. */
.city-picker [hidden] { display: none !important; }
.city-picker__menu { min-width: 0; box-sizing: border-box; height: 320px; }
.city-picker__col { flex: 0 0 33.333333%; width: 33.333333%; box-sizing: border-box; min-width: 0; }
.city-picker__col[data-level="3"] .city-picker__arrow { display: none; }
