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

:root {
  --red: #ff0000;
  --pink: #ff006e;
  --ink: #1a1a2e;
  --ink-2: #221f3c;
  --ink-3: #12111f;
  --paper: #fff0f6;
  --muted: #bda9c4;
  --ice: #9fe8ff;
  --line: rgba(255, 0, 110, .42);
  --line-soft: rgba(255, 0, 110, .22);
  --r: 18px;
  --topbar: 74px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(circle at 82% -8%, rgba(255, 0, 110, .22), transparent 46%),
    radial-gradient(circle at 4% 22%, rgba(255, 0, 0, .13), transparent 40%);
  color: var(--paper);
  font-family: Nunito, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
}

body.lock { overflow: hidden; }

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

a { color: var(--ice); text-decoration: none; }
a:hover { color: #fff; }

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

.crt {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  mix-blend-mode: screen;
  opacity: .5;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  transition: top .2s ease;
}
.skip:focus { top: 10px; }

/* ---------- 顶部两行 ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 45;
  background: linear-gradient(180deg, rgba(18, 17, 31, .98), rgba(26, 26, 46, .86));
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 0 26px rgba(255, 0, 110, .38);
}

.brandline {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-right: 6px;
  color: #fff;
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-shadow: 0 0 10px rgba(255, 0, 110, .95), 0 0 26px rgba(255, 0, 0, .6);
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  background: conic-gradient(from 40deg, var(--red), var(--pink) 40%, var(--ice) 62%, var(--red));
  box-shadow: 0 0 14px var(--pink);
  flex: none;
}

.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.find-lab {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.find-in {
  width: 148px;
  min-height: 42px;
  padding: 8px 12px;
  font: inherit;
  font-size: .95rem;
  color: var(--paper);
  background: rgba(255, 0, 110, .1);
  border: 2px solid var(--line);
  border-radius: 12px;
}
.find-in::placeholder { color: var(--muted); }
.find-in:focus { border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 0, 110, .6); }

.burger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: linear-gradient(120deg, var(--red), var(--pink));
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 0, 110, .55);
}

.bars { display: grid; gap: 3px; width: 16px; }
.bars i { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- 全屏遮罩菜单 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 22px 40px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 76% 12%, rgba(255, 0, 110, .3), transparent 52%),
    radial-gradient(circle at 10% 88%, rgba(255, 0, 0, .22), transparent 48%),
    rgba(10, 9, 20, .97);
  transform: translateY(-104%);
  transition: transform .42s cubic-bezier(.2, .8, .2, 1);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }

.drawer-x {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--pink);
  background: transparent;
  border: 2px solid var(--pink);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 0, 110, .45) inset;
}

.drawer-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 640px;
  counter-reset: none;
}

.drawer-list li {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .34s ease, transform .34s ease;
}
.drawer.open .drawer-list li { opacity: 1; transform: none; }
.drawer.open .drawer-list li:nth-child(1) { transition-delay: .06s; }
.drawer.open .drawer-list li:nth-child(2) { transition-delay: .11s; }
.drawer.open .drawer-list li:nth-child(3) { transition-delay: .16s; }
.drawer.open .drawer-list li:nth-child(4) { transition-delay: .21s; }
.drawer.open .drawer-list li:nth-child(5) { transition-delay: .26s; }
.drawer.open .drawer-list li:nth-child(6) { transition-delay: .31s; }
.drawer.open .drawer-list li:nth-child(7) { transition-delay: .36s; }

.drawer-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 62px;
  padding: 14px 4px;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: clamp(1.22rem, 4.4vw, 1.7rem);
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, .5);
}
.drawer-list a:hover { text-shadow: 0 0 18px var(--pink), 0 0 34px var(--red); }

.drawer-list b {
  font-family: Nunito, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--pink);
}

.drawer-band {
  display: block;
  height: 8px;
  margin: 26px auto 0;
  width: min(640px, 100%);
  background: linear-gradient(90deg, var(--red), var(--pink), var(--ice), var(--pink), var(--red));
  border-radius: 999px;
  opacity: .85;
  animation: hue 9s linear infinite;
}

@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- 主视觉 ---------- */
main { display: block; }

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(150deg, #241f3f, var(--ink-3));
}

.hero-fig { position: absolute; inset: 0; margin: 0; }

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

.hero-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 17, 31, .92) 0%, rgba(18, 17, 31, .55) 46%, rgba(255, 0, 110, .3) 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 5px);
}

.hero-text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 20px 110px;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: clamp(2rem, 6.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 110, .9), 0 0 44px rgba(255, 0, 0, .6);
  animation: glitch 7s steps(1, end) infinite;
}

@keyframes glitch {
  0%, 88%, 100% { transform: none; text-shadow: 0 0 16px rgba(255, 0, 110, .9), 0 0 44px rgba(255, 0, 0, .6); }
  89% { transform: skewX(-3deg) translateX(-3px); text-shadow: 3px 0 var(--ice), -3px 0 var(--pink); }
  92% { transform: skewX(2deg) translateX(2px); text-shadow: -3px 0 var(--red), 3px 0 var(--ice); }
  95% { transform: none; }
}

.hero-slant {
  position: absolute;
  z-index: 3;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 74px;
  background: linear-gradient(90deg, var(--red), var(--pink) 48%, var(--ink));
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- 内容区：左栏 + 正文 ---------- */
.stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 8px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px 30px;
  align-items: start;
}

