:root {
  --red: #ff0000;
  --pink: #ff006e;
  --ink: #1a1a2e;
  --bg: #0a0a13;
  --glass: rgba(26, 26, 46, 0.58);
  --line: rgba(255, 0, 110, 0.3);
  --txt: #e9e9f5;
  --dim: #a6a6c2;
  --dock: 74px;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(var(--dock) + 24px);
  background: var(--bg);
  color: var(--txt);
  font-family: "Jost", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 0, 110, 0.07) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 0, 110, 0.07) 0 1px, transparent 1px 84px),
    radial-gradient(90% 55% at 50% 0%, rgba(255, 0, 110, 0.16), transparent 68%);
}

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

/* ---------- 首屏 ---------- */
.stage { display: block; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 88px 20px 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(62% 58% at 50% 46%, rgba(255, 0, 110, 0.2), transparent 72%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-weight: 700;
  font-size: clamp(3rem, 19vw, 14rem);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 110, 0.3);
  transform: rotate(-2.5deg) scale(1.04);
  user-select: none;
  pointer-events: none;
}

.hero-h1 {
  position: relative;
  margin: 0;
  max-width: 16em;
  text-align: center;
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  line-height: 1.16;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 0, 0, 0.8),
    0 0 38px rgba(255, 0, 110, 0.6),
    0 0 90px rgba(255, 0, 110, 0.35);
}

.hero-h1::before,
.hero-h1::after {
  content: attr(data-txt);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-shadow: none;
  pointer-events: none;
}

.hero-h1::before {
  color: var(--red);
  clip-path: inset(0 0 56% 0);
  animation: glitchTop 6s infinite steps(2, end);
}

.hero-h1::after {
  color: var(--pink);
  clip-path: inset(58% 0 0 0);
  animation: glitchBot 6s infinite steps(2, end);
}

@keyframes glitchTop {
  0%, 88%, 100% { transform: translate(0, 0); }
  90% { transform: translate(-3px, 1px); }
  94% { transform: translate(2px, -1px); }
}

@keyframes glitchBot {
  0%, 86%, 100% { transform: translate(0, 0); }
  89% { transform: translate(3px, -1px); }
  93% { transform: translate(-2px, 1px); }
}

