:root {
  --ink: #16251f;
  --muted: #5a6b63;
  --brand: #0f6b4f;
  --brand-dark: #0a3d2d;
  --brand-light: #e7f3ed;
  --accent: #c9a227;
  --accent-text: #8a6d12;
  --accent-on-dark: #f2d98a;
  --accent-light: #f3e6b8;
  --bg: #fbfdfc;
  --line: #dde8e2;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(12, 52, 38, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
}

.hero :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--accent-on-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 253, 252, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand), #1c8a63);
  color: #fff;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 107, 79, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-dark);
  background: var(--brand-light);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 7.5rem;
  color: #fff;
  background: radial-gradient(1100px 520px at 82% -10%, #1d8a64 0%, transparent 62%),
    linear-gradient(135deg, #07271d 0%, #0b4a36 58%, #0f6b4f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero-lede {
  margin: 0 0 0.7rem;
  color: #e8f5ef;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.hero-sub {
  max-width: 56rem;
  margin: 0;
  color: rgba(232, 245, 239, 0.78);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--accent-on-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, #d8b23a, var(--accent));
  color: #201b06;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.24);
}

.btn.primary:hover {
  color: #201b06;
  box-shadow: 0 14px 28px rgba(201, 162, 39, 0.32);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn.light {
  background: #fff;
  color: var(--brand-dark);
}

.btn.small {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

/* Stats */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: -3.2rem;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
}

.stat strong {
  color: var(--brand-dark);
  font-size: 1.9rem;
  line-height: 1.1;
}

.stat strong em {
  margin-left: 0.2rem;
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-head p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #cfe2d8;
  box-shadow: var(--shadow);
}

.card-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.more {
  margin-top: 1.6rem;
}

.band {
  color: #fff;
  background: linear-gradient(135deg, #0a3d2d, var(--brand));
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0;
}

.band h2 {
  margin: 0 0 0.35rem;
  color: #cfe6dc;
  font-size: 1.05rem;
  font-weight: 500;
}

.band .code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.08em;
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  align-items: start;
  gap: 3rem;
}

.contact-card {
  padding: 1.6rem;
  background: #f2f8f5;
  border: 1px solid #d9e9e1;
  border-left: 4px solid var(--brand);
  border-radius: 14px;
}

.contact-card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* Inner page hero */
.page-hero {
  padding: 4.5rem 0 4rem;
  color: #fff;
  background: linear-gradient(135deg, #0a3d2d, #126b50);
}

.page-hero h1 {
  margin-bottom: 1rem;
  color: #fff;
}

.page-lede {
  max-width: 820px;
  margin: 0;
  color: rgba(232, 245, 239, 0.82);
  font-size: 1.05rem;
}

/* Prose and facts */
.prose {
  max-width: 920px;
}

.prose h2 {
  margin-top: 2.6rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: #32443c;
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.2rem 0 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.facts.compact > div {
  grid-template-columns: 8.5rem 1fr;
  padding: 0.7rem 0;
}

.scope {
  padding: 1.2rem 1.3rem;
  color: #32443c;
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
}

.note-box {
  padding: 1.6rem 1.8rem;
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.note-box.small {
  padding: 1.1rem 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.note-box p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 3rem;
}

.contact-main h2 {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-main h2:first-child {
  margin-top: 0;
}

/* 404 */
.notfound {
  max-width: 720px;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 3.2rem 0 2.6rem;
  color: #b9d3c8;
  background: #08251c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 2.5rem;
}

.footer-brand {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-footer a {
  color: #d7ece3;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
}

.footer-title {
  margin-bottom: 0.6rem;
  color: #fff;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.icp-link {
  display: inline-block;
  margin-top: 0.4rem;
}

@media (max-width: 860px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: -2rem;
  }
}

@media (max-width: 720px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 1.25rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(12, 52, 38, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid #eef4f1;
    border-radius: 0;
  }

  .hero {
    padding: 4.5rem 0 5.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .facts > div,
  .facts.compact > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
