@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --ink: #26171f;
  --ink-deep: #1a0f16;
  --pink: #ff0080;
  --magenta: #ff00ff;
  --violet: #7b2cff;
  --panel: #33202d;
  --panel-2: #3d2536;
  --text: #f8ecf3;
  --muted: #d6bacb;
  --radius: 28px;
  --serif: 'Abril Fatface', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Merriweather', -apple-system, 'PingFang SC', 'Microsoft YaHei', serif;
}

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

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

html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.75 var(--sans);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 40% at 20% 20%, rgba(255, 0, 128, 0.55), transparent 70%),
    radial-gradient(44% 46% at 80% 14%, rgba(255, 0, 255, 0.42), transparent 72%),
    radial-gradient(52% 52% at 60% 80%, rgba(123, 44, 255, 0.38), transparent 70%);
  filter: blur(60px) saturate(135%);
  opacity: 0.82;
  animation: mesh 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  mix-blend-mode: screen;
}

@keyframes mesh {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.05); }
}

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

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

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

/* 顶栏 */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(26, 15, 22, 0.92), rgba(26, 15, 22, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-decoration: none;
  background: linear-gradient(140deg, var(--pink), var(--magenta));
  box-shadow: 0 6px 20px rgba(255, 0, 128, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand:hover { transform: rotate(-8deg) scale(1.06); }

.brand-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-deep);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.92);
}

.burger {
  position: relative;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 54px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: background 0.3s ease;
}

.burger:hover { background: rgba(255, 255, 255, 0.18); }

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

html.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html.menu-open .burger span:nth-child(2) { opacity: 0; }
html.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 全屏菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(90px, 14vh, 130px) 8vw 44px;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(255, 0, 255, 0.35), transparent 70%),
    radial-gradient(60% 55% at 15% 85%, rgba(255, 0, 128, 0.32), transparent 70%),
    var(--ink-deep);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

html.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: clamp(24px, 5.2vw, 42px);
  line-height: 1.25;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.25s ease;
}

.menu a:hover { color: var(--magenta); }

html.menu-open .menu a { opacity: 1; transform: none; }
html.menu-open .menu a:nth-child(1) { transition-delay: 0.06s; }
html.menu-open .menu a:nth-child(2) { transition-delay: 0.11s; }
html.menu-open .menu a:nth-child(3) { transition-delay: 0.16s; }
html.menu-open .menu a:nth-child(4) { transition-delay: 0.21s; }
html.menu-open .menu a:nth-child(5) { transition-delay: 0.26s; }
html.menu-open .menu a:nth-child(6) { transition-delay: 0.31s; }
html.menu-open .menu a:nth-child(7) { transition-delay: 0.36s; }

.menu-close {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: 400 16px/1 var(--sans);
  cursor: pointer;
  transition: background 0.25s ease;
}

.menu-close:hover { background: var(--pink); }

/* 首屏 */
main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px clamp(20px, 6vw, 80px) clamp(90px, 15vh, 170px);
  overflow: hidden;
  clip-path: ellipse(155% 112% at 50% 0%);
}

.aurora {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.b1 {
  width: 54vmax;
  height: 54vmax;
  left: -14vmax;
  top: -10vmax;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.95), transparent 68%);
  animation: floatA 18s ease-in-out infinite alternate;
}

.b2 {
  width: 44vmax;
  height: 44vmax;
  right: -12vmax;
  top: 8vmax;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.8), transparent 66%);
  animation: floatB 23s ease-in-out infinite alternate;
}

.b3 {
  width: 40vmax;
  height: 40vmax;
  left: 30vmax;
  bottom: -16vmax;
  background: radial-gradient(circle, rgba(123, 44, 255, 0.85), transparent 68%);
  animation: floatA 27s ease-in-out infinite alternate-reverse;
}

@keyframes floatA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 4%, 0) scale(1.15); }
}

@keyframes floatB {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-7%, 6%, 0) scale(0.95); }
}

.veil {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: screen;
  opacity: 0.65;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36ch;
  text-align: right;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.28em;
  color: #ffc4e2;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7.6vw, 84px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  background: linear-gradient(200deg, #ffffff 20%, #ffb3d9 62%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 50px rgba(255, 0, 128, 0.22);
}

.hero .subtitle {
  margin: 0;
  color: #fbdfee;
  font-size: 17px;
  line-height: 1.7;
}

/* 正文舞台 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px) 70px;
}

.flow > div {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 22px;
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.flow > div:nth-child(even) { background: var(--panel-2); }

.flow > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(10, 4, 8, 0.45);
}

.flow div[id] { scroll-margin-top: 96px; }

.flow h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 33px);
  line-height: 1.25;
  background: linear-gradient(92deg, #ffffff, #ffb3d9 55%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow h3 {
  margin: 26px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.35;
  color: #ffb3d9;
}

.flow p {
  margin: 0 0 14px;
  color: #f3e2ec;
}

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

.flow ul,
.flow ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.flow li { margin-bottom: 8px; color: #f0dde8; }

.flow a {
  color: #ffb3d9;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 128, 0.6);
  text-underline-offset: 3px;
  transition: color 0.22s ease;
}

.flow a:hover { color: var(--magenta); }

.flow strong { color: #ffffff; }

.flow blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(255, 0, 128, 0.14);
  color: #ffd9ec;
}

.flow blockquote p { margin: 0; }

.flow img,
.flow figure img {
  border-radius: 20px;
  margin: 18px 0;
}

.flow figcaption {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.flow table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.flow th,
.flow td {
  padding: 10px 12px;
  text-align: left;
}

.flow thead th {
  background: rgba(255, 255, 255, 0.08);
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 96px;
  background: #2c1a26;
  border-radius: var(--radius);
  padding: 22px 20px 20px;
}

.rail-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: #ffd9ec;
}

.rail .subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #c79fb6;
}

.rail-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.rail-list li {
  opacity: 0;
  transform: translateX(9px);
  animation: slideIn 0.5s ease forwards;
}

.rail-list li:nth-child(1) { animation-delay: 0.05s; }
.rail-list li:nth-child(2) { animation-delay: 0.1s; }
.rail-list li:nth-child(3) { animation-delay: 0.15s; }
.rail-list li:nth-child(4) { animation-delay: 0.2s; }
.rail-list li:nth-child(5) { animation-delay: 0.25s; }
.rail-list li:nth-child(6) { animation-delay: 0.3s; }
.rail-list li:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideIn {
  to { opacity: 1; transform: none; }
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.rail-list a:hover,
.rail-list a.on { color: #fff; transform: translateX(4px); }

.dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.rail-list a:hover .dot,
.rail-list a.on .dot {
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 0, 128, 0.22);
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 0, 128, 0.18);
  color: #ffd9ec;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.to-top:hover { background: var(--pink); color: #fff; }

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 28px) 52px;
  font-size: 16px;
  color: var(--muted);
}

.foot p { margin: 0; grid-column: 1; color: #ffd9ec; }

.foot small {
  grid-column: 2 / span 2;
  text-align: right;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .rail { position: static; }
  .hero { clip-path: ellipse(190% 108% at 50% 0%); }
  .hero-copy { text-align: left; margin-left: auto; }
  .hero { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding-top: 118px; padding-bottom: 110px; }
  .foot { grid-template-columns: 1fr; }
  .foot small { grid-column: 1; text-align: left; }
  .rail { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rail-list li,
  .menu a { opacity: 1; transform: none; }
}

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