:root {
  --ink: #26171f;
  --deep: #150b12;
  --rose: #ff0080;
  --mag: #ff00ff;
  --text: #ffe9f4;
  --muted: #e7b6cf;
  --line: rgba(255, 0, 128, 0.34);
  --r: 28px;
  --serif: "Cormorant Infant", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
}

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

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

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
  background: var(--deep);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -28vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45vmax 34vmax at 22% 18%, rgba(255, 0, 128, 0.55), transparent 70%),
    radial-gradient(38vmax 30vmax at 78% 12%, rgba(255, 0, 255, 0.42), transparent 68%),
    radial-gradient(52vmax 40vmax at 62% 84%, rgba(255, 0, 128, 0.3), transparent 70%),
    radial-gradient(40vmax 34vmax at 10% 76%, rgba(176, 0, 255, 0.3), transparent 70%);
  filter: blur(30px) saturate(128%);
  animation: flow 26s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
}

@keyframes flow {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(0deg); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.13) rotate(6deg); }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.05) rotate(-4deg); }
}

img {
  max-width: 100%;
}

a {
  color: #ff8cc4;
  text-decoration-color: rgba(255, 0, 128, 0.5);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--mag);
}

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

small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: #ff8dc5;
  font-weight: 500;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
}

.skip:focus {
  left: 0.6rem;
  top: 0.6rem;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

/* 顶部 */
.mast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 0.9rem;
  padding: 0.9rem clamp(0.9rem, 4vw, 2.6rem);
  position: relative;
  z-index: 30;
}

.mast nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.nav-l p {
  justify-content: flex-end;
}

.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
  color: #ffd6e9;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.mast nav a:hover {
  color: #fff;
  background: rgba(255, 0, 128, 0.2);
}

.brand {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: 0.22em;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(100deg, #fff, #ff9ad0 45%, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.3rem 0.2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 0, 128, 0.7);
  background: linear-gradient(120deg, rgba(255, 0, 128, 0.42), rgba(255, 0, 255, 0.28));
  white-space: nowrap;
  transition: filter 0.25s ease, transform 0.25s ease;
}

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

.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  min-width: 44px;
  padding: 0.3rem 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(38, 23, 31, 0.55);
  color: #ffd6e9;
  cursor: pointer;
  font-family: inherit;
}

.burger i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.burger em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

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

/* 粘性锚点条 */
.sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(21, 11, 18, 0.82);
  backdrop-filter: blur(14px) saturate(130%);
  border-top: 1px solid rgba(255, 0, 128, 0.2);
  border-bottom: 1px solid rgba(255, 0, 128, 0.2);
}

.sticky nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(0.6rem, 3vw, 2rem);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.sticky nav p {
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0.15rem 0;
}

.sticky nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #ffb9d9;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.sticky nav a:hover {
  color: #fff;
  border-bottom-color: var(--mag);
}

/* 头部主视觉 */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  max-width: 1160px;
  margin: 0 auto;
  min-height: 45vh;
  padding: clamp(1.4rem, 4vw, 2.8rem) clamp(0.9rem, 4vw, 3rem) clamp(1.4rem, 4vw, 2.4rem);
}

.hero.solo {
  grid-template-columns: 1fr;
  min-height: 0;
}

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-items: start;
}

.ph {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 0, 128, 0.22), rgba(255, 0, 255, 0.12));
}

.ph img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ph-a {
  transform: translateY(-0.5rem) rotate(-1.4deg);
}

.ph-b {
  transform: translateY(1.3rem) rotate(1.6deg);
}

.ph:only-child {
  grid-column: 1 / -1;
}

.ph:only-child img {
  aspect-ratio: 16 / 10;
}

