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

:root {
  --ink: #26171f;
  --deep: #100910;
  --magenta: #ff0080;
  --pink: #ff00ff;
  --paper: #f8eff5;
  --muted: rgba(248, 239, 245, 0.68);
  --line: rgba(255, 0, 128, 0.3);
  --serif: 'Playfair Display', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background: #100910;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  padding-bottom: 104px;
}

body::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -2;
  background:
    radial-gradient(30% 34% at 20% 24%, #ff0080 0%, transparent 68%),
    radial-gradient(32% 30% at 76% 12%, #ff00ff 0%, transparent 66%),
    radial-gradient(46% 42% at 66% 68%, #a3006b 0%, transparent 72%),
    radial-gradient(38% 36% at 10% 84%, #3d1240 0%, transparent 74%);
  filter: blur(80px) saturate(140%);
  opacity: 0.62;
  animation: aurora 26s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 16%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 16%, #000 0%, transparent 78%);
}

@keyframes aurora {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    filter: blur(80px) saturate(140%) hue-rotate(0deg);
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.1);
    filter: blur(80px) saturate(150%) hue-rotate(38deg);
  }
}

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

a {
  color: #ff6ab6;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  font-size: 15px;
}

.skip:focus {
  left: 14px;
  top: 14px;
  background: var(--magenta);
  color: #fff;
  padding: 12px 18px;
  text-decoration: none;
}

/* ===== 底部固定条 ===== */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(12px, 3vw, 30px);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(18, 9, 15, 0.84);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 6px;
  white-space: nowrap;
}

.brand:hover {
  color: var(--pink);
}

.dock-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dock-list::-webkit-scrollbar {
  display: none;
}

.dock-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 11px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dock-list a:hover,
.dock-list a[aria-current] {
  color: #fff;
  border-bottom-color: var(--magenta);
}

.dock-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, var(--magenta), var(--pink));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.dock-cta:hover {
  filter: brightness(1.15) saturate(1.2);
  transform: translateY(-1px);
}

/* ===== 首屏 ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 14vh, 176px) clamp(20px, 6vw, 84px) clamp(76px, 13vh, 148px);
  overflow: hidden;
  isolation: isolate;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 8.2vw, 6.1rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  margin: 0 0 22px;
  max-width: 15ch;
  background: linear-gradient(118deg, #ffffff 8%, #ffd6ea 42%, #ff00ff 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translate3d(0, calc(var(--shift, 0px) * -0.6), 0);
}

.lede {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  color: var(--muted);
  transform: translate3d(0, calc(var(--shift, 0px) * -0.32), 0);
}

.shear {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 26vh, 250px);
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(255, 0, 128, 0.9) 0%, rgba(255, 0, 255, 0.45) 36%, transparent 64%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.16) 0%, transparent 42%),
    conic-gradient(from 200deg at 28% 118%, #ff0080, #ff00ff, #26171f, #ff0080);
  clip-path: polygon(0 58%, 100% 10%, 100% 100%, 0 100%);
  filter: saturate(130%);
  opacity: 0.9;
}

/* ===== 主面板 ===== */
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 296px);
  gap: clamp(18px, 2.6vw, 42px);
  padding: clamp(38px, 6.5vw, 88px) clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 9, 16, 0.55), rgba(16, 9, 16, 0.94));
}

.panel h2 {
  grid-column: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.panel h2 small {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 12px;
}

.prism {
  grid-column: 1;
  position: relative;
  margin: 0;
  height: clamp(110px, 17vw, 180px);
  overflow: hidden;
  border-bottom: 3px solid var(--magenta);
  background: #1b0e17;
}

.prism i {
  position: absolute;
  inset: -20%;
  display: block;
  background: linear-gradient(115deg, #ff0080, #ff00ff 38%, #26171f 72%, #ff0080);
  transform: skewX(-14deg) translateX(-8%) scaleX(1.35);
  animation: prism 13s linear infinite alternate;
}

.prism i:nth-child(2) {
  background: conic-gradient(from 90deg, #ff00ff, #26171f, #ff0080, #ff00ff);
  mix-blend-mode: screen;
  opacity: 0.68;
  animation-duration: 19s;
}

.prism i:nth-child(3) {
  background: linear-gradient(72deg, transparent 40%, rgba(255, 255, 255, 0.34) 50%, transparent 61%);
  animation-duration: 9s;
}

@keyframes prism {
  from {
    transform: skewX(-14deg) translateX(-8%) scaleX(1.35);
  }
  to {
    transform: skewX(-14deg) translateX(8%) scaleX(1.35);
  }
}

/* ===== 正文 ===== */
.prose {
  grid-column: 1;
  min-width: 0;
}

.prose > * {
  max-width: 68ch;
}

.prose article[id] {
  position: relative;
  padding-bottom: clamp(30px, 4.6vw, 58px);
  margin-bottom: clamp(28px, 4.6vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 22px;
}

.prose article[id]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 62px;
  height: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--pink));
}

.prose article[id]:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.prose article[id]:last-child::after {
  display: none;
}

.prose h2,
.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #fff;
}

.prose h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
}

.prose h3 {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
}

.prose h2 small,
.prose h3 small {
  display: block;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 10px;
}

.prose p {
  margin: 0 0 16px;
  color: rgba(248, 239, 245, 0.86);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: rgba(248, 239, 245, 0.86);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--magenta);
  color: rgba(248, 239, 245, 0.78);
  font-style: normal;
}

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

.prose a:hover {
  color: #fff;
  text-decoration-color: var(--pink);
}

.prose img {
  margin: 0 0 18px;
  border-bottom: 2px solid var(--line);
}

.prose figcaption {
  font-size: 14px;
  color: var(--muted);
}

.prose hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 26px 0;
}

/* ===== 右栏 ===== */
.rail {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  position: sticky;
  top: 26px;
  min-width: 0;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0 10px 15px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, background 0.2s ease;
}

.rail a:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 0, 128, 0.22), transparent);
}

/* ===== 页脚 ===== */
.base {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(34px, 6vw, 62px) clamp(20px, 6vw, 84px) 26px;
  border-top: 1px solid var(--line);
  background: rgba(10, 5, 9, 0.78);
}

.base dl {
  margin: 0;
  min-width: 0;
}

.base dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--magenta);
  margin-bottom: 10px;
}

.base dd {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.base dd a {
  display: inline-block;
  min-height: 40px;
  padding: 8px 0;
  margin-right: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.base dd a:hover {
  color: #fff;
  border-bottom-color: var(--magenta);
}

.copy {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(248, 239, 245, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== 进场 ===== */
.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.7, 0.3, 1);
}

/* ===== 断点 ===== */
@media (max-width: 900px) {
  .panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin-top: 6px;
  }
  .rail ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    gap: 0 14px;
  }
  .rail a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 118px;
  }
  .dock {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "list list";
    gap: 6px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .brand {
    grid-area: brand;
    font-size: 16px;
  }
  .dock-cta {
    grid-area: cta;
    padding: 10px 16px;
  }
  .dock-list {
    grid-area: list;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 4px;
  }
  .base {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before,
  .prism i {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero h1,
  .lede {
    transform: none;
  }
  .dock-cta:hover {
    transform: none;
  }
}

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