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

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

:root {
  --ink: #26171f;
  --mag: #ff0080;
  --pink: #ff00ff;
  --paper: #fbeef6;
  --dim: rgba(251, 238, 246, .64);
  --line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .06);
  --disp: 'Righteous', 'Poppins', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.78;
  background:
    radial-gradient(58% 46% at 10% 6%, rgba(255, 0, 128, .46), transparent 62%),
    radial-gradient(54% 44% at 90% 9%, rgba(255, 0, 255, .34), transparent 66%),
    radial-gradient(72% 58% at 46% 98%, rgba(150, 8, 116, .5), transparent 72%),
    linear-gradient(165deg, #331a29 0%, #1a0e16 44%, #26171f 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 20deg, #ff0080, #ff00ff, #8b1ede, #ff0080);
  filter: blur(110px) saturate(140%);
  opacity: .38;
  mix-blend-mode: screen;
  animation: aurora 26s linear infinite;
}

@keyframes aurora { to { transform: rotate(360deg) scale(1.18); } }

img { max-width: 100%; }
a { color: #ff8ec7; }

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

/* 顶栏：图标角落 + 平铺文字 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px clamp(12px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(38, 23, 31, .86), rgba(38, 23, 31, .56));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.mark {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-family: var(--disp);
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(140deg, var(--mag), var(--pink));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 10px 26px -12px var(--mag);
}

.deck { flex: 1; min-width: 0; }

.deck ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.deck ul::-webkit-scrollbar { display: none; }
.deck li { flex: none; }

.deck a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 4px;
  font-size: 15px;
  color: #f6dfec;
  text-decoration: none;
  white-space: nowrap;
}

.deck a:hover { background: var(--glass); color: #fff; }

/* 骨架 */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px clamp(14px, 4vw, 40px) 8px;
}

/* 左侧栏 */
.rail {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 0, 128, .14), rgba(255, 255, 255, .04));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.rail h2 {
  font-size: 15px;
  letter-spacing: .14em;
  margin: 0 0 8px;
}

.rail h2 + * { margin-bottom: 20px; }

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

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 15px;
  color: #f2dbe8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.rail-nav li:last-child a { border-bottom: 0; }
.rail-nav a:hover { background: rgba(255, 0, 128, .2); color: #fff; }

.rail-top { margin: 0; }

.rail-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  color: var(--dim);
  text-decoration: none;
}

.rail-top a:hover { color: #fff; }

/* 主区 */
main { position: relative; z-index: 1; min-width: 0; }

.stage {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  margin-bottom: 22px;
  padding: 96px clamp(16px, 5vw, 58px) 72px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 62px), 0 100%);
  border-radius: 4px;
}

.stage-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.stage-figure img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

.stage-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 14, 22, .9) 0%, rgba(26, 14, 22, .42) 58%, rgba(255, 0, 128, .3) 100%),
    linear-gradient(180deg, rgba(38, 23, 31, .2), rgba(38, 23, 31, .78));
}

.stage-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 78% 22%, rgba(255, 0, 255, .62), transparent 62%),
    radial-gradient(60% 70% at 20% 78%, rgba(255, 0, 128, .58), transparent 64%),
    linear-gradient(140deg, #3a1b2c, #170c14);
}

.stage-text {
  position: relative;
  z-index: 1;
  margin-left: auto;
  max-width: 33ch;
  text-align: right;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
}

h1 {
  margin: 0 0 14px;
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(31px, 7vw, 68px);
  line-height: 1.06;
  letter-spacing: -.01em;
  background: linear-gradient(104deg, #fff 6%, #ffc0e2 44%, var(--pink) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 26px rgba(255, 0, 128, .45));
}

.stage-desc {
  margin: 0;
  font-size: 16px;
  color: #f4dcea;
  text-shadow: 0 2px 14px rgba(20, 8, 14, .8);
}

/* 正文玻璃卡 */
main > article:not(.stage) {
  position: relative;
  margin: 0 0 20px;
  padding: clamp(18px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 66px -46px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .1);
  scroll-margin-top: 92px;
  overflow: hidden;
}

main > article:not(.stage)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mag), var(--pink), transparent);
}

main > article:not(.stage)::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 255, .28), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

h2, h3 {
  font-family: var(--disp);
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: .01em;
}

h2 {
  font-size: clamp(21px, 3.2vw, 31px);
  margin: 0 0 14px;
}

h3 {
  font-size: clamp(18px, 2.4vw, 23px);
  margin: 28px 0 10px;
}

h2 > span, h3 > span {
  background: linear-gradient(100deg, #fff 6%, #ffb3dc 48%, var(--pink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { margin: 0 0 15px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 8px; }

img { border-radius: 4px; }

blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 2px solid var(--mag);
  border-radius: 0 4px 4px 0;
  background: rgba(255, 0, 128, .1);
  color: #f7e3ef;
}

strong { color: #fff; }

figure { margin: 20px 0; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* 页脚：两栏 + 超大品牌 */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 26px;
  align-items: end;
  margin-top: 42px;
  padding: clamp(30px, 6vw, 66px) clamp(16px, 5vw, 58px) 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 0, 128, .13), rgba(26, 14, 22, .86));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.foot-brand {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(38px, 10.5vw, 104px);
  line-height: .92;
  letter-spacing: -.02em;
  background: linear-gradient(118deg, #ff9ccf, var(--mag) 46%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 10px;
  max-width: 420px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  font-size: 15px;
  color: #f0d9e8;
  text-decoration: none;
}

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

.foot small {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--dim);
}

/* 入场 */
.js main > article:not(.stage) > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}

.js main > article:not(.stage) > *:nth-child(2) { transition-delay: .07s; }
.js main > article:not(.stage) > *:nth-child(3) { transition-delay: .14s; }
.js main > article:not(.stage) > *:nth-child(4) { transition-delay: .21s; }
.js main > article:not(.stage) > *:nth-child(5) { transition-delay: .28s; }

.js main > article:not(.stage).in > * {
  opacity: 1;
  transform: none;
}

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

  .rail {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }

  .rail h2 { margin-bottom: 6px; }

  .rail-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .rail-nav a {
    border-bottom: 0;
    background: rgba(255, 255, 255, .06);
    padding: 0 12px;
    min-height: 42px;
  }

  .stage {
    min-height: 88vh;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }

  .stage-text { max-width: 24ch; }

  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }

  .deck a { padding: 0 10px; font-size: 14.5px; }

  .stage { padding: 84px 18px 56px; }

  .stage-text { max-width: 100%; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .stage-text { animation: none; }

  .js main > article:not(.stage) > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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