:root {
  --color-navy: #0B1D3A;
  --color-gold: #E8A33D;
  --color-paper: #F5F2EB;
  --color-stone: #8A8A7A;
  --color-moss: #6A7B5E;
  --color-clay: #C67B4F;
  --color-white: #FFFFFF;
  --color-ink: #1A1A1A;
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow-hard: 6px 6px 0 rgba(11, 29, 58, 0.92);
  --content-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--color-gold);
  color: var(--color-navy);
}

[hidden] {
  display: none !important;
}

#main-content {
  outline: none;
  scroll-margin-top: 160px;
}

.main-content {
  min-height: 68vh;
}

.container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.container--narrow {
  max-width: 880px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

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

.section--tinted {
  background: #ECE8DF;
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-paper);
}

.section--dark .section-title {
  color: var(--color-paper);
}

.section--dark .section-copy {
  color: rgba(245, 242, 235, 0.75);
}

.section-index {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: var(--color-navy);
  border-left: 4px solid var(--color-gold);
  padding: 0.4rem 0.75rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-copy {
  max-width: 64ch;
  color: rgba(26, 26, 26, 0.78);
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-head);
  color: var(--color-navy);
  margin: 2.25rem 0 0.75rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-stone);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-stone);
}

.breadcrumb a {
  color: var(--color-navy);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--color-stone);
}

.breadcrumb--on-dark {
  color: rgba(245, 242, 235, 0.5);
}

.breadcrumb--on-dark a {
  color: var(--color-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--color-navy);
  background: transparent;
  color: var(--color-navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(11, 29, 58, 0.85);
}

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

.btn-primary:hover {
  background: #D9992D;
}

.btn-outline {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn--light {
  border-color: var(--color-paper);
  background: var(--color-paper);
  color: var(--color-navy);
}

.btn--light:hover {
  background: #FFFFFF;
}

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

.grid--stats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

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

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

.stat-card {
  background: var(--color-white);
  border: 2px solid var(--color-navy);
  box-shadow: var(--shadow-hard);
  padding: 1.5rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-navy);
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.panel {
  background: var(--color-white);
  border: 2px solid var(--color-navy);
  box-shadow: var(--shadow-hard);
  padding: 1.5rem;
}

.panel--accent {
  border-top: 4px solid var(--color-gold);
}

.panel-header {
  border-bottom: 1px solid var(--color-stone);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.panel-body {
  line-height: 1.75;
}

.data-card {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-top: 4px solid var(--color-gold);
  box-shadow: 0 8px 0 rgba(11, 29, 58, 0.05);
  padding: 1.25rem;
}

.data-card--hot {
  border-top-color: var(--color-clay);
}

.data-card-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--color-paper);
  border: 1px solid var(--color-stone);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-navy);
}

.tag--ok {
  border-color: var(--color-moss);
  color: var(--color-moss);
}

.tag--hot {
  border-color: var(--color-clay);
  color: var(--color-clay);
}

.tabs {
  margin: 2rem 0;
}

.tab-list {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--color-stone);
  overflow-x: auto;
}

.tab-button {
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-stone);
  cursor: pointer;
  white-space: nowrap;
  transform: translateY(2px);
}

.tab-button[aria-selected="true"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
}

.tab-panel {
  padding-top: 1.5rem;
}

.image-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy), #16294F);
  isolation: isolate;
}

.image-frame--wide {
  aspect-ratio: 21 / 9;
}

.image-frame--tall {
  aspect-ratio: 3 / 4;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, transparent 46%, rgba(232, 163, 61, 0.35) 47%, rgba(232, 163, 61, 0.35) 48%, transparent 49%),
    linear-gradient(70deg, transparent 45%, rgba(245, 242, 235, 0.14) 46%, transparent 47%);
  background-size: 140% 140%;
  opacity: 0.8;
  pointer-events: none;
}

.image-frame img,
.image-frame picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame__label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  background: var(--color-navy);
  color: var(--color-paper);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-left: 3px solid var(--color-gold);
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-head);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  color: var(--color-paper);
  border-bottom: 1px solid rgba(245, 242, 235, 0.14);
  box-shadow: 0 10px 24px rgba(11, 29, 58, 0.18);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: var(--scroll-progress-width, 0%);
  background: linear-gradient(90deg, var(--color-gold), #F6C76A);
  opacity: 0.95;
  z-index: 2;
  pointer-events: none;
}

.header-brandbar {
  border-bottom: 1px solid rgba(245, 242, 235, 0.14);
}

.header-inner {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.header-inner--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
}

.header-inner--nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--color-gold);
  background: linear-gradient(135deg, rgba(232, 163, 61, 0.2), transparent);
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: skewX(-6deg);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(232, 163, 61, 0.35);
}

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

.brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 235, 0.66);
}

.header-slogan {
  display: grid;
  gap: 0.25rem;
  text-align: right;
  border-left: 2px solid rgba(232, 163, 61, 0.4);
  padding-left: 1rem;
}

.header-slogan-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  color: var(--color-gold);
}

.header-slogan-text {
  font-size: 0.875rem;
  color: rgba(245, 242, 235, 0.75);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(245, 242, 235, 0.25);
  cursor: pointer;
}

.nav-toggle-line {
  width: 24px;
  height: 2px;
  background: var(--color-paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.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);
}

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

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

.nav-link {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  color: rgba(245, 242, 235, 0.8);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

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

.nav-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 235, 0.55);
}

.nav-meta-label {
  text-transform: uppercase;
}

.nav-meta-value {
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  padding: 0.15rem 0.5rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-paper);
  border-top: 4px solid var(--color-gold);
}

.site-footer a {
  color: rgba(245, 242, 235, 0.8);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-gold);
}

.footer-index {
  position: absolute;
  top: 0.5rem;
  right: -1rem;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.85;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 242, 235, 0.04);
  pointer-events: none;
}

.footer-index-line {
  display: block;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-link .brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.footer-brand-link .brand-name {
  color: var(--color-paper);
  font-size: 1.125rem;
}

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

.footer-slogan {
  margin: 0.5rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 235, 0.75);
}

.footer-trust {
  max-width: 34ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(245, 242, 235, 0.55);
}

.footer-title {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer-links,
.footer-contact-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.footer-contact-list li {
  color: rgba(245, 242, 235, 0.65);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(245, 242, 235, 0.12);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(245, 242, 235, 0.5);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .header-slogan {
    display: none;
  }

  .nav-meta {
    display: none;
  }

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

  .grid--double {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  #main-content {
    scroll-margin-top: 110px;
  }

  .header-inner--top {
    padding: 0.65rem 0;
  }

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

  .header-inner--nav {
    justify-content: flex-start;
    padding: 0;
    flex-direction: column;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(245, 242, 235, 0.14);
  }

  .site-nav[data-open] {
    display: flex;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

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

  .nav-link {
    border: 0;
    border-left: 3px solid transparent;
    padding: 0.8rem 0.85rem;
  }

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

  .grid--triple {
    grid-template-columns: 1fr;
  }

  .grid--stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .grid--stats {
    grid-template-columns: 1fr;
  }

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

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .site-header::after {
    transition: none;
  }
}
