:root {
  --bg: #f6efe5;
  --bg-deep: #fbf8f3;
  --surface: rgba(255, 251, 246, 0.88);
  --surface-strong: #fffdf9;
  --surface-dark: #221814;
  --text: #231915;
  --text-soft: #64564c;
  --line: rgba(96, 69, 51, 0.12);
  --primary: #bf5a28;
  --primary-deep: #7b2d15;
  --gold: #d8a44b;
  --green: #1e8d61;
  --red: #bf3f3f;
  --shadow: 0 20px 50px rgba(70, 37, 20, 0.12);
  --shadow-strong: 0 28px 90px rgba(67, 30, 15, 0.24);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 164, 75, 0.2), transparent 22%),
    radial-gradient(circle at right 10%, rgba(191, 90, 40, 0.12), transparent 16%),
    linear-gradient(180deg, #f7efe4 0%, #f4ebe0 48%, #fbf8f3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 69, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 69, 51, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 82%);
}

a {
  color: inherit;
}

.public-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 248, 241, 0.92);
}

.brand strong,
.auth-card h1,
.hero-copy h1,
.hero-copy h2,
.section-head h3,
.admin-topbar h1,
.panel-head h3 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.public-header nav,
.hero-actions,
.admin-top-actions,
.apply-points,
.sidebar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-header nav a,
.button,
.table-link,
.link-button {
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.public-header nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.public-main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.hero-card,
.section-card,
.auth-card,
.panel,
.stat-card,
.sidebar,
.simple-state {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 34px;
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(98, 34, 17, 0.96), rgba(54, 27, 18, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: #fff8f0;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: relative;
}

.hero-card::after,
.application-card::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 164, 75, 0.34), transparent 70%);
  right: -120px;
  top: -120px;
}

.eyebrow,
.job-tag {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--primary-deep);
}

