:root {
  --grass: #0B7A3E;
  --grass-deep: #075B2E;
  --blue: #0E2A47;
  --blue-deep: #091D31;
  --gold: #D4A029;
  --ink: #121212;
  --paper: #F5F3EF;
  --paper-warm: #FAFAF8;
  --line: #D8D6D2;
  --mint: #D7E8D5;
  --font-display: "Arial Black", "DIN Alternate", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-data: "Roboto Mono", "Consolas", monospace;
  --header-topbar-h: 38px;
  --header-main-h: 78px;
  --header-total: calc(var(--header-topbar-h) + var(--header-main-h));
  --shadow-paper: 8px 8px 0 rgba(18, 18, 18, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-total);
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(11, 122, 62, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 122, 62, 0.05) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--grass);
  color: var(--paper);
}

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

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

#main-content {
  scroll-margin-top: calc(var(--header-total) + 0.5rem);
  outline: none;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--grass);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--paper);
  transform: translate(-50%, -280%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}

.topbar {
  height: var(--header-topbar-h);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #000;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  white-space: nowrap;
  font-size: 0.75rem;
}

.topbar-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--paper);
}

.topbar-code::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grass);
}

.topbar-desc {
  font-family: var(--font-body);
  color: var(--gold);
}

.topbar-claim {
  color: rgba(245, 243, 239, 0.72);
  letter-spacing: 0.02em;
}

.topbar-domain {
  font-family: var(--font-data);
  color: var(--gold);
}

.header-main {
  height: var(--header-main-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--grass);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 88%, 12% 100%, 0 88%);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-name-en {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--grass);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item + .nav-item {
  border-left: 1px solid var(--line);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 0 1rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-index {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--blue);
}

.nav-name {
  white-space: nowrap;
}

.nav-link:hover .nav-name {
  color: var(--grass);
}

.nav-link:hover .nav-index {
  color: var(--gold);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--gold);
}

.nav-link[aria-current="page"] .nav-index::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--gold);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 3px;
  background: var(--grass);
}

@media (max-width: 900px) {
  :root {
    --header-topbar-h: 36px;
    --header-main-h: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-total);
    left: 0;
    right: 0;
    z-index: 999;
    max-height: calc(100vh - var(--header-total));
    margin-left: 0;
    overflow-y: auto;
    background: var(--paper-warm);
    border-bottom: 3px solid var(--grass);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .primary-nav[data-open] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    height: auto;
    padding: 0.5rem 0 1rem;
  }

  .nav-item + .nav-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav-link {
    height: auto;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }

  .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold);
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .topbar-claim,
  .topbar-domain {
    display: none;
  }
}

body[data-nav-lock] {
  overflow: hidden;
}

.site-footer {
  background: var(--blue);
  color: rgba(245, 243, 239, 0.82);
}

.footer-top {
  border-top: 4px solid var(--gold);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(245, 243, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 239, 0.03) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand-block {
  max-width: 36rem;
}

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

.footer-brand .brand-symbol {
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-brand-name small {
  margin-left: 0.35rem;
  font-family: var(--font-data);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.footer-tagline {
  margin: 0.65rem 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--grass);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-trust {
  max-width: 34rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(245, 243, 239, 0.72);
}

.footer-heading {
  margin: 0 0 1rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: rgba(245, 243, 239, 0.85);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-list a:hover {
  color: var(--gold);
  padding-left: 0.35rem;
}

.footer-nav-legal {
  position: relative;
}

.footer-contact {
  font-family: var(--font-data);
  font-size: 0.9rem;
}

.footer-contact-item {
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(245, 243, 239, 0.12);
  color: rgba(245, 243, 239, 0.9);
  line-height: 1.5;
}

.footer-bottom {
  background: var(--blue-deep);
  border-top: 1px solid rgba(245, 243, 239, 0.08);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.7);
}

.footer-copy {
  margin: 0;
}

.footer-icp {
  color: var(--gold);
  font-family: var(--font-data);
}

.footer-legal-link {
  color: rgba(245, 243, 239, 0.85);
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--gold);
}

@media (min-width: 981px) {
  .footer-nav-legal {
    border-left: 1px solid rgba(245, 243, 239, 0.12);
    padding-left: 1.5rem;
  }
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0.25rem 1rem rgba(18, 18, 18, 0.2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-top::before {
  content: "↑";
  color: var(--gold);
}

.back-top[data-visible="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grass);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.page-header {
  max-width: 1000px;
  margin-bottom: 2.5rem;
}

.page-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.page-lead {
  max-width: 65ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(18, 18, 18, 0.78);
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.125rem;
  color: rgba(18, 18, 18, 0.8);
}

.prose {
  max-width: 75ch;
}

.prose p {
  margin: 1.1rem 0;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--grass);
  border-color: var(--grass);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold);
}

.btn-ghost {
  background: var(--paper-warm);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--grass);
  color: var(--grass);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.breadcrumb {
  margin: 0 0 1.5rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: rgba(18, 18, 18, 0.65);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  color: var(--grass);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.panel {
  position: relative;
  margin: 0;
  padding: 1.75rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--grass);
  box-shadow: var(--shadow-paper);
}

.panel[data-tone="blue"] {
  border-left-color: var(--blue);
}

.panel[data-tone="gold"] {
  border-left-color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  background: var(--mint);
  border: 1px solid rgba(11, 122, 62, 0.18);
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0.35rem 0.6rem;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-data);
  font-size: 0.9rem;
  font-weight: 700;
}

.metric {
  margin: 0;
  font-family: var(--font-data);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-data);
  font-size: 0.88rem;
}

.data-table caption {
  caption-side: top;
  margin-bottom: 0.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--ink);
}

.data-table th {
  padding: 0.75rem 0.5rem;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  background: var(--paper-warm);
  color: var(--ink);
}

.data-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.data-table tr:hover td {
  background: var(--paper-warm);
}

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