:root {
  --ink: #10201d;
  --muted: #5d6d69;
  --paper: #f7f8f3;
  --card: #ffffff;
  --line: #dbe3dd;
  --teal: #0f766e;
  --teal-dark: #0b534e;
  --mint: #d9f4ec;
  --amber: #b45309;
  --amber-soft: #fff2d8;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 32, 29, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(15, 118, 110, 0.10), transparent 28rem),
    radial-gradient(circle at 92% 20%, rgba(180, 83, 9, 0.06), transparent 24rem),
    var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: var(--teal-dark); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(219, 227, 221, 0.82);
  background: rgba(247, 248, 243, 0.88); backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--teal), #115e59);
  font-weight: 800; box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: 0.02em; }
.brand small { color: var(--muted); font-size: 11px; }
.header-meta { display: flex; align-items: center; gap: 16px; }
.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px;
  border: 1px solid #b7d8d1; border-radius: 999px; color: var(--teal-dark);
  background: #eefaf6; font-size: 12px; font-weight: 700;
}
.text-link { color: var(--muted); font-size: 13px; text-decoration: none; }
.text-link:hover { color: var(--teal-dark); text-decoration: underline; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 54px; align-items: center; padding: 78px 0 58px;
}
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: -0.045em; }
h1 span { color: var(--teal); }
.hero-lead { max-width: 640px; margin: 26px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 9px 18px; border: 1px solid transparent; border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .tab:focus-visible, .job-link:focus-visible, .company-filter:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.30); outline-offset: 2px;
}
.button.primary { color: #fff; background: var(--teal); box-shadow: 0 8px 18px rgba(15, 118, 110, 0.20); }
.button.primary:hover { background: var(--teal-dark); }
.button.ghost { color: var(--ink); background: rgba(255, 255, 255, 0.7); border-color: var(--line); }
.button.ghost:hover { background: #fff; }

.stats-card { padding: 26px; border: 1px solid rgba(183, 216, 209, 0.9); border-radius: 24px; background: rgba(255, 255, 255, 0.82); box-shadow: var(--shadow); }
.stats-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.stats-heading span { color: var(--muted); font-size: 12px; }
.stats-heading strong { color: var(--teal-dark); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 18px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.stats-grid div { padding: 16px; background: #fff; }
.stats-grid dt { color: var(--muted); font-size: 12px; }
.stats-grid dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.stats-foot { margin: 16px 0 0; color: var(--muted); font-size: 12px; }

.catalog-shell { margin: 18px 0 70px; padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255, 255, 255, 0.74); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading h2, .about-section h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 34px; letter-spacing: -0.03em; }
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f2f5f1; }
.tab { min-width: 88px; padding: 8px 16px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.tab.active { color: var(--teal-dark); background: #fff; box-shadow: 0 2px 8px rgba(16, 32, 29, 0.08); }
.filters {
  display: grid; grid-template-columns: 1.8fr repeat(4, minmax(120px, 1fr)); gap: 12px;
  align-items: end; margin: 26px 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf8;
}
.field { min-width: 0; }
.field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
input[type="search"], select {
  width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #cbd8d1; border-radius: 10px;
  color: var(--ink); background: #fff;
}
input[type="search"]:focus, select:focus { border-color: var(--teal); outline: 3px solid rgba(15, 118, 110, 0.12); }
.check-field { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.check-field input { width: 16px; height: 16px; accent-color: var(--teal); }
.filter-actions { display: flex; gap: 8px; grid-column: 5 / -1; justify-content: flex-end; }
.result-summary { min-height: 26px; margin: 10px 0 12px; color: var(--muted); font-size: 13px; }

.job-list { display: grid; gap: 12px; }
.job-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.job-card:hover { border-color: #a9cec5; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(16, 32, 29, 0.06); }
.job-company { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--teal-dark); font-size: 13px; font-weight: 700; }
.stock-code { color: var(--muted); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11px; font-weight: 600; }
.job-title { margin: 7px 0 10px; font-size: 19px; line-height: 1.35; }
.job-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: 12px; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag { padding: 3px 8px; border-radius: 7px; color: #42534f; background: #eef3ef; font-size: 11px; }
.tag.accent { color: var(--teal-dark); background: var(--mint); }
.tag.warn { color: var(--amber); background: var(--amber-soft); }
.job-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 112px; }
.job-link { color: var(--teal-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.job-link:hover { text-decoration: underline; }
.detail-button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; cursor: pointer; font-size: 12px; }
.detail-button:hover { color: var(--teal-dark); border-color: #a9cec5; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.page-button { min-width: 42px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; }
.page-button:disabled { color: #a4afab; cursor: not-allowed; background: #f4f5f1; }
.page-status { color: var(--muted); font-size: 12px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.company-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13px; }
.company-table th, .company-table td { padding: 13px 15px; border-bottom: 1px solid #edf1ed; text-align: left; vertical-align: top; }
.company-table th { color: var(--muted); background: #f7faf7; font-size: 11px; letter-spacing: 0.04em; }
.company-table tr:last-child td { border-bottom: 0; }
.company-filter { padding: 0; border: 0; color: var(--teal-dark); background: transparent; cursor: pointer; text-align: left; font-weight: 800; }
.company-filter:hover { text-decoration: underline; }
.company-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }

.about-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; padding: 40px 0 80px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.66); }
.about-grid h3 { margin: 0 0 8px; font-size: 15px; }
.about-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer p { margin: 4px 0; }

.job-dialog { width: min(680px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(16, 32, 29, 0.24); }
.job-dialog::backdrop { background: rgba(16, 32, 29, 0.42); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.dialog-inner { padding: 30px; }
.dialog-company { margin: 0 36px 5px 0; color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.dialog-title { margin: 0 36px 18px 0; font-size: 25px; line-height: 1.3; }
.dialog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.dialog-grid div { padding: 12px; border-radius: 10px; background: #f5f8f4; }
.dialog-grid dt { color: var(--muted); font-size: 11px; }
.dialog-grid dd { margin: 3px 0 0; font-size: 13px; font-weight: 700; }
.dialog-note { color: var(--muted); font-size: 13px; }
.dialog-link { display: inline-flex; margin-top: 12px; padding: 9px 14px; border-radius: 10px; color: #fff; background: var(--teal); font-weight: 700; text-decoration: none; }
.empty-state { padding: 42px 20px; border: 1px dashed #cbd8d1; border-radius: 16px; color: var(--muted); text-align: center; background: #fbfcf8; }
.error-state { color: var(--danger); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 12px 16px; border-radius: 12px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; }
  .stats-card { max-width: 620px; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .field-wide { grid-column: span 2; }
  .filter-actions { grid-column: auto; }
  .about-section { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 680px) {
  .site-header { padding: 12px 16px; }
  .brand small, .header-meta .text-link { display: none; }
  main { width: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero { padding: 34px 0 38px; }
  .hero-lead { font-size: 15px; }
  .catalog-shell { padding: 16px; border-radius: 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-heading h2, .about-section h2 { font-size: 28px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 14px; }
  .field-wide { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; justify-content: stretch; }
  .filter-actions .button { flex: 1; }
  .job-card { grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .job-actions { flex-direction: row; align-items: center; min-width: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .dialog-grid { grid-template-columns: 1fr; }
  .site-footer { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
