/* 两江神外求职日报 —— 移动优先，纯静态 */
:root {
  --bg: #f2f7f5;
  --surface: #ffffff;
  --surface-2: #f7faf9;
  --text: #10201d;
  --muted: #5f746f;
  --line: #dfe9e6;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-ink: #ffffff;
  --brand-soft: #e6f4f1;
  --ok: #0f7a5a;
  --ok-soft: #e7f6ef;
  --info: #2563a8;
  --info-soft: #eaf2fb;
  --warn: #a16207;
  --warn-soft: #fdf6e3;
  --warn-line: #ecd9a8;
  --danger: #c2413b;
  --danger-soft: #fdeceb;
  --gold: #9a5b08;
  --gold-soft: #fbf0dc;
  --shadow: 0 1px 2px rgba(16, 32, 29, .04), 0 10px 28px -18px rgba(16, 32, 29, .35);
  --radius: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1513;
  --surface: #12201d;
  --surface-2: #172824;
  --text: #e7f1ee;
  --muted: #93a8a2;
  --line: #243a35;
  --brand: #2dd4bf;
  --brand-strong: #5eead4;
  --brand-ink: #06201c;
  --brand-soft: #12332d;
  --ok: #34d399;
  --ok-soft: #11332a;
  --info: #7dd3fc;
  --info-soft: #122c3a;
  --warn: #fbbf24;
  --warn-soft: #332a12;
  --warn-line: #5c4a1c;
  --danger: #f87171;
  --danger-soft: #3a1d1d;
  --gold: #fbbf24;
  --gold-soft: #33280f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
::selection { background: var(--brand); color: var(--brand-ink); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 8px 14px;
  border-radius: 10px; box-shadow: var(--shadow); font-size: 13px;
}
.skip:focus { top: 12px; }

.hidden { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #082f2b 0%, #0d4f48 48%, #0f766e 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 88% 0%, rgba(143, 240, 221, .18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(45, 212, 191, .12), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 34px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .03), 0 0 0 78px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 18px 22px;
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.brand-mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  color: #b9f6ea;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 16px; letter-spacing: .02em; line-height: 1.35; }
.brand-text small {
  display: block; margin-top: 1px; font-size: 10.5px; letter-spacing: .05em;
  color: rgba(255, 255, 255, .62); white-space: nowrap;
}
.icon-btn {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 16px;
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.icon-btn:active { transform: scale(.96); }

.hero-copy { margin: 26px 0 19px; max-width: 600px; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(27px, 5vw, 42px);
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 700;
}
.hero-copy h1 em { font-style: normal; color: #8ff0dd; }
.hero-copy p {
  margin: 10px 0 0;
  max-width: 540px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .72);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  max-width: 580px;
}
.stat {
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .085);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat span { display: block; margin-top: 2px; font-size: 11px; color: rgba(255, 255, 255, .64); }
.stat-accent { background: rgba(143, 240, 221, .14); border-color: rgba(143, 240, 221, .3); }
.stat-accent strong { color: #b9f6ea; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 640px;
  margin-top: 15px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .16);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .76);
}
.pulse {
  flex: none;
  width: 7px; height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, .12);
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 12px 8px;
}
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.content { min-width: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Profile ---------- */
.profile { padding: 15px; }
.profile-head { display: flex; align-items: center; gap: 11px; }
.avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #0d9488);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
:root[data-theme="dark"] .avatar { color: #06201c; }
.profile-id { flex: 1; min-width: 0; }
.profile-id h2 { margin: 0; font-size: 15px; line-height: 1.4; }
.profile-id p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.live {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.profile-list { display: grid; gap: 7px; margin: 14px 0 0; }
.profile-list div { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.55; }
.profile-list dt { flex: none; width: 34px; color: var(--muted); }
.profile-list dd { margin: 0; min-width: 0; }
.profile-tip {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Filters ---------- */
.filters { padding: 15px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.filter-head h2 { margin: 0; font-size: 15px; }
.text-btn { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 2px; }
.text-btn:hover { color: var(--brand); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg {
  flex: none;
  width: 17px; height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13.5px; }
.search input::placeholder { color: var(--muted); opacity: .8; }
.clear-search {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.filter-group { margin-top: 12px; }
.filter-label { margin-bottom: 6px; font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 -2px;
  padding: 0 2px 2px;
  scrollbar-width: none;
}
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
}
.chip-count { margin-left: 3px; font-size: 10.5px; opacity: .68; font-variant-numeric: tabular-nums; }
.chip.active .chip-count { opacity: .85; }

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.switch { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.track {
  position: relative;
  flex: none;
  width: 34px; height: 20px;
  border-radius: 999px;
  background: var(--line);
  transition: background .2s;
}
.track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .2s;
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }
.sort select {
  max-width: 112px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--surface-2);
  font-size: 12.5px;
}

/* ---------- List head ---------- */
.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.list-head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; line-height: 1.4; }
.list-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ghost-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  transition: border-color .18s, color .18s;
}
.ghost-btn:hover { border-color: var(--brand); color: var(--brand); }
.ghost-btn svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ---------- Alert ---------- */
.alert {
  display: flex;
  gap: 11px;
  margin-bottom: 12px;
  padding: 12px 13px;
  border: 1px solid var(--warn-line);
  border-radius: 14px;
  background: var(--warn-soft);
}
.alert-icon {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
:root[data-theme="dark"] .alert-icon { color: #201704; }
.alert-body { min-width: 0; flex: 1; }
.alert-body > strong { display: block; font-size: 13px; line-height: 1.5; }
.alert-body > p { margin: 2px 0 8px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.alert-job {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .18s;
}
.alert-job:hover { border-color: var(--brand); }
.alert-job b { display: block; font-size: 12.5px; line-height: 1.5; }
.alert-job span { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ---------- Job cards ---------- */
.jobs { display: grid; gap: 10px; }
.job {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.job::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}
.job.tier-high::before { background: var(--brand); }
.job.tier-blocked { background: var(--surface-2); }
.job.closed { background: var(--surface-2); }
.job.closed .job-title { color: var(--muted); }

.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.tag {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  white-space: nowrap;
}
.tag-neuro { border-color: transparent; background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.tag-surg { border-color: transparent; background: var(--brand-soft); color: var(--brand); }
.tag-med { border-color: transparent; background: var(--info-soft); color: var(--info); }
.tag-tech { border-color: transparent; background: var(--surface-2); color: var(--muted); }
.tag-lj { border-color: transparent; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.tag-main { border-color: transparent; background: var(--info-soft); color: var(--info); }
.tag-staff { border-color: transparent; background: var(--gold-soft); color: var(--gold); }

.score {
  flex: none;
  width: 46px; height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--muted);
}
.score b { font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.score span { margin-top: 2px; font-size: 9px; line-height: 1; }
.score.tier-high { border-color: transparent; background: var(--brand-soft); color: var(--brand); }
.score.tier-mid { border-color: transparent; background: var(--info-soft); color: var(--info); }
.score.tier-blocked { background: var(--surface-2); color: var(--muted); }

.job-title { margin: 8px 0 0; font-size: 16px; line-height: 1.45; letter-spacing: -.01em; font-weight: 650; }
.quota {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  vertical-align: 2px;
  white-space: nowrap;
}
.job-unit { margin: 2px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); word-break: break-word; }
.job-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.badge {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  white-space: nowrap;
}
.badge-degree { color: var(--text); }
.badge-zero { border-color: transparent; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.badge-warn { border-color: transparent; background: var(--warn-soft); color: var(--warn); }

.match-line, .warn-line {
  display: flex;
  gap: 5px;
  margin: 9px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
}
.match-line { color: var(--ok); }
.match-line::before { content: "✓"; flex: none; font-weight: 700; }
.warn-line { margin-top: 5px; color: var(--warn); }
.warn-line::before { content: "!"; flex: none; font-weight: 800; }
.block-line { color: var(--danger); }
.block-line::before { content: "×"; font-weight: 700; }

.job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.status-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.status-open { background: var(--ok-soft); color: var(--ok); }
.status-urgent { background: var(--warn-soft); color: var(--warn); }
.status-upcoming { background: var(--info-soft); color: var(--info); }
.status-closed { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.status-unknown { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.pub { font-size: 10.5px; line-height: 1.5; color: var(--muted); }

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  transition: border-color .18s, background .18s, color .18s;
}
.act:hover { border-color: var(--brand); color: var(--brand); }
.act.active { border-color: transparent; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.act-applied.active { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.act-link { margin-left: auto; border-color: transparent; background: none; color: var(--brand); font-weight: 600; }
.act-link:hover { text-decoration: underline; }

.job-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  animation: slideDown .18s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.detail-grid { display: grid; gap: 7px; margin: 0; }
.detail-grid div { display: flex; gap: 8px; font-size: 12px; line-height: 1.6; }
.detail-grid dt { flex: none; width: 62px; color: var(--muted); }
.detail-grid dd { margin: 0; min-width: 0; word-break: break-word; }
.detail-block { margin-top: 10px; }
.detail-block h4 { margin: 0 0 3px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.detail-block p { margin: 0; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
  transition: filter .18s;
}
.primary-btn:hover { filter: brightness(1.05); }

/* ---------- More / empty ---------- */
.more {
  width: 100%;
  margin: 10px 0 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}
.more:hover { border-color: var(--brand); }
.empty {
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.empty-icon { font-size: 28px; line-height: 1; color: var(--muted); }
.empty h3 { margin: 8px 0 4px; font-size: 15px; }
.empty p { max-width: 340px; margin: 0 auto; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.empty .primary-btn { margin-top: 13px; }

/* ---------- Toolbox / notes ---------- */
.toolbox { margin-top: 18px; padding: 15px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 15px; }
.section-head span { font-size: 11px; color: var(--muted); }
.links { display: grid; gap: 7px; }
.links a {
  position: relative;
  display: block;
  padding: 9px 30px 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .18s, background .18s;
}
.links a:hover { border-color: var(--brand); background: var(--brand-soft); }
.links a::after { content: "↗"; position: absolute; right: 11px; top: 11px; color: var(--muted); font-size: 12px; }
.links b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.links span { display: block; margin-top: 1px; font-size: 11px; line-height: 1.5; color: var(--muted); }

.notes { margin-top: 12px; padding: 0; }
.notes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; color: var(--muted); font-size: 16px; font-weight: 400; }
.notes[open] summary::after { content: "−"; }
.notes-body { padding: 0 15px 14px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.notes-body p { margin: 0 0 7px; }
.notes-body p:last-child { margin-bottom: 0; }
.notes-body b { color: var(--text); font-weight: 600; }

/* ---------- Footer / toast ---------- */
.site-footer { margin-top: 20px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px calc(26px + env(safe-area-inset-bottom));
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-inner p { margin: 2px 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 9px 16px;
  border-radius: 999px;
  background: #0f2e29;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .22s, transform .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.load-error {
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.load-error b { display: block; margin-bottom: 4px; color: var(--text); }

/* ---------- 两江新区特殊卡片 ---------- */
.job-lj {
  border-color: rgba(15, 118, 110, .35);
  background: linear-gradient(135deg, var(--surface) 80%, rgba(15, 118, 110, .04) 100%);
}
.job-lj::before { background: var(--ok) !important; }

.lj-pin {
  font-size: 11px;
  line-height: 1;
  opacity: .75;
  vertical-align: middle;
}

/* ---------- Topbar actions ---------- */
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Filter FAB (mobile only) */
.filter-fab-btn {
  position: relative;
  display: none; /* shown via media query */
}
.filter-fab-btn svg {
  width: 18px; height: 18px;
  flex: none;
}
.filter-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ef4444;
  font-size: 0;
}

/* ---------- Quick-bar (mobile only) ---------- */
.quick-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.quick-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 12px;
}

/* ---------- Deadline progress bar ---------- */
.deadline-bar {
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.deadline-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ok);
  transition: width .3s ease;
}
.deadline-bar-fill.urgent { background: var(--warn); }
.deadline-bar-fill.critical { background: var(--danger); }

/* ---------- Drawer (mobile filter) ---------- */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.drawer-backdrop.show { opacity: 1; }

.filter-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  max-height: 85dvh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,0,.67,0);
  will-change: transform;
}
.filter-drawer.open { transform: translateY(0); }

.drawer-handle {
  flex: none;
  width: 36px; height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--line);
}
.drawer-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 8px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 16px; }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0;
}
.drawer-body .filter-group { margin-top: 14px; }
.drawer-body .filter-row { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.reset-drawer-btn { width: 100%; margin-top: 18px; justify-content: center; }

/* ---------- Responsive ---------- */
@media (min-width: 920px) {
  .hero-inner { padding: 26px 24px 28px; }
  .hero-copy { margin: 34px 0 24px; }
  .layout {
    grid-template-columns: 318px minmax(0, 1fr);
    gap: 26px;
    padding: 26px 24px 10px;
  }
  .side { align-self: start; }
  .stats { max-width: 620px; }
  .stat strong { font-size: 27px; }
  .job { padding: 16px 17px 15px; }
  .job-title { font-size: 17px; }
  .job-actions { gap: 7px; }
  .toolbox { margin-top: 22px; }
  .links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 919px) {
  /* Hide side panel on mobile, show FAB + drawer instead */
  .side { display: none !important; }
  .filter-fab-btn { display: grid !important; }
  .quick-bar { display: block; }
  .drawer-backdrop { display: block; }
}

@media (max-width: 640px) {
  .hero-inner { padding: 16px 14px 18px; }
  .hero-copy { margin: 22px 0 16px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-copy p { font-size: 12.5px; }
  .stats { gap: 8px; }
  .stat { padding: 10px 11px; border-radius: 12px; }
  .stat strong { font-size: 21px; }
  .stat span { font-size: 10.5px; }
  .notice { margin-top: 13px; font-size: 11.5px; }
  .layout { padding: 10px 10px 6px; gap: 12px; }
  .profile, .filters { padding: 14px; }
  .list-head h2 { font-size: 17px; }
  .job { padding: 13px; }
  .job-title { font-size: 15px; }
  .score { width: 44px; height: 44px; }
  .act-link { margin-left: 0; }
  .footer-inner { padding-left: 14px; padding-right: 14px; }
  /* On mobile leave space for quick-bar */
  .content { padding-top: 2px; }
}

@media (max-width: 380px) {
  .brand-text small { display: none; }
  .stat span { font-size: 10px; }
  .stat strong { font-size: 19px; }
  .hero-copy h1 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .filter-drawer { transition: none; }
  .drawer-backdrop { transition: none; }
}
