@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

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

:root {
  --rose: #ff0080;
  --mag: #ff00ff;
  --ink: #26171f;
  --bg: #0e060c;
  --fg: #f9eef5;
  --dim: #c9b0c0;
  --card: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .13);
  --r: 18px;
  --pad: 18px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: .012em;
  padding-bottom: 100px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(36% 42% at 20% 20%, rgba(255, 0, 128, .55), transparent 68%),
    radial-gradient(32% 38% at 82% 16%, rgba(255, 0, 255, .44), transparent 70%),
    radial-gradient(48% 48% at 52% 86%, rgba(122, 0, 196, .55), transparent 72%),
    conic-gradient(from 200deg at 58% 58%, rgba(255, 0, 128, .3), rgba(255, 0, 255, .2), rgba(88, 0, 160, .3), rgba(255, 0, 128, .3));
  filter: blur(48px) saturate(135%);
  animation: aurora 30s linear infinite alternate;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 28%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 18%, #000 28%, transparent 76%);
}

@keyframes aurora {
  0%   { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.12); }
  100% { transform: translate3d(-3%, 3%, 0) rotate(-6deg) scale(1.05); }
}

a { color: #ff91c9; }

h1, h2, h3 { letter-spacing: -.012em; }

/* 底部固定条 */
.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(30, 16, 25, .88);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.dock-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(140deg, var(--rose), var(--mag));
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .02em;
}

.mark-t { line-height: 1; }

.dock-mark img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}

.dock-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .07);
  color: var(--fg);
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}

.dock-menu:hover { background: rgba(255, 0, 128, .22); }

/* 全屏遮罩菜单 */
.veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: 84px 20px 112px;
  overflow-y: auto;
  background:
    radial-gradient(70% 48% at 50% 0%, rgba(255, 0, 128, .3), transparent 70%),
    radial-gradient(60% 40% at 80% 100%, rgba(255, 0, 255, .22), transparent 72%),
    rgba(12, 6, 11, .94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.veil.on { display: block; }

.veil ol {
  list-style: none;
  counter-reset: n;
  margin: 0 auto;
  padding: 0;
  max-width: 540px;
}

.veil li {
  counter-increment: n;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.veil a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 4px;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
}

.veil a::before {
  content: counter(n, decimal-leading-zero);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #ff6fb5;
}

.veil a:hover { color: #ffa7d4; }

/* 首屏 */
.hero {
  position: relative;
  z-index: 1;
  min-height: 68vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 66px 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5.8vw, 3.3rem);
  line-height: 1.24;
  font-weight: 800;
  background: linear-gradient(102deg, #ffffff 6%, #ffb9dd 40%, var(--mag) 68%, var(--rose) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin: 0;
  max-width: 40em;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(100deg, var(--rose), var(--mag));
  box-shadow: 0 14px 34px rgba(255, 0, 128, .34);
}

.hero-art {
  width: min(720px, 100%);
  margin-top: 6px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

.hero-art img {
  display: block;
  width: 100%;
  height: min(32vh, 300px);
  object-fit: cover;
}

/* 主区 */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px var(--pad) 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 26px;
  align-items: start;
}

.doc { min-width: 0; }

.prose div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  margin: 0 0 16px;
  box-shadow: 0 22px 48px rgba(8, 2, 10, .45);
  scroll-margin-top: 24px;
  scroll-margin-bottom: 100px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.prose h2 {
  margin: 0 0 2px;
  font-size: clamp(1.32rem, 3.2vw, 1.9rem);
  line-height: 1.34;
  font-weight: 800;
}

.prose h3 {
  margin: 1.5em 0 .5em;
  font-size: 1.12rem;
  font-weight: 700;
}

hr {
  border: 0;
  height: 2px;
  border-radius: 2px;
  margin: 12px 0 18px;
  background: linear-gradient(90deg, var(--rose), var(--mag) 46%, rgba(255, 255, 255, .06));
  opacity: .85;
}

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

.prose a {
  color: #ffa1d2;
  text-decoration-color: rgba(255, 0, 128, .55);
  text-underline-offset: 3px;
}

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

.prose li { margin: .38em 0; }
.prose strong { color: #fff; }

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--mag);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 0, 255, .09);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95em;
}

.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
}

/* 侧栏 */
.side {
  position: sticky;
  top: 20px;
  order: 2;
  padding: 20px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 22px 48px rgba(8, 2, 10, .45);
}

.side h2 {
  margin: 0 0 4px;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}

.side hr { margin: 10px 0 12px; }
.side dl { margin: 0; }

.side dt a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--dim);
  text-decoration: none;
  font-size: .93rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.side dt:last-child a { border-bottom: 0; }

.side dt a:hover {
  color: #fff;
  background: rgba(255, 0, 128, .16);
}

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 34px var(--pad) 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  gap: 22px;
  align-items: start;
}

.f-brand a {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, #ffffff, var(--rose) 55%, var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.f-nav dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.f-nav dt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  text-decoration: none;
  font-size: .92rem;
}

.f-nav dt a:hover { color: #fff; }

.f-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: .84rem;
  color: var(--dim);
}

.f-end p { margin: 0; }

.f-end a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  text-decoration: none;
}

.f-end a:hover { color: #fff; }

/* 露出动效 */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .62s cubic-bezier(.2, .7, .3, 1);
}

.js .rv.on {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

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

@media (max-width: 620px) {
  :root { --pad: 12px; }

  body { font-size: 16px; padding-bottom: 92px; }

  .hero { min-height: 62vh; padding: 54px 16px 24px; gap: 16px; }

  .hero-art img { height: 24vh; }

  .prose div { padding: 20px 16px; border-radius: 16px; }

  .dock {
    left: 12px;
    right: 12px;
    transform: none;
    justify-content: space-between;
  }

  .dock-menu { flex: 1; justify-content: flex-end; padding-right: 20px; }

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

  .f-end { align-items: flex-start; }

  .veil a { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

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