@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --ink: #101020;
  --ink-2: #1a1a2e;
  --ink-3: #26264a;
  --red: #ff0000;
  --pink: #ff006e;
  --paper: #ffe9f2;
  --dim: #c7b4d8;
  --r: 18px;
  --serif: "Cormorant Garamond", "Crimson Pro", "Songti SC", Georgia, serif;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --grid: 68px;
}

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

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.78;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(255, 0, 110, .18), transparent 62%),
    radial-gradient(880px 540px at 4% 22%, rgba(255, 0, 0, .13), transparent 66%),
    linear-gradient(rgba(255, 0, 110, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, .06) 1px, transparent 1px);
  background-size: auto, auto, var(--grid) var(--grid), var(--grid) var(--grid);
  overflow-x: hidden;
}

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(10, 10, 24, .72) 100%);
}

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

a {
  color: var(--pink);
  text-decoration: none;
  transition: color .18s ease, text-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

a:hover { color: #fff; text-shadow: 0 0 9px rgba(255, 0, 110, .9); }

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

::selection { background: var(--pink); color: #14000a; }

p { margin: 0 0 1.1em; }

/* ---------- shell ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(180px, 232px) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "rail main"
    "foot foot";
  column-gap: clamp(1.4rem, 3vw, 3rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.6rem);
}

/* ---------- masthead ---------- */
.masthead {
  grid-area: head;
  position: sticky;
  top: 0;
  z-index: 60;
  padding: .4rem 0 .9rem;
  background: linear-gradient(180deg, rgba(16, 16, 32, .96), rgba(16, 16, 32, .82));
  backdrop-filter: blur(7px);
}

.ticker {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--display);
  letter-spacing: .22em;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 0, 0, .38);
  padding-bottom: .15rem;
}

.ticker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  margin-right: .35rem;
  flex: 0 0 auto;
  animation: pulse 2.4s ease-in-out infinite;
}

.ticker__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .3rem .55rem;
  color: var(--dim);
  font-size: 1rem;
}

.ticker__link:hover { color: var(--red); }

.brandrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .55rem;
}

.brand {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, .6), 0 0 34px rgba(255, 0, 0, .35);
  padding: .25rem 0 .35rem;
}

.brand::before,
.brand::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: .25rem;
  width: 100%;
  pointer-events: none;
  opacity: 0;
}

.brand::before { color: var(--red); }
.brand::after { color: #6fe9ff; }

.brand:hover { animation: glitch 1.1s steps(2, end) 1; }
.brand:hover::before { animation: glitch-a 1.1s steps(2, end) 1; }
.brand:hover::after { animation: glitch-b 1.1s steps(2, end) 1; }

.brandrow__rule {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 0, 110, .6) 0 6px, transparent 6px 12px);
}

/* ---------- rail ---------- */
.rail {
  grid-area: rail;
  position: sticky;
  top: 9.4rem;
  align-self: start;
  padding: 2.4rem 0 2rem;
}

.eyebrow {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .3em;
  color: var(--red);
  text-shadow: 0 0 8px rgba(255, 0, 0, .8);
  margin-bottom: .1rem;
}

.rail__title {
  margin: 0 0 .9rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--paper);
  text-shadow: 0 0 10px rgba(255, 0, 110, .55);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .42rem;
}

.menu__a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: .5rem .85rem;
  border-radius: var(--r);
  background: var(--ink-2);
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.35;
}

.menu__a:hover,
.menu__a:focus-visible {
  background: var(--ink-3);
  color: #fff;
  text-shadow: 0 0 9px rgba(255, 0, 110, .85);
  transform: translateX(2px);
}

.menu__a.is-active {
  background: linear-gradient(100deg, rgba(255, 0, 110, .35), rgba(255, 0, 0, .12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 0, 110, .55), 0 0 16px rgba(255, 0, 110, .22);
}

/* ---------- stage ---------- */
.stage { grid-area: main; min-width: 0; }

.sheet { display: block; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  min-height: 90vh;
  padding: 2rem 0 3.4rem;
  scroll-margin-top: 8rem;
}

.hero-art {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 4 / 5;
  box-shadow: 0 0 0 1px rgba(255, 0, 110, .3), 0 24px 60px rgba(0, 0, 0, .55);
}

.hero-art__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .26) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, transparent 55%, rgba(255, 0, 110, .22) 100%);
  pointer-events: none;
}

.hero-art__plate {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 110, .3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, .3) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-art__bracket {
  position: absolute;
  inset: 12% 14%;
  border: 2px solid rgba(255, 0, 0, .55);
  border-radius: var(--r);
  box-shadow: 0 0 26px rgba(255, 0, 110, .45) inset;
}

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

.hero-copy::before {
  content: "01";
  position: absolute;
  right: -.04em;
  top: -.52em;
  z-index: -1;
  font-family: var(--display);
  font-size: clamp(6rem, 17vw, 14rem);
  line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 110, .34);
  letter-spacing: -.02em;
}

.hero-title {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5.3vw, 3.5rem);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.24;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, .75), 0 0 40px rgba(255, 0, 0, .4);
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: .55;
}

