:root {
  --ink: #261717;
  --ink-2: #1a0f0f;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #f7ece8;
  --muted: #cbaea7;
  --rail: 220px;
  --line: rgba(255, 20, 147, 0.2);
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(85% 55% at 10% 0%, rgba(255, 0, 0, 0.22), transparent 62%),
    radial-gradient(75% 60% at 102% 18%, rgba(255, 20, 147, 0.2), transparent 66%),
    radial-gradient(90% 70% at 40% 110%, rgba(255, 20, 147, 0.12), transparent 70%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: "Libre Baskerville", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
}

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

a { color: #ffb3c8; text-underline-offset: 3px; text-decoration-color: rgba(255, 20, 147, 0.5); }

h1, h2, h3 {
  font-family: "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0;
}

h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); margin-bottom: 0.7em; }

h2 > span { position: relative; display: inline-block; padding-left: 1.1em; }

h2 > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.72em;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

/* ---------- 左侧固定竖栏 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 18px 22px;
  background: linear-gradient(180deg, rgba(26, 15, 15, 0.97), rgba(38, 23, 23, 0.86));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 20, 147, 0.5);
  text-decoration: none;
}

.mark img { width: 44px; height: 44px; object-fit: cover; }

.mark-glyph {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  background: linear-gradient(130deg, var(--red), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.rail nav p { display: flex; flex-direction: column; gap: 2px; margin: 0; }

.rail nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 2px;
  font-size: 1rem;
  color: #f0dedb;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.rail nav a:hover, .rail nav a:focus-visible { color: var(--pink); padding-left: 6px; }

.cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--red), var(--pink));
  box-shadow: 0 12px 30px -12px rgba(255, 0, 0, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(255, 20, 147, 0.95); }

/* ---------- 主区 ---------- */
main { margin-left: var(--rail); }

main > div {
  position: relative;
  padding: clamp(34px, 7vw, 84px) clamp(20px, 6vw, 72px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 26px;
}

main > div:nth-child(even) {
  background: radial-gradient(70% 90% at 100% 0%, rgba(255, 20, 147, 0.08), transparent 62%);
}

main > div > p,
main > div > ul,
main > div > ol,
main > div > h2,
main > div > h3,
main > div > blockquote { max-width: 66ch; }

main h3 { font-size: 1.3rem; margin: 1.7em 0 0.45em; }
main ul, main ol { padding-left: 1.15em; }
main li { margin: 0.35em 0; }
main p, main li { color: #eee0dc; }
main figure { margin: 1.4em 0; }
main blockquote {
  margin: 1.4em 0;
  padding: 0.4em 0 0.4em 1.1em;
  border-left: 2px solid var(--pink);
  color: var(--muted);
}

/* ---------- 首屏 ---------- */
.stage {
  display: grid;
  align-content: end;
  min-height: 100vh;
  overflow: hidden;
  border-top: 0;
  isolation: isolate;
}

.aurora {
  position: absolute;
  inset: -15%;
  z-index: 0;
  margin: 0;
  background-image:
    radial-gradient(40% 55% at 22% 26%, var(--red), transparent 62%),
    radial-gradient(46% 52% at 74% 16%, var(--pink), transparent 66%),
    radial-gradient(52% 60% at 62% 84%, #ff3b6b, transparent 70%),
    radial-gradient(58% 62% at 42% 58%, #7a1030, transparent 76%);
  background-size: 180% 180%, 170% 170%, 200% 200%, 160% 160%;
  filter: saturate(1.25);
  opacity: 0.82;
  animation: aurora-drift 11s ease-in-out infinite alternate;
}

.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26, 15, 15, 0.94) 0%, rgba(38, 23, 23, 0.42) 46%, rgba(26, 15, 15, 0.9) 100%);
}

.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  mix-blend-mode: screen;
}

.stage-copy {
  position: relative;
  z-index: 2;
  padding-right: 58px;
  padding-bottom: 5vh;
  text-align: right;
}

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 15px;
  font-size: 1rem;
  letter-spacing: 0.34em;
  color: #ffd9e6;
  background: rgba(26, 15, 15, 0.5);
  border: 1px solid rgba(255, 20, 147, 0.55);
  animation: badge-float 9s ease-in-out infinite;
}

