/* Hypergryph-career-inspired tokens (style only, no brand assets)
   COLOR  paper #FFFFFF / #F3F3F3  ink #272727  muted #969696
          primary #C5E801  hover #B0D000  ghost #E5E5E5  line #F4F4F4
   TYPE   EN display: Bahnschrift / Arial Narrow condensed
          CN body: Segoe UI / PingFang / YaHei
   SIGNATURE oversized ghost EN watermark + lime bar cards + square dots
*/

:root {
  --white: #ffffff;
  --paper: #f3f3f3;
  --ink: #272727;
  --ink-soft: #5c5c5c;
  --muted: #969696;
  --ghost: #e5e5e5;
  --line: #f4f4f4;
  --line-2: #e8e8e8;
  --primary: #c5e801;
  --primary-hover: #b0d000;
  --primary-ink: #2a2a2a;
  --card-num: #e2e2e2;
  --font-en: Bahnschrift, "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --font-cn: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --header-h: 72px;
  --page: 1200px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-cn);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 2px; }
.mono { font-family: var(--font-en); letter-spacing: 0.04em; }

.gate-banner {
  background: var(--ink);
  color: var(--primary);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  text-align: center;
}

/* —— header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand-mark {
  width: 28px;
  display: grid;
  gap: 5px;
  flex: 0 0 auto;
}
.brand-mark span {
  display: block;
  height: 4px;
  background: var(--ink);
}
.brand-mark span:nth-child(2) {
  width: 42%;
  background: var(--primary);
}
.brand-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.brand-cn { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.nav { display: flex; gap: 0.15rem; align-items: center; }
.nav-item {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  position: relative;
  min-height: 44px;
  font-size: 0.92rem;
}
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--ink); font-weight: 600; }
.nav-item.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 4px;
  background: var(--primary);
}
.header-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.meta-chip {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 0.28rem 0.5rem;
  white-space: nowrap;
}

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 3rem;
}

/* —— hero —— */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  margin-bottom: 0.5rem;
}
.hero-rule {
  height: 1px;
  background: var(--line-2);
  margin-bottom: 1.25rem;
}
.hero-en {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ghost);
  text-transform: uppercase;
}
.hero-cn {
  margin: 0.85rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-deck {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}
.hero-stamp {
  position: absolute;
  right: 0;
  top: 4.2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  color: var(--ink);
}
.hero-stamp span {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.hero-stamp strong {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* —— stats —— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 2.25rem;
}
.stat-card {
  background: var(--paper);
  padding: 1.15rem 1.1rem 1rem;
  position: relative;
  overflow: hidden;
  min-height: 132px;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--card-num);
  transition: height 0.25s ease, background 0.25s ease;
}
.stat-card.accent::after { background: var(--primary); }
.stat-card:hover::after { height: 100%; background: var(--primary); }
.stat-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--card-num);
  transition: color 0.2s ease;
}
.stat-card:hover .stat-en,
.stat-card.accent .stat-en { color: var(--primary-hover); }
.stat-cn { margin-top: 0.55rem; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.stat-num {
  margin-top: 0.85rem;
  font-family: var(--font-en);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-card.accent .stat-num { color: var(--ink); }
.stat-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
}

/* —— section —— */
.section { margin-bottom: 2.5rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 1.15rem;
}
.section-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: 0.04em;
  color: var(--ghost);
  line-height: 1;
}
.section-cn {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.dots { display: flex; gap: 4px; align-items: center; padding-bottom: 0.35rem; }
.dots i {
  width: 4px;
  height: 4px;
  background: var(--card-num);
  display: block;
}

/* —— category cards —— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.cat-card {
  background: var(--paper);
  padding: 1rem 1.15rem 0.95rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-align: left;
  width: 100%;
  transition: background 0.2s ease;
}
.cat-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 42%;
  background: var(--primary);
  transition: height 0.25s ease;
}
.cat-card:hover::after,
.cat-card.active::after { height: 100%; }
.cat-card:hover .cat-en,
.cat-card.active .cat-en { color: var(--primary-hover); }
.cat-card:hover .cat-num,
.cat-card.active .cat-num { color: var(--primary-hover); transform: scale(1.06); transform-origin: left center; }
.cat-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--card-num);
  white-space: pre-line;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.cat-num {
  margin-top: 1.1rem;
  font-family: var(--font-en);
  font-weight: 400;
  font-stretch: condensed;
  font-size: 2.8rem;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--card-num);
  transition: color 0.2s ease, transform 0.25s ease;
}
.cat-cn {
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.cat-card.active .cat-cn,
.cat-card:hover .cat-cn { color: var(--ink); }

/* —— filters —— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: end;
  background: var(--paper);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 7.5rem; }
.field.grow { flex: 1 1 12rem; min-width: 10rem; }
.field.narrow { min-width: 6.2rem; }
.field-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.field input, .field select {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  width: 100%;
}
.field input:focus, .field select:focus {
  border-color: var(--ink);
  outline: none;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  margin-left: auto;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
}
.check input {
  width: 16px; height: 16px; margin: 0;
  accent-color: var(--primary-hover);
  cursor: pointer;
}
.btn-reset {
  background: none;
  border: none;
  padding: 0.5rem 0;
  min-height: 44px;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  border-bottom: 1px solid transparent;
}
.btn-reset:hover { color: var(--ink); border-bottom-color: var(--primary); }

.status-line {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.25rem 0 0.9rem;
  min-height: 1.2em;
}

/* —— job list —— */
.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.job-card {
  background: var(--paper);
  padding: 1.05rem 1.2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s ease;
}
.job-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--card-num);
  transition: background 0.2s ease;
}
.job-card.is-today::after { background: var(--primary); }
.job-card:hover::after { background: var(--primary); }
.job-card:hover .job-en { color: var(--primary-hover); }
.job-card:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 2px; }

