:root {
  --page-bg: #edf3f1;
  --panel-bg: #ffffff;
  --header-bg: #e6eee6;
  --detail-bg: #f6faf8;
  --border: #ccd9d1;
  --border-strong: #9eb5a7;
  --text: #1f2d27;
  --muted: #66766e;
  --faint: #8a9890;
  --accent: #2f6d49;
  --accent-strong: #24553a;
  --accent-soft: #eaf4ee;
  --warning: #a26000;
  --warning-soft: #fff4dd;
  --info: #2f6680;
  --info-soft: #e8f5fb;
  --danger: #747474;
  --danger-soft: #eeeeee;
  --shadow: 0 16px 42px rgba(42, 68, 56, 0.08);
  --radius: 8px;
  --screen-height: 1660px;
  --xh-cover-top: #12213f;
  --xh-cover-mid: #244b8b;
  --xh-cover-bottom: #6c9ef7;
  --xh-jobs-bg: #eef9f7;
  --xh-jobs-border: rgba(14, 83, 97, 0.1);
  --xh-jobs-text: #12343b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

body.is-follow-modal-open {
  overflow: hidden;
}

button,
input,
select,
a {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 1242px);
  margin: 0 auto;
  padding: 0;
}

.sheet-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.xh-screen {
  position: relative;
  min-height: 1660px;
  min-height: var(--screen-height);
  overflow: hidden;
}

.xh-cover-screen {
  background: linear-gradient(140deg, var(--xh-cover-top) 0%, var(--xh-cover-mid) 52%, var(--xh-cover-bottom) 100%);
  color: #fff;
}

.xh-cover-screen::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.xh-cover-inner,
.xh-jobs-inner {
  width: 100%;
  padding: 58px 62px;
}

.xh-cover-inner {
  position: relative;
  display: grid;
  min-height: var(--screen-height);
}

.xh-cover-eyebrow,
.xh-cover-hint,
.xh-deadline,
.xh-jobs-kicker,
.xh-jobs-note,
.featured-job-row {
  margin: 0;
}

.xh-deadline {
  position: absolute;
  top: 58px;
  right: 62px;
  max-width: 320px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 24px;
  line-height: 1.3;
}

.xh-cover-copy {
  display: grid;
  gap: 52px;
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -39%);
  width: min(100%, 1040px);
  text-align: center;
}

