:root {
  --red: #E60026;
  --ink: #0A0E14;
  --silver: #C0C8D0;
  --neon: #39FF88;
  --card: #121A24;
  --paper: #E8EAED;
  --gray: #9AA6B2;
  --orange: #FF9F1C;
  --purple: #6C63FF;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", SFMono-Regular, Consolas, monospace;
  --header-h: 68px;
  --radius-pill: 999px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --glass: rgba(10, 14, 20, 0.72);
  --line: rgba(192, 200, 208, 0.18);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 104px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono), "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

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

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

::selection {
  background: var(--red);
  color: #fff;
}

[hidden] {
  display: none !important;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

#main-content {
  display: block;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(230, 0, 38, 0.4);
}

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

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  height: var(--header-h);
  z-index: 1200;
  padding: 0 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: top 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled] {
  top: 6px;
  height: 58px;
  background: rgba(10, 14, 20, 0.86);
  border-color: rgba(230, 0, 38, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}

.header-progress {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.9;
}

.header-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red) 70%, var(--neon));
  box-shadow: 0 0 12px rgba(230, 0, 38, 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #ff3b3b);
  color: #fff;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  transform: skewX(-6deg);
  box-shadow: 0 0 18px rgba(230, 0, 38, 0.4);
}

.brand-text {
  font-size: 18px;
  text-transform: lowercase;
}

.brand-text strong {
  color: var(--red);
  font-weight: 900;
  margin-left: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  z-index: 1300;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(230, 0, 38, 0.14);
}

.site-nav a[aria-current="page"] {
  color: var(--neon);
  background: rgba(57, 255, 136, 0.08);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon);
}

.venue-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(230, 0, 38, 0.9), rgba(255, 60, 60, 0.85));
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(230, 0, 38, 0.35);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venue-entry:hover,
.venue-entry:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 0, 38, 0.5);
}

.venue-entry-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: pulse 2s infinite;
}

.venue-entry-text {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, #0a0e14, #0b121b);
  border-top: 1px solid rgba(230, 0, 38, 0.35);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--neon), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.footer-upper {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

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

.footer-slogan {
  margin: 0;
  color: var(--silver);
  font-size: 14px;
  font-family: var(--font-mono);
}

.footer-trust {
  margin: 0;
  max-width: 42em;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.8;
}

.footer-title {
  margin: 0 0 14px;
  color: var(--neon);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--red);
}

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

.footer-contact {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-legal a {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--silver);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--neon);
  border-color: var(--neon);
  background: rgba(57, 255, 136, 0.06);
}

.footer-bottom {
  border-top: 1px solid rgba(192, 200, 208, 0.12);
  padding: 16px 0;
  background: rgba(230, 0, 38, 0.04);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--gray);
  font-size: 12px;
  font-family: var(--font-mono);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(230, 0, 38, 0.5);
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.86);
  color: var(--red);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-4px);
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 0, 38, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: #ff1f3d;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--silver);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--neon);
  color: var(--neon);
}

.breadcrumb {
  display: flex;
  margin-bottom: 32px;
}

.crumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
}

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

.crumb-item + .crumb-item::before {
  content: "/";
  color: rgba(192, 200, 208, 0.5);
}

.crumb-link {
  color: var(--silver);
  text-decoration: none;
}

.crumb-link:hover,
.crumb-link:focus-visible {
  color: var(--neon);
}

.crumb-current {
  color: var(--red);
}

.content-shell {
  width: min(920px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding-top: 48px;
  padding-bottom: 96px;
}

.prose {
  color: var(--paper);
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 900;
}

.prose h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 2em 0 0.6em;
}

.prose h3 {
  font-size: 1.3rem;
  margin: 1.5em 0 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  color: var(--silver);
}

.prose ul,
.prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5em;
}

.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));
}

.glass-card {
  background: rgba(18, 26, 36, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #121a24, #0a0e14);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 0, 38, 0.12), transparent 50%, rgba(57, 255, 136, 0.08));
  pointer-events: none;
}

.media-frame-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.7);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chapter {
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 20px;
  align-items: start;
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.chapter-number {
  grid-row: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  font-family: var(--font-mono);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.9;
}

.chapter-kicker {
  grid-row: 2;
  writing-mode: vertical-rl;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  min-height: 64px;
}

.chapter-body {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

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

[data-reveal][data-inview] {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(10, 14, 20, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .site-nav[data-open] .nav-list {
    display: grid;
    gap: 6px;
  }

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

  .brand {
    margin-right: auto;
  }

  .header-inner {
    justify-content: flex-end;
  }

  .nav-link {
    display: block;
    padding: 14px 18px;
    border-radius: 16px;
  }
}

@media (max-width: 900px) {
  .footer-upper {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .footer-nav,
  .footer-info {
    border-left: 2px solid rgba(230, 0, 38, 0.3);
    padding-left: 16px;
  }

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

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

  .chapter {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .chapter-number {
    grid-row: auto;
  }

  .chapter-kicker {
    grid-row: auto;
    writing-mode: horizontal-tb;
    min-height: 0;
  }

  .chapter-body {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  body {
    padding-top: 88px;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    height: 60px;
    padding: 0 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 10px;
  }

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

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .venue-entry {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .venue-entry-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .venue-entry-dot {
    width: 6px;
    height: 6px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

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

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