:root {
  --red: #ff0000;
  --mag: #ff006e;
  --ink: #1a1a2e;
  --bg: #09090f;
  --fg: #f4eef7;
  --dim: #bcb2cb;
  --line: rgba(255, 0, 110, 0.34);
  --glass: rgba(255, 255, 255, 0.05);
  --rad: 18px;
  --bar: 74px;
  --shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 26px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(var(--bar) + 28px);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 84% -8%, rgba(255, 0, 110, 0.3), transparent 62%),
    radial-gradient(700px 460px at 4% 6%, rgba(255, 0, 0, 0.18), transparent 58%),
    linear-gradient(180deg, #09090f 0%, #101021 46%, #09090f 100%);
  color: var(--fg);
  font-family: Lato, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
  opacity: 0.5;
}

h1,
h2,
h3,
.brand,
.cta-h,
.menu-brand {
  font-family: "EB Garamond", Georgia, "Songti SC", "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

li {
  margin: 0 0 6px;
}

a {
  color: #ff87b5;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

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

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

/* ---------- 底部固定条 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(11, 11, 22, 0.9);
  border-top: 1px solid rgba(255, 0, 110, 0.45);
  box-shadow: 0 -14px 42px rgba(255, 0, 110, 0.18);
  backdrop-filter: blur(14px);
}

.bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 18px;
  min-height: var(--bar);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 2px;
  color: var(--fg);
  font-size: 20px;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.6);
}

.brand-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red), 0 0 22px var(--mag);
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 110, 0.62);
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.28), rgba(255, 0, 0, 0.14));
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.burger:hover {
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.6);
}

.burger-line {
  width: 18px;
  height: 12px;
  background: linear-gradient(
    180deg,
    var(--red) 0 2px,
    transparent 2px 5px,
    var(--mag) 5px 7px,
    transparent 7px 10px,
    var(--red) 10px 12px
  );
}

/* ---------- 全屏遮罩菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 20px calc(var(--bar) + 26px);
  overflow-y: auto;
  background:
    radial-gradient(620px 380px at 78% 8%, rgba(255, 0, 110, 0.32), transparent 62%),
    radial-gradient(520px 340px at 8% 92%, rgba(255, 0, 0, 0.22), transparent 60%),
    #07070e;
  opacity: 0;
  visibility: hidden;
  transform: translateY(102%);
  transition: transform 0.42s cubic-bezier(0.22, 0.7, 0.2, 1), opacity 0.32s ease,
    visibility 0.42s;
}

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

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
}

.menu-brand {
  font-size: 22px;
  text-shadow: 0 0 16px rgba(255, 0, 110, 0.65);
}

.menu-close {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.search {
  display: flex;
  gap: 10px;
  max-width: 540px;
}

.search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 110, 0.48);
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}

.search input::placeholder {
  color: var(--dim);
}

.search button {
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 110, 0.6);
  background: rgba(255, 0, 110, 0.24);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.menu-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 110, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-size: 17px;
  transition: border-color 0.2s, background 0.2s;
}

.menu-links a:hover {
  border-color: var(--mag);
  background: rgba(255, 0, 110, 0.2);
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.45);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 70vh;
  padding: 66px 22px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 0, 110, 0.3);
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 0, 110, 0.32), transparent 62%),
    #0a0a16;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-fig--blank {
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.22), transparent 55%),
    linear-gradient(315deg, rgba(255, 0, 110, 0.32), transparent 60%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.06);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: auto;
  text-align: right;
}

.hero-h1 {
  font-size: clamp(30px, 6.4vw, 56px);
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 110, 0.75), 0 0 48px rgba(255, 0, 0, 0.42);
  animation: glitch 7.5s steps(1) infinite;
}

@keyframes glitch {
  0%,
  92%,
  100% {
    transform: none;
    text-shadow: 0 0 18px rgba(255, 0, 110, 0.75), 0 0 48px rgba(255, 0, 0, 0.42);
  }
  93% {
    transform: skewX(-6deg) translateX(-3px);
    text-shadow: 3px 0 var(--red), -3px 0 #00e5ff;
  }
  95% {
    transform: skewX(5deg) translateX(3px);
    text-shadow: -3px 0 var(--red), 3px 0 #00e5ff;
  }
  97% {
    transform: none;
    text-shadow: 0 0 18px rgba(255, 0, 110, 0.75);
  }
}

.hero-lede {
  max-width: 44ch;
  margin: 0 0 20px auto;
  color: #e6dcef;
  font-size: 17px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 110, 0.7);
  color: var(--fg);
  font-size: 16px;
  background: rgba(10, 10, 22, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.35) inset;
}

.hero-jump:hover {
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 0, 110, 0.7);
}

/* ---------- 主体舞台 ---------- */
.stage {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 22px 64px;
}

.rail {
  position: sticky;
  top: 22px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--glass);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.rail-h {
  font-size: 19px;
  margin: 0 0 4px;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.55);
}

.subtitle {
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  color: #ded4ea;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rail-list a:hover {
  color: #fff;
  background: rgba(255, 0, 110, 0.16);
  border-left-color: var(--mag);
}

/* ---------- 正文 ---------- */
.prose {
  min-width: 0;
  max-width: 74ch;
}

.prose > article {
  margin: 0 0 24px;
  padding: 26px 22px;
  border-left: 3px solid rgba(255, 0, 110, 0.6);
  border-radius: 4px var(--rad) var(--rad) 4px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px);
  scroll-margin-top: 26px;
}

.prose > article:last-child {
  margin-bottom: 0;
  padding-bottom: 32px;
}

.prose h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  text-shadow: 0 0 16px rgba(255, 0, 110, 0.5);
}

.prose h3 {
  font-size: 20px;
  color: #ffd9e8;
}

.prose p {
  color: #e8e1f0;
}

.prose a {
  color: #ffa3c6;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 0, 110, 0.6);
}

.prose ul,
.prose ol {
  color: #e8e1f0;
}

.prose strong {
  color: #fff;
}

.prose figure {
  margin: 0 0 16px;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--mag);
  background: rgba(255, 0, 110, 0.1);
  color: #f0e5f5;
}

.prose img {
  border-radius: 12px;
}

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

.prose th,
.prose td {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 10px;
  text-align: left;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px 22px 44px;
}

.cta {
  padding: 30px 22px;
  text-align: center;
  border: 1px solid rgba(255, 0, 110, 0.42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 0, 110, 0.3), transparent 66%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 46px rgba(255, 0, 110, 0.16);
}

.cta-h {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 6px;
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.7);
}

.cta .subtitle {
  margin-bottom: 18px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 110, 0.7);
  background: rgba(255, 0, 110, 0.2);
  color: var(--fg);
  font-size: 16px;
}

.cta-btn:hover {
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.7);
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
}

.foot dl {
  margin: 0;
  min-width: 0;
}

.foot dt {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #ffb8d0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 6px;
}

.foot dd {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
  overflow-wrap: break-word;
}

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ded4ea;
  font-size: 16px;
}

.foot dd a:hover {
  color: #fff;
}

.copy {
  margin: 0;
  padding-top: 16px;
  text-align: center;
  color: var(--dim);
  font-size: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- 滚动入场 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 920px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
    gap: 22px;
  }

  .rail {
    position: static;
  }

  .prose {
    max-width: none;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .hero {
    min-height: 68vh;
    padding: 54px 18px;
  }

  .hero-lede {
    max-width: none;
  }

  .cols {
    gap: 12px;
  }

  .foot dd,
  .foot dt,
  .copy {
    font-size: 16px;
  }

  .prose > article {
    padding: 22px 16px;
  }
}

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

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

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

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