@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

:root {
  --bg: #0d0d0d;
  --panel: #14101c;
  --ink: #eae4f7;
  --dim: #a294bd;
  --pri: #8000ff;
  --acc: #ff00ff;
  --line: rgba(128, 0, 255, 0.38);
  --line-soft: rgba(128, 0, 255, 0.18);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --disp: "Orbitron", "JetBrains Mono", ui-monospace, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(128, 0, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 0, 255, 0.075) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.034) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--acc); }
[id] { scroll-margin-top: 132px; }

/* ---------- 顶部条 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: none;
}

.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
  animation: pulse 2.4s ease-in-out infinite;
}

.strip-t {
  font-family: var(--disp);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
}

.menu-btn {
  margin-left: auto;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--acc);
  border-radius: 4px;
  font: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 0, 255, 0.15) inset;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  background: rgba(255, 0, 255, 0.14);
  box-shadow: 0 0 16px rgba(255, 0, 255, 0.55);
}

/* ---------- 页头 ---------- */
.hud {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: #ffffff;
}

.brand .mark { height: 26px; width: auto; display: block; }

.brand-t {
  font-family: var(--disp);
  font-size: 20px;
  letter-spacing: 0.22em;
  text-shadow: 0 0 14px rgba(128, 0, 255, 0.9), 0 0 30px rgba(255, 0, 255, 0.4);
}

.bars {
  margin-left: auto;
  width: 64px;
  height: 10px;
  border-top: 2px solid var(--pri);
  border-bottom: 2px solid var(--acc);
  box-shadow: 0 0 12px rgba(128, 0, 255, 0.5);
}

/* ---------- 全屏菜单 ---------- */
.ov {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(9, 6, 14, 0.97);
}

body.menu-open .ov { display: block; }
body.menu-open { overflow: hidden; }

.ov-in {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 72px 20px 48px;
}

.ov-x {
  position: absolute;
  top: 12px;
  right: 16px;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  color: var(--acc);
  border: 1px solid var(--acc);
  border-radius: 4px;
  font: inherit;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.ov-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-width: 640px;
}

.ov-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: #ffffff;
  font-family: var(--disp);
  font-size: clamp(20px, 5vw, 30px);
  letter-spacing: 0.08em;
  transition: transform 0.18s ease, color 0.18s ease;
}

.ov-nav a:hover,
.ov-nav a:focus-visible {
  color: var(--acc);
  transform: translateX(8px) skewX(-6deg);
  text-shadow: 0 0 18px rgba(255, 0, 255, 0.8);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 72px 20px 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 50% 40%, rgba(128, 0, 255, 0.24), transparent 70%),
    radial-gradient(40% 40% at 82% 88%, rgba(255, 0, 255, 0.16), transparent 70%);
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art .shot {
  position: absolute;
  width: 46%;
  max-width: 330px;
  border: 1px solid rgba(255, 0, 255, 0.55);
  border-radius: 4px;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.15) contrast(1.06);
  box-shadow: 0 0 26px rgba(128, 0, 255, 0.45);
}

.hero-art .shot-1 {
  top: 14%;
  left: -8%;
  transform: rotate(-4deg);
}

.hero-art .shot-2 {
  bottom: 12%;
  right: -8%;
  transform: rotate(3.5deg);
  border-color: rgba(128, 0, 255, 0.7);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 26px;
  font-family: var(--disp);
  font-size: clamp(30px, 7.4vw, 62px);
  line-height: 1.24;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(255, 0, 255, 0.65),
    0 0 46px rgba(128, 0, 255, 0.55);
  animation: chroma 5s ease-in-out infinite;
}

.chips {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 0, 255, 0.06);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.chips a:hover,
.chips a:focus-visible {
  border-color: var(--acc);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 0, 255, 0.5);
}

