@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
  --ink: #1a1a2e;
  --deep: #0d0d1c;
  --red: #ff0000;
  --pink: #ff006e;
  --cyan: #3ee9ff;
  --fg: #e9eefb;
  --dim: #a3abcd;
  --line: rgba(255, 0, 110, 0.34);
  --line-2: rgba(62, 233, 255, 0.26);
  --card: rgba(26, 26, 46, 0.82);
}

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

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

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 620px at 82% -8%, rgba(255, 0, 110, 0.2), transparent 68%),
    radial-gradient(760px 520px at 6% 12%, rgba(255, 0, 0, 0.14), transparent 66%),
    linear-gradient(180deg, var(--deep) 0%, var(--ink) 52%, #0b0b18 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.32) 2px,
    rgba(0, 0, 0, 0.32) 4px
  );
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 233, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 82%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 82%);
}

a {
  color: var(--cyan);
}

img {
  max-width: 100%;
}

/* ---------- 顶栏 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem clamp(0.9rem, 4vw, 2.4rem) 0.95rem;
  background: linear-gradient(180deg, rgba(13, 13, 28, 0.97), rgba(26, 26, 46, 0.9));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.26);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.mast-brand {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.2rem 0.1rem;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: conic-gradient(from 0deg, var(--pink), var(--red), var(--cyan), var(--pink));
  box-shadow: 0 0 16px var(--pink);
}

.brand-name {
  font-family: Orbitron, 'Exo 2', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.9), 0 0 30px rgba(255, 0, 0, 0.4);
}

.mast-menu {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 0, 110, 0.08);
  color: #ffe3ee;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  background: rgba(255, 0, 110, 0.28);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.55);
  transform: translateY(-1px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0.5rem 1.15rem;
  border: 1px solid #ff5c8a;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red), var(--pink));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

.cta:hover,
.cta:focus-visible {
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.95);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: 70vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(0.9rem, 4vw, 2.4rem);
}

.hero-txt {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(62, 233, 255, 0.8);
}

.hero h1 {
  position: relative;
  margin: 0;
  font-family: Orbitron, 'Exo 2', sans-serif;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 14px var(--pink), 0 0 40px rgba(255, 0, 0, 0.55);
}

.hero h1 > span {
  position: relative;
  z-index: 2;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.glitch::before {
  color: var(--pink);
  text-shadow: 0 0 14px var(--pink);
  animation: glitch 6.5s steps(1) infinite;
}

.glitch::after {
  color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan);
  animation: glitch 7.8s steps(1) infinite;
  animation-delay: 0.24s;
}

@keyframes glitch {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  93% { clip-path: inset(14% 0 60% 0); transform: translateX(-4px); }
  95% { clip-path: inset(46% 0 32% 0); transform: translateX(4px); }
  97% { clip-path: inset(70% 0 10% 0); transform: translateX(-3px); }
}

.lede {
  max-width: 36ch;
  margin: 1rem auto 0;
  color: var(--dim);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-art {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 0, 110, 0.36), transparent 60%),
    linear-gradient(150deg, #14142a, #241033 55%, #0d0d1c);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.62), 0 0 30px rgba(255, 0, 110, 0.22);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.art-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(62, 233, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.22) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
}

/* ---------- 侧栏 + 正文 ---------- */
.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2.4rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(0.9rem, 4vw, 2.4rem) 3rem;
}

.rail {
  position: sticky;
  top: 9.5rem;
  padding: 0.95rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.94), rgba(26, 26, 46, 0.55));
  box-shadow: 0 0 24px rgba(62, 233, 255, 0.14);
}

.rail-h,
.foot-h {
  margin: 0 0 0.7rem;
  font-family: Orbitron, 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(62, 233, 255, 0.7);
}

