:root {
  --space-blue: #0A1931;
  --green: #00E878;
  --orange: #FF5E3A;
  --cream: #F5EFE0;
  --ink: #1F1B16;
  --mid-blue: #1E3A6D;
  --light-blue: #DCE3EC;
  --warm: #E8E0D2;
  --white: #FFFFFF;
  --muted: #5E6E85;
  --border: #DCE3EC;
  --header-h: 72px;
  --content-max: 1200px;
  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shadow-hard: 8px 8px 0 rgba(10, 25, 49, 0.08);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main:focus {
  outline: none;
}

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

a {
  color: inherit;
}

address {
  font-style: normal;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--green);
  color: var(--space-blue);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--space-blue) 0%, #12264A 100%);
  color: var(--white);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 8px 28px rgba(10, 25, 49, 0.35);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(-45deg, rgba(0, 232, 120, 0.05) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(45deg, rgba(255, 94, 58, 0.04) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.header-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding: 0 24px;
  padding-inline: max(24px, calc((100vw - var(--content-max)) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 36px;
  padding: 0 8px;
  background: var(--green);
  color: var(--space-blue);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  transform: skewX(-8deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--orange);
  text-transform: uppercase;
}

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

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.main-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav__link::before {
  content: attr(data-index);
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--green);
  vertical-align: top;
}

.main-nav__link:hover,
.main-nav__link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.main-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 3px;
  background: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box::before {
  content: "";
  position: absolute;
  left: 10px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--green);
  border-radius: 50%;
  transform: translateY(-20%);
  pointer-events: none;
}

.search-box__input {
  width: 180px;
  height: 38px;
  padding: 0 32px 0 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-box__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box__input:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.12);
}

.search-box__key {
  position: absolute;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  border: 1px solid currentColor;
  padding: 1px 5px;
  border-radius: 2px;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transform: skewX(-6deg);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: skewX(-6deg) translateY(-2px);
}

.btn--primary {
  background: var(--green);
  color: var(--space-blue);
}

.btn--primary:hover {
  background: #2BFF91;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--green);
}

.btn--small {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__line {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: background 0.2s ease;
}

.nav-toggle__line::before,
.nav-toggle__line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle__line::before {
  top: -6px;
}

.nav-toggle__line::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line::after {
  top: 0;
  transform: rotate(-45deg);
}

.header-ticker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  padding-inline: max(24px, calc((100vw - var(--content-max)) / 2));
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: 32px;
  overflow: hidden;
}

.header-ticker__label {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: var(--orange);
  color: var(--space-blue);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.header-ticker__text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transition: width 0.1s linear;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 0;
  background: var(--space-blue);
  color: rgba(255, 255, 255, 0.78);
  border-top: 4px solid var(--green);
  overflow: hidden;
}

.site-footer::before {
  content: "WM";
  position: absolute;
  right: -30px;
  bottom: -60px;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 1;
  color: rgba(0, 232, 120, 0.05);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

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

.footer-tagline {
  max-width: 34em;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.footer-contact__item {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col__title {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 8px;
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col__list a {
  display: inline-block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--green);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom__meta,
.footer-legal,
.footer-notice {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-notice {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

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

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

.section {
  padding: 64px 24px;
}

.section--tight {
  padding: 32px 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--green);
}

.section-title {
  margin-bottom: 0.4em;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--space-blue);
}

.data-card {
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 6px solid var(--green);
  box-shadow: var(--shadow-hard);
}

.data-card--dark {
  background: var(--space-blue);
  color: var(--white);
  border-left-color: var(--orange);
}

.data-card__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.data-card--dark .data-card__label {
  color: rgba(255, 255, 255, 0.6);
}

.data-card__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-family: var(--font-mono);
}

.data-card--dark .data-card__value {
  color: var(--green);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--warm);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
}

.tag--green {
  background: var(--green);
  color: var(--space-blue);
}

.tag--orange {
  background: var(--orange);
  color: var(--white);
}

.index-list {
  list-style: none;
  border-top: 2px solid var(--space-blue);
}

.index-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.index-list__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--orange);
}

.breadcrumbs a {
  color: var(--mid-blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--orange);
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--space-blue);
  overflow-x: auto;
}

.tabs__button {
  padding: 10px 18px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tabs__button[aria-selected="true"] {
  color: var(--space-blue);
  border-bottom-color: var(--orange);
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__button {
  width: 100%;
  padding: 14px 10px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.accordion__panel {
  padding: 0 14px 16px;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 1024px) {
  .header-shell {
    --header-h: 60px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    padding: 0 12px;
  }

  .brand {
    order: 2;
    justify-content: center;
  }

  .brand__sub {
    display: none;
  }

  .brand__mark {
    min-width: 36px;
    height: 32px;
    font-size: 1rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 320px);
    margin: 0;
    background: var(--space-blue);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    visibility: hidden;
  }

  .main-nav[data-open] {
    transform: translateX(0);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
    visibility: visible;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 24px;
    gap: 0;
  }

  .main-nav__link {
    display: block;
    padding: 14px 10px;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav__link::after {
    bottom: -1px;
  }

  .header-actions {
    order: 3;
    justify-content: flex-end;
  }

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

  .header-actions .search-box {
    display: none;
  }

  .btn--login {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .btn--login::before {
    content: "→";
    font-size: 1.2rem;
    line-height: 1;
  }

  .header-ticker {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

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

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

  .container,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .data-card {
    padding: 18px;
  }
}

@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;
    transition: none;
  }
}