/* ---------- 主栅格 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.rail {
  min-width: 0;
  border-left: 2px solid var(--pri);
  padding: 2px 0 2px 14px;
}

.rail-h {
  margin: 0 0 10px;
  font-family: var(--disp);
  font-size: 16px;
  letter-spacing: 0.26em;
  color: var(--pri);
  text-shadow: 0 0 12px rgba(128, 0, 255, 0.8);
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: #ffffff;
  border-color: var(--acc);
  background: rgba(255, 0, 255, 0.1);
}

.rail-foot { margin: 12px 0 0; }

.rail-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.rail-foot a:hover { color: var(--acc); }

.content { min-width: 0; }

.prose {
  max-width: 72ch;
  overflow-wrap: break-word;
}

.prose h2 {
  margin: 42px 0 10px;
  padding-left: 14px;
  border-left: 4px solid var(--acc);
  font-family: var(--disp);
  font-size: clamp(21px, 3.4vw, 28px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(128, 0, 255, 0.7);
}

.prose h2:first-child { margin-top: 0; }

.prose p.subtitle {
  margin: 0 0 20px;
  padding-left: 18px;
  border-left: 4px solid var(--line);
  color: var(--dim);
}

.prose h3 {
  margin: 30px 0 8px;
  font-family: var(--disp);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--acc);
}

.prose p { margin: 0 0 16px; }

.prose article {
  padding: 30px 0 26px;
  border-bottom: 1px dashed var(--line-soft);
}

.prose article:last-of-type { border-bottom: 0; }

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 22px; }

.prose li { margin: 0 0 8px; }

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

.prose a {
  color: var(--acc);
  text-underline-offset: 3px;
}

.prose strong { color: #ffffff; }

.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  background: var(--panel);
  border-left: 4px solid var(--pri);
  border-radius: 4px;
  color: var(--dim);
}

.prose blockquote p:last-child { margin: 0; }

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

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

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

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

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

.totop { margin: 34px 0 0; }

.totop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--acc);
  border-radius: 4px;
  color: var(--acc);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.totop a:hover,
.totop a:focus-visible {
  background: rgba(255, 0, 255, 0.14);
  color: #ffffff;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 20px 30px;
  border-top: 1px solid var(--line);
}

.foot p { margin: 0; }

.foot a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.f-b {
  font-family: var(--disp);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 0, 255, 0.55);
}

.f-l,
.f-c { display: grid; align-content: start; }

.f-s { display: flex; gap: 8px; align-items: center; }

.f-s input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
}

.f-s input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.45);
}

.f-s button {
  min-height: 44px;
  padding: 0 18px;
  background: rgba(255, 0, 255, 0.12);
  border: 1px solid var(--acc);
  border-radius: 4px;
  color: #ffffff;
  font: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.f-s button:hover,
.f-s button:focus-visible { background: rgba(255, 0, 255, 0.26); }

.foot small {
  display: block;
  color: var(--dim);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.f-copy { grid-column: 1; align-self: center; }

.f-top {
  grid-column: 2;
  justify-self: end;
}

.f-top a { min-height: 44px; }

/* ---------- 动效 ---------- */
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes chroma {
  0%, 100% {
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.65), 0 0 46px rgba(128, 0, 255, 0.55);
    transform: skewX(0deg);
  }
  48% {
    text-shadow: -2px 0 14px rgba(255, 0, 255, 0.7), 3px 0 42px rgba(128, 0, 255, 0.55);
    transform: skewX(-0.9deg);
  }
  52% {
    text-shadow: 2px 0 14px rgba(128, 0, 255, 0.8), -3px 0 42px rgba(255, 0, 255, 0.45);
    transform: skewX(0.9deg);
  }
}

html.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .strip { padding: 0 24px; }
  .hud { padding: 12px 24px; }
  .hero-art .shot { opacity: 0.6; width: 36%; }
  .foot {
    grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
    gap: 28px;
  }
  .f-copy { grid-column: 1 / 3; }
  .f-top { grid-column: 4 / 5; }
}

@media (min-width: 960px) {
  .wrap {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    padding-top: 56px;
  }

  .rail { position: sticky; top: 132px; }

  .rail-nav ul {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .hero-art .shot { opacity: 0.75; width: 30%; }

  .ov-nav ul { max-width: 720px; }
}

@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;
  }
  html.js .rv { opacity: 1; transform: none; }
}

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