.job-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--card-num);
  transition: color 0.2s ease;
}
.job-title {
  margin: 0.4rem 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}
.job-meta {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.job-bottom {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
}
.chip {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line-2);
  padding: 0.22rem 0.45rem;
}
.chip.kw {
  color: var(--ink);
  border-color: #d6e88a;
  background: rgba(197, 232, 1, 0.18);
}
.salary {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-left: auto;
}
.badge {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--muted);
}
.badge.live {
  color: var(--ink);
  background: var(--primary);
  border-color: var(--primary);
}
.job-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-left: 0.25rem;
}
.job-date {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--muted);
}
.job-link {
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.job-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.empty {
  list-style: none;
  background: var(--paper);
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}
.empty code {
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-2);
  padding: 0.1rem 0.35rem;
}

/* —— detail —— */
.detail {
  margin-top: 0.5rem;
  background: var(--paper);
  padding: 1.25rem 1.3rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.detail::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.detail-title {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}
.detail-body {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-body .row { margin-bottom: 0.3rem; }
.detail-body .skills { margin-top: 0.55rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.detail-body .desc {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-2);
  color: var(--ink);
}
.detail-cta { margin-top: 1.1rem; }
.btn-hg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
}
.btn-hg::before {
  content: "VIEW MORE VIEW MORE";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  color: #3a3a3a;
  white-space: nowrap;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.btn-hg span, .btn-hg { position: relative; }
.btn-hg:hover { background: #404040; }

/* —— footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  max-width: var(--page);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-en {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ghost);
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}
.footer-note { margin: 0.35rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-meta { display: none; }
  .hero-stamp { position: static; margin-top: 1rem; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: auto; }
  .site-header {
    height: auto;
    flex-wrap: wrap;
    padding-top: 0.85rem;
    padding-bottom: 0.35rem;
  }
  .nav { width: 100%; overflow-x: auto; }
  .stats, .cat-grid { grid-template-columns: 1fr; }
  .job-bottom { flex-direction: column; align-items: flex-start; }
  .salary { margin-left: 0; }
  .filter-actions { margin-left: 0; width: 100%; }
  .field { min-width: 0; flex: 1 1 45%; }
}
