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

:root {
  --ink: #0d0d0d;
  --ink-2: #14101c;
  --pri: #8000ff;
  --acc: #ff00ff;
  --txt: #ece7f7;
  --dim: #a99cc2;
  --line: rgba(255, 0, 255, 0.2);
  --line-2: rgba(128, 0, 255, 0.3);
  --glass: rgba(255, 255, 255, 0.045);
  --r: 28px;
  --rail: 96px;
  --mono: 'Rubik', 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--txt);
  font-family: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

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

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

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

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

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.75;
}

/* ---------- 左侧竖排轨道 ---------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: var(--rail);
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 18px 10px 24px;
  background: linear-gradient(180deg, rgba(20, 16, 28, 0.94), rgba(13, 13, 13, 0.9));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rail::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 0;
  width: 1px;
  height: 40%;
  background: linear-gradient(180deg, var(--acc), transparent);
  box-shadow: 0 0 12px var(--acc);
}

.brand {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(128, 0, 255, 0.12);
  overflow: hidden;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  background: conic-gradient(from 45deg, var(--pri), var(--acc), var(--pri));
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.65);
  animation: spin 9s linear infinite;
}

.brand-mark[width] {
  animation: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.rail-nav {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.rail-nav a {
  display: block;
  width: 100%;
  padding: 12px 4px;
  text-align: center;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--dim);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: #fff;
  background: rgba(128, 0, 255, 0.2);
  border-color: var(--line);
  transform: translateX(2px);
  text-shadow: 0 0 10px var(--acc);
}

/* ---------- 主舞台 ---------- */
.stage {
  margin-left: var(--rail);
  min-width: 0;
}

.doc {
  display: block;
}

/* ---------- 全屏首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.06);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 88% 22%, rgba(128, 0, 255, 0.42), transparent 62%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.55), rgba(13, 13, 13, 0.88) 62%, #0d0d0d 100%);
}

.hero-copy {
  position: relative;
  max-width: 860px;
  padding: 0 clamp(20px, 6vw, 72px) 0 clamp(20px, 4vw, 48px);
}

.glitch {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 255, 0.62), 0 0 54px rgba(128, 0, 255, 0.45);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--acc);
  opacity: 0.85;
}

.glitch::before {
  animation: glitch-a 5.5s steps(2, end) infinite;
}

.glitch::after {
  color: var(--pri);
  animation: glitch-b 6.5s steps(2, end) infinite;
}

.hero-desc {
  margin: 0 0 0 auto;
  max-width: 46ch;
  color: var(--dim);
  font-size: 1rem;
}

/* ---------- 正文 ---------- */
.doc > article {
  max-width: 900px;
  margin: 30px auto;
  padding: clamp(26px, 4vw, 42px) clamp(18px, 3.4vw, 34px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(128, 0, 255, 0.08) inset, 0 18px 50px rgba(0, 0, 0, 0.45);
  scroll-margin-top: 26px;
}

.doc > article:first-of-type {
  margin-top: 52px;
}

.doc > article:last-of-type {
  margin-bottom: 52px;
}

.doc article h2,
.doc article h3 {
  font-family: var(--mono);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 255, 0.45);
}

.doc article h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 3.6vw, 1.95rem);
  font-weight: 600;
}

.doc article h3 {
  margin: 1.7rem 0 0.4rem;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  font-weight: 600;
  color: #f2ecff;
}

.doc hr {
  border: 0;
  height: 2px;
  width: 100%;
  margin: 0 0 1.15rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--acc), var(--pri) 42%, rgba(255, 0, 255, 0));
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.45);
}

.doc article p {
  margin: 0 0 1.05rem;
  color: var(--txt);
}

.doc article p:last-child {
  margin-bottom: 0;
}

.doc article ul,
.doc article ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.doc article li {
  margin-bottom: 0.45rem;
}

.doc article li::marker {
  color: var(--acc);
}