.badge {
  position: absolute;
  left: -0.3rem;
  bottom: -0.5rem;
  transform: rotate(-6deg);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #2a0a1c;
  background: linear-gradient(110deg, #ffd0e6, #ff5fb2 55%, #ff00ff);
  border: 1px solid rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.hero-copy {
  text-align: right;
}

.hero.solo .hero-copy {
  text-align: right;
}

.hero-copy h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: 0.03em;
  font-weight: 600;
  background: linear-gradient(150deg, #ffffff 12%, #ffa3d2 52%, #ff00ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-cta {
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 0, 128, 0.75);
  background: linear-gradient(120deg, rgba(255, 0, 128, 0.5), rgba(255, 0, 255, 0.3));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.pill:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

/* 主体两栏 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(0.9rem, 4vw, 3rem) clamp(2rem, 5vw, 3.6rem);
}

.col {
  min-width: 0;
}

.prose {
  display: grid;
  gap: clamp(1.1rem, 3vw, 1.8rem);
}

.prose > section {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.05rem, 3vw, 2.1rem);
  background: linear-gradient(158deg, rgba(42, 24, 34, 0.82), rgba(30, 16, 25, 0.46));
  scroll-margin-top: 108px;
}

.prose h2 {
  margin: 0.15rem 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.32;
  color: #fff;
  letter-spacing: 0.02em;
}

.prose h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 0.7rem;
  background: linear-gradient(90deg, var(--rose), var(--mag), transparent);
}

.prose h3 {
  margin: 1.2rem 0 0.5rem;
  font-size: 1.12rem;
  color: #ffd0e6;
}

.prose p {
  margin: 0 0 0.9rem;
  color: #ffdcea;
  line-height: 1.85;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: #ffdcea;
}

.prose li {
  margin: 0.35rem 0;
}

.prose li::marker {
  color: var(--rose);
}

.prose strong {
  color: #fff;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  border-left: 2px solid var(--mag);
  background: rgba(255, 0, 255, 0.08);
  border-radius: 0 16px 16px 0;
  color: #ffd9ec;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 76px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.15rem 1.3rem;
  background: rgba(38, 23, 31, 0.68);
  backdrop-filter: blur(10px);
}

.rail h2 {
  margin: 0.25rem 0 0.8rem;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.4;
}

.rail-links {
  display: grid;
  margin: 0;
}

.rail-links a {
  display: block;
  padding: 0.55rem 0.15rem;
  font-size: 0.95rem;
  color: #ffd3e7;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 0, 128, 0.22);
}

.rail-links a:last-child {
  border-bottom: 0;
}

.rail-links a:hover {
  color: #fff;
  padding-left: 0.4rem;
}

/* 页脚 */
.foot {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem clamp(0.9rem, 4vw, 3rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 2rem;
  border-top: 1px solid var(--line);
}

.f-brand {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: #fff;
}

.f-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem 0.9rem;
  margin: 0;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.92rem;
  color: #ffcfe5;
  text-decoration: none;
}

.f-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.f-form {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}

.f-form input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.f-form input::placeholder {
  color: #d69ab8;
}

.f-form button {
  min-height: 44px;
  padding: 0.45rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 128, 0.7);
  background: linear-gradient(120deg, rgba(255, 0, 128, 0.5), rgba(255, 0, 255, 0.3));
}

.f-form button:hover {
  filter: brightness(1.2);
}

.f-copy {
  grid-column: 1 / -1;
  text-align: center;
  color: #e0aac6;
  letter-spacing: 0.14em;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 全屏遮罩菜单 */
.veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  padding: 2rem 1.2rem;
  background: rgba(17, 8, 14, 0.95);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.veil.is-open {
  opacity: 1;
  visibility: visible;
}

.veil p {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  margin: 0;
}

.veil p a {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #ffd6e9;
  text-decoration: none;
}

.veil p a:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 255, 0.8);
}

.veil-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 44px;
  padding: 0.4rem 1.1rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 0, 128, 0.2);
}

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

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

.prose > section:nth-child(3n + 2) {
  transition-delay: 0.06s;
}

.prose > section:nth-child(3n) {
  transition-delay: 0.12s;
}

/* 断点 */
@media (max-width: 980px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    order: 2;
  }
}

@media (max-width: 860px) {
  .mast {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .nav-l,
  .nav-r {
    display: none;
  }

  .brand {
    justify-self: start;
    letter-spacing: 0.16em;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-copy {
    order: -1;
    text-align: left;
  }

  .hero.solo .hero-copy {
    text-align: left;
  }

  .ph-b {
    transform: translateY(0.8rem) rotate(1.4deg);
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .f-links {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }

  .mast {
    padding: 0.7rem 0.9rem;
    gap: 0.4rem;
  }

  .brand {
    font-size: 1rem;
  }

  .cta {
    padding: 0.35rem 0.8rem;
    font-size: 0.88rem;
  }

  .hero {
    padding: 1.2rem 0.9rem 1.4rem;
  }

  .hero-art {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .ph-a {
    transform: rotate(-1.2deg);
  }

  .ph-b {
    transform: translateY(0.7rem) rotate(1.2deg);
  }

  .badge {
    left: 0;
    bottom: -0.9rem;
    font-size: 0.74rem;
  }

  .wrap {
    padding: 0 0.9rem 2rem;
  }

  .prose > section {
    padding: 1.05rem 0.95rem;
    border-radius: 22px;
  }

  .foot {
    padding: 1.6rem 0.9rem 2.4rem;
  }
}

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

  body::before {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }
}

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