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

:root {
  --ink: #ff0000;
  --pink: #ff1493;
  --coal: #261717;
  --bg: #120a0b;
  --bg-soft: #1b0f11;
  --fg: #f8ecee;
  --dim: #c6a9ad;
  --line: rgba(255, 236, 239, 0.13);
  --line-hard: rgba(255, 236, 239, 0.26);
  --radius: 18px;
  --maxw: 1140px;
  --sans: 'Inter', 'Helvetica Neue', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, 'PingFang SC', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 12%, rgba(255, 0, 0, 0.42), transparent 68%),
    radial-gradient(34% 30% at 82% 22%, rgba(255, 20, 147, 0.38), transparent 70%),
    radial-gradient(46% 38% at 52% 88%, rgba(38, 23, 23, 0.92), transparent 72%),
    radial-gradient(30% 26% at 30% 62%, rgba(255, 20, 147, 0.22), transparent 70%);
  background-size: 200% 200%;
  filter: saturate(1.2) blur(46px);
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { background-position: 0% 0%; }
  50% { background-position: 60% 40%; }
  100% { background-position: 100% 100%; }
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }

a {
  color: var(--fg);
  text-decoration: none;
}

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

ul, menu { margin: 0; padding: 0; list-style: none; }

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip:focus { top: 0; color: #fff; }

/* ---------- 顶部 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(18, 10, 11, 0.74);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.nav-a ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-a a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dim);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-a a:hover {
  color: var(--fg);
  background: rgba(255, 20, 147, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 10px;
  justify-self: center;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-word {
  background: linear-gradient(96deg, var(--ink), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu {
  position: relative;
  justify-self: end;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--line-hard);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu summary::-webkit-details-marker { display: none; }

.menu summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.menu[open] summary {
  border-color: var(--pink);
  background: rgba(255, 20, 147, 0.16);
}

.menu[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.menu menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 218px;
  padding: 8px;
  border: 1px solid var(--line-hard);
  border-radius: var(--radius);
  background: rgba(30, 16, 18, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

.menu menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--dim);
}

.menu menu a:hover {
  color: var(--fg);
  background: rgba(255, 0, 0, 0.16);
}

.find {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.find-cap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.find input {
  flex: 1 1 auto;
  max-width: 360px;
  min-height: 42px;
  padding: 8px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.find input::placeholder { color: rgba(198, 169, 173, 0.72); }

.find input:focus {
  border-color: var(--pink);
  background: rgba(255, 20, 147, 0.1);
  outline: none;
}

.find button {
  min-height: 42px;
  padding: 8px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(100deg, var(--ink), var(--pink));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.find button:hover { filter: brightness(1.12); }

/* ---------- 头图 ---------- */

.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 20px 0;
  min-height: 45vh;
  display: grid;
  align-content: start;
  gap: 22px;
  scroll-margin-top: 150px;
}

.hero-copy { max-width: 780px; }

.hero h1 {
  font-size: clamp(30px, 5.6vw, 52px);
  margin-bottom: 0.35em;
  background: linear-gradient(102deg, #fff 6%, var(--pink) 58%, var(--ink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 60ch;
  font-size: 17px;
  color: var(--dim);
  margin-bottom: 0;
}

.hero-art {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
}

.hero-shot {
  width: 100%;
  height: clamp(150px, 24vh, 260px);
  object-fit: cover;
}

.hero-void {
  height: clamp(150px, 24vh, 260px);
  background:
    conic-gradient(from 210deg at 40% 40%, rgba(255, 0, 0, 0.55), rgba(255, 20, 147, 0.45), rgba(38, 23, 23, 0.9), rgba(255, 0, 0, 0.55));
  background-size: 200% 200%;
  filter: saturate(1.2);
  animation: aurora 9s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  display: block;
  height: 6px;
  margin-top: 4px;
  background: linear-gradient(95deg, var(--ink), var(--pink));
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- 主体 ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 54px;
  align-items: start;
}

.body { min-width: 0; }

.prose {
  font-size: 17px;
  color: #eddadd;
}

.prose div {
  padding-top: 6px;
  scroll-margin-top: 158px;
}

.prose > div + div {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  font-size: clamp(22px, 3vw, 29px);
  padding-bottom: 12px;
  position: relative;
}

.prose h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ink), var(--pink));
}

