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

:root {
  --color-deep: #0A1F44;
  --color-surface: #112B55;
  --color-orange: #FF6B35;
  --color-neon: #39FF14;
  --color-border: #1A3A66;
  --color-text: #E8F0FE;
  --color-muted: #A0B0C4;
  --color-warn: #FFD166;
  --color-success: #2BBF00;
  --font-display: "Anton", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-width: 280px;
  --max-content: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --shadow-offset: 8px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-deep);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.35em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

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

button, input, select, textarea {
  font: inherit;
}

b, strong {
  font-weight: 700;
}

::selection {
  background: var(--color-orange);
  color: var(--color-deep);
}

:focus-visible {
  outline: 3px solid var(--color-neon);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.35);
}

.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: 8px;
  left: 12px;
  z-index: 400;
  padding: 10px 16px;
  background: var(--color-orange);
  color: var(--color-deep);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
}

.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-orange), var(--color-neon));
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--header-width);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--color-deep) 0%, var(--color-surface) 140%);
  border-right: 1px solid var(--color-border);
}

.site-header::after {
  content: "01 / LIVE";
  position: absolute;
  right: 8px;
  bottom: 110px;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: rgba(57, 255, 20, 0.22);
  pointer-events: none;
  z-index: 0;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.site-brand__tag {
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__box {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

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

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

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

.header-nav {
  margin-top: 24px;
}

.header-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.header-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}

.header-nav__link:hover {
  padding-left: 14px;
  border-left-color: var(--color-orange);
  background: rgba(255, 107, 53, 0.12);
  color: var(--color-text);
}

.header-nav__link[aria-current="page"] {
  border-left-color: var(--color-orange);
  background: rgba(255, 107, 53, 0.16);
  color: var(--color-text);
}

.header-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-neon);
  transform: rotate(45deg);
}

.header-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.header-foot__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-neon);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.8);
}

.button {
  --button-bg: var(--color-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid var(--button-bg);
  border-radius: 0;
  background: var(--button-bg);
  color: var(--color-deep);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: transparent;
  color: var(--button-bg);
}

.button:active {
  transform: translateY(1px);
}

.button--ghost {
  --button-bg: var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.button--ghost:hover {
  --button-bg: var(--color-neon);
  border-color: var(--color-neon);
  background: rgba(57, 255, 20, 0.06);
  color: var(--color-neon);
}

.button--neon {
  --button-bg: var(--color-neon);
}

.button--block {
  display: flex;
  width: 100%;
}

#main-content {
  margin-left: var(--header-width);
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px) 0;
  scroll-margin-top: 24px;
}

.container {
  width: min(100% - (clamp(20px, 4vw, 56px) * 2), var(--max-content));
  margin-inline: auto;
}

.section {
  padding-block: clamp(40px, 8vw, 92px);
}

.section--tight {
  padding-block: clamp(24px, 4vw, 48px);
}

.section--signal {
  background: var(--color-surface);
  border-top: 2px solid var(--color-orange);
  border-bottom: 2px solid var(--color-neon);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.section-head--split {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.section-kicker,
.page-head__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.section-kicker::before,
.page-head__kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-neon);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.section-desc {
  max-width: 60ch;
  margin: 0;
  color: var(--color-muted);
}

.page-head {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.page-head__title {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.85;
}

.page-head__lead {
  max-width: 56ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 14px;
}

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

.breadcrumb li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--color-neon);
  transform: rotate(45deg);
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.grid {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
}

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

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--color-orange);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.32);
}

.card__content {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.card__title {
  margin: 0;
  font-size: 1.2rem;
}

.card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.card__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.card__link {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--color-orange);
  font-weight: 700;
  text-decoration: none;
}

.card__link:hover {
  color: var(--color-neon);
}

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(57, 255, 20, 0.06)),
    var(--color-surface);
  border: 1px solid var(--color-border);
}

.media--square {
  aspect-ratio: 1 / 1;
}

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

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

.media::after {
  content: "";
  position: absolute;
  left: -15%;
  bottom: -20%;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.18), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

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

.media__caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  padding: 4px 8px;
  background: rgba(10, 31, 68, 0.78);
  color: var(--color-text);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 107, 53, 0.55);
  background: rgba(255, 107, 53, 0.12);
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag--neon {
  border-color: rgba(57, 255, 20, 0.6);
  background: rgba(57, 255, 20, 0.08);
  color: var(--color-neon);
}

.note {
  border-left: 3px solid var(--color-neon);
  background: rgba(57, 255, 20, 0.06);
  padding: 16px 18px;
  color: var(--color-muted);
}

.note__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-text);
}

.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.index-list__item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.index-list__num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-neon);
}

.index-list__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}

.index-list__link:hover {
  color: var(--color-orange);
}

.index-list__meta {
  color: var(--color-muted);
  font-size: 12px;
  white-space: nowrap;
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: guide;
}

.guide-list__item {
  counter-increment: guide;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 8px 12px;
  padding: 16px;
  background: rgba(17, 43, 85, 0.45);
  border: 1px solid var(--color-border);
}

.guide-list__item::before {
  content: counter(guide, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-orange);
}

.guide-list__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--color-text);
}

.guide-list__text {
  grid-column: 2;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.site-footer {
  margin-left: var(--header-width);
  background: var(--color-deep);
  border-top: 2px solid var(--color-border);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 64px);
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 64px);
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer__brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text);
}

.site-footer__slogan {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-footer__heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer__list a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.site-footer__contact {
  display: grid;
  gap: 8px;
}

.site-footer__item {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__base {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-muted);
  font-size: 12px;
}

.site-footer__base p {
  margin: 0;
}

@media (max-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    max-height: 100vh;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    background: rgba(10, 31, 68, 0.96);
  }

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

  .site-header__inner {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 16px;
  }

  .site-brand {
    flex: 1 1 auto;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }

  .header-nav[data-open] {
    display: block;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .header-foot {
    display: none;
  }

  body.nav-is-open {
    overflow: hidden;
  }

  #main-content {
    margin-left: 0;
  }

  .site-footer {
    margin-left: 0;
  }

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

@media (max-width: 1000px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__base {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .index-list__item {
    grid-template-columns: 2rem 1fr;
  }

  .index-list__meta {
    grid-column: 2;
  }
}

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

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