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

:root {
  --ink: #26171f;
  --deep: #160d13;
  --mag: #ff0080;
  --pink: #ff00ff;
  --paper: #fbeef5;
  --line: rgba(255, 255, 255, 0.16);
  --serif: 'Libre Bodoni', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

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

body::before {
  content: '';
  position: fixed;
  inset: -22% -12%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(255, 0, 128, 0.52), transparent 62%),
    radial-gradient(34% 38% at 78% 12%, rgba(255, 0, 255, 0.42), transparent 66%),
    radial-gradient(46% 52% at 64% 78%, rgba(255, 0, 128, 0.3), transparent 68%),
    radial-gradient(42% 46% at 20% 88%, rgba(124, 0, 92, 0.55), transparent 70%),
    linear-gradient(158deg, #2c1421, #150c12 56%, #2d1021);
  filter: blur(20px) saturate(140%);
  animation: aurora 26s 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: 28px 28px;
  opacity: 0.3;
}

@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1.04); filter: blur(20px) hue-rotate(0deg) saturate(140%); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.12); filter: blur(24px) hue-rotate(26deg) saturate(155%); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.07); filter: blur(21px) hue-rotate(-16deg) saturate(145%); }
}

a { color: #ffb6d8; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* 刊头 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 11, 17, 0.88);
  border-bottom: 1px solid var(--line);
}

.brandline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(16px, 4vw, 44px) 6px;
}

body.menu-open .brandline { background: rgba(18, 10, 15, 0.96); }

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 4.4vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}

.burger {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  cursor: pointer;
}

.burger:hover { border-color: var(--mag); color: #fff; }

.nav {
  position: relative;
  z-index: 1;
  padding: 0 clamp(16px, 4vw, 44px) 10px;
}

.navlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navlist a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #f4d9e7;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.navlist a:hover,
.navlist a:focus-visible { color: #fff; border-bottom-color: var(--mag); }

body.menu-open { overflow: hidden; }

body.menu-open .nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 104px clamp(20px, 6vw, 64px) 48px;
  overflow: auto;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(255, 0, 128, 0.35), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(255, 0, 255, 0.28), transparent 70%),
    rgba(16, 9, 14, 0.98);
}

body.menu-open .navlist {
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  gap: 0;
}

body.menu-open .navlist a {
  width: 100%;
  min-height: 60px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5.6vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: calc(100vh - 112px);
  min-height: calc(100svh - 112px);
  padding: clamp(40px, 8vw, 84px) clamp(16px, 5vw, 56px) clamp(76px, 11vw, 130px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), 0 100%);
  background: linear-gradient(180deg, #1b0f17, #2a1220 70%, #1a0e15);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(90% 80% at 70% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(90% 80% at 70% 30%, #000 20%, transparent 78%);
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.4;
  mix-blend-mode: luminosity;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 200deg at 72% 22%,
    rgba(255, 0, 128, 0.6), rgba(255, 0, 255, 0.34),
    rgba(38, 23, 31, 0.08), rgba(255, 0, 128, 0.55));
  background-size: 180% 180%;
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: mesh 20s linear infinite alternate;
}

@keyframes mesh {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: min(780px, 100%);
  text-align: right;
}

.eyebrow {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.3em;
  color: #ffd3e8;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 7.2vw, 4.3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 50ch;
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  color: #f6dceb;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.cta:hover { background: var(--mag); border-color: var(--mag); }

/* 主体 */
.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 74px) clamp(16px, 4vw, 44px) clamp(56px, 8vw, 96px);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 234px) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 46px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 128px;
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(20, 11, 17, 0.78);
}

.rail-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: #fff;
}

.subtitle {
  margin: 4px 0 12px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: #ffb9d7;
}

.raillist {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.raillist li { counter-increment: rail; }

.raillist a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 2px 0;
  font-size: 0.95rem;
  color: #f0d7e4;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.13);
}

.raillist a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.76rem;
  color: var(--mag);
}

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

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: #ffb9d7;
  text-decoration: none;
}

/* 正文 */
.flow {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 28px);
  min-width: 0;
}

.flow > article {
  position: relative;
  padding: clamp(20px, 3.6vw, 38px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(19, 11, 16, 0.76);
  scroll-margin-top: 150px;
  overflow: hidden;
}

.flow > article::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--mag), var(--pink), transparent);
}

.flow > article:nth-child(even) { border-color: rgba(255, 0, 160, 0.4); }

.flow h2 {
  margin: 0 0 0.6em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  line-height: 1.25;
  color: #fff;
}

.flow h3 {
  margin: 1.4em 0 0.5em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: #ffd9ea;
}

.flow h2 + p {
  margin-top: 0;
  color: #ffcee4;
}

.flow p { margin: 0 0 1em; max-width: 64ch; }
.flow p:last-child { margin-bottom: 0; }

.flow ul,
.flow ol { margin: 0 0 1em; padding-left: 1.3em; max-width: 62ch; }

.flow li { margin: 0.35em 0; }

.flow a { color: #ffb6d8; text-underline-offset: 3px; }
.flow a:hover { color: #fff; }

.flow strong { color: #fff; }

.flow blockquote {
  margin: 1.2em 0;
  padding: 6px 0 6px 18px;
  border-left: 2px solid var(--mag);
  color: #f3dbe7;
}

.flow img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.flow hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6em 0;
}

.flow code,
.flow pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(22px, 4vw, 50px);
  padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 44px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 8, 12, 0.9);
}

.foot h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: #fff;
}

.bigbrand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 8.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #fff, #ffb6d9 55%, var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-desc {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 0.95rem;
  color: #e6cedb;
}

.footlist {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footlist a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.95rem;
  color: #f0d7e4;
  text-decoration: none;
}

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

.foot-base {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: #d9c0ce;
}

.foot-base p { margin: 0; }

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

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

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .rail { position: static; top: auto; }
  .rail .raillist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }
}

@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; }
  .hero { min-height: calc(100vh - 104px); min-height: calc(100svh - 104px); }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .rail .raillist { grid-template-columns: 1fr; }
  .hero-text { align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .hero-mesh { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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