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

:root {
  --pink: #ff0080;
  --mag: #ff00ff;
  --ink: #26171f;
  --bg: #100a0e;
  --text: #f8eef5;
  --dim: #cbb3c4;
  --line: rgba(255, 0, 128, 0.26);
  --glass: rgba(255, 255, 255, 0.05);
  --r: 4px;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Exo", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 80px;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.68 var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 16% 20%, rgba(255, 0, 128, 0.55), transparent 62%),
    radial-gradient(34% 38% at 80% 14%, rgba(255, 0, 255, 0.42), transparent 60%),
    radial-gradient(46% 50% at 60% 82%, rgba(112, 0, 255, 0.36), transparent 66%),
    conic-gradient(from 210deg at 46% 52%, rgba(255, 0, 128, 0.34), rgba(255, 0, 255, 0.24), rgba(38, 23, 31, 0.94), rgba(255, 0, 128, 0.34));
  filter: blur(30px) saturate(132%);
  opacity: 0.68;
  mix-blend-mode: screen;
  animation: flow 24s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

@keyframes flow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.14); }
}

a { color: var(--pink); }
img { max-width: 100%; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 12px 18px;
  min-height: 44px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--pink);
  border-radius: var(--r);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus { top: 12px; }

/* 首屏 */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(52px, 9vh, 92px) clamp(18px, 5vw, 64px) clamp(28px, 6vh, 56px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(72% 72% at 32% 42%, #000, transparent);
  mask-image: radial-gradient(72% 72% at 32% 42%, #000, transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, #ffffff 6%, var(--pink) 54%, var(--mag) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 0;
  max-width: 34ch;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.68;
}

.hero-collage {
  position: relative;
  aspect-ratio: 5 / 4;
  will-change: transform;
}

.shot {
  position: absolute;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 70px -34px #000, inset 0 0 0 1px rgba(255, 0, 128, 0.28);
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.42), rgba(255, 0, 255, 0.2) 46%, rgba(38, 23, 31, 0.94));
}

.shot.a { inset: 0 26% 20% 0; }
.shot.b { inset: 30% 0 0 32%; }

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

/* 正文区 */
.board {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px clamp(18px, 5vw, 64px) 64px;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 24px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.rail-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fff;
}

.rail .subtitle {
  margin: 0 0 16px;
  font: 400 16px/1.5 var(--mono);
  color: var(--pink);
  letter-spacing: 0.04em;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 0;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.rail-list a:hover { color: #fff; }

.rail-list .num {
  font: 400 16px/1 var(--mono);
  color: rgba(255, 0, 128, 0.78);
}

.body { min-width: 0; }

.body > section {
  padding: 24px clamp(16px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.95), inset 2px 0 0 -1px rgba(255, 0, 128, 0.5);
  scroll-margin-top: 18px;
}

.body > section + section { margin-top: 16px; }

.body h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.body h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.body p {
  margin: 0 0 12px;
  color: #eee0e9;
}

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

.body ul,
.body ol {
  margin: 0 0 12px;
  padding-left: 22px;
  color: #eee0e9;
}

.body li { margin: 6px 0; }

.body li::marker { color: var(--pink); }

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

.body blockquote {
  margin: 0 0 12px;
  padding: 10px 16px;
  border-left: 2px solid var(--mag);
  background: rgba(255, 0, 255, 0.07);
  color: var(--dim);
  border-radius: 0 var(--r) var(--r) 0;
}

.body figure {
  margin: 16px 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 18px 40px -28px #000;
}

.body img { border-radius: var(--r); }

.body code,
.body pre {
  font-family: var(--mono);
  font-size: 16px;
}

.body pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.body th,
.body td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(12px, 4vw, 30px);
  background: rgba(16, 10, 14, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid rgba(255, 0, 128, 0.42);
  box-shadow: 0 -16px 44px -26px #000;
}

.dock a { text-decoration: none; white-space: nowrap; }

.dock-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(92deg, #fff 10%, var(--pink) 68%, var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 0, 128, 0.65), 0 0 18px -4px var(--pink);
  background: conic-gradient(from 40deg, var(--pink), var(--mag), #7a00ff, var(--pink));
}

.menu-wrap { position: relative; }

.menu-wrap summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  color: #fff;
  font: 500 16px/1 var(--sans);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.05);
}

.menu-wrap summary::-webkit-details-marker { display: none; }
.menu-wrap[open] summary { border-color: var(--pink); color: var(--pink); }

.bars {
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  background:
    linear-gradient(var(--pink), var(--pink)) 0 0 / 16px 2px no-repeat,
    linear-gradient(var(--mag), var(--mag)) 0 5px / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) 0 10px / 16px 2px no-repeat;
}

.menu-wrap menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  margin: 0;
  padding: 8px;
  min-width: 196px;
  list-style: none;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 0, 128, 0.42);
  border-radius: var(--r);
  background: rgba(22, 13, 19, 0.97);
  box-shadow: 0 26px 60px -26px #000;
}

.menu-wrap menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--dim);
  font-size: 16px;
}

.menu-wrap menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: linear-gradient(var(--pink), var(--mag));
}

.menu-wrap menu a:hover,
.menu-wrap menu a:focus { background: rgba(255, 0, 128, 0.16); color: #fff; }

.dock-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  font: 500 16px/1 var(--sans);
  border-radius: var(--r);
  border: 1px solid rgba(255, 0, 255, 0.55);
  background: linear-gradient(92deg, rgba(255, 0, 128, 0.92), rgba(255, 0, 255, 0.78));
  box-shadow: 0 12px 26px -16px var(--pink);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

/* 页脚 */
footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(18px, 5vw, 64px) 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  border-top: 1px solid var(--line);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(94deg, var(--pink), var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.foot-i {
  margin: 0;
  font: 400 16px/1.7 var(--mono);
  color: var(--dim);
  letter-spacing: 0.04em;
}

footer small {
  grid-column: 1 / -1;
  margin-top: 18px;
  text-align: center;
  font: 400 16px/1.6 var(--mono);
  color: #a894a6;
}

.reveal { opacity: 0; transform: translateY(18px); }

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 60px;
  }

  .hero-collage {
    aspect-ratio: 16 / 10;
    max-width: 470px;
  }

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

  .rail {
    position: static;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rail-list { grid-template-columns: 1fr 1fr; gap: 0 14px; }
}

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

  .hero { padding: 54px 16px 26px; }

  .board { padding: 6px 16px 52px; }

  .dock { gap: 8px; padding: 8px 12px; }

  .dock-brand { font-size: 16px; gap: 7px; }

  .menu-wrap summary,
  .dock-cta { padding: 0 12px; font-size: 16px; }

  .menu-wrap menu { min-width: 176px; }

  footer { padding: 28px 16px 92px; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-collage { transform: none !important; }
}

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