.doc article a {
  color: var(--acc);
  border-bottom: 1px solid rgba(255, 0, 255, 0.45);
  padding-bottom: 1px;
}

.doc article a:hover {
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.8);
}

.doc article strong {
  color: #fff;
}

.doc article blockquote {
  margin: 1.2rem 0;
  padding: 12px 18px;
  border-left: 2px solid var(--pri);
  border-radius: 0 16px 16px 0;
  background: rgba(128, 0, 255, 0.1);
  color: #f4efff;
}

.doc article blockquote p:last-child {
  margin-bottom: 0;
}

.doc article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.1rem;
  font-size: 0.97rem;
}

.doc article th,
.doc article td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}

.doc article th {
  background: rgba(128, 0, 255, 0.16);
  color: #fff;
}

.doc article img {
  border-radius: 18px;
  border: 1px solid var(--line-2);
  margin: 0.4rem 0 1.1rem;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 900px;
  margin: 0 auto 44px;
  padding: 0 clamp(14px, 3vw, 22px);
}

.cta {
  border-radius: var(--r);
  padding: clamp(30px, 6vw, 58px) 22px;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 0, 255, 0.28), transparent 68%),
    linear-gradient(140deg, rgba(128, 0, 255, 0.32), rgba(13, 13, 13, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 46px rgba(128, 0, 255, 0.22) inset;
}

.cta-link {
  display: inline-block;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 0, 255, 0.75), 0 0 60px rgba(128, 0, 255, 0.6);
  transition: transform 0.22s ease, text-shadow 0.22s ease;
}

.cta-link:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 28px #fff, 0 0 70px var(--acc);
}

.foot-addr {
  display: block;
  margin: 26px 0 0;
  font-style: normal;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin: 6px 0 10px;
  padding: 0;
}

.foot-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--dim);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.foot-links a:hover {
  color: var(--acc);
  border-bottom-color: var(--acc);
}

.copy {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: rgba(169, 156, 194, 0.8);
  letter-spacing: 0.04em;
}

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes glitch-a {
  0%, 92%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  93% { transform: translate(-3px, -2px); clip-path: inset(12% 0 58% 0); }
  95% { transform: translate(2px, 1px); clip-path: inset(64% 0 12% 0); }
  97% { transform: translate(-2px, 2px); clip-path: inset(38% 0 40% 0); }
}

@keyframes glitch-b {
  0%, 90%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  91% { transform: translate(3px, 2px); clip-path: inset(70% 0 8% 0); }
  94% { transform: translate(-2px, -1px); clip-path: inset(20% 0 55% 0); }
  96% { transform: translate(1px, -2px); clip-path: inset(48% 0 30% 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .rail {
    position: sticky;
    top: 0;
    left: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail::after {
    right: 0;
    top: auto;
    bottom: -1px;
    width: 46%;
    height: 1px;
    background: linear-gradient(90deg, var(--acc), transparent);
  }

  .brand {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .rail-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .rail-nav ul {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .rail-nav ul::-webkit-scrollbar {
    display: none;
  }

  .rail-nav a {
    width: auto;
    white-space: nowrap;
    padding: 11px 13px;
    font-size: 15px;
  }

  .stage {
    margin-left: 0;
  }

  .hero {
    min-height: 88svh;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
  }

  .hero-copy {
    padding: 46px 20px 40px;
    max-width: none;
  }

  .hero-desc {
    margin-left: 0;
    max-width: none;
  }

  .doc > article {
    margin: 22px 12px;
    scroll-margin-top: 78px;
  }

  .doc > article:first-of-type {
    margin-top: 30px;
  }

  .doc > article:last-of-type {
    margin-bottom: 30px;
  }

  .foot {
    margin-bottom: 30px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .glitch {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .doc > article {
    padding: 22px 16px;
    border-radius: 22px;
  }
}

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

  .brand-mark,
  .glitch::before,
  .glitch::after {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .rail-nav a,
  .cta-link {
    transition: none;
  }
}

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