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

[hidden] {
  display: none !important;
}

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

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

body {
  min-height: 100vh;
  background-color: #0B0F19;
  background-image:
    linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(255, 107, 0, 0) 32%),
    linear-gradient(315deg, rgba(0, 229, 255, 0.06) 0%, rgba(0, 229, 255, 0) 30%);
  color: #FFFFFF;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

a {
  color: #00E5FF;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #FF6B00;
}

:focus-visible {
  outline: 3px solid #00E5FF;
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: #FF6B00;
  color: #0B0F19;
  text-shadow: none;
}

:root {
  --bg-deep: #0B0F19;
  --bg-panel: #131A2A;
  --accent: #FF6B00;
  --accent-2: #00E5FF;
  --text: #FFFFFF;
  --text-dim: #94A3B8;
  --border: #1E293B;
  --gold: #FACC15;
  --cyan-deep: #06B6D4;
  --orange-deep: #F97316;
  --font-head: "Arial Black", "Impact", "Noto Sans SC", sans-serif;
  --font-data: "Roboto Mono", "JetBrains Mono", monospace;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --header-width: 17rem;
  --header-h-mobile: 3.75rem;
  --content-max: 75rem;
  --heading-scale: clamp(1.6rem, 3.5vw, 2.85rem);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body.nav-lock {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: #FF6B00;
  color: #0B0F19;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: var(--header-h-mobile);
  background: #131A2A;
  border-bottom: 1px solid #1E293B;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #FF6B00 0 25%, #00E5FF 25% 50%, #1E293B 50% 100%);
}

.site-header__rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFFFFF;
  text-decoration: none;
}

.site-brand__logo {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
}

.site-brand__logo svg {
  width: 100%;
  height: 100%;
}

.site-brand__name {
  display: block;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.site-brand__sub {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00E5FF;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid #1E293B;
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  transition: transform 180ms ease, opacity 180ms 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 {
  position: fixed;
  top: var(--header-h-mobile);
  left: 0;
  z-index: 210;
  width: min(20rem, 90vw);
  height: calc(100vh - var(--header-h-mobile));
  padding: 1.25rem 1rem;
  overflow-y: auto;
  background: #131A2A;
  border-right: 1px solid #1E293B;
  transform: translateX(-100%);
  transition: transform 240ms ease;
}

.site-nav[data-open] {
  transform: translateX(0);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.35);
}

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

.site-nav__item + .site-nav__item {
  margin-top: 0.25rem;
}

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid transparent;
  color: #94A3B8;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: #00E5FF;
  color: #FFFFFF;
}

.site-nav__link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.22), rgba(0, 229, 255, 0.06) 70%, transparent);
  border-left-color: #FF6B00;
  color: #FFFFFF;
}

.site-nav__index {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #00E5FF;
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: #FF6B00;
}

.site-nav__label {
  font-weight: 600;
}

.site-header__foot {
  display: none;
}

.site-header__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #1E293B;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: #94A3B8;
}

.site-header__stat:last-child {
  border-bottom: 0;
}

.site-header__stat-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header__stat-value {
  color: #FF6B00;
  font-weight: 700;
}

