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

:root {
  --red: #ff0000;
  --mag: #ff006e;
  --ink: #1a1a2e;
  --ink-deep: #101020;
  --txt: #efe9f4;
  --dim: #b6a8c9;
  --line: rgba(255, 0, 110, 0.3);
  --hair: rgba(255, 255, 255, 0.09);
  --glow: 0 0 14px rgba(255, 0, 110, 0.6);
  --rail: 224px;
  --rad: 10px;
  --serif: 'Cormorant Infant', Georgia, 'Songti SC', 'SimSun', serif;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--txt);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.012em;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(58vw 58vw at 6% 6%, rgba(255, 0, 110, 0.2), transparent 62%),
    radial-gradient(52vw 52vw at 98% 84%, rgba(255, 0, 0, 0.15), transparent 64%),
    linear-gradient(180deg, #1a1a2e 0%, #131322 58%, #0c0c15 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
}

img { max-width: 100%; }
a { color: var(--mag); text-decoration: none; }
a:hover { color: #fff; text-shadow: var(--glow); }
p { margin: 0 0 1em; }

/* ---------- 左侧竖排胶囊导航 rail（aside > nav > ul > li > a） ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail);
  height: 100vh;
  padding: 26px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  z-index: 30;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(26, 26, 46, 0.96), rgba(16, 16, 32, 0.94));
  box-shadow: 18px 0 46px rgba(0, 0, 0, 0.45);
}

.mark {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--mag);
  border-radius: 50%;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  text-shadow: var(--glow);
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.4), inset 0 0 16px rgba(255, 0, 110, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.mark:hover { transform: translateY(-2px) scale(1.04); filter: hue-rotate(-16deg); }

.rail-title,
.side-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--dim);
  text-transform: none;
}
.rail-title span,
.side-title span { color: var(--mag); text-shadow: var(--glow); }

.rail nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  font-size: 16px;
  color: var(--txt);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 0, 110, 0.06);
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease,
    transform 0.18s ease, border-color 0.22s ease;
}
.rail nav a:hover,
.rail nav a[aria-current] {
  color: #fff;
  background: rgba(255, 0, 110, 0.22);
  border-color: var(--mag);
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.55);
  transform: translateX(3px);
}

/* ---------- 顶部细条 ---------- */
.stage { margin-left: var(--rail); }

.strip {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 32, 0.92);
  backdrop-filter: blur(6px);
}

.ticker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 9px 0;
  width: max-content;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--dim);
  white-space: nowrap;
  animation: marquee 46s linear infinite;
}
.ticker i { color: var(--red); font-style: normal; text-shadow: 0 0 10px var(--red); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 主体：main > div > article + 右侧 aside ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px 0 44px;
}

div { min-width: 0; max-width: 840px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  min-height: 100vh;
  padding: 40px 0;
}

.hero-media {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 0, 110, 0.34), rgba(255, 0, 0, 0.12) 55%, rgba(26, 26, 46, 0.9));
  box-shadow: 0 0 46px rgba(255, 0, 110, 0.28), inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0 2px,
    transparent 2px 5px
  );
}
.hero-img,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.06);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 20px;
}

h1 {
  margin: 0;
  font-family: 'Great Vibes', var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.16;
  font-weight: 400;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 0, 110, 0.9),
    0 0 52px rgba(255, 0, 0, 0.5);
  animation: glitch 8s infinite steps(1, end);
}

@keyframes glitch {
  0%, 89%, 100% { transform: none; }
  90% { transform: translate(-2px, 1px) skewX(-2deg); }
  94% { transform: translate(2px, -1px) skewX(2deg); }
  97% { transform: translate(-1px, 0) skewX(-1deg); }
}

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

/* ---------- 正文各节 ---------- */
div > article:not(.hero) {
  padding: 58px 0 52px;
  border-top: 1px solid var(--hair);
  scroll-margin-top: 108px;
}
div > article[id] { scroll-margin-top: 108px; }

div > article:not(.hero) h2 {
  margin: 0 0 20px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.35;
  font-weight: 500;
  color: #fff;
}
div > article:not(.hero) h2 span {
  display: inline-block;
  position: relative;
  letter-spacing: 0.02em;
}
div > article:not(.hero) h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--mag), var(--red), transparent);
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.8);
}

div > article:not(.hero) h3 {
  margin: 30px 0 12px;
  font-size: 1.22rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
div > article:not(.hero) h3 span { color: var(--mag); }

div > article:not(.hero) p,
div > article:not(.hero) li {
  color: #ded6e8;
  font-size: 17px;
}

div > article:not(.hero) ul,
div > article:not(.hero) ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}
div > article:not(.hero) li { margin-bottom: 0.55em; }
div > article:not(.hero) li::marker { color: var(--mag); }

