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

:root {
  --pink: #ff0080;
  --violet: #ff00ff;
  --ink: #26171f;
  --deep: #120a10;
  --paper: #fdf3f8;
  --soft: #e7d3df;
  --muted: #bda6b4;
  --line: rgba(255, 255, 255, 0.11);
  --rail: 210px;
  --rad: 4px;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail);
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background: var(--deep);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -22vmax;
  z-index: -2;
  background:
    radial-gradient(42% 48% at 16% 18%, rgba(255, 0, 128, 0.42), transparent 62%),
    radial-gradient(46% 42% at 84% 12%, rgba(255, 0, 255, 0.32), transparent 66%),
    radial-gradient(54% 58% at 62% 92%, rgba(118, 12, 160, 0.42), transparent 70%),
    conic-gradient(from 210deg at 48% 52%, #2c1024, #4d0b3d, #170a1c, #2c1024);
  filter: blur(34px) saturate(125%);
  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(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(125% 92% at 32% 0%, #000 18%, transparent 78%);
  mask-image: radial-gradient(125% 92% at 32% 0%, #000 18%, transparent 78%);
}

@keyframes aurora {
  0% {
    transform: translate3d(-2%, -1%, 0) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(2%, 1%, 0) hue-rotate(-14deg);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) hue-rotate(10deg);
  }
}

a {
  color: inherit;
}

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

a[hidden] {
  display: none !important;
}

a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

small {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--violet);
}

/* -------- 左侧竖排栏 -------- */

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38, 23, 31, 0.92), rgba(13, 8, 13, 0.9));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--rad);
  border: 1px solid rgba(255, 0, 128, 0.5);
  background: linear-gradient(140deg, rgba(255, 0, 128, 0.28), rgba(255, 0, 255, 0.12));
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.mark:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mark-glyph {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.finder {
  display: flex;
}

.finder input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  border-bottom-color: rgba(255, 0, 128, 0.55);
}

.finder input::placeholder {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  padding-bottom: 12px;
}

.rail-nav a {
  display: block;
  min-height: 42px;
  padding: 9px 10px 7px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--soft);
  border-radius: var(--rad);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 128, 0.14);
  border-bottom-color: var(--pink);
}

/* -------- 主区 -------- */

main {
  max-width: 1280px;
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  padding: 150px 40px 96px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 96px), 0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(101deg, rgba(18, 10, 16, 0.95) 6%, rgba(18, 10, 16, 0.56) 54%, rgba(255, 0, 128, 0.3) 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(118%) contrast(104%);
}

.hero::after {
  content: '01';
  position: absolute;
  right: 2vw;
  bottom: -0.08em;
  z-index: 0;
  font-size: clamp(140px, 26vw, 330px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 128, 0.45);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 44ch;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6.2vw, 82px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, #ffffff, #ffd9ef 42%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.7;
  color: #efdde8;
  border-left: 3px solid var(--pink);
  padding-left: 14px;
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 48px;
  align-items: start;
  padding: 58px 40px 64px;
}

.body {
  min-width: 0;
}

section div {
  position: relative;
  padding: 46px 0 40px;
  border-bottom: 1px solid var(--line);
}

section div:first-child {
  padding-top: 6px;
}

section div[id] {
  scroll-margin-top: 30px;
}

section div::after {
  content: '';
  display: block;
  width: 76px;
  height: 3px;
  margin-top: 30px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
}

section h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #fff;
}

section h3 {
  margin: 30px 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

section p {
  margin: 0 0 18px;
  color: #ecdae4;
}

section ul,
section ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

section li {
  margin: 0 0 9px;
  color: #ecdae4;
}

section li::marker {
  color: var(--pink);
}

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

section a {
  color: #ffb6dd;
  text-underline-offset: 3px;
}

section a:hover {
  color: #fff;
}

section blockquote {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--violet);
  border-radius: var(--rad);
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
}

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

section figure {
  margin: 0 0 24px;
}

section figure img {
  border-radius: var(--rad);
  border-bottom: 3px solid var(--pink);
}

section table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 16px;
}

section th,
section td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

section th {
  color: #fff;
  font-weight: 600;
}

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

.side {
  position: sticky;
  top: 26px;
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--pink);
  border-radius: var(--rad);
  background: linear-gradient(180deg, rgba(38, 23, 31, 0.7), rgba(18, 10, 16, 0.72));
}

.side h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

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

.side a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--soft);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.side a:hover,
.side a:focus-visible {
  color: #fff;
  padding-left: 6px;
}

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

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

.foot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 40px 40px;
  border-top: 1px solid var(--line);
}

.foot::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--violet), transparent 80%);
}

.foot-nav {
  grid-column: span 2;
}

.foot-brand {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.foot h2 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.foot nav dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
}

.foot nav dt {
  margin: 0;
}

.foot nav dd {
  margin: 0;
}

.foot nav a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot nav a:hover,
.foot nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--pink);
}

.colophon {
  margin: auto 0 0;
  padding-top: 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

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

@media (max-width: 980px) {
  body {
    padding-left: 0;
    padding-top: 64px;
  }

  .rail {
    inset: 0 0 auto 0;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-nav {
    flex: 1;
    flex-direction: row;
    gap: 4px;
    margin: 0;
    padding: 0 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar {
    display: none;
  }

  .rail-nav a {
    white-space: nowrap;
    padding: 12px 10px;
  }

  .mark {
    flex: none;
    width: 40px;
    height: 40px;
  }

  .finder {
    flex: none;
    width: 106px;
  }

  .hero {
    min-height: 62vh;
    padding: 92px 18px 62px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  }

  .hero::after {
    font-size: clamp(110px, 34vw, 200px);
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 36px 18px 44px;
  }

  .side {
    position: static;
  }

  section div[id] {
    scroll-margin-top: 86px;
  }

  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 40px 18px 28px;
  }

  .foot-nav,
  .foot-brand {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 84px;
  }

  .hero::after {
    right: 0;
    opacity: 0.75;
  }

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

  .foot-nav,
  .foot-brand {
    grid-column: span 1;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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