:root {
  --paper: #f6f7f2;
  --surface: #ffffff;
  --surface-alt: #eef2ea;
  --ink: #172b29;
  --muted: #5e6d68;
  --brand: #194c40;
  --brand-hover: #12382f;
  --lime: #d1f579;
  --lime-ink: #14332b;
  --line: #dce2d9;
  --warn-bg: #fff8e6;
  --warn-ink: #8a5a00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(23, 43, 41, 0.06);
  --max-w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-logo small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  padding: 6px 2px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
.header-badge strong { color: var(--brand); }
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { filter: brightness(0.95); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--brand);
}
.tag-lime { background: var(--lime); color: var(--lime-ink); }
.tag-dark { background: var(--brand); color: #fff; }

/* Hero */
.hero { padding: 48px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero p.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  max-width: 58ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero-stats strong { display: block; font-size: 18px; color: var(--ink); }

.spotlight-card {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.spotlight-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.spotlight-card h2 { margin: 14px 0 8px; font-size: 24px; }
.spotlight-card p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: var(--radius-sm);
}
.spotlight-metrics div span { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.spotlight-metrics div strong { font-size: 15px; }
.promo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(209, 245, 121, 0.65);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.promo-code { font-family: ui-monospace, monospace; font-weight: 700; color: var(--lime); font-size: 15px; }

/* Sections */
.section { padding: 40px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card-title { margin: 0; font-size: 19px; font-weight: 700; }
.score-pill {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
}

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.kv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 0;
  margin: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.kv-grid span { display: block; font-size: 11px; color: var(--muted); }
.kv-grid strong { font-size: 14px; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
}
.filter-chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--surface-alt); font-weight: 700; color: var(--ink); font-size: 13px; }
tr:last-child td { border-bottom: none; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--brand); }

/* Articles & Prose */
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.prose h1 { margin-top: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; }
.prose h2 { margin-top: 28px; font-size: 21px; color: var(--brand); }
.prose p { color: #2b3e3b; margin: 12px 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 14px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { font-size: 18px; transition: transform 0.15s; color: var(--brand); }

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.footer-grid h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-badge { display: none; }
}
@media (max-width: 720px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 12px;
  }
  .nav-links.open { display: flex; }
  .prose { padding: 20px; }
}
