/* JobLook 网页版样式 —— 招聘板（2026-09-22 改版）。
 *
 * 【色值全部来自 mobile/src/lib/theme.ts】页面灰 / 卡片白 / 描边 / 三档文字 / 主色与主色淡底 /
 * 急招红 / 置顶琥珀 / 待遇绿。网站和 App 并排放在一起要看得出是同一个产品。
 * 唯一的例外是行的悬停底 #F8FAFF（App 没有鼠标悬停这回事，设计稿定的）。
 *
 * 【三条硬规矩照旧成立】
 *   1. 琥珀 = 「商家为这个位置付过钱」，只用于置顶。
 *   2. 拨号绿（theme.ts 的 callGreen）= 「按这里可以拨号」。**那个色值网站上一个字节都不许出现** —— 网站没有拨号按钮
 *      （号码根本不下发）。「下载 App」的按钮用主色蓝。淡绿的待遇标签只读不按，照旧。
 *   3. 红 --danger 只有一个，急招标签用它。
 *
 * 【断点】≥1024 电脑（左栏 236 · 主栏 · 右栏 280）；640–1023 平板（左栏收成筛选条、右栏挪到列表下）；
 * <640 手机（三行的职位行、底部固定的下载条）。
 *
 * 【flex 不用 gap】微信内置浏览器是系统 WKWebView，停在 iOS 14.4 以下的机器上 flex 的 gap 整个失效、
 * 间距塌成 0 而且不报错。所以下面 flex 容器的间距一律用 margin；grid 的 gap 没有这个问题（2017 年就有），照用。
 *
 * 【只有一份 CSS，没有构建步骤】没有 web font：中文走系统字（苹方 / 思源黑 / 微软雅黑）。
 */

:root {
  --primary: #2563EB;
  --primary-tint: #EFF6FF;
  --primary-tint-border: #BFD3FB;
  --accent-tint: #FEF3C7;
  --accent-text: #92580B;
  --benefit-tint: #E6F4EA;
  --benefit-text: #1F662C;
  --urgent-tint: #FDE7E7;
  --danger: #C42127;
  --tag-bg: #EBEEF2;
  --text: #101828;
  --text-secondary: #475467;
  --text-muted: #646B78;
  --placeholder: #C3C7CF;
  --border: #E3E7EE;
  --page: #F5F6F8;
  --card: #FFFFFF;
  --hover: #F8FAFF;
  --on-primary: #FFFFFF;
  --r-sm: 8px;
  --r-md: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
svg { display: inline-block; vertical-align: middle; }

/* [hidden] 要真的藏住：下面几个 display:flex 的容器会盖掉浏览器给 [hidden] 的默认 display:none */
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 屏幕阅读器专用：视觉上不占位，仍在焦点顺序里（三个面板开关的 checkbox 用它） */
.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;
}

/* ===================== 按钮 ===================== */
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--r-sm);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); }
.btn-primary:hover { background: #1D4ED8; border-color: #1D4ED8; }
.btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--hover); }
.btn-primary.block, .btn-outline.block { display: flex; width: 100%; margin-top: 12px; min-height: 44px; }
.btn-primary:active, .btn-outline:active { opacity: 0.8; }

/* ===================== 顶栏 ===================== */
.site-header {
  /* -webkit- 那一行不能省：iOS 12 的 WebKit 只认带前缀的写法，不带前缀时整条声明作废 */
  position: -webkit-sticky;
  position: sticky;
  top: 0; z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; height: 64px; }
.wordmark { color: var(--primary); font-weight: 800; font-size: 20px; white-space: nowrap; letter-spacing: 0.2px; }
.site-search { display: flex; flex: 1 1 auto; max-width: 560px; margin: 0 24px; min-width: 0; }
.site-search input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm);
  font: inherit; font-size: 15px; color: var(--text); background: var(--card);
  -webkit-appearance: none; appearance: none; outline: 0;
}
.site-search input:focus { border-color: var(--primary); }
.site-search input::placeholder { color: var(--placeholder); }
.site-search button {
  flex: none; height: 40px; padding: 0 18px;
  border: 1px solid var(--primary); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--primary); color: var(--on-primary);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.site-nav { display: flex; align-items: center; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--text); margin-left: 24px; }
