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

:root {
  --pink: #ff0080;
  --mag: #ff00ff;
  --ink: #26171f;
  --white: #fff2f9;
  --serif: 'Bodoni Moda', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(closest-side at 22% 26%, rgba(255, 0, 128, .62), rgba(255, 0, 128, 0) 72%),
    radial-gradient(closest-side at 76% 15%, rgba(255, 0, 255, .5), rgba(255, 0, 255, 0) 70%),
    radial-gradient(closest-side at 63% 84%, rgba(255, 45, 120, .4), rgba(255, 45, 120, 0) 70%),
    conic-gradient(from 200deg at 50% 50%, #26171f 0deg, #55103a 95deg, #8a0055 185deg, #3a1028 275deg, #26171f 360deg);
  filter: blur(36px) saturate(140%);
  animation: aurora 24s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .7;
  mix-blend-mode: screen;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, .08),
    rgba(255, 0, 255, .05) 38%,
    rgba(255, 255, 255, .09) 70%,
    rgba(255, 255, 255, 0) 100%);
}

@keyframes aurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.05); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.12); filter: blur(40px) saturate(150%) hue-rotate(16deg); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.03); filter: blur(44px) saturate(155%) hue-rotate(-12deg); }
}

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid #ffd6ec;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 12px 18px;
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: top .2s ease;
}

.skip:focus { top: 12px; }

/* ---------- 顶部 ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(38, 23, 31, .6);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(135deg, #ff00ff, #ff0080 58%, #ffd6ec);
  box-shadow: 0 0 24px rgba(255, 0, 128, .45);
}

.mark.sm {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.topnav {
  flex: 1 1 auto;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  color: #ffd9ec;
  transition: color .25s ease, background .25s ease;
}

.topnav a i {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--mag), var(--pink));
  transform: rotate(45deg);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 128, .18);
}

.search {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.search input {
  width: 118px;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #ffe9f5;
  border: 0;
}

.search button {
  min-height: 44px;
  padding: 8px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: linear-gradient(120deg, var(--mag), var(--pink));
  border: 0;
  cursor: pointer;
}

.search button:hover { background: linear-gradient(120deg, #ff5cff, #ff3d9d); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(56px, 9vw, 118px) clamp(18px, 6vw, 88px) clamp(48px, 7vw, 92px);
}

.hero-copy { max-width: 34ch; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 8px 15px;
  font-size: 15px;
  letter-spacing: .26em;
  color: var(--ink);
  background: linear-gradient(100deg, #ffd6ec, var(--mag) 56%, var(--pink));
  box-shadow: 0 10px 32px rgba(255, 0, 128, .38);
  animation: float 7s ease-in-out infinite;
}

.badge span {
  width: 7px;
  height: 7px;
  background: var(--ink);
  transform: rotate(45deg);
}

@keyframes float {
  50% { transform: translateY(-9px); }
}

h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 12%, #ffb3d9 56%, var(--mag) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: rgba(255, 235, 246, .82);
}

.hero-art {
  position: relative;
  min-height: min(58vh, 520px);
}

.frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 0, 255, .55), rgba(255, 0, 128, .5));
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  mix-blend-mode: luminosity;
}

.frame-a { inset: 0 22% 26% 0; clip-path: polygon(0 0, 100% 6%, 92% 100%, 6% 92%); }
.frame-b { inset: 40% 0 0 34%; clip-path: polygon(8% 0, 100% 0, 100% 92%, 0 100%); }
.frame-b img { mix-blend-mode: screen; }

.orb {
  position: absolute;
  left: 4%;
  bottom: 4%;
  z-index: 2;
  width: 116px;
  height: 116px;
  background: conic-gradient(from 0deg, var(--pink), var(--mag), #ffd6ec, var(--pink));
  filter: blur(1px);
  opacity: .85;
  animation: spin 18s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 正文 ---------- */

.wrap {
  padding: 0 clamp(16px, 5vw, 68px) clamp(56px, 8vw, 104px);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.prose {
  min-width: 0;
  font-size: 17.5px;
  color: rgba(255, 240, 248, .9);
}

.prose article {
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  padding: clamp(22px, 3vw, 38px);
  background: rgba(255, 255, 255, .045);
  scroll-margin-top: 104px;
}

.prose article:nth-of-type(even) {
  background: linear-gradient(160deg, rgba(255, 0, 128, .16), rgba(255, 0, 255, .07));
}

.prose h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
  color: #ffc2e2;
}

