@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

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

:root {
  --ink: #0d0d0d;
  --p1: #8000ff;
  --p2: #ff00ff;
  --p1s: #b56bff;
  --p2s: #ff7bff;
  --txt: #ece8f4;
  --dim: #b6a9c8;
  --line: rgba(170, 110, 255, 0.3);
  --glass: rgba(255, 255, 255, 0.05);
  --mono: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(62vw 52vh at 10% -6%, rgba(128, 0, 255, 0.26), transparent 70%),
    radial-gradient(52vw 44vh at 96% 6%, rgba(255, 0, 255, 0.18), transparent 70%),
    var(--ink);
  background-attachment: fixed;
  color: var(--txt);
  font-family: "DM Sans", "Nunito", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
}

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

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

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

/* ---------- 顶部导航 ---------- */

.hud {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.94), rgba(13, 13, 13, 0.66));
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-l { justify-content: flex-end; }
.nav-r { justify-content: flex-start; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--dim);
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, text-shadow 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--p2);
  background: rgba(255, 0, 255, 0.09);
}

.nav .brand {
  justify-self: center;
  gap: 6px;
  padding: 0 12px;
  color: #fff;
  font-family: "Nunito", "DM Sans", sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(255, 0, 255, 0.65);
}

.brand-mark { color: var(--p2s); font-size: 15px; }

.nav .cta {
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(120deg, var(--p1), var(--p2));
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 0 22px rgba(128, 0, 255, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav .cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.7);
  background: linear-gradient(120deg, var(--p1), var(--p2));
}

/* ---------- 头图 ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 108px 20px 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.collage figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #15101c;
  box-shadow: 0 0 44px rgba(128, 0, 255, 0.38);
}

.collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.col-a {
  width: min(30vw, 290px);
  aspect-ratio: 3 / 4;
  top: 15%;
  left: 4%;
  transform: rotate(-5deg);
}

.col-b {
  width: min(26vw, 250px);
  aspect-ratio: 4 / 5;
  bottom: 12%;
  right: 5%;
  transform: rotate(6deg);
}

.col-a, .col-b { animation: drift 9s ease-in-out infinite; }
.col-b { animation-delay: -3s; }

@keyframes drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.badge-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--p1s);
  background: rgba(128, 0, 255, 0.12);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  animation: bob 6s ease-in-out infinite;
}

.badge-b { color: var(--p2s); animation-delay: -2.5s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  margin: 0;
  max-width: 15em;
  font-family: "Nunito", "DM Sans", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 255, 0.68), 0 0 46px rgba(128, 0, 255, 0.55);
  animation: glitch 7s steps(1, end) infinite;
}

@keyframes glitch {
  0%, 91%, 100% { transform: none; }
  92% { transform: translate(-2px, 1px) skewX(-2deg); }
  94% { transform: translate(2px, -1px) skewX(2deg); }
  96% { transform: translate(-1px, 0) skewX(-1deg); }
}

.lede {
  margin: 0;
  max-width: 40em;
  color: var(--dim);
  font-size: clamp(16px, 1.5vw, 19px);
}

.hero-act {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--p2), var(--p1));
  box-shadow: 0 0 26px rgba(255, 0, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255, 0, 255, 0.7); }

.btn.ghost {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.ghost:hover { background: rgba(255, 0, 255, 0.14); }

/* ---------- 主体骨架 ---------- */

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 20px 76px;
}

.wrap {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 84px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.rail-t {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--p2s);
}

.rail-t span { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 0, 255, 0.5); }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: rail;
}

.rail-list li { counter-increment: rail; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--p1s);
}

.rail-list a:hover,
.rail-list a.on {
  color: #fff;
  border-left-color: var(--p2);
  background: rgba(255, 0, 255, 0.1);
  text-shadow: 0 0 10px var(--p2);
}

.board { min-width: 0; }

/* ---------- 正文 ---------- */

.prose { overflow-wrap: anywhere; }

.prose > article {
  position: relative;
  margin: 0 0 26px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow-x: auto;
  scroll-margin-top: 92px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.06), rgba(128, 0, 255, 0.07));
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 255, 0.05);
  animation: rise 0.6s ease-out both;
}

.prose > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--p2), var(--p1));
  opacity: 0.85;
}

.prose > article:last-child { margin-bottom: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.prose h2 {
  margin: 0 0 14px;
  font-family: "Nunito", "DM Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 255, 0.42);
}

.prose h2 > span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255, 0, 255, 0.5);
}

.prose h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  line-height: 1.4;
  color: var(--p1s);
}

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

.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--p2); }

.prose a { color: var(--p2s); text-underline-offset: 3px; }
.prose a:hover { color: #fff; }

.prose strong { color: #fff; }

.prose time {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--p1s);
}

.prose img {
  border: 1px solid var(--line);
  border-radius: 4px;
}

.prose blockquote {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-left: 3px solid var(--p2);
  background: rgba(255, 0, 255, 0.07);
  color: var(--txt);
}

.prose table {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th, .prose td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: rgba(128, 0, 255, 0.15); color: #fff; }

.prose code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(128, 0, 255, 0.2);
  font-family: var(--mono);
  font-size: 15px;
}

/* ---------- 页脚 ---------- */

.fp {
  padding: 44px 20px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(128, 0, 255, 0.14), rgba(13, 13, 13, 0));
}

.fp-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.fp-addr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
  min-width: 0;
}

.fp-mark {
  font-family: "Nunito", "DM Sans", sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 255, 0.6);
}

.fp-line { color: var(--dim); font-size: 16px; overflow-wrap: anywhere; }

.fp-t {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--p2s);
}

.fp-t span { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 0, 255, 0.45); }

.fp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}

.fp-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.16s ease, text-shadow 0.16s ease;
}

.fp-list a:hover { color: #fff; text-shadow: 0 0 10px var(--p2); }

.sub { display: flex; flex-wrap: wrap; gap: 8px; }

.sub-in {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt);
  font-family: inherit;
  font-size: 16px;
}

.sub-in::placeholder { color: #8e82a1; }

.sub-btn {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(120deg, var(--p1), var(--p2));
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.35);
}

.sub-btn:hover { box-shadow: 0 0 28px rgba(255, 0, 255, 0.6); }

.bottom {
  max-width: 1240px;
  margin: 30px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  color: var(--dim);
  font-size: 16px;
}

.bottom p { margin: 0; }

/* ---------- 断点 ---------- */

@media (max-width: 1024px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail-list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .rail-list a { border-left: 0; border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; }
  .rail-list a:hover, .rail-list a.on { border-color: var(--p2); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hud { position: static; }
  .nav {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 4px;
    padding: 12px 14px 14px;
  }
  .nav .brand { order: -1; }
  .nav ol { justify-content: center; }
  .nav-l, .nav-r { justify-content: center; }
  .nav .cta { justify-self: center; width: 100%; justify-content: center; }
  .hero {
    min-height: 0;
    padding: 34px 18px 54px;
    align-items: flex-start;
  }
  .hero-inner { gap: 14px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .collage { opacity: 0.42; }
  .col-a { width: 132px; top: auto; bottom: 6%; left: 2%; }
  .col-b { width: 108px; top: auto; bottom: 2%; right: 2%; }
  main { padding: 34px 16px 56px; }
  .prose > article { padding: 20px 16px 16px; scroll-margin-top: 16px; }
  .fp { padding: 34px 16px 22px; }
  .fp-grid { grid-template-columns: 1fr; gap: 22px; }
  .fp-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .nav a { padding: 0 8px; font-size: 16px; }
  .badge { font-size: 13px; }
  .fp-list { grid-template-columns: 1fr; }
}

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

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