.rail {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: calc(var(--topbar) + 12px);
  padding: 16px 14px 18px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 0, 110, .07);
  box-shadow: 0 0 20px rgba(255, 0, 110, .18);
}

.rail h2 {
  margin: 0;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.16rem;
  letter-spacing: .18em;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 0, 110, .7);
}

.rail .subtitle {
  margin: 4px 0 12px;
  font-size: .84rem;
  letter-spacing: .1em;
  color: var(--muted);
}

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

.rail-list a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 9px 6px;
  min-height: 42px;
  font-size: .96rem;
  color: var(--paper);
  border-left: 2px solid transparent;
  border-radius: 8px;
  transition: border-color .2s ease, background .2s ease, padding-left .2s ease;
}
.rail-list a:hover,
.rail-list a:focus-visible {
  border-left-color: var(--pink);
  background: rgba(255, 0, 110, .12);
  padding-left: 10px;
  color: #fff;
}

.rail-list b {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--pink);
}

.stamp {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  height: 190px;
  border: 2px dashed var(--line-soft);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(255, 0, 110, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, .16) 1px, transparent 1px);
  background-size: 16px 16px;
}

.stamp-t {
  writing-mode: vertical-rl;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.05rem;
  letter-spacing: .34em;
  color: var(--ice);
  text-shadow: 0 0 12px rgba(159, 232, 255, .8);
}

.body {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  max-width: 760px;
}

.body > div {
  scroll-margin-top: calc(var(--topbar) + 26px);
  padding: 26px 0 8px;
  border-top: 2px dashed var(--line-soft);
}
.body > div:first-child { border-top: 0; padding-top: 0; }

.body h2 {
  margin: 0 0 .45em;
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, .6);
}

.body .subtitle {
  margin: -.2em 0 1em;
  font-size: .98rem;
  letter-spacing: .04em;
  color: var(--pink);
}

.body h3 {
  margin: 1.5em 0 .4em;
  font-size: 1.16rem;
  color: var(--ice);
}

.body p { margin: 0 0 1.05em; }

.body ul, .body ol { padding-left: 1.3em; }
.body li { margin-bottom: .5em; }

.body blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 4px solid var(--pink);
  background: rgba(255, 0, 110, .09);
  border-radius: 0 12px 12px 0;
}

.body figure { margin: 1.3em 0; }
.body figcaption { font-size: .9rem; color: var(--muted); margin-top: .5em; }

.body img {
  border: 2px solid var(--line);
  border-radius: 14px;
  display: block;
}

.body aside {
  margin: 1.2em 0;
  padding: 14px 16px;
  border: 2px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(26, 26, 46, .6);
  font-size: .98rem;
}

.body table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.body th, .body td { border: 1px solid var(--line-soft); padding: 8px 10px; text-align: left; }

.body a { text-decoration: underline; text-decoration-color: rgba(255, 0, 110, .6); text-underline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 46px;
  padding: 30px 18px 18px;
  border-top: 3px solid var(--pink);
  background: linear-gradient(180deg, #171530, #0d0c19);
  box-shadow: 0 -10px 34px rgba(255, 0, 110, .18);
}

.foot-top {
  max-width: 1120px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.foot-claim {
  margin: 0;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.25rem;
  letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, .8);
}

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

.sub input {
  min-height: 44px;
  min-width: 190px;
  padding: 8px 12px;
  font: inherit;
  font-size: .95rem;
  color: var(--paper);
  background: rgba(255, 0, 110, .09);
  border: 2px solid var(--line);
  border-radius: 12px;
}
.sub input::placeholder { color: var(--muted); }

.sub button {
  min-height: 44px;
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: linear-gradient(120deg, var(--pink), var(--red));
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 0, 110, .5);
}

.foot-cols {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.foot-cols dl {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 0, 110, .05);
}

.foot-cols dt {
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--pink);
}

.foot-cols dd {
  margin: 6px 0 0;
  font-size: .98rem;
  color: #fff;
  word-break: break-all;
}

.foot-nav { max-width: 1120px; margin: 20px auto 0; }

.foot-nav dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.foot-nav dt {
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--pink);
}

.foot-nav dd { margin: 0; }

.foot-nav a {
  display: inline-block;
  padding: 10px 0;
  min-height: 42px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
}
.foot-nav a:hover { border-bottom-color: var(--pink); color: #fff; }

.foot-base {
  max-width: 1120px;
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: .92rem;
  color: var(--muted);
}
.foot-base p { margin: 0; }

.to-top {
  display: inline-block;
  padding: 9px 2px;
  min-height: 40px;
  color: var(--ice);
}

/* ---------- 小屏 ---------- */
@media (max-width: 860px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 22px;
  }
  .rail { grid-column: 1; grid-row: 1; position: static; }
  .body { grid-column: 1; grid-row: 2; max-width: none; }
  .stamp { grid-column: 1; grid-row: 3; height: 92px; }
  .stamp-t { writing-mode: horizontal-tb; letter-spacing: .3em; }
  .hero { min-height: 62vh; }
  .hero-text { padding: 96px 16px 84px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .find-in { width: 118px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand { font-size: 1.12rem; letter-spacing: .05em; }
  .find-in { width: 92px; }
  .burger { padding: 0 11px; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .drawer-list li, .reveal, .hero h1, .drawer-band { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

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