:root {
  --ink: #0f1512;
  --panel: #182019;
  --panel-2: #1f2a21;
  --line: #2b3a2f;
  --text: #eef2ec;
  --muted: #a3b3a6;
  --grass: #5fbf7a;
  --grass-deep: #2f7a49;
  --sand: #d8c9a3;
  --radius: 4px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  background-image:
    linear-gradient(180deg, rgba(95, 191, 122, 0.06), rgba(15, 21, 18, 0) 420px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 96px);
}

a { color: var(--grass); text-decoration: none; }
a:hover { color: #8edd9f; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 21, 18, 0.94);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(6px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); flex: 0 0 auto; }
.brand img { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.16em; font-family: var(--mono); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 9px 12px;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.is-active { color: var(--text); border-bottom-color: var(--grass); }

.menu-btn {
  margin-left: auto;
  display: none;
  width: 44px;
  height: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* ---------- section heading ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--grass);
  text-transform: uppercase;
  margin: 0 0 8px;
}
h1, h2, h3 { line-height: 1.32; margin: 0; font-weight: 700; }
h1 { font-size: 34px; letter-spacing: 0.01em; }
h2 { font-size: 23px; }
h3 { font-size: 17.5px; }
h1::before, .sec-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.92em;
  background: var(--grass);
  margin-right: 12px;
  vertical-align: -0.06em;
  border-radius: 2px;
}
.sec-title { font-size: 23px; display: flex; align-items: center; }
.lead { color: var(--muted); font-size: 16.5px; margin: 14px 0 0; max-width: 62ch; }

/* ---------- cards / lists ---------- */
.grid-2 { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--grass); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .meta { font-family: var(--mono); font-size: 11.5px; color: var(--grass-deep); letter-spacing: 0.1em; margin-bottom: 10px; }

.register {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  margin: 0;
}
.register-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 13px 18px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.register-row:last-child { border-bottom: 0; }
.register-row .no { font-family: var(--mono); color: var(--grass); font-size: 12px; }
.register-row .tag { font-family: var(--mono); font-size: 11px; color: var(--sand); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; }

.stat-strip { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-strip div { flex: 1; padding: 16px 18px; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip b { display: block; font-family: var(--mono); font-size: 24px; color: var(--grass); }
.stat-strip span { font-size: 12.5px; color: var(--muted); }

/* ---------- home layout: left rail ---------- */
.home-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.rail {
  position: sticky;
  top: 88px;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
.rail h2 { font-size: 12px; letter-spacing: 0.2em; font-family: var(--mono); color: var(--muted); margin-bottom: 12px; }
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rail li { counter-increment: r; margin-bottom: 3px; }
.rail li a {
  display: flex;
  gap: 9px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 14px;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
}
.rail li a::before {
  content: counter(r, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grass-deep);
  padding-top: 3px;
}
.rail li a:hover { color: var(--text); background: var(--panel); border-left-color: var(--grass); }

main section { margin-bottom: 62px; }

/* ---------- hero ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) 0.95fr; gap: 30px; align-items: stretch; }
.hero-copy { padding-top: 8px; }
.hero-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; min-height: 300px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hero-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-family: var(--mono); font-size: 11.5px; color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(15, 21, 18, 0.92));
}
.timeline { margin-top: 26px; border-left: 2px solid var(--line); padding-left: 16px; }
.timeline li { list-style: none; margin-bottom: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 9px; width: 8px; height: 8px; background: var(--grass); border-radius: 50%; }
.timeline time { font-family: var(--mono); font-size: 12px; color: var(--grass); margin-right: 8px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14.5px;
  border: 1px solid var(--grass-deep);
  color: var(--grass);
}
.btn-solid { background: var(--grass); border-color: var(--grass); color: #0b120e; font-weight: 700; }
.btn:hover { color: var(--text); border-color: var(--grass); }

/* ---------- checklist table ---------- */
.check-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.check-table th, .check-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.check-table th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; color: var(--muted); font-weight: 400; background: var(--panel-2); }
.check-table td:first-child { color: var(--sand); white-space: nowrap; }

.split-note { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ---------- article ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 26px 0 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--grass); }
.crumbs span { margin: 0 7px; color: var(--line); }

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 44px;
  align-items: start;
  justify-content: start;
}
.article-body { min-width: 0; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.byline { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 14px; letter-spacing: 0.06em; }
.byline b { color: var(--grass); font-weight: 400; }

.figure { margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure figcaption { padding: 9px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); }

.article-body h2 { margin: 38px 0 14px; font-size: 21px; }
.article-body h3 { margin: 26px 0 10px; font-size: 17px; color: var(--sand); }
.article-body p { margin: 0 0 16px; color: #dbe3da; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; color: #dbe3da; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--grass);
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article-body th { background: var(--panel-2); font-weight: 400; color: var(--sand); }

.aside { position: sticky; top: 92px; }
.aside-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 18px 20px; margin-bottom: 18px; }
.aside-block h2 { font-size: 12px; font-family: var(--mono); letter-spacing: 0.18em; color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.aside-block ol { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.aside-block li { counter-increment: a; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.aside-block li:last-child { border-bottom: 0; }
.aside-block li::before { content: counter(a) "."; font-family: var(--mono); font-size: 11px; color: var(--grass); margin-right: 7px; }
.aside-block li a { color: #cfdccf; }
.aside-block li a:hover { color: var(--grass); }

.faq { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; }
.faq h2 { margin-top: 0; }
.faq details { border-bottom: 1px dashed var(--line); padding: 13px 0; }
.faq summary { cursor: pointer; color: var(--text); font-size: 15.5px; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

.back-cat { margin: 34px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 14px; }

/* ---------- category ---------- */
.cat-head { border-bottom: 1px solid var(--line); padding: 34px 0 22px; }
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) 130px; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cat-list .num { font-family: var(--mono); font-size: 12px; color: var(--grass-deep); }
.cat-list h2 { font-size: 18px; }
.cat-list h2::before { display: none; }
.cat-list h2 a { color: var(--text); }
.cat-list h2 a:hover { color: var(--grass); }
.cat-list p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.cat-list .stamp { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #0c110e; margin-top: 70px; padding: 40px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-foot h2 { font-size: 12px; font-family: var(--mono); letter-spacing: 0.18em; color: var(--muted); margin-bottom: 12px; font-weight: 400; }
.site-foot p, .site-foot li { font-size: 13.5px; color: #b7c6b9; margin: 0 0 7px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: #b7c6b9; }
.site-foot a:hover { color: var(--grass); }
.legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: 12.5px; color: #8b9a8d; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .home-shell { grid-template-columns: 1fr; }
  .rail { position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
  .rail ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .article-shell { grid-template-columns: 1fr; gap: 30px; }
  .aside { position: static; }
  .grid-2, .grid-3, .hero-split, .foot-grid, .split-note { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 25px; }
  .sec-title { font-size: 19px; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: #0d130f;
    border-bottom: 1px solid var(--line);
    padding: 8px 14px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: block; }
  .topbar-inner { position: relative; }
  main section { margin-bottom: 44px; }
  .cat-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .cat-list .stamp { grid-column: 2; text-align: left; }
  .register-row { grid-template-columns: 42px 1fr; }
  .register-row .tag { display: none; }
  .stat-strip { flex-wrap: wrap; }
  .stat-strip div { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .hero-media { min-height: 200px; }
}
