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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #170d0d;
  --fg: #ffeeee;
  --muted: #cda9a9;
  --line: rgba(255, 255, 255, 0.11);
  --r: 4px;
}

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

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

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: 'Space Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background-color: var(--bg);
  overflow-x: hidden;
}

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: 68px 68px;
  -webkit-mask-image: radial-gradient(78% 66% at 50% 26%, #000 26%, transparent 100%);
  mask-image: radial-gradient(78% 66% at 50% 26%, #000 26%, transparent 100%);
  opacity: 0.7;
}

.aurora {
  position: fixed;
  inset: -22%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 40% at 16% 12%, rgba(255, 0, 0, 0.5), transparent 70%),
    radial-gradient(42% 44% at 84% 24%, rgba(255, 20, 147, 0.46), transparent 72%),
    radial-gradient(52% 40% at 56% 88%, rgba(255, 20, 147, 0.28), transparent 74%),
    radial-gradient(30% 30% at 30% 62%, rgba(255, 0, 0, 0.22), transparent 70%);
  filter: blur(18px) saturate(1.25);
  animation: aurora-drift 11s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 0%;
  }
  100% {
    transform: translate3d(2%, -3%, 0) scale(1.14);
    background-position: 100% 100%;
  }
}

body.is-locked {
  overflow: hidden;
}

a {
  color: #ff9ccb;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 54px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 26px 150px;
  align-items: start;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: center;
  min-height: 70vh;
  padding-bottom: 34px;
}

.hero::after {
  content: '24';
  position: absolute;
  left: 34%;
  top: 2%;
  z-index: 0;
  font-size: clamp(140px, 22vw, 280px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.17);
  pointer-events: none;
}

.hero-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 1 / 1.12;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 0, 0, 0.4), rgba(255, 20, 147, 0.22));
  box-shadow: 0 28px 74px -20px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 26px;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.038em;
  background: linear-gradient(96deg, #ffffff 12%, #ffd9e8 48%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--red), var(--pink));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(255, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -10px rgba(255, 20, 147, 0.72);
}

/* ---------- 正文 ---------- */

.doc {
  min-width: 0;
}

.doc > section {
  margin-bottom: 26px;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.95);
  scroll-margin-top: 24px;
  scroll-margin-bottom: 120px;
  transition: box-shadow 0.35s ease;
}

.doc > section:hover {
  box-shadow: 0 26px 64px -26px rgba(255, 20, 147, 0.55);
}

.doc h2 {
  margin: 0 0 0.45em;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.doc h2::before {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.subtitle {
  margin: 0 0 1.2em;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.doc h3 {
  margin: 1.7em 0 0.6em;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.doc p {
  margin: 0 0 1.1em;
  color: #f3dede;
}

.doc p:last-child {
  margin-bottom: 0;
}

.doc ul,
.doc ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: #f3dede;
}

.doc li {
  margin: 0.5em 0;
}

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

.doc a {
  text-underline-offset: 3px;
}

.doc a:hover {
  color: #fff;
}

.doc strong {
  color: #fff;
}

.doc blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 20, 147, 0.09);
  color: #ffe6ee;
}

.doc blockquote p:last-child {
  margin: 0;
}

.doc hr {
  border: 0;
  height: 1px;
  margin: 2em 0;
  background: var(--line);
}

.doc img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.4em 0;
  border-radius: var(--r);
}

.doc table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: 1rem;
}

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

.doc th {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.doc code {
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.96em;
}

.doc pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.45);
}

.doc pre code {
  padding: 0;
  background: none;
}

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

.rail {
  position: sticky;
  top: 26px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.rail-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: 0 22px 52px -28px rgba(0, 0, 0, 0.95);
}

.rail-card h2 {
  margin: 0 0 4px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rail-card .subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
}

.rail-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: var(--r);
  color: #f4e0e0;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.rail-list a span {
  color: var(--pink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rail-list a:hover {
  background: rgba(255, 20, 147, 0.17);
  color: #fff;
}

.to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s ease;
}

.to-top:hover {
  background: rgba(255, 0, 0, 0.24);
}

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

.foot {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 36px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 26px 150px;
  border-top: 1px solid var(--line);
}

.foot-logo {
  display: inline-block;
  padding: 6px 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(100deg, #fff, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.foot-desc {
  margin: 12px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
}

.foot-nav dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 12px;
  align-items: center;
  margin: 0;
}

.foot-nav dt {
  color: var(--pink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #eed8d8;
  font-size: 1rem;
  text-decoration: none;
}

.foot-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sub {
  display: grid;
  gap: 10px;
  max-width: 330px;
}

.sub-label {
  color: var(--pink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub input {
  flex: 1 1 160px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.sub button {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--red), var(--pink));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.sub-note {
  min-height: 1.7em;
  margin: 0;
  color: var(--pink);
  font-size: 1rem;
}

.foot-base {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 18px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(22, 12, 12, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 -20px 54px -30px rgba(255, 20, 147, 0.75);
}

.dock-brand {
  grid-column: 2;
  padding: 10px 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(100deg, #fff, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.dock-menu {
  display: flex;
  gap: 2px;
  justify-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-menu--r {
  justify-self: end;
}

.dock-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: var(--r);
  color: #e9cfcf;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.dock-menu a:hover {
  background: rgba(255, 20, 147, 0.22);
  color: #fff;
}

.dock-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.dock-btn,
.dock-burger {
  min-width: 46px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.dock-burger {
  border-color: transparent;
  background: linear-gradient(100deg, var(--red), var(--pink));
  font-weight: 700;
}

/* ---------- 全屏菜单 ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  overflow-y: auto;
  padding: 22px 22px 120px;
  background: rgba(18, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  transform: translateY(102%);
  transition: transform 0.44s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.44s;
}

.sheet.is-open {
  visibility: visible;
  transform: none;
}

.sheet-inner {
  max-width: 620px;
  margin: 0 auto;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.sheet-brand {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(100deg, #fff, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sheet-close {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.sheet-search {
  display: grid;
  gap: 8px;
  margin: 22px 0 26px;
}

.sheet-search label {
  color: var(--pink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sheet-search input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.sheet-nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  color: #fff;
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.sheet-nav a span {
  color: var(--pink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.sheet-nav a:hover {
  padding-left: 20px;
  background: rgba(255, 20, 147, 0.16);
}

.sheet-empty {
  display: none;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.sheet-empty.is-on {
  display: block;
}

.sheet-nav li.is-off {
  display: none;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */

@media (max-width: 1120px) {
  .dock-menu {
    display: none;
  }
}

@media (max-width: 1000px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 110px;
  }

  .rail {
    position: static;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 24px;
  }

  .hero-figure {
    aspect-ratio: 16 / 10;
  }

  .hero::after {
    left: auto;
    right: 0.02em;
    top: auto;
    bottom: 0.02em;
    font-size: clamp(96px, 26vw, 180px);
  }

  .hero-title {
    margin-bottom: 20px;
  }

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

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

  .shell {
    padding: 18px 16px 100px;
  }

  .doc > section {
    padding: 26px 18px;
  }

  .dock {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .dock-brand {
    font-size: 1rem;
  }

  .foot {
    padding: 40px 16px 130px;
  }

  .sheet {
    padding: 18px 16px 110px;
  }
}

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

  .aurora {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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