.hero-title::before { color: var(--red); animation: glitch-a 6.5s steps(2, end) infinite; }
.hero-title::after { color: #7de9ff; animation: glitch-b 7.5s steps(2, end) infinite; }

.hero-desc {
  margin: 0 0 0 auto;
  max-width: 34ch;
  color: var(--dim);
  font-size: 1.06rem;
}

/* ---------- body ---------- */
.body {
  max-width: 74ch;
  padding: 1rem 0 5.5rem;
}

.body > div {
  position: relative;
  padding: 2.4rem 0 2.4rem 1.35rem;
  margin: 0 0 1.4rem;
  border-left: 2px solid rgba(255, 0, 110, .3);
  scroll-margin-top: 8.5rem;
}

.body > div + div {
  border-top: 1px dashed rgba(255, 255, 255, .14);
}

.body > div::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  transition: height .8s ease;
}

.body > div.is-lit::before { height: 100%; }

.body > div small {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .26em;
  color: var(--red);
  text-shadow: 0 0 8px rgba(255, 0, 0, .7);
  margin-bottom: .15rem;
}

.body h2 {
  margin: 0 0 .9rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .05em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, .5);
}

.body h3 {
  margin: 1.7rem 0 .6rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--paper);
}

.body p { color: #f0dfeb; }

.body strong { color: #fff; text-shadow: 0 0 10px rgba(255, 0, 110, .45); }

.body ul,
.body ol {
  margin: 0 0 1.2em;
  padding-left: 1.3rem;
}

.body li { margin-bottom: .45rem; }

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

.body blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--r);
  background: var(--ink-2);
  color: var(--dim);
  font-style: italic;
}

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

.body img {
  border-radius: var(--r);
  margin: 1.2rem 0;
  box-shadow: 0 0 0 1px rgba(255, 0, 110, .28);
}

.body a {
  border-bottom: 1px solid rgba(255, 0, 110, .55);
}

.body a:hover { border-bottom-color: #fff; }

.body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 1rem 0 1.4rem;
}

.body th,
.body td {
  padding: .55rem .6rem;
  text-align: left;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
}

.body th { color: var(--pink); font-weight: 600; }

/* ---------- colophon ---------- */
.colophon {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1.4rem;
  padding: 2.6rem 0 3.6rem;
  border-top: 1px solid rgba(255, 0, 0, .35);
}

.colophon__brand a {
  font-family: var(--display);
  font-size: clamp(1.5rem, 6.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255, 0, 110, .65);
  display: inline-block;
  padding: .3rem 0;
}

.colophon__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.colophon__a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .35rem;
  font-size: 1rem;
  color: var(--dim);
}

.colophon__copy {
  flex: 1 1 100%;
  text-align: center;
  font-size: 1rem;
  color: var(--dim);
  letter-spacing: .06em;
  padding-top: .2rem;
}

.scrollbar {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  z-index: 95;
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: 0 0 12px rgba(255, 0, 110, .9);
  pointer-events: none;
}

/* ---------- keyframes ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.82); }
}

@keyframes glitch {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px) skewX(-.7deg); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 2px) skewX(.6deg); }
}

@keyframes glitch-a {
  0%, 88%, 100% { opacity: .4; transform: translate(0, 0); }
  90% { opacity: .8; transform: translate(-3px, -1px); }
  94% { opacity: .8; transform: translate(2px, 1px); }
}

@keyframes glitch-b {
  0%, 88%, 100% { opacity: .35; transform: translate(0, 0); }
  92% { opacity: .7; transform: translate(3px, 1px); }
  96% { opacity: .7; transform: translate(-2px, -1px); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "main"
      "rail"
      "foot";
  }

  /* 标题先入场 */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0 0 2.2rem;
    gap: 1.5rem;
  }

  .hero-copy {
    order: -1;
    text-align: left;
    padding-top: .2rem;
  }

  .hero-copy::before {
    font-size: clamp(4.6rem, 24vw, 8rem);
    top: -.46em;
    right: -4px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    letter-spacing: .04em;
    margin-bottom: .7rem;
  }

  .hero-desc { margin: 0; max-width: 40ch; }

  .hero-art {
    aspect-ratio: 3 / 4;
    max-height: 52vh;
    margin-bottom: .2rem;
  }

  .rail {
    position: static;
    padding: 1.1rem 0 .6rem;
    margin-top: 1.6rem;
    border-top: 1px dashed rgba(255, 255, 255, .16);
  }

  .rail__title { margin-bottom: .5rem; }

  .menu {
    flex-direction: row;
    gap: .45rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
  }

  .menu li { flex: 0 0 auto; }

  .menu__a { white-space: nowrap; padding: .5rem .8rem; }

  .body { padding-bottom: 3.4rem; }

  .body > div { padding: 2rem 0 2rem 1rem; }

  .colophon { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .masthead {
    padding: .15rem 0 .45rem;
  }

  .ticker {
    font-size: .86rem;
    letter-spacing: .14em;
  }

  .ticker__link {
    min-height: 40px;
    padding: .2rem .4rem;
    font-size: .95rem;
  }

  .brandrow { padding-top: .2rem; }

  .brand {
    font-size: clamp(1.2rem, 5.6vw, 1.5rem);
    letter-spacing: .1em;
    padding: .2rem 0 .25rem;
  }
}

@media (max-width: 420px) {
  body { font-size: 17px; }
  .hero-title { letter-spacing: .02em; }
  .rail { padding-top: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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