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

:root {
  --green-900: #0A2E1D;
  --green-700: #14532D;
  --gold-500: #D4AF37;
  --gold-300: #EFD68A;
  --gray-900: #1A1A1A;
  --gray-700: #333333;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --font-heading: 'Oswald', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-number: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container-width: 1200px;
  --header-height: 72px;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-900);
  background-color: var(--gray-100);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: inherit;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold-500);
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.content-container {
  max-width: 720px;
  margin-inline: auto;
  padding: 2rem 1.5rem;
}

.page-container {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 2000;
  transform: translateY(-150%);
  background: var(--gold-500);
  color: var(--green-900);
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--green-900);
  outline: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 46, 29, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 46, 29, 0.97);
  border-bottom-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, transparent 44%, rgba(212, 175, 55, 0.16) 44%, rgba(212, 175, 55, 0.16) 50%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

.brand__mark { color: var(--white); }

.brand__mark::first-letter {
  color: var(--gold-500);
}

.brand__sub {
  font-family: var(--font-number);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--gold-300);
  text-transform: uppercase;
}

.brand--footer .brand__mark { color: var(--white); }
.brand--footer .brand__sub { color: var(--gold-300); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0 10px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.1);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-link:hover {
  color: var(--gold-300);
  border-bottom-color: var(--gold-500);
}

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

.nav-link__index {
  font-family: var(--font-number);
  font-size: 0.65rem;
  color: var(--gold-500);
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 3;
  pointer-events: none;
  transition: width 0.1s linear;
}

.site-footer {
  position: relative;
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--gold-500);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18%;
  height: 100%;
  background: linear-gradient(225deg, transparent 0%, transparent 46%, rgba(212, 175, 55, 0.08) 46%, rgba(212, 175, 55, 0.08) 54%, transparent 54%);
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 3rem 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand__desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 36ch;
}

.footer-brand__trust {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--gold-300);
  border-left: 2px solid var(--gold-500);
  padding-left: 0.75rem;
}

.footer-nav__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-nav__list,
.footer-contact__list,
.footer-legal__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav__list a,
.footer-legal__list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav__list a:hover,
.footer-legal__list a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-contact__list li {
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  background: rgba(20, 83, 45, 0.9);
  color: var(--gold-300);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, visibility 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-500);
  color: var(--green-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  background: var(--gold-500);
  color: var(--green-900);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background: var(--gold-300);
  color: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
}

.btn--outline:hover {
  background: var(--gold-500);
  color: var(--green-900);
}

.btn--small {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--gray-700);
}

.breadcrumbs__link {
  color: var(--green-700);
  text-decoration: none;
}

.breadcrumbs__link[aria-current="page"] {
  color: var(--gray-900);
}

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

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

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

.section {
  padding: 4rem 0;
}

.section--dark {
  background: var(--green-900);
  color: var(--white);
}

.section--gray {
  background: var(--gray-700);
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-number);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.index-label {
  display: inline-block;
  font-family: var(--font-number);
  font-size: 0.7rem;
  color: var(--gold-500);
  border: 1px solid var(--gold-500);
  padding: 0.2em 0.5em;
  border-radius: 2px;
}

.tag {
  display: inline-block;
  font-family: var(--font-number);
  font-size: 0.75rem;
  padding: 0.2em 0.6em;
  border: 1px solid var(--gold-500);
  color: var(--green-900);
  background: var(--gold-300);
  border-radius: 2px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-700);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-700);
  border-top: 3px solid var(--gold-500);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.stat-card__value {
  font-family: var(--font-number);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-900);
}

.stat-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-700);
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.image-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--square { aspect-ratio: 1 / 1; }
.image-frame--portrait { aspect-ratio: 3 / 4; }
.image-frame--4-3 { aspect-ratio: 4 / 3; }
.image-frame--tactical { aspect-ratio: 21 / 9; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--gray-900);
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-700);
  text-align: left;
}

.data-table th {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  background: var(--green-900);
  color: var(--gold-300);
}

.blueprint-grid {
  background-image:
    linear-gradient(rgba(10, 46, 29, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 46, 29, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--green-900);
    border-top: 1px solid var(--gold-500);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
  }

  .site-nav[data-open] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    display: flex;
    padding: 0.85rem 1rem;
    border-left: 3px solid transparent;
    border-bottom: none;
  }

  .nav-link:hover {
    border-left-color: var(--gold-500);
    border-bottom-color: transparent;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--gold-500);
    border-bottom-color: transparent;
    background: rgba(212, 175, 55, 0.08);
  }

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

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
