:root {
  --ink: #161410;
  --ink-soft: #3d3830;
  --paper: #f4eee4;
  --cream: #fbf7f0;
  --white: #fffcf7;
  --mist: #e7dfd2;
  --line: #d9d0c1;
  --forest: #1b4332;
  --forest-deep: #0f2c20;
  --jade: #2d6a4f;
  --leaf: #40916c;
  --gold: #b8893d;
  --gold-soft: #e8d5a8;
  --terracotta: #c24e1d;
  --clay: #8a3416;
  --danger: #9b2335;
  --ok: #2d6a4f;
  --shadow: 0 18px 50px rgba(22, 20, 16, 0.12);
  --shadow-sm: 0 8px 24px rgba(22, 20, 16, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--ink-soft); }
.gold { color: var(--gold); }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
}
.brand b { font-weight: 700; }
.brand span { color: var(--jade); font-weight: 500; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a, .nav-links button.linkish {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  background: none;
  border: 0;
}
.nav-links a:hover, .nav-links a.active, .nav-links button.linkish:hover {
  color: var(--ink);
  background: var(--mist);
}
.nav-cta { display: flex; align-items: center; gap: 8px; }
.bell {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
}
.bell .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-accent { background: var(--terracotta); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 44, 32, 0.35) 0%, rgba(15, 44, 32, 0.72) 100%),
    url("https://image.qwenlm.ai/public_source/c89cb2f1-90ef-4460-928a-bb51ee9bfbd5/14396a9c1-a352-4eee-b360-56f960d0c16d.png") center/cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 40px));
  text-align: center;
  padding: 80px 0 70px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 560;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 18px;
  color: rgba(251, 247, 240, 0.86);
  max-width: 620px;
  margin: 0 auto 32px;
}
.search-panel {
  background: rgba(255, 252, 247, 0.96);
  color: var(--ink);
  border-radius: 20px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  box-shadow: var(--shadow);
  text-align: left;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
}
.search-field label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.search-field input, .search-field select, .field input, .field select, .field textarea {
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--forest);
}
.stat span { font-size: 13px; color: var(--ink-soft); }

.section { padding: 88px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); max-width: 640px; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 650;
  margin-bottom: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn, .chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 550;
}
.filter-btn.active, .chip.active, .chip:hover, .filter-btn:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.job-grid, .card-grid, .pkg-grid, .teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.job-card, .info-card, .pkg-card, .teacher-card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.job-card { display: flex; flex-direction: column; min-height: 100%; }
.job-photo { position: relative; height: 190px; overflow: hidden; }
.job-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.job-card:hover .job-photo img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(251, 247, 240, 0.92);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-hot {
  left: auto;
  right: 12px;
  background: var(--terracotta);
  color: #fff;
}
.loc-overlay {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.job-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: var(--paper);
  color: var(--ink-soft);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}
.job-body h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.job-body p { color: var(--ink-soft); font-size: 14px; flex: 1; }
.job-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--mist);
}
.salary-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.salary { color: var(--jade); font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  padding: 22px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
}
.step h3 { margin: 8px 0; font-size: 20px; }

.pkg-card { padding: 26px; }
.pkg-card h3 { font-size: 26px; margin: 6px 0 8px; }
.pkg-card .price { font-size: 14px; color: var(--jade); font-weight: 650; margin-bottom: 12px; }
.pkg-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); }
.pkg-card.featured {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.pkg-card.featured .price, .pkg-card.featured ul { color: var(--gold-soft); }

.site-footer {
  background: var(--forest-deep);
  color: #d7e3db;
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a:hover { color: var(--gold-soft); }
.notice, .tip {
  margin-top: 28px;
  border-radius: 18px;
  padding: 22px;
}
.notice { background: rgba(255,255,255,0.05); border: 1px solid rgba(200, 169, 90, 0.25); }
.notice h4 { margin-bottom: 8px; }
.notice-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 14px;
}
.tip {
  background: linear-gradient(90deg, rgba(194, 78, 29, 0.18), rgba(184, 137, 61, 0.12));
  border: 1px solid rgba(194, 78, 29, 0.35);
  text-align: center;
}
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: #9bb3a6; text-align: center; }

.page-hero {
  padding: 56px 0 28px;
}
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.page-hero p { max-width: 640px; color: var(--ink-soft); margin-top: 10px; }

.layout-2 {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.side {
  position: sticky;
  top: 92px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}
.side a, .side button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 12px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.side a.active, .side button.active, .side a:hover, .side button:hover {
  background: var(--paper);
  color: var(--ink);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15, 44, 32, 0.55); }
.modal-card {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.close-x {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--cream);
}
.ref-banner {
  background: linear-gradient(90deg, var(--forest), var(--jade));
  color: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--paper); border-radius: 12px; padding: 12px; }
.fact span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--forest);
  color: var(--cream);
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 80;
  box-shadow: var(--shadow);
}

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
}
.status.pending { background: #f3e6c8; color: #7a5a14; }
.status.accepted { background: #dcefe4; color: var(--forest); }
.status.declined { background: #f6d9d6; color: var(--danger); }
.status.match { background: #e8d5a8; color: #5c4314; }

.note-list { display: grid; gap: 10px; }
.note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.note.unread { border-color: var(--gold); background: #fbf6ea; }
.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-soft);
}

.auth-box {
  width: min(480px, calc(100% - 40px));
  margin: 40px auto 80px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }

.prose { max-width: 760px; }
.prose h2 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 18px; }

.calendar {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0 14px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-head strong { font-family: var(--font-display); font-size: 18px; }
.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
}
.cal-week, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-week span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
}
.cal-day {
  border: 0;
  background: var(--white);
  border-radius: 10px;
  min-height: 38px;
  font-size: 14px;
  color: var(--ink);
}
.cal-day:hover { background: var(--mist); }
.cal-day.muted { color: #b3aa9a; background: transparent; }
.cal-day.selected { background: var(--forest); color: var(--cream); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--gold); }
.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}
.slot-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
}
.slot-btn.selected, .slot-btn:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.picked {
  font-size: 13px;
  color: var(--jade);
  font-weight: 650;
  margin: 0 0 12px;
}

@media (max-width: 980px) {
  .job-grid, .card-grid, .pkg-grid, .teacher-grid, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .layout-2 { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer-grid, .notice-list { grid-template-columns: 1fr 1fr; }
  .search-panel { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .nav-toggle { display: grid; place-items: center; }
}
@media (max-width: 640px) {
  .job-grid, .card-grid, .pkg-grid, .teacher-grid, .steps, .stats, .form-grid, .facts, .footer-grid, .notice-list { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 24px)); }
}