.prose hr {
  height: 2px;
  margin: 0 0 20px;
  border: 0;
  background: linear-gradient(90deg, var(--pink), var(--mag) 45%, rgba(255, 0, 255, 0));
}

.prose p { margin: 0 0 16px; }

.prose a {
  color: #ffa6d6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 24px; }

.prose li { margin: 0 0 8px; }

.prose li::marker { color: var(--mag); }

.prose strong { color: #fff; }

.prose blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: rgba(255, 0, 255, .13);
  color: #ffe4f4;
}

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

.prose figure { margin: 0 0 18px; }

.prose img {
  display: block;
  height: auto;
  margin: 0 0 16px;
}

.prose table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  background: rgba(255, 255, 255, .05);
}

.prose th {
  background: rgba(255, 0, 128, .25);
  color: #fff;
}

/* ---------- 侧栏 ---------- */

.side {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 22px;
  background: rgba(26, 15, 21, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.side h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #fff;
}

.side hr {
  height: 2px;
  margin: 0 0 12px;
  border: 0;
  background: linear-gradient(90deg, var(--mag), var(--pink));
}

.toc {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: t;
}

.toc li {
  counter-increment: t;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .45s ease, transform .45s ease;
}

.side.in .toc li {
  opacity: 1;
  transform: none;
}

.side.in .toc li:nth-child(1) { transition-delay: .04s; }
.side.in .toc li:nth-child(2) { transition-delay: .09s; }
.side.in .toc li:nth-child(3) { transition-delay: .14s; }
.side.in .toc li:nth-child(4) { transition-delay: .19s; }
.side.in .toc li:nth-child(5) { transition-delay: .24s; }
.side.in .toc li:nth-child(6) { transition-delay: .29s; }
.side.in .toc li:nth-child(7) { transition-delay: .34s; }

.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #ffcbe6;
  text-decoration: none;
}

.toc a::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--mag);
}

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

/* ---------- 页脚 ---------- */

.foot {
  position: relative;
  padding: clamp(40px, 6vw, 76px) clamp(16px, 5vw, 68px) 26px;
  background: linear-gradient(180deg, rgba(38, 23, 31, .18), rgba(20, 11, 16, .94));
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.cta {
  max-width: 1180px;
  margin: 0 auto clamp(32px, 4vw, 54px);
  padding: clamp(26px, 4vw, 52px);
  color: var(--ink);
  background: linear-gradient(110deg, var(--mag), var(--pink) 62%, #3a1028);
}

.cta h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.cta hr {
  height: 2px;
  margin: 0 0 22px;
  border: 0;
  background: rgba(38, 23, 31, .45);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 26px;
  font-size: 16px;
  letter-spacing: .1em;
  color: #ffe9f5;
  text-decoration: none;
  background: var(--ink);
}

.btn:hover { background: #000; }

.cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: clamp(20px, 3vw, 46px);
}

address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
}

address .nm {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
}

address .host {
  font-size: 15px;
  letter-spacing: .12em;
  color: rgba(255, 235, 246, .58);
}

.col-t {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .3em;
  color: #ff8ec8;
}

.footnav dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: baseline;
  margin: 0;
}

.footnav dt {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2.6;
  letter-spacing: .1em;
  color: var(--mag);
}

.footnav dd { margin: 0; }

.footnav dd a,
.more li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: #ffd0e8;
  text-decoration: none;
}

.footnav dd a:hover,
.more li a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.more ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.copy {
  max-width: 1180px;
  margin: clamp(28px, 4vw, 46px) auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
  color: rgba(255, 235, 246, .6);
}

/* ---------- 动效 ---------- */

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-art { min-height: 300px; }

  .stage { grid-template-columns: minmax(0, 1fr); }

  .side {
    position: static;
    order: 2;
  }

  .cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 720px) {
  .bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px;
  }

  .search {
    order: 2;
    flex: 0 1 60%;
    margin-left: auto;
  }

  .search input { width: 100%; }

  .topnav {
    order: 3;
    flex: 1 0 100%;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, .09);
  }

  .prose article { scroll-margin-top: 150px; }

  .orb { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .badge,
  .orb { animation: none; }
  .rv,
  .toc li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

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