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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #160c0c;
  --fg: #f8ecea;
  --dim: #cbb2b2;
  --faint: #a58c8c;
  --line: rgba(255, 255, 255, 0.13);
  --r: 18px;
  --pad: clamp(16px, 4vw, 56px);
  --serif: 'Cinzel', 'Songti SC', Georgia, serif;
  --sans: 'Josefin Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    radial-gradient(30% 34% at 18% 22%, rgba(255, 0, 0, 0.62), transparent 68%),
    radial-gradient(34% 30% at 82% 16%, rgba(255, 20, 147, 0.5), transparent 70%),
    radial-gradient(44% 40% at 62% 84%, rgba(255, 0, 0, 0.24), transparent 72%),
    radial-gradient(30% 30% at 28% 76%, rgba(255, 20, 147, 0.28), transparent 70%);
  background-size: 180% 180%;
  filter: blur(34px) saturate(1.25);
  animation: aurora 10s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 28%, #000 0%, transparent 96%);
  mask-image: radial-gradient(72% 62% at 50% 28%, #000 0%, transparent 96%);
}

@keyframes aurora {
  0% { background-position: 0% 8%; transform: translate3d(0, 0, 0) scale(1); }
  50% { background-position: 58% 42%; transform: translate3d(-2%, 1%, 0) scale(1.06); }
  100% { background-position: 100% 92%; transform: translate3d(2%, -1%, 0) scale(1.1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 顶栏：品牌独占一行，菜单平铺，右侧行动按钮 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 18px;
  padding: 12px var(--pad) 10px;
  background: linear-gradient(180deg, rgba(22, 12, 12, 0.94), rgba(22, 12, 12, 0.6));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brandline { grid-column: 1 / -1; }

.brand {
  display: inline-block;
  padding: 4px 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-decoration: none;
  color: transparent;
  background: linear-gradient(96deg, #ffffff, #ffb3cc 42%, var(--pink) 70%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
}

.topnav { grid-column: 1; grid-row: 2; min-width: 0; }

.topnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topnav a {
  position: relative;
  display: inline-block;
  min-height: 42px;
  padding: 11px 9px;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.36s ease;
}

.topnav a:hover,
.topnav a:focus-visible { color: #fff; }
.topnav a:hover::after,
.topnav a:focus-visible::after { transform: scaleX(1); }

.cta {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, var(--red), var(--pink));
  box-shadow: 0 8px 26px rgba(255, 20, 147, 0.32);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.cta:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* ---------- 首屏：左图右文 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  min-height: 70vh;
  padding: clamp(28px, 5vw, 70px) var(--pad) clamp(40px, 6vw, 86px);
}

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

.hero-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rise 1.1s ease both;
}

.hero-media--empty {
  min-height: clamp(220px, 46vh, 440px);
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: conic-gradient(from 200deg at 50% 50%, rgba(255, 0, 0, 0.52), rgba(255, 20, 147, 0.42), rgba(38, 23, 23, 0.72), rgba(255, 0, 0, 0.52));
  filter: saturate(1.2);
  animation: aurora 12s ease-in-out infinite alternate;
  background-size: 180% 180%;
}

.hero-ghost {
  position: absolute;
  right: var(--pad);
  bottom: 6px;
  z-index: 0;
  max-width: calc(100% - 24px);
  overflow: hidden;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(46px, 12vw, 168px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: right;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: #ffc7db;
  border-bottom: 1px solid rgba(255, 20, 147, 0.55);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: 0.045em;
  color: #fff;
}

.lede {
  max-width: 38ch;
  margin: 0 0 0 auto;
  font-size: 17px;
  line-height: 1.85;
  color: var(--dim);
}

.hero-copy > * { animation: rise 0.9s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.2s; }

/* ---------- 正文与右侧栏 ---------- */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 7vw, 90px);
}

main { min-width: 0; }

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

.prose > div {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  scroll-margin-top: 150px;
}

.prose > div:last-child { border-bottom: 0; }

.prose h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}

.prose h3 {
  margin: 1.5em 0 8px;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.prose hr {
  height: 2px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink) 46%, transparent);
}

.prose p { margin: 0 0 1.1em; line-height: 1.88; }
.prose strong { color: #fff; font-weight: 600; }

.prose a {
  color: #ffa2c9;
  text-decoration: underline;
  text-decoration-color: rgba(255, 20, 147, 0.55);
  text-underline-offset: 3px;
}

.prose ul,
.prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.55em; line-height: 1.8; }

.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--r); }

.prose figure { margin: 1.4em 0; }
.prose figcaption { margin-top: 8px; font-size: 15px; color: var(--faint); }

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

.prose time { font-size: 16px; letter-spacing: 0.08em; color: #ffb7d0; }

/* ---------- 右栏 ---------- */
.rail {
  position: sticky;
  top: 148px;
  display: grid;
  gap: 14px;
}

.railnav {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.railnav::after {
  content: "";
  display: block;
  height: 3px;
  margin: 8px 6px 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.railnav ul { margin: 0; padding: 0; list-style: none; }
.railnav li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.railnav a {
  display: block;
  min-height: 44px;
  padding: 11px 12px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease;
}

.railnav a:hover { color: #fff; background: rgba(255, 20, 147, 0.15); }

.totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 0.25s ease;
}

.totop:hover { background: rgba(255, 20, 147, 0.2); }

/* ---------- 订阅块 ---------- */
.sub {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(30px, 5vw, 52px);
}

.subform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.14), rgba(255, 20, 147, 0.1));
}

.sub-label { font-size: 16px; letter-spacing: 0.22em; color: #ffd6e4; }

.subform input {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}

.subform button {
  min-height: 44px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.14em;
  background: linear-gradient(100deg, var(--red), var(--pink));
}

/* ---------- 页脚：只用 p 与 small ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px var(--pad) 46px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.foot p { margin: 0; line-height: 1.7; }

.foot-brand {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  letter-spacing: 0.24em;
  color: #fff;
}

.foot-links {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.foot-links a {
  display: inline-block;
  min-height: 42px;
  padding: 9px 8px;
  color: var(--dim);
  text-decoration: none;
}

.foot-links a + a { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.foot-links a:hover { color: #fff; }

.foot-copy { grid-column: 1; grid-row: 2; color: var(--faint); }

.foot small {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ---------- 滚动揭示 ---------- */
.js-reveal .prose > div {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.js-reveal .prose > div.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; top: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { order: 1; text-align: left; }
  .hero-media { order: 2; }
  .hero-media--empty { min-height: 200px; }
  .lede { margin-left: 0; }
  .hero-ghost { right: 10px; font-size: clamp(38px, 15vw, 88px); }
  .prose > div { scroll-margin-top: 120px; }
}

@media (max-width: 720px) {
  .topbar { position: static; grid-template-columns: minmax(0, 1fr); }
  .topnav,
  .cta { grid-column: 1; grid-row: auto; }
  .cta { justify-self: start; margin-top: 4px; }
  .topnav a { padding: 11px 8px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links,
  .foot small { justify-content: flex-start; text-align: left; }
  .foot-links a + a { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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