/* ---------- 主体栅格 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 22px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 48px;
  align-items: start;
}

.board { min-width: 0; }

.prose { display: grid; gap: 26px; overflow-wrap: anywhere; }

.prose > article {
  scroll-margin-top: 28px;
  padding: 26px clamp(18px, 3vw, 34px) 20px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(255, 0, 110, 0.8);
  border-radius: 4px;
  background: linear-gradient(158deg, rgba(26, 26, 46, 0.74), rgba(12, 12, 22, 0.6));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 46px -30px rgba(255, 0, 110, 0.95);
  transition: border-left-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.prose > article:hover {
  border-left-color: var(--red);
  box-shadow: 0 18px 50px -24px rgba(255, 0, 110, 1);
}

.prose h2,
.prose h3 {
  margin: 0 0 0.72em;
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.prose h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }

.prose h2 > span {
  display: inline-block;
  padding-bottom: 0.18em;
  border-bottom: 1px solid rgba(255, 0, 110, 0.55);
  text-shadow: 0 0 16px rgba(255, 0, 0, 0.52);
}

.prose h3 { font-size: 1.18rem; color: #ffd7e6; }

.prose h3 > span { text-shadow: 0 0 12px rgba(255, 0, 110, 0.45); }

.prose p { margin: 0 0 1em; color: #dcdceb; }
.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: #ff8fb8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 110, 0.5);
}

.prose a:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--pink);
  border-bottom-color: var(--red);
}

.prose ul,
.prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin: 0.3em 0; }
.prose ul li::marker { color: var(--pink); }
.prose ol li::marker { color: var(--red); font-family: "Bodoni Moda", serif; }

.prose blockquote {
  margin: 0 0 1em;
  padding: 12px 18px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 0, 110, 0.07);
  border-radius: 0 4px 4px 0;
  color: #f0d9e4;
}

.prose figure { margin: 0 0 1em; }
.prose figcaption { font-size: 0.9em; color: var(--dim); }

.prose img {
  display: block;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.prose time,
.prose .date {
  display: inline-block;
  color: #ffb3cd;
  font-size: 0.92em;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.prose hr {
  border: 0;
  border-top: 1px dashed rgba(255, 0, 110, 0.35);
  margin: 1.4em 0;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 84px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px -12px rgba(255, 0, 110, 0.9);
}

.rail-h {
  margin: 0 0 12px;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.34em;
  color: #ff9ec2;
}

.rail-h > span { display: inline-block; border-bottom: 1px solid rgba(255, 0, 110, 0.5); padding-bottom: 2px; }

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 4px;
  font-size: 16px;
  color: #cfcfe6;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.rail-list a:hover { color: #fff; text-shadow: 0 0 12px var(--pink); }

.rail-list .num {
  font-family: "Bodoni Moda", serif;
  font-size: 0.82em;
  letter-spacing: 0.12em;
  color: var(--red);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 0, 110, 0.08));
  overflow: hidden;
}

.foot-mega {
  padding: 38px 18px 6px;
  overflow: hidden;
  text-align: center;
}

.mega {
  margin: 0;
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 12.5vw, 9rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 110, 0.62);
}

.foot-legal {
  padding: 4px 18px 30px;
  text-align: center;
  color: var(--dim);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.foot-legal p { margin: 0; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 19, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 0, 110, 0.5);
  box-shadow: 0 -20px 44px -26px rgba(255, 0, 110, 1);
}

.dock-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 0, 110, 0.7);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-family: "Bodoni Moda", serif;
  font-size: 1.15rem;
  box-shadow: inset 0 0 14px rgba(255, 0, 110, 0.45), 0 0 16px rgba(255, 0, 110, 0.3);
}

.dock-mark:hover { border-color: var(--red); box-shadow: inset 0 0 18px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 110, 0.6); }

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

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.dock-nav dl {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px 18px;
}

.dock-nav dt,
.dock-nav dd { margin: 0; }

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  color: #d7d7ec;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}

.dock-nav a:hover,
.dock-nav a.on {
  color: #fff;
  text-shadow: 0 0 12px var(--red);
  border-bottom-color: var(--pink);
}

.dock-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #0a0a13;
  background: linear-gradient(120deg, var(--red), var(--pink));
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.55);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.dock-cta:hover { filter: brightness(1.14); box-shadow: 0 0 26px rgba(255, 0, 110, 0.85); }

/* ---------- 滚动显现 ---------- */
.js .prose > article,
.js .rail,
.js .foot-mega {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .prose > article.in,
.js .rail.in,
.js .foot-mega.in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  body { padding-bottom: calc(var(--dock) + 16px); font-size: 17px; }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 34px 16px 8px;
  }

  .rail { position: static; top: auto; }

  .hero { padding: 76px 16px 96px; }

  .hero-h1 { text-shadow: 0 0 8px rgba(255, 0, 0, 0.8), 0 0 26px rgba(255, 0, 110, 0.55); }

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

  .foot { margin-top: 56px; }

  .foot-legal { padding-bottom: 24px; }

  .dock { gap: 10px; padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px)); }

  .dock-mark { width: 42px; height: 42px; }

  .dock-nav dl { gap: 2px 14px; }

  .dock-cta { padding: 0 12px; }
}

@media (max-width: 380px) {
  .dock-cta { padding: 0 10px; font-size: 15px; }
  .mega { -webkit-text-stroke-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-h1::before,
  .hero-h1::after { animation: none; }
  .js .prose > article,
  .js .rail,
  .js .foot-mega { opacity: 1; transform: none; transition: none; }
  .prose > article,
  .dock-cta,
  .dock-nav a,
  .rail-list a { transition: none; }
}

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