:root {
  --indigo: #0B1533;
  --midnight: #14204A;
  --paper: #F4EBDD;
  --gold: #E8B44A;
  --cyan: #39E6D0;
  --coral: #FF6B5E;
  --fog: #A9B4CC;
  --ink: #080C18;
  --rail-line: #2A3A66;
  --warm-white: #FFF9F0;
  --text-1: #F4EBDD;
  --text-2: #A9B4CC;
  --line: rgba(169, 180, 204, 0.18);
  --line-strong: rgba(57, 230, 208, 0.22);
  --rail-w: 304px;
  --mobile-header: 62px;
  --content-max: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-mono: 13px;
  --fs-h1: clamp(40px, 5vw, 64px);
  --fs-h2: clamp(24px, 3vw, 32px);
  --fs-h3: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail-w);
  overflow-x: hidden;
  background-color: var(--indigo);
  background-image:
    linear-gradient(rgba(42, 58, 102, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 102, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(57, 230, 208, 0.08), transparent 32rem),
    radial-gradient(circle at 74% 82%, rgba(232, 180, 74, 0.07), transparent 28rem),
    linear-gradient(180deg, #0B1533 0%, #080C18 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  background-attachment: fixed;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  color: var(--warm-white);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p + p {
  margin-top: 0.85em;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: calc(var(--rail-w) + 12px);
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--rail-w);
  background: linear-gradient(180deg, rgba(20, 32, 74, 0.96), rgba(8, 12, 24, 0.98));
  border-right: 1px solid var(--line-strong);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 52px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--rail-line) 0 10px, transparent 10px 20px);
  opacity: 0.55;
  pointer-events: none;
}

.header-rail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 20px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-1);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, var(--cyan), var(--midnight) 68%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 0 0 0 1px rgba(57, 230, 208, 0.35), 0 0 24px rgba(57, 230, 208, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  color: var(--warm-white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-route {
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(57, 230, 208, 0.45);
  border-radius: 999px;
  background: rgba(57, 230, 208, 0.08);
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
}

.nav-toggle-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-1px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label {
  font-size: 14px;
  font-weight: 800;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  border-top-color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  opacity: 0;
  transform: translateY(-1px) rotate(45deg);
}

.site-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin-top: 28px;
}

.nav-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.nav-list li {
  border-bottom: 1px solid var(--line);
}

.nav-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 8px;
  border-left: 3px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-left-color: var(--gold);
  background: rgba(232, 180, 74, 0.08);
  color: var(--gold);
}

.nav-link[aria-current="page"] {
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(57, 230, 208, 0.15), rgba(57, 230, 208, 0.02));
  color: var(--warm-white);
}

.nav-index {
  color: var(--rail-line);
  font-family: var(--font-mono);
  font-size: 12px;
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--cyan);
}

.nav-label {
  font-size: 15px;
  font-weight: 700;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 24, 0.45);
  color: var(--text-2);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(57, 230, 208, 0.12), 0 0 16px rgba(57, 230, 208, 0.8);
}

.nav-status-text {
  font-family: var(--font-mono);
  font-size: 12px;
}

.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.rail-status {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.rail-status [data-page-status] {
  color: var(--gold);
}

.rail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 107, 94, 0.6);
  border-radius: 999px;
  background: rgba(255, 107, 94, 0.08);
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rail-link:hover,
.rail-link:focus-visible {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--ink);
}

.site-footer {
  position: relative;
  padding: 56px 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 21, 51, 0.2), rgba(8, 12, 24, 0.98));
  color: var(--text-2);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1.2fr;
  gap: 40px;
  align-items: start;
  width: min(var(--content-max), calc(100% - 48px));
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  color: var(--warm-white);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-note {
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.8;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-label {
  margin: 0 0 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-link {
  width: fit-content;
  border-bottom: 1px solid transparent;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-line {
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact-line .mono {
  color: var(--text-1);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 13px;
}

.footer-copy {
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
  letter-spacing: 0.01em;
}

.content-shell {
  width: min(var(--content-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-8 {
  grid-column: span 8;
}

.col-12 {
  grid-column: 1 / -1;
}

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.glass-panel {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(57, 230, 208, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(20, 32, 74, 0.72), rgba(20, 32, 74, 0.36));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.paper-panel {
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.paper-panel h2,
.paper-panel h3,
.paper-panel h4 {
  color: var(--midnight);
}

.paper-panel a {
  color: #0B5F6A;
  text-decoration-color: rgba(11, 95, 106, 0.3);
}

.paper-panel a:hover {
  color: #06343A;
}

.paper-panel .mono {
  color: var(--midnight);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--warm-white);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.serif-title {
  font-family: var(--font-serif);
  font-weight: 600;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.status-tag--gold {
  background: rgba(232, 180, 74, 0.1);
  color: var(--gold);
}

.status-tag--cyan {
  background: rgba(57, 230, 208, 0.1);
  color: var(--cyan);
}

.status-tag--coral {
  background: rgba(255, 107, 94, 0.1);
  color: var(--coral);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.btn--ghost {
  border-color: rgba(57, 230, 208, 0.5);
  background: transparent;
  color: var(--cyan);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  background: rgba(57, 230, 208, 0.12);
}

.btn--coral {
  border-color: rgba(255, 107, 94, 0.5);
  background: rgba(255, 107, 94, 0.12);
  color: var(--coral);
}

.btn--coral:hover,
.btn--coral:focus-visible {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--ink);
}

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

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--rail-line);
}

.breadcrumbs a {
  color: var(--text-2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--midnight), var(--indigo));
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 12, 24, 0.55));
  pointer-events: none;
}

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

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

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

.media-frame__caption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  color: var(--warm-white);
  font-size: 13px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--gold), transparent);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: -27px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(57, 230, 208, 0.08);
}

.timeline-item--warn::before {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 94, 0.1);
}

.timeline-title {
  margin: 0 0 4px;
  color: var(--warm-white);
  font-size: 17px;
}

.timeline-meta {
  margin: 0 0 6px;
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--rail-w);
  z-index: 200;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--coral));
  box-shadow: 0 0 14px rgba(57, 230, 208, 0.5);
}

@media (max-width: 1023px) {
  :root {
    --rail-w: 0px;
  }

  body {
    padding-left: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--mobile-header);
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

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

  .header-rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: var(--mobile-header);
    padding: 0 16px;
    overflow: visible;
  }

  .brand {
    gap: 10px;
    padding: 0;
    border-bottom: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-route {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    top: var(--mobile-header);
    right: 0;
    z-index: 120;
    width: min(88vw, 360px);
    height: calc(100vh - var(--mobile-header));
    margin-top: 0;
    padding: 24px 20px;
    overflow-y: auto;
    border-left: 1px solid var(--line-strong);
    background: linear-gradient(180deg, var(--midnight), var(--ink));
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
    transform: translateX(105%);
    transition: transform 0.28s ease;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .nav-kicker {
    margin-bottom: 14px;
  }

  .nav-link {
    padding: 15px 8px;
  }

  .nav-status {
    margin-top: 18px;
  }

  .rail-foot {
    margin-top: 24px;
  }

  .skip-link {
    left: 12px;
  }

  .scroll-progress {
    left: 0;
  }

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

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

  .footer-meta {
    flex-direction: column;
  }

  .col-4,
  .col-6,
  .col-8 {
    grid-column: 1 / -1;
  }
}

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

@media (max-width: 720px) {
  .content-shell,
  .footer-grid {
    width: min(100% - 32px, var(--content-max));
  }

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

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }
}

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

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

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

  .site-nav {
    transition: none;
  }
}
