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

:root {
  --c-space: #0F1A2F;
  --c-space-light: #1E2A4A;
  --c-space-soft: #2A3B6D;
  --c-neon: #00FF88;
  --c-orange: #FF6F00;
  --c-warn: #FF4D00;
  --c-text: #FFFFFF;
  --c-text-dim: #B0C4DE;
  --font-display: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "PingFang SC", sans-serif;
  --line-thin: 1px solid rgba(176, 196, 222, 0.16);
  --line-neon: 1px solid rgba(0, 255, 136, 0.22);
  --max-width: 1440px;
  --header-h: 78px;
  --space-pad: 2rem;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-space);
  background-image:
    linear-gradient(rgba(176, 196, 222, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 196, 222, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--c-neon);
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-text);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
  margin-bottom: 1rem;
}

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

li {
  margin-bottom: 0.5rem;
}

::selection {
  background: var(--c-neon);
  color: var(--c-space);
}

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

#main-content {
  display: block;
  flex: 1 0 auto;
  padding-top: calc(var(--header-h) + 14px);
}

.container {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
  padding-inline: var(--space-pad);
}

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

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1440px, calc(100vw - 24px));
  z-index: 1000;
  background: rgba(15, 26, 47, 0.88);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 32px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header.scrolled {
  background: rgba(15, 26, 47, 0.95);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(0, 255, 136, 0.05);
}

.site-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 4%;
  width: 8%;
  height: 3px;
  background: var(--c-neon);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.7);
}

.site-header::after {
  content: '';
  position: absolute;
  right: 10%;
  top: -4px;
  width: 60px;
  height: 2px;
  background: var(--c-orange);
  box-shadow: 0 0 10px rgba(255, 111, 0, 0.5);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.72rem 1.5rem;
}

.is-stuck .site-header {
  background: rgba(15, 26, 47, 0.96);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--c-text);
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.brand-lockup:hover {
  opacity: 0.85;
  color: var(--c-text);
}

.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  background: var(--c-space-soft);
  border: 2px solid var(--c-neon);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 10px;
  height: 10px;
  background: var(--c-orange);
  box-shadow: 0 0 8px var(--c-orange);
}

.brand-mark::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 4px;
  background: var(--c-neon);
  box-shadow: 0 0 8px var(--c-neon);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--c-text);
  white-space: nowrap;
}

.brand-slogan {
  font-size: 0.66rem;
  color: var(--c-neon);
  letter-spacing: 0.18em;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 1.05rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--c-text-dim);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--c-neon);
  border-color: rgba(0, 255, 136, 0.25);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.08);
}

.nav-item[aria-current="page"] {
  color: var(--c-space);
  background: var(--c-neon);
  border-color: var(--c-neon);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
  font-weight: 900;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--c-space-soft);
  border: 1px solid rgba(176, 196, 222, 0.2);
  padding: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: rgba(0, 255, 136, 0.5);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-neon);
  transition: transform 0.2s ease, opacity 0.2s 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);
}

.skip-link {
  position: fixed;
  left: -9996px;
  top: 0;
  z-index: 3000;
  background: var(--c-neon);
  color: var(--c-space);
  padding: 0.8rem 1.4rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}

.skip-link:focus-visible {
  left: 0;
  outline: 4px solid var(--c-orange);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--c-neon), var(--c-orange) 85%, var(--c-neon));
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.5);
  opacity: 0.85;
  pointer-events: none;
  z-index: 3000;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  margin-top: auto;
  background-color: #0B1424;
  background-image:
    linear-gradient(rgba(176, 196, 222, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 196, 222, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      transparent 18%,
      var(--c-neon) 18%,
      var(--c-neon) 26%,
      transparent 26%,
      transparent 55%,
      var(--c-orange) 55%,
      var(--c-orange) 62%,
      transparent 62%,
      transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.85rem;
  color: var(--c-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--c-neon);
  box-shadow: 0 0 12px var(--c-neon);
  display: block;
}

.footer-logo:hover {
  color: var(--c-neon);
}

.footer-slogan {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--c-orange);
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.footer-note {
  color: var(--c-text-dim);
  font-size: 0.95rem;
  max-width: 34em;
  margin-top: 0.9rem;
  border-left: 2px solid var(--c-neon);
  padding-left: 1rem;
}

.footer-head {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-head::before {
  content: '';
  width: 18px;
  height: 3px;
  background: var(--c-orange);
  display: block;
}

.footer-text {
  color: var(--c-text-dim);
  font-size: 0.95rem;
  margin: 0.4rem 0;
}

.footer-link {
  display: inline-block;
  color: var(--c-text-dim);
  text-decoration: none;
  padding: 0.3rem 0;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--c-neon);
  padding-left: 0.35rem;
  border-bottom-color: rgba(0, 255, 136, 0.25);
}

.footer-link[aria-current="page"] {
  color: var(--c-neon);
  border-left: 2px solid var(--c-neon);
  padding-left: 0.7rem;
}

.footer-legal {
  border-top: 1px solid rgba(176, 196, 222, 0.1);
  padding: 1.4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.copyright {
  color: var(--c-text-dim);
  font-size: 0.88rem;
  margin: 0;
}

.icp {
  color: var(--c-text-dim);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

/* ===== 通用组件 ===== */
.page-hero {
  padding: 2.5rem var(--space-pad) 2rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero-meta {
  font-size: 0.78rem;
  color: var(--c-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-hero-meta::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--c-orange);
  display: inline-block;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--c-text-dim);
  margin-bottom: 1.2rem;
}

.breadcrumbs a {
  color: var(--c-orange);
  text-decoration: none;
  font-weight: 600;
}

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

.breadcrumbs-sep {
  color: var(--c-text-dim);
  opacity: 0.6;
  margin: 0 0.2rem;
}

.bread-current {
  color: var(--c-neon);
  font-weight: 700;
}

.section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: var(--line-neon);
  padding-bottom: 0.65rem;
  margin-bottom: 1.2rem;
}

.section-meta h2,
.section-meta h3 {
  margin: 0;
}

.section-pad {
  padding-block: 5rem 3.5rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--c-text-dim);
  font-weight: 400;
  line-height: 1.7;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  letter-spacing: 0.04em;
  color: var(--c-neon);
}

.btn,
.btn-accent,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(176, 196, 222, 0.28);
  background: var(--c-space-soft);
  color: var(--c-text);
  position: relative;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--c-neon);
  color: var(--c-neon);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.15);
}

