:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --paper: #fff8f6;
  --radius: 28px;
  --font-body: 'Didact Gothic', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-display: 'Poiret One', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: #170d0d;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #fff;
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  padding-bottom: 196px;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(255, 20, 147, 0.55), transparent 62%),
    radial-gradient(46% 38% at 78% 12%, rgba(255, 0, 0, 0.42), transparent 60%),
    radial-gradient(52% 46% at 62% 84%, rgba(255, 20, 147, 0.28), transparent 66%),
    conic-gradient(from 210deg at 50% 50%, #2b1616, #4b1012, #2a0d18, #3d1414, #2b1616);
  background-size: 200% 200%;
  filter: saturate(1.15);
  animation: aurora 11s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.2));
  mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.2));
}

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

img { max-width: 100%; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(24, 13, 13, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 0 12px;
}

.dock-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 0 14px rgba(255, 20, 147, 0.7);
}

.dock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.dock-menu { position: relative; }

.dock-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--red), var(--pink));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

.dock-menu summary::-webkit-details-marker { display: none; }
.dock-menu summary .mk { width: 10px; height: 10px; }
.dock-menu[open] summary { background: linear-gradient(120deg, var(--pink), #ff6fb0); }

.dock-menu menu {
  list-style: none;
  margin: 0;
  padding: 12px;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: min(84vw, 430px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #2b1616;
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.55);
}

.dock-menu menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: #ffdfe9;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
}

.dock-menu menu a:hover,
.dock-menu menu a:focus-visible { background: rgba(255, 20, 147, 0.26); color: #fff; }
.dock-menu menu .mk { width: 9px; height: 9px; color: var(--pink); flex: none; }

.dock-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 3px 5px 3px 14px;
}

.dock-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.dock-search input::placeholder { color: rgba(255, 255, 255, 0.62); }

.dock-search button {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.dock-search button svg { width: 18px; height: 18px; }
.dock-search button:hover { background: var(--pink); color: #fff; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 46vh;
  padding: 30px 0 clamp(42px, 8vw, 74px);
  border-radius: 0 0 44% 44% / 0 0 96px 96px;
  background:
    radial-gradient(60% 80% at 88% 10%, rgba(255, 0, 0, 0.42), transparent 68%),
    radial-gradient(70% 90% at 12% 90%, rgba(255, 20, 147, 0.4), transparent 70%);
}

.hero-art {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.15);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 13, 13, 0.1), rgba(23, 13, 13, 0.78) 76%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 80% 40%, #000 20%, transparent 78%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 40px);
  text-align: right;
}

.hero-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(31px, 7.6vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lede {
  max-width: 44ch;
  margin: 14px 0 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #ffd7e4;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

/* ---------- 版面 ---------- */
.board {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 28px;
  align-items: start;
}

.prose { min-width: 0; }

.prose article {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3.6vw, 38px);
  margin: 0 0 22px;
  box-shadow: 0 12px 32px rgba(20, 8, 8, 0.24);
  transition: box-shadow 0.35s ease;
  scroll-margin-top: 24px;
}

.prose article:last-child { margin-bottom: 0; }
.prose article:hover { box-shadow: 0 24px 50px rgba(255, 20, 147, 0.24); }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 3.4vw, 28px);
  line-height: 1.38;
  letter-spacing: 0.04em;
  margin: 0 0 0.6em;
  color: #a30a3f;
}

.prose h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 1.4em 0 0.4em;
  color: #571313;
}

.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin: 0.35em 0; }
.prose strong { color: #a10022; }

.prose a {
  color: var(--red);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.prose blockquote {
  margin: 1em 0;
  padding: 12px 18px;
  border-left: 4px solid var(--pink);
  background: #ffeef4;
  border-radius: 0 16px 16px 0;
  color: #4a1414;
}

.prose figure { margin: 1em 0; }
.prose img { height: auto; border-radius: 20px; }

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 22px;
  order: 2;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: rgba(40, 22, 22, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rail .eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.38em;
  color: #ff9dc4;
}

.rail-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.1em;
  margin: 6px 0 14px;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 14px;
  color: #ffe3ec;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rail-list a:hover { background: rgba(255, 20, 147, 0.24); transform: translateX(4px); }
.rail-list i { font-style: normal; font-size: 13px; color: #ff8fbb; letter-spacing: 0.08em; }

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 10px;
  background: #1a0e0e;
  border-radius: 40px 40px 0 0;
  padding: clamp(26px, 5vw, 46px) 0 26px;
}

.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3.4vw, 32px);
  border-radius: var(--radius);
  background: linear-gradient(115deg, var(--red), var(--pink) 68%, #ff62ab);
}

.cta-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 36px);
  letter-spacing: 0.1em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 23px;
  background: #261717;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.cta-btn:hover { background: #3d2020; }

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

.foot-cols dl { margin: 0; min-width: 0; }
.foot-cols dt { font-size: 13px; letter-spacing: 0.3em; color: #ff9dc4; margin-bottom: 8px; }
.foot-cols dd { margin: 0 0 6px; font-size: 16px; line-height: 1.6; color: #f0d9d9; }

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ffd0e2;
  text-decoration: none;
}

.foot-cols dd a:hover { color: #fff; text-decoration: underline; }

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
}

.foot-bottom p { margin: 0; font-size: 15px; color: #d9bdbd; }

/* ---------- 动效 ---------- */
.js .rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  body { padding-bottom: 182px; }
  .board { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 40px; }
  .rail { position: static; }
  .hero { min-height: 45vh; border-radius: 0 0 40% 40% / 0 0 68px 68px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols dl:first-child { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .hero-copy { text-align: right; padding-right: 18px; }
  .lede { font-size: 16px; }
  .dock-menu menu { width: 88vw; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-cols dl:first-child { grid-column: auto; }
}

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