@media (min-width: 64rem) {
  body {
    margin-left: var(--header-width);
  }

  body.nav-lock {
    overflow: auto;
  }

  .site-header {
    width: var(--header-width);
    height: 100vh;
    border-right: 1px solid #1E293B;
    border-bottom: 0;
  }

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

  .site-header__rail {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.25rem 1.5rem;
  }

  .site-header__top {
    width: 100%;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    width: auto;
    height: auto;
    margin-top: 2rem;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .site-nav[data-open] {
    box-shadow: none;
    transform: none;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav__link {
    padding: 0.85rem 0.75rem;
  }

  .site-header__foot {
    display: block;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #1E293B;
  }
}

@media (max-width: 63.99rem) {
  body {
    padding-top: var(--header-h-mobile);
  }
}

.site-footer {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 2rem;
  background: linear-gradient(180deg, #131A2A 0%, #0B0F19 100%);
  border-top: 1px solid #1E293B;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FF6B00 0 20%, #00E5FF 20% 35%, #1E293B 35% 100%);
}

.site-footer__primary {
  display: grid;
  gap: 2.5rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-footer__brand-col {
  max-width: 24rem;
}

.site-brand--footer .site-brand__logo {
  width: 2.25rem;
  height: 2.25rem;
}

.site-footer__note {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94A3B8;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__title {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 0.9rem;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.site-footer__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 0.4rem;
  height: 0.6em;
  background: #FF6B00;
  transform: skewX(-20deg);
}

.site-footer__links,
.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li + li,
.site-footer__contact li + li {
  margin-top: 0.25rem;
}

.site-footer__links a {
  display: inline-block;
  padding: 0.28rem 0;
  color: #94A3B8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-footer__links a:hover {
  color: #00E5FF;
  border-bottom-color: #00E5FF;
}

.site-footer__contact li {
  padding: 0.3rem 0;
  color: #94A3B8;
  font-size: 0.95rem;
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.85rem;
}

.site-footer__legal-links a {
  padding: 0.25rem 0;
  color: #00E5FF;
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-footer__legal-links a:hover {
  color: #FF6B00;
  border-bottom-color: #FF6B00;
}

.site-footer__rule {
  max-width: var(--content-max);
  margin: 2.5rem auto 1.5rem;
  border: 0;
  border-top: 1px solid #1E293B;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: #94A3B8;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom .site-footer__legal {
  width: 100%;
  opacity: 0.75;
}

@media (min-width: 48rem) {
  .site-footer__primary {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    align-items: start;
  }
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.section {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.section-head__kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00E5FF;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: var(--heading-scale);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn--primary {
  background: #FF6B00;
  border-color: #FF6B00;
  color: #0B0F19;
  font-weight: 700;
}

.btn--primary:hover {
  background: #F97316;
  border-color: #F97316;
  color: #0B0F19;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: #00E5FF;
  color: #00E5FF;
}

.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: #00E5FF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #FF6B00;
}

.breadcrumb a {
  color: #94A3B8;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a[aria-current="page"] {
  color: #00E5FF;
}

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

.grid--2,
.grid--3,
.grid--aside {
  align-items: start;
}

@media (min-width: 48rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--aside {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2.5rem;
  }
}

.panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #131A2A;
  border: 1px solid #1E293B;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 3px;
  background: #00E5FF;
}

.panel--accent-top::before {
  background: #FF6B00;
}

.prose {
  max-width: 42rem;
  line-height: 1.85;
  color: #94A3B8;
}

.prose h2 {
  margin: 2.5em 0 0.75em;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: 1.6rem;
  color: #FFFFFF;
}

.prose h3 {
  margin: 2em 0 0.5em;
  font-family: var(--font-data);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #00E5FF;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25em 1.25em;
  padding: 0;
}

.tabs {
  position: relative;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid #1E293B;
}

.tabs__tab {
  position: relative;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: #94A3B8;
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.tabs__tab:hover {
  color: #FFFFFF;
}

.tabs__tab[aria-selected="true"] {
  background: #131A2A;
  border-color: #1E293B;
  color: #FF6B00;
}

.tabs__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: #FF6B00;
}

.tabs__panel {
  padding: 1.25rem 0;
}

.tabs__panel[hidden] {
  display: none;
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(120deg, rgba(19, 26, 42, 0.8), rgba(11, 15, 25, 0.95)), #131A2A;
  border: 1px solid #1E293B;
}

.media-frame::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  color: #94A3B8;
}

.media-frame--wide {
  aspect-ratio: 16 / 8;
}

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

.media-frame--diagonal {
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.5rem) 100%, 0 100%);
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.js [data-reveal]:not([data-revealed]) {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal] {
  transition: opacity 300ms ease, transform 300ms ease;
}

@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]:not([data-revealed]) {
    opacity: 1;
    transform: none;
  }
}