.rail-h > span,
.foot-h > span {
  display: inline-block;
  border-bottom: 2px solid rgba(62, 233, 255, 0.55);
  padding-bottom: 0.15rem;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rail-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid transparent;
  color: #ccd3f2;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rail-link:hover,
.rail-link:focus-visible,
.rail-link.is-on {
  background: rgba(255, 0, 110, 0.16);
  border-left-color: var(--pink);
  color: #fff;
  text-shadow: 0 0 10px var(--pink);
}

.stage-body {
  min-width: 0;
}

.stage-body > div {
  scroll-margin-top: 9.5rem;
  padding: 2.2rem 0;
  border-top: 1px dashed var(--line);
}

.stage-body > div:first-child {
  padding-top: 0.4rem;
  border-top: 0;
}

.stage-body h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: Orbitron, 'Exo 2', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 110, 0.72);
}

.stage-body h2::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 1.05em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pink), var(--red));
  box-shadow: 0 0 14px var(--pink);
  transform: translateY(0.1em);
}

.stage-body h2 > span {
  display: inline-block;
}

.stage-body h3 {
  margin: 1.6rem 0 0.6rem;
  font-family: Orbitron, 'Exo 2', sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #ffdce9;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.45);
}

.stage-body h3 > span {
  display: inline-block;
}

.stage-body p,
.stage-body li {
  color: #d8def5;
  font-size: 1.05rem;
  line-height: 1.85;
}

.stage-body p {
  margin: 0 0 1rem;
}

.stage-body ul,
.stage-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.stage-body li {
  margin-bottom: 0.45rem;
}

.stage-body strong {
  color: #fff;
  text-shadow: 0 0 9px rgba(255, 0, 110, 0.5);
}

.stage-body a {
  text-decoration-color: rgba(62, 233, 255, 0.5);
  text-underline-offset: 3px;
}

.stage-body a:hover {
  text-shadow: 0 0 10px rgba(62, 233, 255, 0.8);
}

.stage-body figure,
.stage-body aside {
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--pink);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.stage-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.stage-body figcaption {
  margin-top: 0.6rem;
  color: var(--dim);
  font-size: 1rem;
}

.stage-body blockquote {
  margin: 1.3rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 18px 18px 0;
  background: rgba(62, 233, 255, 0.08);
  color: #dff5ff;
}

.stage-body blockquote p:last-child {
  margin-bottom: 0;
}

.stage-body table {
  width: 100%;
  margin: 1.2rem 0;
  border-collapse: collapse;
  font-size: 1rem;
}

.stage-body th,
.stage-body td {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 0, 110, 0.3);
  text-align: left;
  vertical-align: top;
}

.stage-body th {
  background: rgba(255, 0, 110, 0.16);
  color: #fff;
}

.stage-body code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(62, 233, 255, 0.14);
  color: #d9f7ff;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 0.98rem;
}

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 2rem clamp(0.9rem, 4vw, 2.4rem) 2.4rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 11, 24, 0.5), rgba(11, 11, 24, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 0, 110, 0.28);
}

.foot-h {
  max-width: 1120px;
  margin: 0 auto 1rem;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.foot-cols dl {
  margin: 0;
  min-width: 0;
}

.foot-cols dt {
  margin-bottom: 0.4rem;
  font-family: Orbitron, 'Exo 2', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.62);
}

.foot-cols dd {
  margin: 0;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #c6cdec;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
}

.foot-cols a:hover,
.foot-cols a:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.foot-copy {
  max-width: 1120px;
  margin: 1.4rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  color: #8d96bb;
  font-size: 1rem;
}

/* ---------- 入场 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.2rem;
    padding-bottom: 2rem;
  }

  .hero-art {
    aspect-ratio: 16 / 10;
    order: 2;
  }

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

  .rail {
    position: static;
    order: -1;
  }

  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .rail-link {
    min-height: 42px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line-2);
    border-left-width: 1px;
    border-radius: 999px;
  }

  .rail-link:hover,
  .rail-link:focus-visible,
  .rail-link.is-on {
    border-color: var(--pink);
    border-left-color: var(--pink);
  }

  .stage-body > div {
    scroll-margin-top: 10.5rem;
  }
}

@media (max-width: 560px) {
  .cta {
    margin-left: 0;
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .stage-body p,
  .stage-body li {
    font-size: 1.02rem;
  }
}

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

  .glitch::before,
  .glitch::after,
  .js [data-reveal],
  .hero-img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