.btn-accent {
  background: var(--c-neon);
  color: var(--c-space);
  border-color: var(--c-neon);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: transparent;
  color: var(--c-neon);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--c-neon);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--c-neon);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.site-grid-2,
.site-grid-3,
.site-grid-4 {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.image-frame {
  position: relative;
  overflow: hidden;
  display: block;
  background-color: var(--c-space-light);
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  border: 1px solid rgba(0, 255, 136, 0.16);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-neon), transparent);
  opacity: 0.6;
}

.image-frame:hover img {
  transform: scale(1.03);
}

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

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

.poster-block {
  position: relative;
  background: var(--c-space-light);
  padding: 2rem 2.4rem;
  margin-bottom: 1.6rem;
  border-top: 2px solid var(--c-neon);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.poster-block--orange {
  border-top-color: var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.vertical-note {
  writing-mode: vertical-rl;
  font-size: 0.78rem;
  color: var(--c-text-dim);
  border-right: 1px solid rgba(0, 255, 136, 0.3);
  padding-right: 0.6rem;
  letter-spacing: 0.2em;
  min-height: 6rem;
}

.tag,
.tag-orange {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: rgba(0, 255, 136, 0.1);
  color: var(--c-neon);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.tag-orange {
  background: rgba(255, 111, 0, 0.1);
  color: var(--c-orange);
  border-color: rgba(255, 111, 0, 0.3);
}

.flow-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.flow-lines::before,
.flow-lines::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 2px;
  top: 50%;
  left: -50%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, var(--c-neon), transparent);
  opacity: 0.15;
}

.flow-lines::after {
  top: 62%;
  transform: rotate(-8deg) scaleX(0.6) translateX(80px);
  background: linear-gradient(90deg, transparent, var(--c-orange), transparent);
  opacity: 0.2;
}

/* ===== 滚动显现 ===== */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].will-reveal {
  opacity: 0;
  transform: translateY(26px);
}

[data-reveal].will-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1150px) {
  :root {
    --space-pad: 1.5rem;
  }

  .nav-item {
    padding: 0.4rem 0.7rem;
    font-size: 0.88rem;
  }

  .header-inner {
    gap: 1rem;
    padding: 0.7rem 1.1rem;
  }
}

@media (max-width: 960px) {
  .site-header {
    top: 10px;
    width: calc(100vw - 20px);
    border-radius: 22px;
  }

  .header-inner {
    padding: 0.6rem 1rem;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(15, 26, 47, 0.97);
    border: 1px solid rgba(176, 196, 222, 0.15);
    border-radius: 16px;
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.15rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav .nav-item {
    padding: 0.75rem 1rem;
    justify-content: center;
    border-radius: 12px;
  }

  .site-nav .nav-item[aria-current="page"] {
    box-shadow: inset 0 0 0 2px rgba(15, 26, 47, 0.35);
  }
}

@media (max-width: 768px) {
  #main-content {
    padding-top: calc(var(--header-h) + 4px);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.2rem 1.8rem;
  }

  .footer-legal {
    padding: 1.2rem 1.2rem;
  }

  .page-hero {
    padding: 2rem 1.2rem 1.5rem;
  }

  .section-pad {
    padding-block: 3.5rem 2.5rem;
  }

  .poster-block {
    padding: 1.5rem 1.2rem;
  }

  .container {
    padding-inline: 1.2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .site-grid-3,
  .site-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

  [data-reveal].will-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .brand-mark::before,
  .brand-mark::after,
  .scroll-progress {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