.prose h3 {
  font-size: 19px;
  margin-top: 1.6em;
  color: #fff;
}

.prose p.subtitle,
.prose p.subhead,
.prose p.desc,
.prose p.lead {
  color: var(--dim);
  font-size: 16px;
  margin-top: -0.35em;
}

.prose a {
  color: var(--pink);
  border-bottom: 1px solid rgba(255, 20, 147, 0.45);
}

.prose a:hover { border-bottom-color: var(--ink); }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.45em; }

.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 20, 147, 0.08);
  color: var(--dim);
}

.prose time {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.prose figure { margin: 1.4em 0; }

.prose figcaption {
  font-size: 15px;
  color: var(--dim);
  margin-top: 8px;
}

.prose strong { color: #fff; }

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

.rail {
  position: sticky;
  top: 158px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(38, 23, 23, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rail h2 {
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-bottom: 0.2em;
}

.rail p.subtitle {
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 1em;
}

.rail-list li + li { border-top: 1px solid var(--line); }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 16px;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rail-list a:hover {
  color: var(--fg);
  border-bottom-color: var(--pink);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pink);
}

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

.foot {
  border-top: 1px solid var(--line);
  background: rgba(18, 10, 11, 0.6);
}

.foot-cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px 20px;
}

.cta-link { display: inline-block; }

.cta-word {
  display: block;
  font-family: var(--display);
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--ink), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-cols {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.foot-col { min-width: 0; }

.foot-brand {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.foot-col ul a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  font-size: 16px;
  color: var(--dim);
}

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

.foot-col-end { display: flex; justify-content: flex-end; align-items: flex-start; }

.foot-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--pink);
}

.foot-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.copy {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  color: var(--dim);
}

.foot-links {
  margin: 0;
  display: flex;
  gap: 18px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 15px;
  color: var(--dim);
}

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

/* ---------- 搜索隐藏项 ---------- */

li.off { display: none; }

/* ---------- 动效 ---------- */

.js .prose > div,
.js .rail-list li,
.js .foot-cols > .foot-col {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .rail-list li:nth-child(2),
.js .prose > div:nth-child(2) { transition-delay: 0.06s; }
.js .rail-list li:nth-child(3),
.js .prose > div:nth-child(3) { transition-delay: 0.12s; }
.js .rail-list li:nth-child(4),
.js .prose > div:nth-child(4) { transition-delay: 0.18s; }
.js .rail-list li:nth-child(5),
.js .prose > div:nth-child(5) { transition-delay: 0.24s; }
.js .rail-list li:nth-child(6),
.js .prose > div:nth-child(6) { transition-delay: 0.3s; }
.js .rail-list li:nth-child(7),
.js .prose > div:nth-child(7) { transition-delay: 0.36s; }

.js .in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .hero-void { animation: none; }
  .js .prose > div,
  .js .rail-list li,
  .js .foot-cols > .foot-col {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

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

  .prose div { scroll-margin-top: 180px; }

  .rail {
    position: static;
    order: 2;
  }

  .foot-col-end { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .mast-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      'brand brand brand'
      'nava nava menu';
    row-gap: 4px;
    padding: 10px 14px;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
    font-size: 19px;
  }

  .nav-a { grid-area: nava; }

  .nav-a ul { gap: 0; }

  .nav-a a {
    padding: 8px 9px;
    font-size: 15px;
  }

  .menu { grid-area: menu; }

  .menu summary { padding: 8px 13px; font-size: 15px; }

  .find { padding: 0 14px 12px; }

  .find input { max-width: none; }

  .hero {
    padding: 22px 14px 0;
    min-height: 0;
    gap: 16px;
  }

  .hero-art,
  .hero-shot,
  .hero-void { height: 160px; }

  .wrap { padding: 28px 14px 48px; }

  .foot-cta { padding: 40px 14px; }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0 14px 28px;
  }

  .foot-base { padding: 16px 14px 26px; }
}

@media (max-width: 400px) {
  .brand-word { font-size: 18px; }
  .nav-a a { font-size: 14px; padding: 8px 7px; }
  .find input { min-width: 0; }
}

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