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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --deep: #1a0f0f;
  --text: #f7eae8;
  --muted: #d8bab6;
  --line: rgba(255, 255, 255, 0.13);
  --card: rgba(255, 255, 255, 0.045);
  --serif: "Cormorant Infant", "Songti SC", "Noto Serif SC", Georgia, serif;
  --script: "Great Vibes", "Cormorant Infant", "Songti SC", cursive;
  --r: 10px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 128px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: -25% -15%;
  z-index: -2;
  background:
    radial-gradient(42% 42% at 14% 18%, rgba(255, 0, 0, 0.5), transparent 70%),
    radial-gradient(46% 38% at 86% 12%, rgba(255, 20, 147, 0.46), transparent 72%),
    radial-gradient(52% 46% at 72% 84%, rgba(255, 70, 130, 0.34), transparent 74%),
    radial-gradient(60% 55% at 22% 88%, rgba(140, 24, 70, 0.5), transparent 72%),
    linear-gradient(158deg, #1e1010 0%, #261717 52%, #150b0b 100%);
  filter: blur(18px) saturate(1.25);
  animation: aurora 10s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 90%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 90%);
}

@keyframes aurora {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(0deg);
  }
  50% {
    transform: translate3d(2%, 2%, 0) scale(1.08) rotate(1.5deg);
  }
  100% {
    transform: translate3d(-1%, 3%, 0) scale(1.04) rotate(-1.5deg);
  }
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

/* ---------- 底部固定胶囊导航 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(38, 23, 23, 0.72), rgba(20, 11, 11, 0.94));
  border-top: 1px solid rgba(255, 20, 147, 0.28);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  font-family: var(--script);
  font-size: 1.6rem;
  line-height: 1;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.5), transparent 55%),
    conic-gradient(from 0deg, var(--red), var(--pink), #ff6a3d, var(--red));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 6px 20px rgba(255, 20, 147, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mark span {
  transform: translateY(2px);
}

.mark:hover,
.mark:focus-visible {
  transform: scale(1.07) rotate(-4deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 8px 26px rgba(255, 0, 0, 0.5);
}

.pills {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pills p {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 2px;
}

.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

.pills a:hover,
.pills a:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.9), rgba(255, 20, 147, 0.9));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 20, 147, 0.42);
}

/* ---------- 主区 ---------- */
.pg {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 86px 0 0;
}

.hero-txt {
  text-align: right;
}

.hero h1 {
  font-family: var(--script);
  font-size: clamp(2.7rem, 9.5vw, 5.2rem);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, #fff 6%, #ffd8e6 32%, var(--pink) 66%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(255, 20, 147, 0.45));
}

.lead {
  margin: 14px 0 0 auto;
  max-width: 44ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-fig {
  margin: 26px 0 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 3px solid var(--pink);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.03);
}

.slash {
  display: block;
  height: 26px;
  margin: 22px 0 4px;
  clip-path: polygon(0 68%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, var(--red), var(--pink) 55%, rgba(255, 255, 255, 0.1));
  opacity: 0.85;
}

/* ---------- 侧栏 + 正文 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

.rail {
  order: 0;
}

.rail-k {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  color: var(--pink);
}

.rail-h {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  margin: 2px 0 10px;
  color: #fff;
}

.rail-l {
  margin: 0;
}

.rail-l a {
  display: block;
  min-height: 42px;
  padding: 8px 12px;
  border-left: 2px solid rgba(255, 20, 147, 0.4);
  border-radius: 0 var(--r) var(--r) 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease,
    padding-left 0.25s ease;
}

.rail-l a:hover,
.rail-l a:focus-visible {
  color: #fff;
  border-color: var(--pink);
  background: rgba(255, 20, 147, 0.12);
  padding-left: 18px;
}

.flow {
  min-width: 0;
  max-width: 74ch;
}

.flow > article {
  position: relative;
  margin: 0 0 26px;
  padding: 26px 20px 30px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 3px solid rgba(255, 20, 147, 0.5);
  scroll-margin-top: 22px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease,
    box-shadow 0.35s ease;
}

.flow > article:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
  border-bottom-color: var(--red);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.flow small {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--pink);
  margin-bottom: 4px;
}

.flow h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.6em;
  text-shadow: 0 4px 22px rgba(255, 20, 147, 0.3);
}

.flow h3 {
  font-size: 1.22rem;
  line-height: 1.4;
  color: #ffe6ee;
  margin: 1.3em 0 0.4em;
}

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

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

.flow ul,
.flow ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.flow li {
  margin-bottom: 0.45em;
}

.flow a {
  color: #ffb3d2;
  text-underline-offset: 3px;
}

.flow a:hover {
  color: #fff;
}

.flow figure,
.flow aside {
  margin: 1.2em 0;
  padding: 14px 16px;
  border-radius: var(--r);
  background: rgba(255, 20, 147, 0.1);
  border-left: 3px solid var(--pink);
}

.flow figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.flow figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.flow blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--red);
  color: #ffdfe9;
  font-style: italic;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1180px;
  margin: 46px auto 0;
  padding: 34px 18px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.foot .cta {
  margin: 0 0 14px;
}

.foot .cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--red), var(--pink));
  box-shadow: 0 12px 34px rgba(255, 20, 147, 0.38);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foot .cta a:hover,
.foot .cta a:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 42px rgba(255, 0, 0, 0.45);
}

.foot small {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- 滚动揭示 ---------- */
.js .hero,
.js .flow > article,
.js .rail,
.js .foot,
.js .hero-fig {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .hero:not(.in),
.js .flow > article:not(.in),
.js .rail:not(.in),
.js .foot:not(.in),
.js .hero-fig:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  body {
    font-size: 1.1rem;
    padding-bottom: 132px;
  }

  .pg {
    padding: 0 28px;
  }

  .hero {
    padding-top: 96px;
  }

  .split {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 28px;
    padding-top: 4px;
  }

  .flow > article {
    padding: 32px 30px 36px;
    margin-bottom: 30px;
  }

  .foot {
    padding: 46px 28px 26px;
  }
}

@media (min-width: 1080px) {
  .split {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .hero-txt {
    padding-bottom: 6px;
  }
}

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

  body::before {
    animation: none;
  }

  .js .hero:not(.in),
  .js .flow > article:not(.in),
  .js .rail:not(.in),
  .js .foot:not(.in),
  .js .hero-fig:not(.in) {
    opacity: 1;
    transform: none;
  }

  .mark,
  .pills a,
  .rail-l a,
  .flow > article,
  .foot .cta a {
    transition: none;
  }
}

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