.site-nav a:hover { color: var(--primary); }
.header-cta { margin-left: 24px; }
.icon-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--text); cursor: pointer; border-radius: var(--r-sm);
}
/* 电脑上搜索框常显，那个开关（#p-search）不起作用 */
#p-search:focus-visible ~ .site-header .search-toggle { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===================== 面包屑 ===================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; padding: 14px 0 6px; font-size: 13px; color: var(--text-muted); }
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { margin: 0 6px; }
.crumbs .cur { color: var(--text); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== 三栏布局 ===================== */
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr) 280px; gap: 24px; align-items: start; padding-bottom: 32px; }
.home-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.detail-layout, .biz-layout, .page-error .layout { grid-template-columns: minmax(0, 1fr) 280px; }
.main { min-width: 0; }
.sidebar, .rail { min-width: 0; }

/* ===================== 左栏：地区树 + 职位分类 ===================== */
.side-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px 0; margin-bottom: 16px; }
.side-title { font-size: 13px; color: var(--text-muted); padding: 8px 16px 4px; }
.side-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; font-size: 14px; color: var(--text); min-height: 36px;
}
.side-item:hover { background: var(--hover); }
.side-item.lvl1 { padding-left: 24px; }
.side-item.lvl2 { padding-left: 36px; }
.side-item.on { background: var(--primary-tint); color: var(--primary); font-weight: 600; }
.side-item .count { color: var(--text-muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.side-item .emoji { margin-right: 8px; font-size: 15px; }
.cats-panel .side-item { justify-content: flex-start; }
.geo-state { border-top: 1px solid var(--border); }
/* 【display 保持 list-item，别改成 flex】给 <summary> 设 display:flex 在部分 WebKit 版本上会让它不再是开合钮，
   点上去什么都不发生，而且不报错（2026-09-07 在 iOS 26 模拟器上验过 list-item 这一版开合正常）。 */
.geo-state > summary {
  display: list-item; list-style: none;
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
}
.geo-state > summary::-webkit-details-marker { display: none; }
.geo-state > summary::marker { content: ''; }
.geo-state > summary .count { float: right; font-size: 12px; font-weight: 400; color: var(--text-muted); }
.geo-state > summary:hover { background: var(--hover); }

/* 手机 / 平板上的筛选条（电脑上不显示） */
.filter-bar { display: none; }

/* ===================== 列表头 / 职位行 ===================== */
.list-head { display: flex; align-items: baseline; flex-wrap: wrap; margin: 6px 0 12px; }
.list-head h1 { font-size: 22px; line-height: 1.3; }
.list-head .count { color: var(--text-muted); font-size: 14px; margin-left: 12px; }

.rows { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.job {
  display: flex; flex-wrap: wrap; align-items: center;
  padding: 12px 16px; color: var(--text);
}
/* 分隔线：不用 .job + .job —— 追加的那一页前面有一个 hidden 的 data-next 哨兵，相邻选择器会漏掉它后面那一行 */
.job:not(:first-of-type) { border-top: 1px solid var(--border); }
.job:hover { background: var(--hover); }
.job:active { background: var(--tag-bg); }
.jt {
  order: 1; flex: 1 1 0; min-width: 0;
  font-size: 16px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.js { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
.js.d { order: 2; flex: 0 0 190px; text-align: right; margin-left: 16px; }
.js.m { display: none; }
.brk { order: 3; flex: 0 0 100%; height: 0; }
.jc, .jp, .jy, .ja { order: 4; font-size: 13px; color: var(--text-muted); white-space: nowrap; margin-top: 6px; }
.jp { order: 5; } .jy { order: 6; } .ja { order: 7; }
.jp::before, .jy::before, .ja::before { content: '·'; margin: 0 6px; color: var(--placeholder); }
.jg { order: 8; margin-left: auto; margin-top: 6px; white-space: nowrap; }
.jg .tag {
  display: inline-block; background: var(--benefit-tint); color: var(--benefit-text);
  font-size: 12px; font-weight: 600; line-height: 18px; padding: 1px 7px; border-radius: 6px; margin-left: 6px;
}
.badge {
  display: inline-block; vertical-align: 2px;
  font-size: 12px; font-weight: 700; line-height: 16px; padding: 1px 6px; border-radius: 6px; margin-right: 6px;
}
.badge.pin { background: var(--accent-tint); color: var(--accent-text); }
.badge.urgent { background: var(--urgent-tint); color: var(--danger); }
/* 详情页两张小表：行矮一点，薪资列窄一点 */
.rows.small .job { padding: 10px 12px; }
.rows.small .jt { font-size: 15px; }
.rows.small .js.d { flex-basis: 110px; }
.rows.small .jg { display: none; }

/* 翻页（电脑 / 平板）与加载更多（手机） */
.pager { display: flex; justify-content: center; align-items: center; margin: 16px 0 8px; font-size: 14px; }
.pager .pg { color: var(--primary); padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); }
.pager .pg:hover { background: var(--hover); }
.pager .pg.off { color: var(--placeholder); border-color: transparent; background: transparent; }
.pager .pg-cur { color: var(--text-secondary); margin: 0 16px; }
.footer-slot { display: none; min-height: 52px; align-items: center; justify-content: center; padding: 16px 0; }
.more-link { font-size: 15px; font-weight: 600; color: var(--primary); padding: 12px 16px; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 48px 16px; }
.empty .t { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.empty .h { margin-top: 6px; font-size: 14px; color: var(--text-muted); }

/* ===================== 右栏卡片 ===================== */
.rail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; margin-bottom: 16px; }
.rail-card .t { display: flex; align-items: center; font-size: 16px; font-weight: 700; }
.rail-card .t svg { margin-right: 6px; color: var(--primary); }
.rail-card .p { margin-top: 8px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.rail-card .hint { margin-top: 8px; font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.5; }
.qr { display: flex; justify-content: center; margin-top: 12px; }
.qr svg { width: 160px; height: 160px; display: block; }
.chips { display: flex; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 12px; margin: 0 8px 8px 0; font-size: 14px; color: var(--text); min-height: 36px;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-count { color: var(--text-muted); font-size: 12px; margin-left: 6px; }
.chips.small { margin-top: 10px; }
.chips.small .chip { padding: 5px 10px; font-size: 13px; min-height: 30px; margin: 0 6px 6px 0; }

/* ===================== 首页 ===================== */
.home-h1 { font-size: 24px; margin-top: 20px; }
.home-sub { color: var(--text-secondary); margin: 4px 0 20px; font-size: 15px; }
.home-sec { margin-bottom: 28px; }
.sec-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; }
.more { color: var(--primary); font-size: 14px; font-weight: 500; display: inline-block; }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat-cell {
  display: flex; align-items: center; min-height: 48px; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; color: var(--text); overflow: hidden;
}
.cat-cell:hover { border-color: var(--primary); color: var(--primary); background: var(--hover); }
.cat-cell .emoji { font-size: 20px; margin-right: 8px; flex: none; }
.cat-cell .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-home { margin-top: 20px; }

/* ===================== 详情页 ===================== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); }
.detail-card { padding: 20px 24px; }
.d-title { font-size: 24px; line-height: 1.35; font-weight: 700; }
.d-title .badge { vertical-align: 4px; }
.d-shop { margin-top: 4px; color: var(--text-secondary); font-size: 15px; }
.d-salary { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; }
.salary-text { font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.kind-chip { background: var(--tag-bg); color: var(--text-secondary); font-size: 13px; font-weight: 600; border-radius: 6px; padding: 2px 8px; margin-left: 10px; }
.d-meta { margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.d-meta span + span::before { content: '·'; margin: 0 8px; color: var(--placeholder); }

.contact-block {
  display: flex; align-items: flex-start;
  background: var(--primary-tint); border: 1px solid var(--primary-tint-border); border-radius: var(--r-md);
  padding: 16px; margin: 16px 0;
}
.contact-block .lock { flex: none; color: var(--primary); margin-right: 12px; margin-top: 2px; }
.cb-body { flex: 1; min-width: 0; }
.cb-title { font-size: 16px; font-weight: 700; color: var(--text); }
.cb-text { margin: 6px 0 12px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.cb-line { font-size: 15px; font-weight: 700; color: var(--primary); }

.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--border); }
.row { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.row.wide { grid-column: 1 / -1; }
.row .k { width: 80px; flex: none; font-size: 14px; line-height: 24px; color: var(--text-secondary); }
.row .v { flex: 1; min-width: 0; font-size: 15px; line-height: 24px; color: var(--text); overflow-wrap: anywhere; }
/* 详情页**不许截断**（截一半就是把人指到别处去）；补充说明保留换行 */
.row .v.desc { white-space: pre-wrap; word-break: break-word; line-height: 1.75; }
.row .tags { display: flex; flex-wrap: wrap; }
.row .tag { background: var(--tag-bg); color: var(--text-secondary); font-size: 14px; border-radius: 6px; padding: 3px 10px; margin: 0 8px 6px 0; }
.row .cat-tag { display: inline-block; background: var(--primary-tint); color: var(--primary); font-size: 14px; font-weight: 600; border-radius: 6px; padding: 2px 8px; }

.related { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.rel .sec-title { font-size: 16px; margin-bottom: 8px; }
.rel .more { margin-top: 8px; }
.rel-empty { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; font-size: 14px; color: var(--text-muted); text-align: center; }
.foot { text-align: center; color: var(--text-muted); font-size: 13px; margin: 20px 0; line-height: 2; }
.foot .legal { text-decoration: underline; color: var(--text-muted); padding: 4px; }
.mobile-bar { display: none; }

/* ===================== 我要招人 ===================== */
.biz-layout h1 { font-size: 24px; margin: 18px 0 14px; }
.biz-card-hero { padding: 20px 24px; }
.biz-card-hero .lead { font-size: 17px; font-weight: 600; line-height: 1.6; }
.biz-points { margin: 12px 0 0; padding-left: 20px; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.biz-points li { margin: 4px 0; }
.biz-layout .sec-title { margin: 24px 0 12px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price-card { padding: 16px; }
.p-name { font-size: 15px; font-weight: 600; }
.p-price { font-size: 24px; font-weight: 700; color: var(--primary); margin-top: 6px; }
.p-dur { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.p-note { margin-top: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.biz-download { padding: 20px 24px; margin-top: 16px; text-align: center; }
.biz-download .t { font-size: 18px; font-weight: 700; }
.biz-download .p { margin-top: 6px; color: var(--text-secondary); font-size: 14px; }
.biz-download .btn-primary { margin-top: 12px; min-height: 44px; }

/* ===================== 404 / 提示页 ===================== */
.empty-card { text-align: center; padding: 48px 24px; margin-top: 20px; }
.empty-card .t { font-size: 18px; font-weight: 700; color: var(--text); }
.empty-card .h { margin: 6px 0 16px; font-size: 14px; color: var(--text-muted); }

/* ===================== 页脚 ===================== */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 32px; font-size: 14px; color: var(--text-secondary); line-height: 2; }
.site-footer a:hover { color: var(--primary); }
.site-footer .foot-line { color: var(--text-muted); font-size: 13px; }

/* ===================== 面板开合（手机 / 平板）=====================
   隐藏 checkbox + label，没有 JS 也能开合。面板必须是那几个 input 的**后继**（同级或其子孙），
   `~` 才选得中 —— 改模板结构时这一条会静默失效，tests/test_web.py 有一条用例查它。 */
#p-geo:focus-visible ~ .filter-bar .filter-btn.geo,
#p-cats:focus-visible ~ .filter-bar .filter-btn.cats { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===================== 平板 640–1023 ===================== */
@media (max-width: 1023px) {
  .layout, .home-layout, .detail-layout, .biz-layout, .page-error .layout { grid-template-columns: minmax(0, 1fr); }
  .site-search { max-width: none; margin: 0 16px; }
  .site-nav a { margin-left: 16px; }
  .header-cta { margin-left: 16px; }
  /* 左栏收成筛选条；面板只在开关打开时出现 */
  .filter-bar { display: flex; margin: 4px 0 12px; }
  .filter-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-right: 8px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm);
    font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; max-width: 60%;
  }
  .filter-btn .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 6px; }
  .filter-btn.geo { color: var(--primary); }
  .filter-btn.cats.on { color: var(--primary); }
  .sidebar .side-panel { display: none; }
  #p-geo:checked ~ .layout .sidebar .geo-panel { display: block; }
  #p-cats:checked ~ .layout .sidebar .cats-panel { display: block; }
  .cats-panel { display: none; }
  #p-cats:checked ~ .layout .sidebar .cats-panel { display: flex; flex-wrap: wrap; padding: 8px 8px 0; }
  #p-cats:checked ~ .layout .sidebar .cats-panel .side-title { flex-basis: 100%; }
  #p-cats:checked ~ .layout .sidebar .cats-panel .side-item {
    border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 12px; margin: 0 8px 8px 0; min-height: 40px;
  }
  .sidebar:empty { display: none; }
  .rail { margin-top: 8px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===================== 手机 <640 ===================== */
@media (max-width: 639px) {
  .header-row { height: 52px; }
  .wordmark { font-size: 18px; }
  .site-nav { display: none; }
  .icon-btn { display: flex; margin-left: auto; }
  .header-cta { margin-left: 4px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
  /* 搜索框收在顶栏下面一行，点放大镜展开 */
  .site-search { display: none; position: absolute; left: 0; right: 0; top: 52px; margin: 0; max-width: none;
                 padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--border); }
  #p-search:checked ~ .site-header .site-search { display: flex; }
  .site-search input { height: 44px; }
  .site-search button { height: 44px; }
  .crumbs { padding-top: 10px; }
  .list-head h1 { font-size: 20px; }
  .filter-btn { max-width: 50%; }

  /* 职位行：三行 —— 标题 / **薪资** · 地点 · 时间 / 分类 · 工作类型 · 标签 */
  .job { padding: 12px 14px; }
  .jt { flex: 0 0 100%; }
  .js.d { display: none; }
  .js.m { display: inline; order: 3; margin-top: 6px; }
  .jp { order: 4; } .ja { order: 5; }
  .brk { order: 6; display: block; }
  .jc { order: 7; } .jy { order: 8; }
  .jg { order: 9; margin-left: 0; }
  .jg .tag { margin-left: 6px; }
  .rows.small .jt { flex-basis: 100%; }

  .pager { display: none; }
  .footer-slot { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-card { padding: 16px; }
  .d-title { font-size: 21px; }
  .salary-text { font-size: 20px; }
  .facts { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .rows.small .js.d { display: none; }
  .qr svg { width: 140px; height: 140px; }
  /* 底部固定的下载条 + 给它留出的 100px */
  .page-detail main { padding-bottom: 100px; }
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--border);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar .btn-primary.block { margin-top: 0; min-height: 48px; font-size: 16px; }
  .mobile-bar .bar-text { text-align: center; font-weight: 700; color: var(--primary); min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .site-footer { padding-bottom: 24px; }
}
