:root {
  --pcb-jobs-content-width: 1440px;
  --pcb-jobs-gutter: 24px;
}

.jobs-page-shell {
  --pcb-site-header-height: 96px;
}

/* The header, filter bar and two-column workspace share one desktop grid. */
.jobs-page-shell .pcb-site-header {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: min(var(--pcb-jobs-content-width), calc(100% - (var(--pcb-jobs-gutter) * 2)));
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 0;
}

.jobs-page-shell .pcb-site-header::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  height: var(--pcb-site-header-height);
  border-bottom: 1px solid var(--pcb-site-header-line);
  background: #fff;
  content: "";
}

.jobs-page-shell .pcb-site-header__brand {
  flex: 0 0 auto;
  gap: 12px;
}

.jobs-page-shell .pcb-site-header__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.jobs-page-shell .pcb-site-header__brand strong {
  font-size: 24px;
  white-space: nowrap;
}

.jobs-page-shell .pcb-site-header__brand small {
  margin-top: 3px;
  font-size: 12px;
}

.jobs-page-shell .pcb-site-header__nav {
  gap: 32px;
  min-width: 0;
}

.jobs-page-shell .pcb-site-header__nav a {
  font-size: 14px;
}

.jobs-page-shell .pcb-site-header__auth {
  min-width: 128px;
  height: 48px;
}

.jobs-page {
  width: min(var(--pcb-jobs-content-width), calc(100% - (var(--pcb-jobs-gutter) * 2)));
  height: calc(100vh - var(--pcb-site-header-height));
  gap: 24px;
  padding: 16px 0;
}

.jobs-page > section[aria-label="职位筛选"] {
  width: 100%;
  margin: 0;
}

.job-search {
  grid-template-columns: minmax(360px, 1.8fr) minmax(240px, 1fr) 240px 150px 120px;
  gap: 16px;
  align-items: center;
}

.job-search > * {
  min-width: 0;
  box-sizing: border-box;
}

.search-control input {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-content {
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 28px;
}

.job-list-panel,
.job-detail {
  width: 100%;
  min-width: 0;
}

.job-list-panel {
  padding: 22px 14px 14px;
}

.list-title-row {
  margin-bottom: 14px;
  padding: 0 8px;
}

.list-title { font-size: 20px; }
.list-count { margin-top: 5px; font-size: 14px; }
.sort-select { width: 210px; height: 48px; }
.job-list { padding: 13px; }
.job-card { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; margin-bottom: 14px; padding: 12px; border-radius: 10px; }
.company-mark { width: 48px; height: 48px; border-radius: 12px; font-size: 14px; }
.job-card h3 { margin: 0 0 3px; font-size: 17px; }
.job-company, .job-meta { font-size: 12px; line-height: 1.45; }
.card-tags { gap: 6px; margin-top: 7px; }
.job-card .pcb-tag { min-height: 22px; padding: 0 7px; font-size: 11px; }
.job-side { min-width: 64px; }
.card-salary { font-size: 16px; white-space: nowrap; word-break: keep-all; }
.card-status { margin-top: 20px; font-size: 12px; }
.card-date { font-size: 12px; }

.job-detail { padding: 20px; }
.detail-heading { grid-template-columns: 72px minmax(0, 1fr) 210px; gap: 20px; }
.detail-heading .company-mark { width: 72px; height: 72px; border-radius: 20px; font-size: 18px; }
.detail-heading h1 { margin: 2px 0 8px; font-size: clamp(30px, 2vw, 36px); }
.detail-company { margin-bottom: 6px; font-size: 16px; }
.detail-address, .detail-meta { font-size: 14px; }
.detail-address, .detail-company { word-break: normal; overflow-wrap: break-word; }
.detail-salary { margin: 16px 0 8px; font-size: clamp(30px, 2vw, 36px); white-space: nowrap; word-break: keep-all; flex-shrink: 0; }
.detail-tags { gap: 8px; margin-top: 12px; }
.detail-tags .pcb-tag { min-height: 28px; padding: 0 10px; font-size: 13px; }
.detail-actions { gap: 12px; }
.detail-actions .pcb-button { min-height: 56px; border-radius: 14px; font-size: 16px; }
.detail-section { padding: 24px 0; }
.detail-section:first-of-type { margin-top: 20px; }
.detail-section h2 { gap: 14px; margin-bottom: 14px; font-size: 22px; }
.detail-section p, .detail-section li { font-size: 16px; line-height: 1.7; }

@media (min-width: 1441px) {
  .jobs-page,
  .jobs-page-shell .pcb-site-header {
    max-width: var(--pcb-jobs-content-width);
  }
}

@media (max-width: 1200px) {
  .job-search {
    grid-template-columns: minmax(280px, 1fr) minmax(200px, .8fr) 160px 120px 104px;
  }

  .jobs-page-shell .pcb-site-header__nav { gap: 22px; }
  .job-content { grid-template-columns: 400px minmax(0, 1fr); gap: 20px; }
  .detail-heading { grid-template-columns: 64px minmax(0, 1fr) 180px; gap: 16px; }
}

@media (max-width: 1050px) {
  .jobs-page-shell { overflow: auto; }
  .jobs-page { height: auto; min-height: calc(100vh - var(--pcb-site-header-height)); }
  .job-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-content { min-height: 880px; grid-template-columns: 1fr; }
}
