:root {
  --night-blue: #0E1B2A;
  --neon-green: #C6FF00;
  --orange: #FF6B35;
  --purple: #4A0E4E;
  --ink: #1A1A1A;
  --paper: #F5F7FA;
  --data-blue: #4A90E2;
  --success: #27AE60;
  --warning: #F39C12;
  --error: #E74C3C;
  --font-heading: 'Noto Sans SC', 'Impact', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', 'Consolas', 'Courier New', monospace;
  --header-width: 320px;
  --border-w: 2px;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.55);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background: var(--night-blue);
  color: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
}

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

li {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

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

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

::selection {
  background: var(--neon-green);
  color: var(--ink);
}

#main-content {
  scroll-margin-top: 24px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 12px 20px;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--neon-green);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-width);
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 107, 53, 0.14), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(74, 14, 78, 0.85), transparent 60%),
    var(--night-blue);
  border-right: 3px solid var(--ink);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--neon-green);
  z-index: 2;
}

.header-inner {
  padding: 30px 24px 0;
}

.brand-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  background: var(--neon-green);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
  transform: rotate(-4deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo:hover .brand-mark,
.brand-logo:focus-visible .brand-mark {
  transform: rotate(0deg);
  box-shadow: 2px 2px 0 var(--orange);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand-slogan {
  display: inline-flex;
  align-items: center;
  padding-left: 10px;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--neon-green);
  border-left: 3px solid var(--orange);
  text-transform: uppercase;
}

.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 18px 40px;
  min-height: 0;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: rgba(245, 247, 250, 0.88);
  border: 2px solid transparent;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.nav-link::before {
  content: attr(data-nav-index);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  opacity: 0.7;
  min-width: 28px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background: var(--neon-green);
  border-color: var(--ink);
  padding-left: 20px;
}

.nav-link[aria-current="page"] {
  color: var(--neon-green);
  background: rgba(198, 255, 0, 0.1);
  border-left: 6px solid var(--neon-green);
}

.search-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.55);
  background: rgba(6, 12, 20, 0.6);
  border: 2px solid rgba(245, 247, 250, 0.22);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search-link:hover,
.search-link:focus-visible {
  color: var(--paper);
  background: rgba(255, 107, 53, 0.12);
  border-color: var(--orange);
}

.search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}

.progress-track {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(245, 247, 250, 0.08);
  z-index: 2;
}

.progress-bar {
  width: 100%;
  height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--neon-green), var(--orange));
}

.site-footer {
  position: relative;
  background:
    linear-gradient(135deg, rgba(74, 14, 78, 0.55), transparent 42%),
    var(--night-blue);
  border-top: 4px solid var(--neon-green);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1560px;
  margin-inline: auto;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 64px) 48px;
}

.footer-block {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--paper);
  line-height: 1.2;
  border-bottom: 4px solid var(--neon-green);
  padding-bottom: 6px;
}

.footer-slogan {
  display: inline-block;
  margin-left: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
}

.footer-desc {
  margin-top: 18px;
  max-width: 42ch;
  color: rgba(245, 247, 250, 0.68);
  font-size: 15px;
}

.footer-title {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 18px;
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background: var(--orange);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  padding: 2px 0;
  color: rgba(245, 247, 250, 0.72);
  font-size: 15px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

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

.footer-contact .contact-line {
  margin-top: 10px;
  color: rgba(245, 247, 250, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.28);
  border-top: 2px solid rgba(198, 255, 0, 0.25);
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1560px;
  margin-inline: auto;
  padding: 18px clamp(20px, 4vw, 64px) 6px;
  font-size: 14px;
  color: rgba(245, 247, 250, 0.75);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, 0.55);
}

.footer-trust {
  max-width: 1560px;
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 64px) 22px;
  font-size: 13px;
  color: rgba(245, 247, 250, 0.42);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1300;
  padding: 10px;
  border: 2px solid var(--ink);
  background: var(--neon-green);
  box-shadow: 3px 3px 0 var(--ink);
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-content {
  margin-left: var(--header-width);
  padding: clamp(32px, 5vw, 72px);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

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

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(245, 247, 250, 0.6);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--neon-green);
}

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

.breadcrumb-item a:hover,
.breadcrumb-item a:focus-visible {
  color: var(--neon-green);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-title {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  background: var(--neon-green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: var(--neon-green);
}

.btn-ghost {
  color: var(--paper);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--paper);
}

.card {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: var(--neon-green);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
}

.card-body {
  padding: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-cell {
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.stat-value .unit {
  font-size: 16px;
  color: var(--orange);
  margin-left: 4px;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(26, 26, 26, 0.65);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  line-height: 1.5;
}

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

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

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(245, 247, 250, 0.14);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-green);
  border-bottom: 2px solid var(--neon-green);
}

.data-table tbody tr:hover {
  background: rgba(198, 255, 0, 0.08);
}

.image-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(198, 255, 0, 0.18), transparent 42%),
    linear-gradient(135deg, var(--purple), var(--night-blue));
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.image-frame::after {
  content: attr(data-label);
  display: block;
  padding: 8px 14px;
  max-width: 80%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(245, 247, 250, 0.5);
  border: 1px dashed rgba(245, 247, 250, 0.35);
}

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

.image-frame.has-image::after {
  display: none;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, rgba(198, 255, 0, 0.07) 0 10px, transparent 10px 20px);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: var(--orange);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top[data-visible="true"] {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

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

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: none;
    border-bottom: 3px solid var(--ink);
  }

  .site-header::before {
    height: 3px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
  }

  .brand-logo {
    flex-wrap: nowrap;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 22px;
    box-shadow: 3px 3px 0 var(--orange);
  }

  .brand-text {
    font-size: 22px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
  }

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

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

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

  .site-header[data-nav-open="true"] .nav-toggle {
    position: fixed;
    top: 18px;
    left: calc(min(84vw, 340px) - 62px);
    box-shadow: 2px 2px 0 var(--ink);
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(84vw, 340px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 88px 24px 32px;
    background:
      radial-gradient(circle at 80% 0%, rgba(74, 14, 78, 0.45), transparent 60%),
      var(--night-blue);
    border-right: 3px solid var(--ink);
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 1200;
  }

  .site-header[data-nav-open="true"] .site-nav {
    transform: none;
  }

  .progress-track {
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
  }

  .progress-bar {
    width: var(--progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--orange));
  }

  .site-content {
    margin-left: 0;
    padding: 24px 18px 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

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

@media (max-width: 639px) {
  .header-inner {
    padding: 10px 12px;
  }

  .nav-toggle {
    padding: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .brand-text {
    font-size: 20px;
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 12px;
  }

  .search-link {
    font-size: 14px;
    padding: 13px 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

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

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-cell {
    padding: 16px;
  }
}

@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;
    transition-delay: 0ms !important;
  }

  .site-nav {
    transition: none;
  }

  .nav-toggle,
  .toggle-bar {
    transition: none;
  }

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