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

:root {
  --bg: #08080f;
  --ink: #1a1a2e;
  --red: #ff0000;
  --pink: #ff006e;
  --txt: #d6d6e8;
  --line: rgba(255, 0, 110, .28);
  --glass: rgba(255, 255, 255, .045);
  --r: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--txt);
  font: 400 16.5px/1.85 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(255, 0, 110, .16), transparent 62%),
    radial-gradient(900px 520px at -8% 96%, rgba(255, 0, 0, .12), transparent 60%),
    var(--bg);
}

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

h1, h2, h3, .brand, .foot-brand {
  font-family: 'Righteous', 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
}

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

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

/* ---------- 顶部两行 ---------- */
.top {
  position: relative;
  z-index: 100;
  display: grid;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: clamp(23px, 3.2vw, 31px);
  letter-spacing: .07em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 0, 110, .8), 0 0 32px rgba(255, 0, 0, .35);
}

.brand:hover { text-shadow: 0 0 20px var(--red), 0 0 46px var(--pink); }

.bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: #f1f1ff;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.menu > summary::-webkit-details-marker { display: none; }

.burger {
  width: 20px;
  height: 2px;
  background: var(--pink);
  box-shadow: 0 -6px 0 var(--pink), 0 6px 0 var(--pink);
  transition: transform .25s ease, box-shadow .25s ease;
}

.menu[open] > summary {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 130;
  background: rgba(10, 10, 20, .94);
}

.menu[open] > summary .burger {
  transform: rotate(45deg);
  box-shadow: none;
  background: var(--red);
}

.top menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu[open] > menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 104px 22px 40px;
  overflow: auto;
  background:
    radial-gradient(900px 520px at 72% 0%, rgba(255, 0, 110, .2), transparent 62%),
    rgba(6, 6, 12, .97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade .25s ease both;
}

.menu[open] > menu li {
  text-align: center;
  border-bottom: 1px dashed rgba(255, 0, 110, .22);
}

.menu[open] > menu a {
  display: block;
  min-height: 48px;
  padding: 15px 10px;
  color: #fff;
  font-size: 19px;
  letter-spacing: .05em;
  text-decoration: none;
}

.menu[open] > menu a:hover {
  color: var(--pink);
  text-shadow: 0 0 16px var(--pink);
}

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

.find input {
  width: min(210px, 42vw);
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.find input::placeholder { color: #9696b2; }

.find button {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 0, 0, .6);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red), var(--pink));
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  max-width: 1180px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 24px;
  background-image: radial-gradient(rgba(255, 0, 110, .22) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, .75), 0 0 42px rgba(255, 0, 0, .35);
  animation: glitch 7s infinite;
}

.lede {
  max-width: 46ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: #c6c6dd;
}

.hero-fig {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(150deg, rgba(255, 0, 110, .18), rgba(26, 26, 46, .72) 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 0, .16), 0 22px 64px rgba(255, 0, 110, .18);
}

.crt {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 0, 110, .3), rgba(8, 8, 15, .92) 72%);
}

.crt img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}

.crt img.is-on { opacity: 1; }

.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .38) 0 2px, transparent 2px 4px);
}

.crt::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  border: 1px dashed rgba(255, 0, 110, .45);
  border-radius: 18px;
}

/* ---------- 侧栏 + 正文 ---------- */
.stage {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}

.rail {
  position: sticky;
  top: 20px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rail h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 0, 110, .5);
}

.rail hr {
  height: 1px;
  margin: 0 0 12px;
  border: 0;
  background: linear-gradient(90deg, var(--red), rgba(255, 0, 110, 0));
}

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

.rail a {
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 14px;
  color: #c8c8df;
  font-size: 16px;
  text-decoration: none;
}

.rail a:hover {
  background: rgba(255, 0, 110, .13);
  color: #fff;
}

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

.stage-main > section {
  margin: 0 0 22px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r);
  background: var(--glass);
  scroll-margin-top: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.stage-main h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, .55);
}

.stage-main h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  line-height: 1.5;
  color: #fff;
}

.stage-main h2 + hr,
.stage-main h3 + hr {
  height: 1px;
  margin: 0 0 16px;
  border: 0;
  background: linear-gradient(90deg, var(--pink), rgba(255, 0, 110, 0));
}

.stage-main p { margin: 0 0 14px; color: #d2d2e5; }
.stage-main ul, .stage-main ol { padding-left: 22px; }
.stage-main li { margin: 6px 0; }
.stage-main img { max-width: 100%; height: auto; border-radius: 18px; }
.stage-main figure { margin: 18px 0; }
.stage-main blockquote { margin: 16px 0; padding-left: 16px; border-left: 2px solid var(--pink); color: #bdbdd6; }

/* ---------- 页脚 ---------- */
footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  align-items: start;
  gap: 22px;
  padding: 52px max(24px, calc((100% - 1180px) / 2)) 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 0, 110, .07), transparent);
}

.foot-brand {
  margin: 0;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1;
  letter-spacing: .04em;
}

.foot-brand a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 0, 110, .75), 0 0 44px rgba(255, 0, 0, .3);
}

.foot-col {
  display: grid;
  gap: 2px;
  margin: 0;
}

.foot-col a {
  display: inline-block;
  min-height: 40px;
  padding: 8px 0;
  color: #c0c0d6;
  font-size: 16px;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--pink);
  text-shadow: 0 0 12px var(--pink);
}

footer small {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8a8aa6;
  font-size: 15px;
  text-align: center;
}

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glitch {
  0%, 91%, 100% {
    transform: none;
    text-shadow: 0 0 14px rgba(255, 0, 110, .75), 0 0 42px rgba(255, 0, 0, .35);
  }
  92% {
    transform: translate(-2px, 1px) skewX(-4deg);
    text-shadow: 2px 0 var(--red), -2px 0 #00e5ff;
  }
  94% {
    transform: translate(2px, -1px) skewX(3deg);
    text-shadow: -2px 0 var(--red), 2px 0 #00e5ff;
  }
  96% { transform: translate(-1px, 0); }
}

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

  .stage {
    grid-template-columns: 1fr;
    padding-bottom: 64px;
  }

  .rail { position: static; }

  .rail ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .top { padding: 14px 16px 12px; }
  .hero { padding-inline: 16px; }
  .stage { padding-inline: 16px; }
  .stage-main > section { padding: 20px 16px; }
  .rail ul { grid-template-columns: 1fr; }
  .find input { width: 46vw; }
  .foot-brand { font-size: 34px; }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .rv { opacity: 1; transform: none; }
}

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