.stage h1 {
  font-size: clamp(2.2rem, 6.2vw, 5rem);
  color: #fff;
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.65);
}

/* ---------- 右侧竖向索引 ---------- */
.dock {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dock h2 { font-size: 1rem; margin: 0; writing-mode: vertical-rl; letter-spacing: 0.2em; }
.dock h2 > span { padding: 0; writing-mode: vertical-rl; }
.dock h2 > span::before { display: none; }

.dock ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dock a {
  display: block;
  min-height: 40px;
  padding: 9px 5px;
  font-size: 1rem;
  color: #e5d0cb;
  text-decoration: none;
  writing-mode: vertical-rl;
  border-right: 1px solid rgba(255, 20, 147, 0.26);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dock a:hover, .dock a:focus-visible { color: #fff; border-color: var(--pink); }

/* ---------- 页脚 ---------- */
.foot {
  margin-left: var(--rail);
  padding: clamp(40px, 7vw, 84px) clamp(20px, 6vw, 72px) 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 20, 147, 0.08));
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.foot-about h2 { font-size: 1.3rem; }
.foot-about h2 > span { padding-left: 0; }

address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 34ch;
  color: var(--muted);
}

address strong { color: var(--paper); font-size: 1.15rem; letter-spacing: 0.06em; }
address span { font-size: 1rem; }

.foot-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }

.foot-links a {
  display: block;
  min-height: 40px;
  padding: 9px 0;
  color: #eddbd6;
  text-decoration: none;
}

.foot-links a:hover, .foot-links a:focus-visible { color: var(--pink); }

.mega {
  margin: clamp(26px, 5vw, 54px) 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 10vw, 8rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
  color: rgba(255, 20, 147, 0.3);
  -webkit-text-stroke: 1px rgba(255, 20, 147, 0.55);
  white-space: nowrap;
  overflow: hidden;
}

.copy { margin: 12px 0 0; font-size: 1rem; color: var(--muted); }

/* ---------- 动效 ---------- */
main > div ul > li { animation: rise 0.6s ease both; }
main > div ul > li:nth-child(2) { animation-delay: 0.06s; }
main > div ul > li:nth-child(3) { animation-delay: 0.12s; }
main > div ul > li:nth-child(4) { animation-delay: 0.18s; }
main > div ul > li:nth-child(5) { animation-delay: 0.24s; }
main > div ul > li:nth-child(6) { animation-delay: 0.3s; }
main > div ul > li:nth-child(7) { animation-delay: 0.36s; }

@keyframes aurora-drift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 50%; }
  50% { background-position: 32% 22%, 68% 30%, 30% 72%, 62% 32%; }
  100% { background-position: 62% 42%, 38% 62%, 72% 28%, 28% 70%; }
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

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

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .rail {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail nav { flex: 1 1 100%; order: 5; }
  .rail nav p { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .rail nav a { min-height: 40px; padding: 8px 10px; border: 1px solid rgba(255, 20, 147, 0.2); }
  .mark { width: 40px; height: 40px; }
  .mark img { width: 40px; height: 40px; }
  .cta { margin-left: auto; min-height: 40px; padding: 0 12px; }

  main, .foot { margin-left: 0; }
  main > div { padding: 40px 20px; scroll-margin-top: 150px; }

  .stage { min-height: 0; align-content: center; padding-top: 40px; padding-bottom: 44px; }
  .stage-copy { padding-right: 0; padding-bottom: 0; }
  .stage h1 { font-size: clamp(2rem, 9.5vw, 3rem); }

  .dock {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 26px;
  }

  .dock h2, .dock h2 > span { writing-mode: horizontal-tb; font-size: 1rem; }
  .dock h2 > span { padding-left: 1.1em; }
  .dock ul { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .dock a {
    writing-mode: horizontal-tb;
    min-height: 40px;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 20, 147, 0.3);
  }

  .foot-top { grid-template-columns: 1fr; }
  .mega { font-size: clamp(2.2rem, 13vw, 4.5rem); }
}

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

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