.xh-cover-eyebrow {
  position: absolute;
  top: 58px;
  left: 62px;
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.xh-hospital-name {
  margin: 0;
  font-size: 140px;
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.xh-location {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.xh-subtitle {
  margin: 0;
  max-width: 860px;
  font-size: 46px;
  line-height: 1.35;
  opacity: 0.94;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.xh-cover-hint {
  position: absolute;
  left: 62px;
  bottom: 58px;
  font-size: 28px;
  letter-spacing: 0.08em;
  opacity: 0.78;
}

.xh-jobs-screen {
  background: linear-gradient(180deg, #fbfffe 0%, var(--xh-jobs-bg) 100%);
  color: var(--xh-jobs-text);
}

.xh-jobs-inner {
  display: grid;
  gap: 34px;
}

.xh-jobs-header {
  display: grid;
  gap: 14px;
}

.xh-jobs-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(12, 100, 116, 0.1);
  color: #0b6978;
  font-size: 28px;
  font-weight: 600;
}

.xh-jobs-title {
  margin: 0;
  max-width: 980px;
  font-size: 58px;
  line-height: 1.18;
  font-weight: 800;
  color: var(--xh-jobs-text);
}

.xh-jobs-note {
  max-width: 980px;
  font-size: 26px;
  line-height: 1.5;
  color: rgba(18, 52, 59, 0.66);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.featured-jobs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.featured-job-card {
  min-height: 220px;
  padding: 26px 28px;
  border-radius: 26px;
  border: 1px solid var(--xh-jobs-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(31, 96, 102, 0.08);
}

.featured-job-name {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  color: #163841;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.featured-job-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 6px;
  font-size: 22px;
  line-height: 1.5;
  color: rgba(18, 52, 59, 0.84);
}

.featured-job-label {
  font-weight: 600;
}

.featured-job-value {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.toolbar,
.search-strip,
.sheet-table {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 22px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.site-dashboard {
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    repeating-linear-gradient(135deg, rgba(47, 109, 73, 0.08) 0 1px, transparent 1px 18px);
}

.toolbar-copy {
  display: grid;
  gap: 8px;
}

.toolbar-note,
.search-label,
.result-meta,
.update-time,
.source-title,
.detail-label,
.missing-link-note,
.hospital-region {
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.toolbar-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.toolbar-note {
  margin: 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 330px;
}

.update-time {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.metric-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.metric-card {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(47, 109, 73, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.search-strip {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.search-label {
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  gap: 10px;
}

#searchInput,
#provinceFilter,
#regionFilter,
#searchButton,
.apply-link {
  min-height: 42px;
}

#searchInput,
#provinceFilter,
#regionFilter {
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfdfc;
  color: var(--text);
}

#searchInput::placeholder {
  color: var(--faint);
}

#searchInput:focus,
#provinceFilter:focus,
#regionFilter:focus,
#searchButton:focus,
.apply-link:focus,
.sheet-row:focus,
.follow-close-button:focus,
.follow-confirm-button:focus,
.follow-secondary-button:focus {
  outline: 3px solid rgba(47, 109, 73, 0.18);
  outline-offset: 2px;
}

#searchButton,
.apply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

#searchButton,
.apply-link {
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

#searchButton:hover,
.apply-link:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.apply-link.is-disabled {
  background: #f1f4f2;
  border-color: var(--border);
  color: var(--faint);
  cursor: not-allowed;
  pointer-events: none;
}

.result-meta {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.sheet-table {
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.sheet-body {
  display: grid;
}

.sheet-group + .sheet-group {
  border-top: 1px solid var(--border);
}

.sheet-head,
.sheet-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 86px 104px 126px 104px 112px;
}

.sheet-head {
  background: var(--header-bg);
  color: #26342d;
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--border-strong);
}

.sheet-head > span,
.sheet-row > .cell {
  padding: 12px;
  min-width: 0;
  border-right: 1px solid var(--border);
}

.sheet-head > span:last-child,
.sheet-row > .cell:last-child {
  border-right: 0;
}

.sheet-row {
  align-items: stretch;
  background: var(--panel-bg);
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.sheet-row:hover,
.sheet-row.is-expanded {
  background: #f8fbf9;
}

.sheet-row.is-expanded {
  box-shadow: inset 4px 0 0 var(--accent);
}

.hospital-cell,
.title-cell,
.count-cell,
.time-cell,
.deadline-cell,
.status-cell {
  display: flex;
  align-items: center;
}

.hospital-heading {
  display: grid;
  gap: 4px;
}

.hospital-name,
.source-title,
.job-name,
.missing-link-note {
  margin: 0;
}

.hospital-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.hospital-region {
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

.source-title {
  font-size: 14px;
  line-height: 1.55;
}

.job-total {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.publish-time,
.deadline-time {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.deadline-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(47, 109, 73, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.deadline-status.is-closing_soon {
  border-color: rgba(162, 96, 0, 0.28);
  background: var(--warning-soft);
  color: var(--warning);
}

.deadline-status.is-expired {
  border-color: #d3d3d3;
  background: var(--danger-soft);
  color: var(--danger);
}

.deadline-status.is-rolling {
  border-color: rgba(47, 102, 128, 0.24);
  background: var(--info-soft);
  color: var(--info);
}

.deadline-status.is-unknown {
  border-color: var(--border);
  background: #f7f8f6;
  color: var(--muted);
}

.action-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-detail {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--detail-bg);
}

.detail-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.job-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.job-list li {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.job-row {
  display: grid;
  gap: 8px;
}

.job-name {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(47, 109, 73, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
}

.missing-link-note {
  margin-top: 12px;
  font-size: 12px;
}

.empty-state {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
  background: var(--panel-bg);
}

.follow-modal[hidden] {
  display: none;
}

.follow-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.follow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 28, 0.5);
}

.follow-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  width: min(100%, 378px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(24, 39, 31, 0.28);
}

.follow-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #f2f5f3;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.follow-kicker,
.follow-copy,
.follow-dialog h2 {
  margin: 0;
}

.follow-kicker {
  padding-right: 36px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.follow-dialog h2 {
  padding-right: 36px;
  font-size: 21px;
  line-height: 1.25;
}

.follow-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.follow-qr {
  display: block;
  width: min(100%, 246px);
  aspect-ratio: 1;
  margin: 2px auto 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent-soft);
  object-fit: cover;
}

.follow-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.follow-confirm-button,
.follow-secondary-button {
  min-height: 42px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.follow-confirm-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.follow-secondary-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}

@media (min-width: 768px) {
  .sheet-shell {
    padding: 24px 22px 52px;
  }

  .search-row {
    grid-template-columns: 170px 170px minmax(0, 1fr) 88px;
    align-items: center;
  }
}

@media (max-width: 920px) {
  .toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-meta {
    justify-items: start;
    min-width: 0;
  }

  .metric-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .sheet-shell {
    padding: 12px 10px 28px;
  }

  .xh-screen {
    min-height: auto;
  }

  .xh-cover-screen::after {
    inset: 14px;
    border-radius: 20px;
  }

  .xh-cover-inner,
  .xh-jobs-inner {
    padding: 22px 18px;
  }

  .xh-cover-inner {
    min-height: auto;
  }

  .xh-deadline {
    position: static;
    max-width: none;
    width: fit-content;
    margin-left: auto;
    font-size: 14px;
    padding: 8px 12px;
  }

  .xh-cover-eyebrow,
  .xh-cover-hint,
  .xh-jobs-kicker,
  .xh-jobs-note {
    font-size: 14px;
  }

  .xh-cover-eyebrow {
    top: 22px;
    left: 18px;
  }

  .xh-hospital-name {
    font-size: 48px;
  }

  .xh-location {
    font-size: 14px;
  }

  .xh-subtitle {
    font-size: 22px;
  }

  .xh-cover-hint {
    left: 18px;
    bottom: 22px;
  }

  .xh-jobs-title {
    font-size: 28px;
  }

  .featured-jobs-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .featured-job-card {
    min-height: auto;
    padding: 16px;
    border-radius: 8px;
  }

  .featured-job-name {
    font-size: 20px;
  }

  .featured-job-row {
    grid-template-columns: 74px minmax(0, 1fr);
    font-size: 14px;
  }

  .toolbar {
    gap: 14px;
    padding: 18px 16px;
    margin-bottom: 10px;
  }

  .toolbar-copy h1 {
    font-size: 30px;
  }

  .toolbar-note {
    font-size: 13px;
  }

  .metric-grid {
    display: none;
  }

  .search-strip {
    padding: 14px 12px;
    margin-bottom: 10px;
  }

  .search-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #searchInput,
  #searchButton {
    grid-column: 1 / -1;
  }

  .result-meta {
    font-size: 14px;
  }

  .sheet-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sheet-head {
    display: none;
  }

  .sheet-body {
    gap: 10px;
  }

  .sheet-group {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-bg);
  }

  .sheet-group + .sheet-group {
    border-top: 1px solid var(--border);
  }

  .sheet-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 12px 12px;
    box-shadow: none;
  }

  .sheet-row.is-expanded {
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .sheet-head > span,
  .sheet-row > .cell {
    border-right: 0;
    padding: 0;
  }

  .hospital-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
  }

  .hospital-name {
    font-size: 15px;
  }

  .hospital-region {
    font-size: 11px;
  }

  .source-title {
    color: #42524a;
    font-size: 13px;
  }

  .count-cell,
  .time-cell,
  .deadline-cell,
  .status-cell {
    display: inline-flex;
    width: fit-content;
  }

  .count-cell::before,
  .time-cell::before,
  .deadline-cell::before {
    margin-right: 6px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 700;
  }

  .count-cell::before {
    content: "岗位";
  }

  .time-cell::before {
    content: "发布";
  }

  .deadline-cell::before {
    content: "截止";
  }

  .job-total,
  .publish-time,
  .deadline-time,
  .deadline-status {
    font-size: 12px;
  }

  .action-cell {
    justify-content: flex-start;
    margin-top: 2px;
  }

  .apply-link {
    min-width: 104px;
    min-height: 40px;
  }

  .row-detail {
    padding: 12px;
  }

  .job-list li {
    padding: 10px;
  }

  .follow-modal {
    align-items: end;
    padding: 12px;
  }

  .follow-dialog {
    width: 100%;
    padding: 22px 18px 18px;
  }
}