.hero-card .eyebrow {
  color: #f6d4aa;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}

.hero-copy h2 {
  margin: 12px 0 0;
  max-width: 11ch;
  font-size: clamp(2.2rem, 4.3vw, 4.6rem);
  line-height: 1.06;
}

.lead,
.muted,
.overview,
.long-text,
.hero-panel-card p,
.hero-panel-card li,
.stat-card span,
.application-form label,
.hint-box span {
  color: var(--text-soft);
  line-height: 1.75;
}

.lead {
  margin: 18px 0 0;
  max-width: 46rem;
  color: rgba(255, 244, 234, 0.82);
}

.button,
button,
input,
select,
textarea {
  font: inherit;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

.button.primary,
.button.tiny {
  color: #fffaf3;
  background: linear-gradient(135deg, #d47748, #b64822);
  box-shadow: 0 14px 30px rgba(191, 90, 40, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff6ef;
  border: 1px solid rgba(255, 244, 234, 0.22);
}

.button.ghost {
  background: rgba(191, 90, 40, 0.08);
  color: var(--primary-deep);
}

.button.full {
  width: 100%;
}

.button.tiny {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.hero-meta div {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 244, 234, 0.14);
  background: rgba(255, 248, 240, 0.08);
}

.hero-meta span,
.stat-card span {
  display: block;
  font-size: 0.92rem;
}

.hero-meta strong,
.stat-card strong,
.salary {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.hero-panel {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: rgba(255, 249, 241, 0.92);
}

.hero-panel-card,
.application-card {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 246, 238, 0.12);
  border: 1px solid rgba(255, 244, 234, 0.12);
}

.hero-panel-card h3,
.section-head h3,
.job-card h4,
.job-card h5,
.info-list h4 {
  margin: 0;
}

.hero-panel-card p {
  margin: 12px 0 0;
  color: rgba(255, 243, 228, 0.82);
}

.hero-panel-card ul {
  margin: 14px 0 0;
  padding-left: 1.1rem;
}

.hero-panel-card li {
  color: rgba(255, 243, 228, 0.82);
}

.section-card {
  margin-top: 34px;
  padding: 28px;
  border-radius: 30px;
}

.section-card.two-column {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head h3 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.job-grid,
.info-list,
.stats-grid,
.admin-grid,
.form-grid,
.filter-bar,
.table-toolbar {
  display: grid;
  gap: 18px;
}

.filter-bar {
  grid-template-columns: repeat(auto-fit, minmax(110px, max-content));
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip,
.results-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(191, 90, 40, 0.12);
  background: rgba(191, 90, 40, 0.06);
  color: var(--primary-deep);
  font-weight: 700;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fffaf3;
  background: linear-gradient(135deg, #d47748, #b64822);
  box-shadow: 0 14px 30px rgba(191, 90, 40, 0.18);
}

.results-pill strong {
  margin-left: 6px;
}

.job-grid {
  grid-template-columns: 1fr;
}

.job-card {
  padding: 26px;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.job-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.job-card-actions,
.job-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-card-actions {
  justify-content: flex-end;
}

.job-card h4 {
  font-size: 1.5rem;
}

.pill,
.benefit-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(191, 90, 40, 0.08);
  color: var(--primary-deep);
  font-weight: 700;
}

.salary {
  color: var(--primary-deep);
  font-weight: 800;
}

.overview {
  margin: 12px 0 0;
}

.job-cta-row {
  margin-top: 14px;
}

.job-details {
  overflow: hidden;
  transition: max-height 220ms ease, opacity 220ms ease, margin-top 220ms ease;
  max-height: 1400px;
  opacity: 1;
  margin-top: 18px;
}

.job-card.is-collapsed .job-details {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.job-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.job-columns h5 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.job-columns ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.benefit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.info-list article {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.info-list p {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.application-card {
  background:
    linear-gradient(145deg, rgba(98, 34, 17, 0.96), rgba(54, 27, 18, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: #fff8f0;
  overflow: hidden;
}

.application-card .eyebrow,
.application-card label {
  color: #f7d3aa;
}

.application-card .section-head h3 {
  color: #fff8f0;
}

.form-helper {
  margin: 0 0 14px;
  color: rgba(255, 243, 228, 0.82);
}

.application-form {
  display: grid;
  gap: 14px;
}

.application-form label,
.admin-form label,
.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(96, 69, 51, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(191, 90, 40, 0.45);
  box-shadow: 0 0 0 4px rgba(191, 90, 40, 0.1);
}

.banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.banner.success {
  background: rgba(30, 141, 97, 0.1);
  color: #166849;
}

.banner.error {
  background: rgba(191, 63, 63, 0.1);
  color: #8f2f2f;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 32px;
}

.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 248, 241, 0.94);
}

.auth-card h1 {
  margin: 0;
  font-size: 2rem;
}

.auth-card .muted {
  margin: 10px 0 0;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.hint-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(191, 90, 40, 0.08);
}

.hint-box strong,
.hint-box span {
  display: block;
}

.admin-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  margin: 18px 0 18px 18px;
  padding: 18px;
  border-radius: 28px;
  height: calc(100vh - 36px);
  position: sticky;
  top: 18px;
}

.brand-sidebar {
  margin-bottom: 20px;
}

.sidebar-nav {
  flex-direction: column;
}

.sidebar-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
}

.admin-main {
  padding: 18px 18px 28px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-topbar.compact {
  margin-bottom: 16px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
}

.muted {
  margin: 8px 0 0;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  padding: 22px;
  border-radius: 22px;
}

.stat-card strong {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 2rem;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.panel {
  padding: 22px;
  border-radius: 24px;
}

.table-toolbar {
  grid-template-columns: 1.1fr 0.8fr auto;
  align-items: end;
  margin-bottom: 16px;
}

.toolbar-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3 {
  font-size: 1.35rem;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-link {
  color: var(--primary-deep);
  font-weight: 700;
}

.link-button {
  padding: 0;
  min-height: auto;
  background: transparent;
  color: var(--red);
}

.status-form {
  display: grid;
  gap: 8px;
}

.status-pill {
  min-height: 32px;
  width: fit-content;
  padding: 0 10px;
  font-size: 0.88rem;
}

.status-new {
  color: #9c6110;
  background: rgba(216, 164, 75, 0.14);
}

.status-contacted {
  color: #176f59;
  background: rgba(30, 141, 97, 0.12);
}

.status-interview {
  color: #1d5ea4;
  background: rgba(55, 125, 220, 0.12);
}

.status-rejected {
  color: #8f2f2f;
  background: rgba(191, 63, 63, 0.12);
}

.status-hired {
  color: #15563f;
  background: rgba(16, 132, 83, 0.18);
}

.long-text {
  min-width: 220px;
  white-space: pre-wrap;
}

.form-panel {
  max-width: 980px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.simple-state {
  width: min(520px, calc(100% - 32px));
  margin: 100px auto;
  padding: 30px;
  border-radius: 30px;
  text-align: center;
}

.simple-state h1 {
  margin: 0;
  font-size: 3rem;
}

@media (max-width: 1080px) {
  .public-header,
  .hero-card,
  .section-card.two-column,
  .admin-body,
  .admin-grid,
  .stats-grid,
  .table-toolbar {
    grid-template-columns: 1fr;
  }

  .public-header,
  .admin-topbar,
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-body {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    margin: 18px;
  }

  .admin-main {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .public-header,
  .public-main {
    width: min(100% - 20px, 100%);
  }

  .public-header {
    position: static;
    border-radius: 28px;
  }

  .hero-card,
  .section-card,
  .auth-card,
  .panel,
  .sidebar {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy h2 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero-meta,
  .job-columns,
  .form-grid.two,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .job-card-head {
    flex-direction: column;
  }
}
