:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #10b981;
  --brand-dark: #059669;
  --brand-soft: #ecfdf5;
  --navy: #0f172a;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(226,232,240,.85);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--navy); color: white; font-weight: 800; letter-spacing: .5px;
}
.brand strong { display: block; font-size: 17px; line-height: 1.15; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; margin-top: 4px; }
.nav-actions, .hero-actions, .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.primary-btn, .ghost-btn, .light-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: .18s ease;
}
.primary-btn { background: var(--brand); color: #052e22; }
.primary-btn:hover { background: #34d399; transform: translateY(-1px); }
.ghost-btn { background: #fff; border-color: var(--line); color: var(--text); }
.ghost-btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.light-btn { background: #fff; color: var(--navy); }
.large { min-height: 50px; padding: 0 22px; border-radius: 14px; }
.inverse { background: transparent; color: white; border-color: rgba(255,255,255,.28); }

.hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 82% 16%, rgba(16,185,129,.22), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0f172a 56%, #13283a 100%);
  color: white;
  padding: 76px 0 82px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  right: -120px; bottom: -150px;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 54px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6ee7b7;
}
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.05; margin: 16px 0 22px; letter-spacing: -.035em; }
.hero h1 span { color: #6ee7b7; }
.hero-copy > p { max-width: 680px; color: #cbd5e1; font-size: 17px; margin: 0 0 30px; }
.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  border-radius: 26px;
  box-shadow: 0 25px 70px rgba(0,0,0,.18);
}
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  min-height: 126px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}
.stat-card span { font-size: 34px; font-weight: 850; line-height: 1; }
.stat-card small { color: #cbd5e1; margin-top: 11px; }

.search-section { padding: 0 0 80px; }
.search-card {
  margin-top: -30px;
  position: relative;
  z-index: 4;
  background: white;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226,232,240,.75);
}
.search-row { display: grid; grid-template-columns: minmax(300px, 1.8fr) repeat(3, minmax(145px, .6fr)); gap: 10px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}
.search-box:focus-within { border-color: #6ee7b7; box-shadow: 0 0 0 4px rgba(16,185,129,.09); }
.search-icon { color: var(--muted); font-size: 24px; line-height: 1; }
.search-box input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); }
.clear-btn { border: 0; background: transparent; color: #94a3b8; font-size: 22px; display: none; }
select {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 38px 0 14px;
  background: #fff;
  color: var(--text);
  outline: 0;
}
select:focus { border-color: #6ee7b7; box-shadow: 0 0 0 4px rgba(16,185,129,.09); }
.category-filters { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 15px; }
.category-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.category-btn:hover { border-color: #a7f3d0; background: var(--brand-soft); }
.category-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

.list-header {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  margin: 34px 0 16px;
}
.list-header h2 { font-size: 28px; margin: 0; }
.list-header p { color: var(--muted); margin: 4px 0 0; }
.updated-pill { padding: 8px 12px; border: 1px solid var(--line); background: white; border-radius: 999px; color: var(--muted); font-size: 13px; }

.job-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.job-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: .18s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.job-card:hover { transform: translateY(-3px); border-color: #bae6d3; box-shadow: 0 14px 34px rgba(15,23,42,.09); }
.card-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.job-code { display: inline-flex; padding: 5px 9px; border-radius: 8px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.new-badge { display: inline-flex; padding: 5px 9px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.job-card h3 { font-size: 21px; line-height: 1.35; margin: 15px 0 10px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.meta-chip { padding: 6px 9px; border-radius: 9px; background: #f8fafc; border: 1px solid #eef2f7; color: #475569; font-size: 13px; }
.salary { color: #059669; font-weight: 850; }
.job-summary {
  color: #64748b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 0; }
.tag { font-size: 12px; color: #64748b; background: #f8fafc; border-radius: 7px; padding: 4px 8px; }
.card-actions { display: flex; gap: 9px; margin-top: auto; padding-top: 20px; }
.card-actions button, .card-actions a { flex: 1; min-height: 42px; border-radius: 11px; font-weight: 750; }
.view-btn { border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.copy-btn { border: 1px solid var(--line); background: #fff; color: var(--text); }

.empty-state { text-align: center; padding: 70px 20px; background: white; border: 1px dashed #cbd5e1; border-radius: 20px; }
.empty-state > div { font-size: 40px; }
.empty-state h3 { margin: 9px 0 4px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }

.cta-section { padding: 0 0 70px; }
.cta-card {
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 100%);
  color: #fff;
  border-radius: 28px;
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-card h2 { margin: 10px 0 7px; font-size: 30px; }
.cta-card p { color: #d1fae5; margin: 0; }

footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { color: var(--muted); margin: 3px 0 0; }
.footer-links { display: flex; gap: 18px; color: #475569; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.66); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: white;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  padding: 28px;
}
.modal-close { position: sticky; top: 0; float: right; margin: -4px -4px 0 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); font-size: 24px; z-index: 2; }
.modal-title { font-size: 30px; line-height: 1.25; margin: 12px 0 12px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.jd-section { margin-top: 24px; }
.jd-section h4 { font-size: 17px; margin: 0 0 9px; }
.jd-section p, .jd-section li { color: #475569; }
.jd-section ul { margin: 8px 0 0; padding-left: 22px; }
.modal-actions { position: sticky; bottom: -28px; background: linear-gradient(to top, white 72%, rgba(255,255,255,0)); padding: 28px 0 4px; display: flex; gap: 9px; }
.modal-actions > * { flex: 1; }

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #0f172a;
  color: #fff;
  padding: 11px 16px;
  border-radius: 11px;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { padding: 54px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-panel { max-width: 620px; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .job-grid { grid-template-columns: 1fr; }
  .cta-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1180px); }
  .topbar .ghost-btn { display: none; }
  .nav { min-height: 66px; }
  .brand strong { font-size: 15px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-actions .primary-btn { min-height: 39px; padding: 0 14px; font-size: 14px; }
  .hero h1 { font-size: 40px; }
  .hero-copy > p { font-size: 15px; }
  .hero-panel { grid-template-columns: 1fr 1fr; gap: 8px; padding: 9px; }
  .stat-card { min-height: 104px; padding: 16px; }
  .stat-card span { font-size: 28px; }
  .search-card { padding: 12px; border-radius: 18px; }
  .search-row { grid-template-columns: 1fr; }
  .search-box { grid-column: auto; }
  select { width: 100%; }
  .category-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .category-filters::-webkit-scrollbar { display: none; }
  .category-btn { flex: 0 0 auto; }
  .list-header { align-items: flex-start; flex-direction: column; margin-top: 26px; }
  .updated-pill { font-size: 12px; }
  .job-card { padding: 18px; min-height: 306px; }
  .job-card h3 { font-size: 19px; }
  .card-actions { flex-direction: column; }
  .cta-card { padding: 28px 22px; border-radius: 22px; }
  .cta-card h2 { font-size: 25px; }
  .cta-actions { width: 100%; }
  .cta-actions > * { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 0; }
  .modal-panel { padding: 20px; border-radius: 18px; }
  .modal-title { font-size: 24px; }
  .modal-actions { flex-direction: column; bottom: -20px; }
}

/* Real-job data additions */
.status-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}
.company-line {
  color: #64748b;
  font-size: 13px;
  margin: -3px 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-company {
  color: #64748b;
  font-size: 14px;
  margin: -4px 0 14px;
}
.jd-raw {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.78;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  font-size: 14px;
}
.notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 16px 18px;
}
.notice-box h4 { margin-top: 0; }
.notice-box p { margin-bottom: 0; }
