/* ==========================================================================
   English Recruitment H5 — 用户端样式
   1:1 还原设计图（iPhone 状态栏 / 顶部栏 / 搜索 / 招聘卡片 / 底部 Tabbar）
   纯英文界面 · 移动端优先 · APP 交互规范
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eef3ff;
  --success-bg: #a8e6a3;
  --success-bg-light: #d8f3d6;
  --text: #1a1d21;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --line: #eceef1;
  --line-strong: #e2e4e8;
  --bg: #f5f6f8;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-sheet: 0 -8px 40px rgba(16, 24, 40, .18);
  --tabbar-h: 58px;
  /* 安全区变量：先给「纯 px」兜底值。
     原因（真机实测）：部分安卓 WebView 不认识 env()，
     一旦自定义属性里直接写 env()，--safe-top / --safe-bottom 就会变成无效值，
     所有 calc(... + var(--safe-top)) 也跟着失效 —— 真机表现就是
     「详情页标题被顶栏盖住、底部按钮贴边、列表被 Tabbar 遮住」。
     所以这里先给 0px，再用 @supports 在支持的浏览器上升级为 env()。 */
  --safe-bottom: 0px;
  --safe-top: 0px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

@supports (padding-top: env(safe-area-inset-top)) {
  :root {
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 重要：作者样式中的 display 会覆盖浏览器默认的 [hidden]{display:none}，
   这里显式兜底，保证任何带 hidden 的元素（切换式表单、弹窗、遮罩）都不显示 */
[hidden] { display: none !important; }


html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body { overscroll-behavior-y: none; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { display: block; }

/* ---------------------------------------------------------------- 骨架 */
.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  /* 已去除模拟系统状态栏，这里为刘海屏预留安全区，避免标题被遮挡 */
  padding-top: var(--safe-top);
}

.app-body {
  flex: 1;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
}
.app--no-tabbar .app-body { padding-bottom: calc(var(--safe-bottom) + 16px); }

/* 列表页顶部（标题 + 搜索）：作为一个整体吸顶，滚动时保持不动 */
.list-head {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  background: var(--white);
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

/* 顶部栏 */
.appbar {
  background: var(--white);
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

/* 固定导航栏（详情页顶部返回按钮）：不受页面滚动影响，始终置顶
   注意：不用 var(--safe-top) 做 top，避免个别 WebView 变量失效时导航栏跑位；
   整页只有 body 的 padding-top 一处承担安全区。 */
.appbar--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(16, 24, 40, .05);
}
.appbar--fixed .appbar__inner { padding: 8px 20px; }

/* 固定导航栏下方的正文占位：导航栏高 = 8 + 34 + 8 + 1(border) = 51px。
   这里用硬编码数值（不用 calc/env），保证任何 WebView 上都不会「标题被盖住」。 */
body.has-fixed-nav .app-body { padding-top: 51px; }
.appbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 10px;
}
.appbar__inner--stack { flex-direction: column; align-items: stretch; }
.appbar__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  color: var(--text);
}
.appbar__sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.appbar__actions { display: inline-flex; align-items: center; }
.icon-btn {
  border: 0;
  background: transparent;
  padding: 4px;
  color: #111;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s ease;
}
.icon-btn:active { background: #f1f2f4; }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn--plain svg { fill: none; stroke: currentColor; stroke-width: 2; }

/* 返回按钮（页面栈式导航） */
.nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: -6px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  border-radius: 50%;
  text-decoration: none;   /* 返回键也用 <a> 实现，无 JS 时依然可用 */
}
.nav-back:active { background: #f1f2f4; }
.nav-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- 搜索 */
.searchbar {
  padding: 0 20px 12px;
  background: var(--white);
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.searchbar__field {
  display: flex;
  align-items: center;
  background: #f2f3f5;
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
}
.searchbar__field svg { width: 18px; height: 18px; fill: none; stroke: #9aa1ab; stroke-width: 2; flex: none; }
.searchbar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
  height: 100%;
}
.searchbar input::placeholder { color: #a2a8b1; }

/* ---------------------------------------------------------------- 区块 */
.section { padding: 0 20px; }
.section__title {
  margin: 6px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.section__head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.link { color: var(--primary); font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------ 招聘卡片 */
.job-list { display: flex; flex-direction: column; padding-bottom: 12px; }

.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.job-card:active { transform: scale(.995); box-shadow: 0 1px 2px rgba(16,24,40,.06); }

.job-card__link { display: block; }

.job-card__title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #14171a;
  word-break: break-word;
}
.job-card__company {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.job-card__tags { display: flex; flex-wrap: wrap; margin-top: 14px; }
.salary-tag {
  background: var(--success-bg);
  color: #13381a;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  display: inline-block;
  max-width: 100%;
}
.salary-tag span { display: block; font-weight: 600; margin-top: 2px; }
.salary-tag--note { font-weight: 600; }

.job-card__meta { display: flex; flex-direction: column; margin-top: 14px; }
.meta-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}
.meta-item svg { width: 15px; height: 15px; fill: none; stroke: #6b7280; stroke-width: 1.8; flex: none; }

.job-card__footer { display: flex; justify-content: flex-end; margin-top: 2px; }

/* 按钮 */
.btn {
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  transition: opacity .15s ease, transform .12s ease, background .15s ease;
  color: #fff;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  /* 按钮也可能是 <a>（APPLY 用真实链接实现，保证无 JS 时依然可点） */
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:active { background: var(--primary-dark); }
.btn--block { width: 100%; display: flex; }
.btn--lg { padding: 15px 22px; font-size: 16px; border-radius: 10px; letter-spacing: .3px; }
.btn--ghost {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #d7e2ff;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.btn--ghost:disabled { color: var(--text-tertiary); background: #f3f4f6; border-color: #e5e7eb; }
.btn--grey { background: #eef0f3; color: #333; }
.btn--danger { background: #ef4444; }

/* --------------------------------------------------------- 详情页 */
.detail-head { padding: 6px 20px 14px; }
.detail-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.3px;
  word-break: break-word;
}
.detail-sub { margin: 0 0 2px; font-size: 13px; color: var(--text-secondary); }
.detail-company { margin: 0; font-size: 13px; color: var(--text-secondary); }

.detail-block {
  background: var(--white);
  border-top: 8px solid var(--bg);
  padding: 16px 20px;
}
.detail-block:first-of-type { border-top: 0; }
.detail-meta { display: flex; flex-direction: column; }
.detail-meta .meta-item { font-size: 13.5px; color: #33383f; }
.detail-meta .meta-item svg { width: 16px; height: 16px; stroke: #4b5563; }

.detail-section-title { margin: 0 0 10px; font-size: 15.5px; font-weight: 700; }
.rich-text { font-size: 14px; line-height: 1.72; color: #2c3138; word-break: break-word; }
.rich-text p { margin: 0 0 10px; }
.rich-text ul, .rich-text ol { margin: 0 0 10px; padding-left: 20px; }
.rich-text li { margin-bottom: 6px; }
.rich-text a { color: var(--primary); text-decoration: underline; }
.rich-text img { max-width: 100%; height: auto; border-radius: 8px; }

.rich-text--clamp { max-height: 132px; overflow: hidden; position: relative; }
.rich-text--clamp::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 85%);
}
.more-toggle {
  margin: 2px 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}
.more-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.more-toggle.is-open svg { transform: rotate(180deg); }
.more-wrap { display: flex; flex-direction: column; align-items: flex-end; }

.req-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: #2c3138; }
.req-list li { margin-bottom: 8px; }

/* 底部固定操作条 */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.action-bar__inner { width: 100%; max-width: 520px; }
.action-bar .btn { width: 100%; }
.action-bar--applied .btn { background: #16a34a; }

/* 详情页底部：分享 + APPLY NOW
   用固定行高（而非 padding 撑高）保证两个按钮高度严格一致、垂直居中 */
.action-bar__inner--split {
  display: flex;
  align-items: stretch;
  max-width: 560px;
}
.action-bar__inner--split .btn {
  height: 50px;
  padding: 0 16px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}
.action-bar__inner--split .btn--share {
  flex: 0 0 auto;
  width: auto;
  min-width: 92px;
  font-size: 14px;
  font-weight: 600;
}
.action-bar__inner--split .btn--share svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.action-bar__inner--split .btn--apply {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* --------------------------------------------------------- 弹窗 / Toast */
.mask {
  position: fixed;
  /* 不用 inset 简写：老版本安卓 WebView（< Chrome 87）不认识，会导致遮罩层定位错乱 */
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 80;
  background: rgba(17, 20, 24, .45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mask[hidden] { display: none; }
.spinner {
  width: 30px; height: 30px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 90;
  background: rgba(17, 20, 24, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .18s ease;
}
.modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

.modal__sheet {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-sheet);
  padding-bottom: calc(16px + var(--safe-bottom));
  animation: slideUp .24s cubic-bezier(.22,.61,.36,1);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 6px;
}
.modal__title { margin: 0; font-size: 17px; font-weight: 700; }
.modal__close {
  border: 0; background: #f2f3f5; color: #4b5563;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal__close svg { width: 14px; height: 14px; fill: currentColor; }
.modal__body { padding: 4px 20px 8px; overflow-y: auto; }
.modal__tip { margin: 6px 0 16px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.modal__note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-tertiary); }

.question-list { display: flex; flex-direction: column; }
.question__title {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
}
.question__index {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.question.is-answered .question__index { background: #16a34a; color: #fff; }
.question__options { display: flex; flex-direction: column; }
.option {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.option:active { transform: scale(.99); }
.option::before {
  content: "";
  width: 16px; height: 16px;
  border: 2px solid #cfd4dc;
  border-radius: 50%;
  flex: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.option.is-selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.option.is-selected::before { border-color: var(--primary); box-shadow: inset 0 0 0 3.5px var(--primary); background: #fff; }
/* 无问题时的「继续」按钮 */
.option--primary {
  justify-content: center;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px;
}
.option--primary::before { display: none; }
.option--primary:active { background: var(--primary-dark); }

/* --------------------------------------------- 服务端渲染的申请页（无 JS 可用）
   选项写法：<span class="option-wrap"><input type="radio"><label class="option">…</label></span>
   用「input + label」相邻选择器，避免依赖 :has()（老 WebView 不支持）。 */
.option-wrap { position: relative; display: block; }
.option-wrap input[type="radio"] {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  opacity: 0;
  pointer-events: none;
}
.option-wrap input[type="radio"]:checked + .option {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.option-wrap input[type="radio"]:checked + .option::before {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 3.5px var(--primary);
  background: #fff;
}
.option-wrap input[type="radio"]:focus-visible + .option { outline: 2px solid var(--primary); outline-offset: 2px; }

.apply-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 18px;
}
.apply-card__title { margin: 0 0 6px; font-size: 17px; line-height: 1.45; color: var(--text); }
.apply-card__sub { margin: 0; font-size: 13px; color: var(--text-secondary); }
.apply-form { display: flex; flex-direction: column; }
.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13.5px;
  line-height: 1.5;
}
.form-ok {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 13.5px;
  line-height: 1.5;
}
body.page-apply .app-body { padding-bottom: calc(104px + var(--safe-bottom)); }
/* 详情页底部有固定操作条（分享 + APPLY NOW），正文需要留出等高空间，避免被遮住 */
body.page-detail .app-body { padding-bottom: calc(104px + var(--safe-bottom)); }
.apply-submit { width: 100%; }
.page-section { padding: 18px 20px 0; max-width: 560px; margin: 0 auto; }
.page-tip { margin: 6px 0 16px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.appbar__label { font-size: 15px; font-weight: 600; color: var(--text); margin-right: auto; }
.appbar--fixed .appbar__inner { justify-content: flex-start; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 34px + var(--safe-bottom));
  transform: translate(-50%, 12px);
  z-index: 120;
  max-width: 78vw;
  background: rgba(24, 27, 32, .92);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: rgba(220, 38, 38, .95); }
.toast--success { background: rgba(22, 163, 74, .95); }

/* --------------------------------------------------------- 表单 */
.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.field__label em { font-style: normal; font-weight: 400; color: var(--text-tertiary); }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field__row { display: flex; }
.field__row input { flex: 1; }
.field__hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-tertiary); }
.auth-form { display: block; }
.auth-switch { margin: 14px 0 4px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* --------------------------------------------------------- 认证页 */
.auth-page { padding: 8px 24px 32px; }
.auth-page__title { margin: 4px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.auth-page__sub { margin: 0 0 22px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* 切换式 Tab（登录 / 注册 / 重置密码）：同一时间只显示一个表单 */
.auth-tabs {
  display: flex;
  background: #f2f3f5;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: center;
  padding: 9px 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}
.auth-tab:active { transform: scale(.985); }

/* 重置密码视图内的说明文字 */
.auth-hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------- 个人中心 */
.profile-hero {
  display: flex;
  align-items: center;
  padding: 8px 20px 18px;
}
.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  text-transform: uppercase;
}
.profile-name { margin: 0; font-size: 19px; font-weight: 700; }
.profile-email { margin: 2px 0 0; font-size: 13px; color: var(--text-secondary); word-break: break-all; }

.card-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.list-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.list-row:last-child { border-bottom: 0; }
.list-row__icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.list-row__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.list-row__main { flex: 1; min-width: 0; }
.list-row__title { margin: 0; font-size: 14px; font-weight: 600; }
.list-row__desc { margin: 2px 0 0; font-size: 12.5px; color: var(--text-secondary); word-break: break-word; }
.list-row__value { font-size: 13px; color: var(--text-secondary); max-width: 52%; text-align: right; word-break: break-word; }
.list-row__arrow { color: #c3c8d0; flex: none; }
.list-row__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.list-row--link { cursor: pointer; }
.list-row--link:active { background: #fafbfc; }

.app-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.app-item:last-child { border-bottom: 0; }
.app-item__top { display: flex; align-items: flex-start; justify-content: space-between; }
.app-item__title { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.app-item__time { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; padding-top: 2px; }
.app-item__company { margin: 0; font-size: 12.5px; color: var(--text-secondary); }
.app-item__tags { display: flex; flex-wrap: wrap; }

.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-tertiary);
}
.empty svg { width: 46px; height: 46px; margin: 0 auto 14px; fill: none; stroke: #d3d7de; stroke-width: 1.5; }
.empty p { margin: 0 0 6px; font-size: 14px; color: var(--text-secondary); }
.empty small { font-size: 12.5px; }

/* 分页 */
.pager { display: flex; justify-content: center; padding: 8px 20px 20px; }
.pager__btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.pager__btn:disabled { opacity: .45; }
.pager__btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ------------------------------------------------- 下拉刷新 / 无限滚动 */
.ptr-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(-100%);
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.ptr-indicator.is-visible { opacity: 1; }
.ptr-indicator__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(37, 99, 235, .2);
  border-top-color: var(--primary);
  border-radius: 50%;
  flex: none;
}
.ptr-indicator__arrow {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  transition: transform .18s ease;
}
.ptr-indicator.is-ready .ptr-indicator__arrow { transform: rotate(180deg); }
.ptr-indicator.is-loading .ptr-indicator__spinner { animation: spin .7s linear infinite; }
.ptr-indicator.is-loading .ptr-indicator__arrow { display: none; }
.ptr-indicator__text { font-weight: 600; }

/* 列表容器：下拉时整体下移 */
.list-scroll { will-change: transform; }

/* 无限滚动加载更多 */
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 26px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.load-more__spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(37, 99, 235, .18);
  border-top-color: var(--primary);
  border-radius: 50%;
  flex: none;
  animation: spin .7s linear infinite;
}
.load-more__text { font-weight: 600; }
.load-more.is-done .load-more__spinner { display: none; }

/* 新增卡片的进入动画 */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.job-card.is-new { animation: cardIn .3s ease both; }
/* 骨架屏 */
.skeleton { padding: 0 20px; }
.skeleton__card {
  height: 148px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f1f2f4 25%, #f7f8f9 37%, #f1f2f4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  margin-bottom: 14px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 底部导航 */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 35;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  max-width: 560px;
  margin: 0 auto;
}
.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  color: #9aa1ab;
  font-weight: 500;
  transition: color .15s ease;
}
.tabbar__item svg { width: 21px; height: 21px; fill: currentColor; }
.tabbar__item.is-active { color: var(--primary); }
.tabbar__item:active { opacity: .7; }

/* --------------------------------------------------------- 响应式 */
@media (min-width: 620px) {
  body { background: #e9ebee; }
  .app { box-shadow: 0 0 0 1px rgba(16,24,40,.05); min-height: 100vh; }
  .tabbar { left: 50%; transform: translateX(-50%); width: 560px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .action-bar { justify-content: center; }
}

/* ==========================================================================
   flex gap 兼容层（务必保留）
   flex 容器的 gap 直到 Chrome 84 才支持。安卓 9 自带的老 WebView（约 Chrome 6x）
   会直接忽略 gap，真机表现就是「卡片挨在一起、标题和正文挤成一团」。
   这里统一改用「相邻兄弟 margin」实现同样的间距：
   行方向用 margin-left，列方向用 margin-top（flex 里 margin 不会合并）。
   ========================================================================== */
.appbar__inner > * + * { margin-left: 12px; }
.appbar__actions > * + * { margin-left: 14px; }
.searchbar__field > * + * { margin-left: 8px; }
.job-list > * + * { margin-top: 16px; }
.job-card > * + * { margin-top: 14px; }
.job-card__tags > * + * { margin-left: 8px; }
.job-card__meta > * + * { margin-top: 9px; }
.meta-item > * + * { margin-left: 8px; }
.btn > * + * { margin-left: 8px; }
.detail-meta > * + * { margin-top: 10px; }
.more-toggle > * + * { margin-left: 4px; }
.action-bar__inner--split > * + * { margin-left: 10px; }
.action-bar__inner--split .btn--share > * + * { margin-left: 6px; }
.question-list > * + * { margin-top: 20px; }
.question__title > * + * { margin-left: 8px; }
.question__options > * + * { margin-top: 8px; }
.option > * + * { margin-left: 10px; }
.apply-form > * + * { margin-top: 20px; }
.field__row > * + * { margin-left: 8px; }
.auth-tabs > * + * { margin-left: 2px; }
.profile-hero > * + * { margin-left: 14px; }
.list-row > * + * { margin-left: 12px; }
.app-item > * + * { margin-top: 6px; }
.app-item__top > * + * { margin-left: 10px; }
.app-item__tags > * + * { margin-left: 6px; }
.pager > * + * { margin-left: 10px; }
.ptr-indicator > * + * { margin-left: 8px; }
.load-more > * + * { margin-left: 8px; }
.tabbar__item > * + * { margin-top: 3px; }

/* 图标 + 纯文本的间距：文本节点不是元素，* + * 选不到，
   所以这几处必须给图标本身加外边距（老 WebView 上 gap 不生效时的等价写法）。 */
.meta-item svg { margin-right: 8px; }
.action-bar__inner--split .btn--share svg { margin-right: 6px; }
.more-toggle svg { margin-left: 4px; }
.question__index { margin-right: 8px; }
.ptr-indicator__arrow, .ptr-indicator__spinner { margin-right: 0; }
