:root {
  --primary-bg: #081A2E;
  --surface: #0D2A4D;
  --accent-blue: #00E5FF;
  --accent-purple: #B44CFF;
  --accent-green: #C6FF00;
  --gold: #E0B878;
  --text-primary: #FFFFFF;
  --text-muted: #A0B8D9;
  --hairline: #1A3A6A;
  --font-heading: 'Orbitron', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Noto Sans Mono CJK SC', monospace;
  --sidebar-w: 280px;
  --header-h-mobile: 64px;
  --content-max: 1280px;
  --content-wide: 1600px;
  --gap: 24px;
  --z-header: 100;
  --z-progress: 300;
  --z-skip: 3000;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background: var(--primary-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--header-h-mobile);
}

@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--sidebar-w);
  }
}

main {
  display: block;
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--text-primary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 1.4em;
}

::selection {
  background: var(--accent-blue);
  color: var(--primary-bg);
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.visually-hidden {
  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: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-skip);
  padding: 12px 24px;
  background: var(--accent-green);
  color: var(--primary-bg);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.25s ease;
}

.skip-link:hover {
  text-decoration: none;
}

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

.scroll-progress {
  --progress: 0%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(198, 255, 0, 0.1);
  z-index: var(--z-progress);
  pointer-events: none;
}

.scroll-progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--progress);
  height: 100%;
  background: var(--accent-green);
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.45);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container--wide {
  max-width: var(--content-wide);
}

.content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--gap) 80px;
}

@media (min-width: 768px) {
  .content {
    padding: 64px 32px 100px;
  }
}

@media (min-width: 1024px) {
  .content {
    padding: 80px 40px 120px;
  }
}

.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }
}

.divider {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 40px 0;
}

.text-muted {
  color: var(--text-muted);
}

.text-gold {
  color: var(--gold);
}

.text-blue {
  color: var(--accent-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 28px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--primary-bg);
}

.btn--primary:hover {
  box-shadow: 0 0 20px rgba(198, 255, 0, 0.3);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--accent-blue);
}

.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn--purple {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: var(--primary-bg);
}

.btn--purple:hover {
  box-shadow: 0 0 20px rgba(180, 76, 255, 0.35);
  transform: translateY(-2px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb__link {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.breadcrumb__separator {
  display: inline-block;
  color: var(--hairline);
  font-size: 12px;
}

.breadcrumb__current {
  color: var(--text-muted);
  white-space: nowrap;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent-purple);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.slash {
  display: block;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(var(--accent-blue), var(--accent-purple));
  opacity: 0.7;
  pointer-events: none;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
}

.panel__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.panel__body {
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--blue {
  color: var(--accent-blue);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.badge--green {
  color: var(--accent-green);
  border-color: rgba(198, 255, 0, 0.35);
  background: rgba(198, 255, 0, 0.08);
}

.badge--purple {
  color: var(--accent-purple);
  border-color: rgba(180, 76, 255, 0.35);
  background: rgba(180, 76, 255, 0.08);
}

.badge--gold {
  color: var(--gold);
  border-color: rgba(224, 184, 120, 0.35);
  background: rgba(224, 184, 120, 0.08);
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

@media (min-width: 480px) {
  .data-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

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

@media (min-width: 768px) {
  .data-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .data-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.data-cell {
  background: var(--surface);
  padding: 20px;
}

.data-cell__title {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.data-cell__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

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

@media (min-width: 480px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  position: relative;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), transparent 70%);
  opacity: 0.7;
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-blue);
  line-height: 1.2;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 9;
}

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

.image-frame--ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(180, 76, 255, 0.04));
  z-index: 1;
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-frame__label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}

.image-frame--glow {
  border-color: rgba(180, 76, 255, 0.5);
  box-shadow: 0 0 30px rgba(180, 76, 255, 0.12);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-header);
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.5), rgba(180, 76, 255, 0.35), rgba(224, 184, 120, 0.25));
  opacity: 0.45;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.3;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--primary-bg);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand__content {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand__slogan {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.brand--footer .brand__mark {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.brand--footer .brand__name {
  font-size: 20px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--accent-blue);
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--accent-blue);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.site-nav__list {
  list-style: none;
  padding-left: 0;
}

.site-nav__item {
  list-style: none;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.05);
  border-left-color: var(--accent-blue);
  text-decoration: none;
}

.site-nav__link[aria-current="page"],
.site-nav__link[aria-current="true"] {
  color: var(--accent-blue);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), transparent 75%);
  border-left-color: var(--accent-blue);
}

.site-nav__link[aria-current="page"] .site-nav__index,
.site-nav__link[aria-current="true"] .site-nav__index {
  color: var(--accent-green);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  min-width: 22px;
  transition: color 0.2s ease;
}

.site-nav__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.site-nav__dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(198, 255, 0, 0.55);
  animation: pulse-dot 2s ease-in-out infinite;
}

.site-nav__sync {
  white-space: nowrap;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(198, 255, 0, 0.55);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 3px rgba(198, 255, 0, 0.25);
  }
}

@media (min-width: 1024px) {
  .site-header {
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
  }

  .site-header__inner {
    display: flex;
    flex-direction: column;
    padding: 28px 20px 20px;
  }

  .site-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 40px;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .site-nav__meta {
    margin-top: auto;
    padding: 16px 8px 0;
    border-top: 1px solid var(--hairline);
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 1023px) {
  .site-header {
    width: 100%;
    height: var(--header-h-mobile);
    border-bottom: 1px solid var(--hairline);
  }

  .site-header::after {
    top: auto;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--gold));
    opacity: 0.4;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  .brand__slogan {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h-mobile);
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    padding: 24px 20px;
    background-color: var(--surface);
    background-image:
      linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    border-right: 1px solid var(--hairline);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 90;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    box-shadow: 24px 0 48px rgba(0, 0, 0, 0.45);
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav__meta {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline);
  }
}

.site-footer {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(224, 184, 120, 0.1) 50%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.site-footer::after {
  content: "ZB";
  position: absolute;
  right: -10px;
  bottom: -60px;
  font-family: var(--font-heading);
  font-size: 220px;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 229, 255, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 48px var(--gap) 24px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-footer__trust {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.site-footer__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.site-footer__heading::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-blue);
  opacity: 0.7;
}

.site-footer__list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__link:hover {
  color: var(--accent-blue);
  padding-left: 4px;
  text-decoration: none;
}

.site-footer__list--meta li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.site-footer__copyright,
.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: 1.1fr 2fr;
    gap: 60px;
  }

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

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .site-footer::after {
    font-size: 120px;
    right: -20px;
    bottom: -30px;
  }
}

@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;
  }

  .site-nav {
    transition: none !important;
  }

  .scroll-progress {
    opacity: 0;
    pointer-events: none;
  }
}