div > article:not(.hero) strong { color: #fff; text-shadow: 0 0 10px rgba(255, 0, 110, 0.4); }

div > article:not(.hero) blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--mag);
  border-radius: 0 var(--rad) var(--rad) 0;
  background: rgba(255, 0, 110, 0.08);
  box-shadow: inset 0 -2px 0 rgba(255, 0, 110, 0.5);
  color: #f3ecf7;
}
div > article:not(.hero) blockquote p:last-child { margin-bottom: 0; }

div > article:not(.hero) a {
  border-bottom: 1px solid rgba(255, 0, 110, 0.55);
  padding-bottom: 1px;
}

/* ---------- 右侧 aside ---------- */
.side {
  position: sticky;
  top: 108px;
  align-self: start;
  min-width: 0;
  padding: 26px 0 0;
}

.side-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  color: #ded6e8;
  border: 1px solid var(--hair);
  border-radius: var(--rad);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 -3px 0 rgba(255, 0, 110, 0.45);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, background 0.2s ease;
}
.side-list a:hover {
  color: #fff;
  background: rgba(255, 0, 110, 0.16);
  border-color: var(--mag);
  box-shadow: inset 0 -3px 0 var(--red), 0 0 16px rgba(255, 0, 110, 0.5);
  transform: translateY(-2px);
}

.side-top { margin: 20px 0 0; font-size: 16px; }

/* ---------- 页脚：grid 四栏，仅 p + small ---------- */
.foot {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.45fr;
  gap: 22px 30px;
  margin-top: 70px;
  padding: 46px 40px 34px 44px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.05), transparent 70%);
}

.foot p { margin: 0; font-size: 16px; }

.f-brand {
  font-family: 'Great Vibes', var(--serif);
  font-size: 26px !important;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 110, 0.7);
}

.f-links { display: block; }
.f-links a {
  display: inline-block;
  min-height: 40px;
  padding: 6px 6px 6px 0;
  color: var(--dim);
}
.f-links a:hover { color: #fff; }

.f-sub { display: flex; gap: 8px; flex-wrap: wrap; }
.f-sub input {
  flex: 1 1 120px;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  box-shadow: inset 0 -3px 0 rgba(255, 0, 110, 0.4);
}
.f-sub input::placeholder { color: var(--dim); }
.f-sub input:focus { outline: none; border-color: var(--mag); box-shadow: 0 0 14px rgba(255, 0, 110, 0.55); }
.f-sub button {
  min-height: 44px;
  padding: 8px 20px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--mag), var(--red));
  border: 0;
  border-radius: var(--rad);
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.45);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.f-sub button:hover { filter: hue-rotate(-18deg) brightness(1.15); transform: translateY(-2px); }

.foot small { font-size: 16px; color: var(--dim); }
.f-copy { grid-column: 1 / 3; }
.f-top { grid-column: 3 / 5; text-align: right; }
.f-top a { display: inline-block; min-height: 40px; padding: 6px 0 6px 6px; color: var(--dim); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  main { grid-template-columns: minmax(0, 1fr) 220px; gap: 30px; padding-right: 26px; }
}

@media (max-width: 880px) {
  .rail {
    position: sticky;
    top: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail-title { display: none; }
  .rail nav { flex: 1 1 auto; min-width: 0; }
  .rail nav ul {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .rail nav ul::-webkit-scrollbar { display: none; }
  .rail nav a { white-space: nowrap; padding: 8px 14px; }
  .rail nav a:hover { transform: none; }

  .stage { margin-left: 0; }
  .strip { position: static; }
  .ticker { font-size: 16px; animation-duration: 34s; }

  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 18px;
  }
  div { max-width: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 22px;
    padding: 26px 0 30px;
  }
  .hero-copy { order: -1; align-items: flex-start; text-align: left; }
  .hero-desc { max-width: none; }
  .hero-media { aspect-ratio: 16 / 10; }

  div > article:not(.hero) { padding: 40px 0 34px; scroll-margin-top: 92px; }
  div > article[id] { scroll-margin-top: 92px; }

  .side {
    position: static;
    padding: 26px 0 6px;
    border-top: 1px solid var(--hair);
  }
  .side-list { flex-direction: row; flex-wrap: wrap; }
  .side-list li { flex: 1 1 132px; }

  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 40px;
    padding: 32px 18px 34px;
  }
  .f-brand,
  .f-links,
  .f-sub { grid-column: 1 / -1; }
  .f-copy { grid-column: 1 / 2; }
  .f-top { grid-column: 2 / 3; }
}

@media (max-width: 420px) {
  h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .side-list li { flex: 1 1 100%; }
}

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

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