:root {
  color-scheme: dark;
  --night: #03111f;
  --night-2: #061a2b;
  --night-3: #0b273c;
  --ink: #fff8e8;
  --muted: rgba(255, 248, 232, 0.74);
  --dim: rgba(255, 248, 232, 0.54);
  --blue: #67ddff;
  --blue-soft: #c7f4ff;
  --gold: #ffd66f;
  --gold-soft: #fff3af;
  --moon: #edf8ff;
  --rose: #ffc8dd;
  --line: rgba(255, 248, 232, 0.15);
  --line-blue: rgba(103, 221, 255, 0.24);
  --line-gold: rgba(255, 214, 111, 0.34);
  --panel: rgba(5, 18, 31, 0.78);
  --panel-strong: rgba(5, 18, 31, 0.9);
  --ease: cubic-bezier(0.22, 0.86, 0.24, 1);
  --max: 1480px;
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC",
    "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(3, 17, 31, 0.92), rgba(5, 22, 36, 0.98)),
    var(--night);
  overflow-x: hidden;
}

body.cursor-ready,
body.cursor-ready a,
body.cursor-ready button {
  cursor: none;
}

body.lock-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--night);
}

.site-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}

.backdrop-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 17, 31, 0.18) 0%, rgba(3, 17, 31, 0.78) 48%, rgba(3, 17, 31, 0.96) 100%),
    linear-gradient(90deg, rgba(3, 17, 31, 0.94) 0%, rgba(3, 17, 31, 0.42) 48%, rgba(3, 17, 31, 0.9) 100%);
}

.fx-canvas,
.poem-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.poem-canvas {
  position: absolute;
  z-index: 2;
  top: -620px;
  bottom: auto;
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: screen;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 52% 36%, rgba(255, 156, 56, 0.22), transparent 32%),
    radial-gradient(ellipse at 42% 58%, rgba(103, 221, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(12, 26, 34, 0.97), rgba(4, 17, 29, 0.99)),
    var(--night);
  transition:
    opacity 620ms var(--ease),
    visibility 620ms var(--ease);
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  width: min(560px, calc(100% - 36px));
  max-width: 560px;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.loader-image-wrap {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 657 / 589;
  display: grid;
  place-items: center;
}

.loader-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: loader-float 4.8s ease-in-out infinite;
  filter:
    drop-shadow(0 20px 46px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 22px rgba(255, 160, 54, 0.22))
    drop-shadow(0 0 24px rgba(103, 221, 255, 0.12));
}

.loader-copy {
  width: min(440px, 100%);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}

.loader-copy strong {
  min-width: 0;
  color: var(--gold-soft);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  overflow-wrap: anywhere;
}

.loader-copy span {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-soft);
  font-size: 16px;
}

.loader-track {
  width: min(440px, 100%);
  height: 14px;
  overflow: visible;
  padding: 3px;
  border: 1px solid rgba(255, 173, 72, 0.62);
  border-radius: 999px;
  background: rgba(4, 17, 27, 0.5);
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(255, 160, 54, 0.11);
}

.loader-fill {
  --progress: 0%;
  position: relative;
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a39 0%, #ffc85c 32%, #aeefff 100%);
  box-shadow:
    0 0 18px rgba(255, 160, 54, 0.44),
    inset 0 0 8px rgba(255, 255, 255, 0.32);
  transition: width 420ms var(--ease);
}

.loader-fill::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 28px;
  height: 26px;
  background: linear-gradient(135deg, #ff8d33 0%, #ffd76a 58%, #b94722 100%);
  clip-path: polygon(50% 0, 58% 28%, 88% 14%, 72% 42%, 100% 52%, 69% 58%, 82% 88%, 56% 70%, 50% 100%, 44% 70%, 18% 88%, 31% 58%, 0 52%, 28% 42%, 12% 14%, 42% 28%);
  transform: translateY(-50%) rotate(16deg);
  filter:
    drop-shadow(0 0 8px rgba(255, 160, 54, 0.72))
    drop-shadow(0 0 14px rgba(103, 221, 255, 0.18));
}

.glow-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-120px, -120px, 0);
  transition: opacity 140ms ease;
  filter:
    drop-shadow(0 0 7px rgba(255, 214, 111, 0.94))
    drop-shadow(0 0 15px rgba(255, 214, 111, 0.46))
    drop-shadow(0 0 18px rgba(103, 221, 255, 0.18));
}

body.cursor-ready .glow-cursor {
  opacity: 1;
}

.cursor-shadow {
  fill: rgba(2, 10, 18, 0.32);
  transform: translate(2px, 2px);
}

.cursor-arrow-shape {
  fill: #ffd66f;
  stroke: #fff8c8;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.cursor-star-shape {
  display: none;
}

.star-trail,
.wish-star,
.wish-spark,
.wish-trail {
  position: fixed;
  left: var(--x);
  top: var(--y);
  z-index: 2147483646;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.star-trail {
  width: var(--s);
  height: var(--s);
  opacity: 0.96;
  animation: trail-float 820ms var(--ease) forwards;
  filter:
    drop-shadow(0 0 10px rgba(255, 214, 111, 0.9))
    drop-shadow(0 0 18px rgba(103, 221, 255, 0.22));
}

.star-trail::before,
.wish-spark::before,
.star-glyph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff8ba 0%, #ffd66f 58%, #67ddff 100%);
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 56%, 80% 100%, 50% 73%, 20% 100%, 32% 56%, 2% 34%, 39% 34%);
}

.wish-star {
  width: var(--s, 28px);
  height: var(--s, 28px);
  filter:
    drop-shadow(0 0 12px rgba(255, 214, 111, 1))
    drop-shadow(0 0 32px rgba(255, 214, 111, 0.52))
    drop-shadow(0 0 22px rgba(103, 221, 255, 0.28));
}

.wish-star svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: scaleX(1.08) scaleY(0.94);
}

.wish-star path {
  stroke: rgba(255, 248, 232, 0.72);
  stroke-width: 2;
  stroke-linejoin: round;
}

.wish-spark {
  width: var(--s);
  height: var(--s);
  animation: spark-burst 900ms var(--ease) forwards;
  animation-delay: var(--delay);
  filter: drop-shadow(0 0 10px rgba(255, 214, 111, 0.82));
}

.wish-trail {
  width: var(--w);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 111, 0.78), rgba(103, 221, 255, 0.42));
  transform-origin: right center;
  animation: wish-trail-fade 520ms ease forwards;
  filter: drop-shadow(0 0 9px rgba(255, 214, 111, 0.58));
}

.cursor-spotlight {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  width: 230px;
  height: 230px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-240px, -240px, 0);
  background: radial-gradient(circle, rgba(255, 214, 111, 0.16) 0%, rgba(103, 221, 255, 0.07) 34%, transparent 70%);
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

body.cursor-ready .cursor-spotlight {
  opacity: 1;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  width: min(calc(100% - 32px), var(--max));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid rgba(103, 221, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 18, 31, 0.52);
  backdrop-filter: blur(22px) saturate(150%);
  transform: translateX(-50%);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 18, 31, 0.82);
  border-color: rgba(255, 214, 111, 0.26);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 111, 0.62);
  background: #061525;
  box-shadow:
    0 0 0 3px rgba(103, 221, 255, 0.1),
    0 0 22px rgba(255, 214, 111, 0.28);
}

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

.brand-text {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 900;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition:
    color 200ms ease,
    background 200ms ease,
    transform 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #061321;
  background: linear-gradient(135deg, var(--gold), var(--blue-soft));
  transform: translateY(-1px);
  outline: 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 28;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 260ms ease,
    transform 260ms var(--ease);
  filter:
    drop-shadow(0 0 16px rgba(255, 214, 111, 0.62))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32));
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top svg {
  width: 100%;
  height: 100%;
}

.top-star {
  fill: #ffd66f;
  stroke: rgba(255, 248, 232, 0.82);
  stroke-width: 2;
}

.top-arrow {
  fill: none;
  stroke: #061321;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms ease;
}

.nav-toggle span:first-child {
  transform: translateY(-5px);
}

.nav-toggle span:last-child {
  transform: translateY(5px);
}

.nav-open .nav-toggle span:first-child {
  transform: rotate(42deg);
}

.nav-open .nav-toggle span:last-child {
  transform: rotate(-42deg);
}

main,
.site-footer {
  position: relative;
  z-index: 5;
}

.chapter {
  position: relative;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-scene {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 110px 24px 96px;
  isolation: isolate;
}

.hero-scene::before,
.hero-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-scene::before {
  top: 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(3, 17, 31, 0.7), rgba(3, 17, 31, 0));
}

.hero-scene::after {
  bottom: -1px;
  height: 220px;
  background: linear-gradient(0deg, rgba(3, 17, 31, 0.94), rgba(3, 17, 31, 0));
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transform: scale(1.02);
  animation: slow-drift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 17, 31, 0.12) 0%, rgba(3, 17, 31, 0.48) 76%, rgba(3, 17, 31, 0.92) 100%),
    linear-gradient(90deg, rgba(3, 17, 31, 0.72) 0%, rgba(3, 17, 31, 0.18) 48%, rgba(3, 17, 31, 0.7) 100%);
}

.hero-astral {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.star-glyph,
.crescent-glyph,
.film-chip {
  position: absolute;
  pointer-events: none;
}

.star-glyph {
  width: var(--s, 32px);
  height: var(--s, 32px);
  animation: star-breathe 3.8s ease-in-out infinite;
  filter:
    drop-shadow(0 0 12px rgba(255, 214, 111, 0.68))
    drop-shadow(0 0 18px rgba(103, 221, 255, 0.18));
}

.star-glyph::after {
  content: "";
  position: absolute;
  inset: 22%;
  background: rgba(255, 248, 232, 0.6);
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 56%, 80% 100%, 50% 73%, 20% 100%, 32% 56%, 2% 34%, 39% 34%);
  filter: blur(1px);
}

.crescent-glyph {
  width: var(--s, 54px);
  height: var(--s, 54px);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #e9f8ff 54%, #9fe8ff 100%);
  -webkit-mask: radial-gradient(circle at 68% 35%, transparent 0 38%, #000 39%);
  mask: radial-gradient(circle at 68% 35%, transparent 0 38%, #000 39%);
  animation: moon-breathe 4.8s ease-in-out infinite;
  filter:
    drop-shadow(0 0 14px rgba(237, 248, 255, 0.72))
    drop-shadow(0 0 24px rgba(103, 221, 255, 0.22));
}

.film-chip {
  width: var(--w, 72px);
  height: var(--h, 28px);
  border: 1px solid rgba(255, 214, 111, 0.5);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 214, 111, 0.18), rgba(103, 221, 255, 0.2)),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, 0.28) 10px 12px);
  transform: rotate(var(--r, -10deg));
  opacity: 0.68;
  box-shadow: 0 0 24px rgba(103, 221, 255, 0.1);
}

.hero-star-a {
  --s: 42px;
  left: 9%;
  top: 22%;
}

.hero-star-b {
  --s: 20px;
  left: 58%;
  top: 20%;
  animation-delay: -1.2s;
}

.hero-star-c {
  --s: 26px;
  right: 10%;
  bottom: 23%;
  animation-delay: -2s;
}

.hero-moon-a {
  --s: 62px;
  right: 14%;
  top: 26%;
}

.hero-film-a {
  --w: 92px;
  --h: 32px;
  --r: -13deg;
  left: 10%;
  bottom: 16%;
}

.hero-inner {
  width: min(100%, var(--max));
  min-height: calc(100dvh - 206px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.title-lockup {
  position: relative;
  width: min(100%, 1040px);
  display: grid;
  justify-items: center;
}

.hero-orbit-system {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 620px;
  height: 240px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.orbit-ring {
  position: absolute;
  inset: 14px 0;
  border: 1px solid rgba(255, 214, 111, 0.24);
  border-radius: 50%;
  transform: rotate(var(--r));
  box-shadow:
    inset 0 0 34px rgba(103, 221, 255, 0.06),
    0 0 36px rgba(255, 214, 111, 0.08);
}

.orbit-ring::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 50%;
  width: 45%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 111, 0.42), transparent);
  transform: translateY(-50%);
}

.orbit-ring-a {
  --r: -9deg;
  animation: orbit-line 12s linear infinite;
}

.orbit-ring-b {
  --r: 12deg;
  inset: 38px 56px;
  border-color: rgba(103, 221, 255, 0.2);
  animation: orbit-line-reverse 16s linear infinite;
}

.orbit-star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--s, 28px);
  height: var(--s, 28px);
  transform:
    rotate(var(--a))
    translateX(var(--d))
    rotate(calc(var(--a) * -1));
  animation: orbit-star-run var(--time) linear infinite;
  filter:
    drop-shadow(0 0 12px rgba(255, 214, 111, 0.78))
    drop-shadow(0 0 20px rgba(103, 221, 255, 0.18));
}

.orbit-star::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff8ba, #ffd66f 62%, #67ddff);
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 56%, 80% 100%, 50% 73%, 20% 100%, 32% 56%, 2% 34%, 39% 34%);
}

.orbit-star-a {
  --s: 22px;
  --a: 0deg;
  --d: 292px;
  --time: 11s;
}

.orbit-star-b {
  --s: 14px;
  --a: 110deg;
  --d: 250px;
  --time: 13s;
}

.orbit-star-c {
  --s: 12px;
  --a: 238deg;
  --d: 216px;
  --time: 9.5s;
}

.title-art {
  width: 100%;
  max-width: 1000px;
  height: auto;
  overflow: visible;
}

.title-art text {
  font-family:
    "华文行楷", "STXingkai", "华文新魏", "STXinwei", "方正舒体", "FZShuTi", "FZSTK", "FZYaoti", "方正姚体", "KaiTi", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC",
    "Segoe UI", system-ui, sans-serif;
  font-size: 136px;
  font-weight: 900;
  letter-spacing: 0;
}

.title-art text {
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", "PingFang SC",
    "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif !important;
}

.title-depth {
  fill: rgba(0, 0, 0, 0.42);
  transform: translate(8px, 10px);
}

.title-outline {
  fill: none;
  stroke: rgba(103, 221, 255, 0.28);
  stroke-width: 10px;
  stroke-linejoin: round;
}

.title-fill {
  fill: url(#titleGoldBlue);
  filter: url(#titleGlow);
}

.title-light {
  fill: none;
  stroke: url(#titleSweep);
  stroke-width: 10px;
  stroke-linecap: round;
  stroke-dasharray: 160 940;
  animation: title-sweep 5.8s ease-in-out infinite;
}

.title-word-left {
  animation: title-word-float 4.8s ease-in-out infinite;
}

.title-word-right {
  animation: title-word-float 5.2s ease-in-out infinite reverse;
}

.title-divider {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    conic-gradient(from 40deg, transparent 0 18%, rgba(255, 214, 111, 0.58) 22%, transparent 28% 56%, rgba(103, 221, 255, 0.46) 61%, transparent 68%);
  box-shadow:
    inset 0 0 34px rgba(103, 221, 255, 0.08),
    0 0 34px rgba(255, 214, 111, 0.16);
  animation: ring-turn 9s linear infinite;
}

.title-divider span {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--blue-soft));
  -webkit-mask: radial-gradient(circle at 65% 36%, transparent 0 39%, #000 40%);
  mask: radial-gradient(circle at 65% 36%, transparent 0 39%, #000 40%);
  filter: drop-shadow(0 0 12px rgba(255, 214, 111, 0.66));
}

.hero-poem {
  position: relative;
  margin: -18px 0 0;
  width: fit-content;
  max-width: 100%;
  padding: 13px 26px;
  border: 1px solid rgba(255, 214, 111, 0.48);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(5, 18, 31, 0.64);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  font-family: "华文行楷", "STXingkai", "华文新魏", "STXinwei", "FZYaoti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  box-shadow:
    0 0 0 1px rgba(103, 221, 255, 0.08),
    0 0 34px rgba(255, 214, 111, 0.18);
  text-shadow: 0 0 18px rgba(255, 214, 111, 0.28);
}

.scroll-seal {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 214, 111, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 214, 111, 0.18), rgba(103, 221, 255, 0.12)),
    rgba(5, 18, 31, 0.68);
  transform: translateX(-50%);
  box-shadow: 0 0 32px rgba(255, 214, 111, 0.16);
  animation: seal-float 2.8s ease-in-out infinite;
}

.scroll-seal svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-scene {
  min-height: 100dvh;
  overflow: hidden;
  margin-top: 56px;
  padding: 210px 24px 210px;
  scroll-margin-top: 72px;
  isolation: isolate;
}

.profile-scene::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 260px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 17, 31, 0.98), rgba(3, 17, 31, 0.42) 64%, rgba(3, 17, 31, 0));
}

.profile-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(3, 17, 31, 0.94), rgba(3, 17, 31, 0.38) 66%, rgba(3, 17, 31, 0));
}

.scene-photo,
.scene-veil {
  position: absolute;
  inset: 0;
}

.scene-photo {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.03);
}

.scene-veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 17, 31, 0.56), rgba(3, 17, 31, 0.28) 48%, rgba(3, 17, 31, 0.68)),
    linear-gradient(90deg, rgba(3, 17, 31, 0.76), rgba(4, 20, 34, 0.24), rgba(3, 17, 31, 0.72));
}

.person-layout {
  position: relative;
  z-index: 3;
  width: min(100%, var(--max));
  min-height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

.mengluo-scene .person-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
}

.mengluo-scene .identity-panel {
  order: 2;
}

.identity-panel,
.gallery-theatre {
  border: 1px solid rgba(103, 221, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 248, 232, 0.065), rgba(103, 221, 255, 0.07)),
    rgba(5, 18, 31, 0.7);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.identity-panel {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 24%;
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 34px 28px 28px;
  overflow: hidden;
  transform: perspective(1300px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform 240ms var(--ease),
    border-color 240ms ease;
}

.identity-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.78;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 214, 111, 0.18), transparent 26%),
    linear-gradient(125deg, transparent 0 38%, rgba(255, 248, 232, 0.09) 48%, transparent 58%);
}

.identity-panel:hover {
  border-color: rgba(255, 214, 111, 0.46);
}

.avatar-frame {
  position: relative;
  width: 318px;
  height: 318px;
  display: grid;
  place-items: center;
  transform: translateZ(36px);
}

.avatar-frame img {
  position: relative;
  z-index: 5;
  width: 188px;
  height: 188px;
  border: 5px solid rgba(255, 248, 232, 0.92);
  border-radius: 50%;
  object-fit: cover;
  background: #061525;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(255, 214, 111, 0.24);
}

.frame-ring,
.frame-trace,
.frame-symbols {
  position: absolute;
  border-radius: 50%;
}

.frame-ring {
  inset: 30px;
  z-index: 2;
  border: 1px solid rgba(255, 214, 111, 0.38);
  background:
    conic-gradient(from 130deg, rgba(255, 214, 111, 0.06), rgba(255, 214, 111, 0.26), rgba(103, 221, 255, 0.2), rgba(255, 214, 111, 0.06));
  -webkit-mask: radial-gradient(circle, transparent 0 55%, #000 56% 68%, transparent 69%);
  mask: radial-gradient(circle, transparent 0 55%, #000 56% 68%, transparent 69%);
  animation: ring-turn 18s linear infinite;
}

.frame-trace {
  inset: 3px;
  z-index: 1;
  border: 1px solid rgba(103, 221, 255, 0.15);
  background:
    conic-gradient(from 210deg, transparent 0 22%, rgba(255, 214, 111, 0.2) 28%, transparent 34% 60%, rgba(103, 221, 255, 0.18) 66%, transparent 74%);
  box-shadow:
    inset 0 0 42px rgba(103, 221, 255, 0.08),
    0 0 46px rgba(255, 214, 111, 0.08);
  animation: ring-turn-reverse 26s linear infinite;
}

.frame-symbols {
  inset: 0;
  z-index: 4;
  animation: orbit-turn 22s linear infinite;
}

.frame-symbols i {
  --count: 12;
  --angle: calc(var(--i) * (360deg / var(--count)));
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27px;
  height: 27px;
  margin-left: -13.5px;
  margin-top: -13.5px;
  transform:
    rotate(var(--angle))
    translateX(143px)
    rotate(calc(var(--angle) * -1));
  transform-origin: center;
}

.star-frame .frame-symbols i::before,
.star-frame .frame-symbols i::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 56%, 80% 100%, 50% 73%, 20% 100%, 32% 56%, 2% 34%, 39% 34%);
}

.star-frame .frame-symbols i::before {
  background: linear-gradient(135deg, #fff8ba, #ffd66f 62%, #67ddff);
  filter:
    drop-shadow(0 0 9px rgba(255, 214, 111, 0.86))
    drop-shadow(0 0 15px rgba(103, 221, 255, 0.22));
  animation: symbol-pulse 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -110ms);
}

.star-frame .frame-symbols i::after {
  inset: 24%;
  background: rgba(255, 248, 232, 0.66);
}

.moon-frame .frame-ring {
  border-color: rgba(237, 248, 255, 0.38);
  background:
    conic-gradient(from 180deg, rgba(237, 248, 255, 0.08), rgba(103, 221, 255, 0.2), rgba(255, 214, 111, 0.12), rgba(237, 248, 255, 0.08));
}

.moon-frame .frame-trace {
  background:
    conic-gradient(from 25deg, transparent 0 18%, rgba(237, 248, 255, 0.2) 28%, transparent 36% 62%, rgba(103, 221, 255, 0.18) 70%, transparent 78%);
}

.moon-frame .frame-symbols {
  animation-duration: 26s;
}

.moon-frame .frame-symbols i {
  --count: 10;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  transform:
    rotate(var(--angle))
    translateX(142px)
    rotate(calc(var(--angle) * -1));
}

.moon-frame .frame-symbols i::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #edf8ff 58%, #98e6ff 100%);
  -webkit-mask: radial-gradient(circle at 67% 34%, transparent 0 38%, #000 39%);
  mask: radial-gradient(circle at 67% 34%, transparent 0 38%, #000 39%);
  animation: moon-symbol 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -140ms);
  filter:
    drop-shadow(0 0 10px rgba(237, 248, 255, 0.75))
    drop-shadow(0 0 18px rgba(103, 221, 255, 0.22));
}

.identity-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  transform: translateZ(24px);
}

.identity-copy p {
  margin: 0;
  color: var(--blue);
  font-size: 17px;
  font-weight: 900;
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

.mengluo-scene .identity-copy p {
  color: var(--moon);
}

.identity-copy h2 {
  margin: 0;
  font-size: 64px;
  line-height: 1.04;
  font-weight: 900;
  font-family: "华文行楷", "STXingkai", "华文新魏", "STXinwei", "方正舒体", "FZShuTi", "FZSTK", "FZYaoti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  text-shadow:
    0 0 24px rgba(255, 214, 111, 0.24),
    0 12px 34px rgba(0, 0, 0, 0.4);
}

.identity-copy > span {
  color: var(--gold-soft);
  font-size: 19px;
  font-weight: 900;
}

.identity-copy blockquote {
  margin: 14px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 214, 111, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 18, 31, 0.48);
  font-size: 17px;
  line-height: 1.66;
  font-weight: 800;
}

.tag-cloud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  transform: translateZ(18px);
}

.tag-cloud span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(103, 221, 255, 0.24);
  border-radius: 999px;
  color: var(--blue-soft);
  background: rgba(103, 221, 255, 0.08);
  font-size: 14px;
  font-weight: 900;
  transition:
    transform 200ms var(--ease),
    color 200ms ease,
    background 200ms ease;
}

.tag-cloud span:hover {
  color: #061321;
  background: linear-gradient(135deg, var(--gold), var(--blue-soft));
  transform: translateY(-2px);
}

.contact-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  transform: translateZ(18px);
}

.contact-tile {
  position: relative;
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 248, 232, 0.08), rgba(103, 221, 255, 0.08)),
    rgba(5, 18, 31, 0.62);
  text-align: left;
  overflow: hidden;
  transition:
    transform 220ms var(--ease),
    border-color 220ms ease,
    background 220ms ease;
}

.contact-tile::after {
  content: attr(data-state);
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.contact-tile.is-copied::after {
  opacity: 1;
  transform: translateY(0);
}

.contact-tile:hover,
.contact-tile:focus-visible {
  border-color: rgba(255, 214, 111, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 214, 111, 0.18), rgba(103, 221, 255, 0.12)),
    rgba(5, 18, 31, 0.68);
  transform: translateY(-3px);
  outline: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #061321;
  font-size: 20px;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.44),
    0 12px 26px rgba(0, 0, 0, 0.26);
}

.contact-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-qq {
  background: linear-gradient(135deg, #fff4a6, #67ddff);
}

.icon-wechat {
  background: linear-gradient(135deg, #baf8cb, #67ddff);
}

.icon-email {
  background: linear-gradient(135deg, #fff8e8, #ffd66f);
}

.icon-bili {
  background: linear-gradient(135deg, #67ddff, #b8f1ff);
}

.icon-x {
  color: var(--ink);
  background: linear-gradient(135deg, #111b2b, #243950);
}

.contact-tile strong,
.contact-tile small {
  display: block;
  min-width: 0;
}

.contact-tile strong {
  font-size: 15px;
  font-weight: 900;
}

.contact-tile small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gallery-theatre {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 18px 0 8px;
  overflow: visible;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.gallery-theatre::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.46;
  background:
    linear-gradient(120deg, rgba(255, 214, 111, 0.08), transparent 36%, rgba(103, 221, 255, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 255, 255, 0.025) 70px 71px);
}

.gallery-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-head span {
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
  font-family: "华文行楷", "STXingkai", "华文新魏", "STXinwei", "FZYaoti", "KaiTi", "Microsoft YaHei UI", sans-serif;
}

.moon-gallery .gallery-head span {
  color: var(--moon);
}

.gallery-head strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 214, 111, 0.34);
  border-radius: 50%;
  color: #061321;
  background: linear-gradient(135deg, var(--gold), var(--blue-soft));
  font-size: 16px;
}

.gallery-stage {
  position: relative;
  z-index: 2;
  height: min(78vh, 820px);
  min-height: 640px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 214, 111, 0.09), transparent 52%),
    linear-gradient(180deg, rgba(255, 248, 232, 0.015), rgba(3, 17, 31, 0.02));
  perspective: 1200px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.gallery-slides,
.gallery-slide,
.slide-glow {
  position: absolute;
  inset: 0;
}

.gallery-slide {
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 10px 44px 26px;
  opacity: 0;
  transform: translateX(0) translateZ(-180px) scale(0.7) rotateY(0deg);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease),
    filter 760ms var(--ease);
  pointer-events: none;
  filter: saturate(0.74) brightness(0.78);
}

.gallery-slide.is-active {
  z-index: 5;
  opacity: 1;
  transform: translateX(0) translateZ(34px) scale(1) rotateY(0deg);
  pointer-events: auto;
  filter: saturate(1.05) brightness(1);
}

.gallery-slide.is-prev {
  z-index: 3;
  opacity: 0.48;
  transform: translateX(-38%) translateZ(-118px) scale(0.62) rotateY(14deg);
}

.gallery-slide.is-next {
  z-index: 3;
  opacity: 0.48;
  transform: translateX(38%) translateZ(-118px) scale(0.62) rotateY(-14deg);
}

.gallery-slide.is-far {
  opacity: 0;
  transform: translateX(0) translateZ(-220px) scale(0.54);
}

.slide-glow {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.08;
  filter: blur(32px) saturate(1.08);
  transform: scale(1.02);
}

.slide-image {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: min(94%, 1080px);
  max-height: calc(100% - 18px);
  object-fit: contain;
  border: 0;
  border-radius: 8px;
  background: rgba(3, 17, 31, 0.28);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.38),
    0 0 42px rgba(103, 221, 255, 0.11),
    0 0 0 1px rgba(255, 248, 232, 0.08);
}

.gallery-slide.is-portrait .slide-image {
  max-width: min(62%, 590px);
  max-height: calc(88% - 6px);
}

.gallery-slide.is-landscape .slide-image {
  max-width: min(98%, 1120px);
  max-height: calc(100% - 48px);
}

.gallery-slide.is-prev .slide-image,
.gallery-slide.is-next .slide-image {
  max-width: min(54%, 540px);
  max-height: 74%;
  opacity: 0.78;
}

.gallery-slide.is-prev.is-portrait .slide-image,
.gallery-slide.is-next.is-portrait .slide-image {
  max-width: min(36%, 360px);
  max-height: 78%;
}

.gallery-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 214, 111, 0.34);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(5, 18, 31, 0.74);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition:
    transform 200ms var(--ease),
    background 200ms ease,
    color 200ms ease;
}

.gallery-progress {
  position: relative;
  z-index: 2;
  width: min(360px, 70%);
  height: 4px;
  justify-self: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.13);
}

.gallery-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  box-shadow: 0 0 14px rgba(255, 214, 111, 0.54);
  transition: width 420ms var(--ease);
}

.gallery-button.prev {
  left: 18px;
}

.gallery-button.next {
  right: 18px;
}

.gallery-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  color: #061321;
  background: linear-gradient(135deg, var(--gold), var(--blue-soft));
  transform: translateY(-50%) scale(1.04);
  outline: 0;
}

.site-footer {
  min-height: 760px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  padding: 210px 24px 36px;
  margin-top: 56px;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 250px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(3, 17, 31, 0.96), rgba(3, 17, 31, 0.4) 64%, rgba(3, 17, 31, 0));
  pointer-events: none;
}

.footer-bg,
.footer-shade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.footer-bg {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.68;
}

.footer-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 17, 31, 0.72) 0%, rgba(3, 17, 31, 0.36) 42%, rgba(3, 17, 31, 0.9) 100%),
    linear-gradient(90deg, rgba(3, 17, 31, 0.78), rgba(3, 17, 31, 0.24), rgba(3, 17, 31, 0.76));
}

.footer-content {
  position: relative;
  z-index: 3;
  width: min(100%, var(--max));
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 18px;
  border-top: 1px solid rgba(255, 214, 111, 0.26);
  text-align: center;
}

.footer-content p,
.footer-content a {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-content a {
  color: var(--blue-soft);
}

.footer-poem {
  position: relative;
  color: var(--ink) !important;
  font-size: 38px !important;
  line-height: 1.2;
  font-weight: 900 !important;
  font-family: "华文行楷", "STXingkai", "华文新魏", "STXinwei", "FZYaoti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  text-shadow:
    0 0 18px rgba(255, 214, 111, 0.34),
    0 0 30px rgba(103, 221, 255, 0.18);
  animation: poem-glow 4.6s ease-in-out infinite;
}

@keyframes cursor-star {
  0%,
  100% {
    transform: scale(0.82) rotate(-8deg);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08) rotate(12deg);
    opacity: 1;
  }
}

@keyframes loader-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.015);
  }
}

@keyframes wish-trail-fade {
  from {
    opacity: 0.72;
    transform: translate(-100%, -50%) rotate(var(--angle)) scaleX(1);
  }
  to {
    opacity: 0;
    transform: translate(-100%, -50%) rotate(var(--angle)) scaleX(0.16);
  }
}

@keyframes orbit-line {
  to {
    transform: rotate(calc(var(--r) + 360deg));
  }
}

@keyframes orbit-line-reverse {
  to {
    transform: rotate(calc(var(--r) - 360deg));
  }
}

@keyframes orbit-star-run {
  to {
    transform:
      rotate(calc(var(--a) + 360deg))
      translateX(var(--d));
  }
}

@keyframes title-word-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes trail-float {
  0% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(0.9) rotate(var(--r));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.24) rotate(calc(var(--r) + 140deg));
  }
}

@keyframes wish-fall {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42) rotate(var(--r));
  }
  12% {
    opacity: 1;
    transform: translate(calc(-50% + var(--hop-x)), calc(-50% - 28px)) scale(1.22) rotate(calc(var(--r) + 70deg));
  }
  34% {
    opacity: 1;
    transform: translate(calc(-50% + var(--swing-x)), calc(-50% + 16px)) scale(1.04) rotate(calc(var(--r) + 210deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift)), calc(-50% + var(--fall))) scale(0.54) rotate(calc(var(--r) + 860deg));
  }
}

@keyframes spark-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.24) rotate(var(--r));
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.28) rotate(calc(var(--r) + 180deg));
  }
}

@keyframes slow-drift {
  from {
    transform: scale(1.02) translate3d(-9px, -5px, 0);
  }
  to {
    transform: scale(1.06) translate3d(9px, 5px, 0);
  }
}

@keyframes star-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.94) rotate(-8deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.08) rotate(8deg);
  }
}

@keyframes moon-breathe {
  0%,
  100% {
    opacity: 0.76;
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px) rotate(7deg);
  }
}

@keyframes title-sweep {
  0% {
    stroke-dashoffset: 980;
    opacity: 0;
  }
  18%,
  74% {
    opacity: 0.78;
  }
  100% {
    stroke-dashoffset: -760;
    opacity: 0;
  }
}

@keyframes seal-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes ring-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-turn-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes orbit-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes symbol-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.84);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes moon-symbol {
  0%,
  100% {
    opacity: 0.74;
    transform: scale(0.9) rotate(-8deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(8deg);
  }
}

@keyframes poem-glow {
  0%,
  100% {
    text-shadow:
      0 0 16px rgba(255, 214, 111, 0.28),
      0 0 28px rgba(103, 221, 255, 0.18);
  }
  50% {
    text-shadow:
      0 0 24px rgba(255, 214, 111, 0.6),
      0 0 44px rgba(103, 221, 255, 0.3);
  }
}

@media (max-width: 1180px) {
  .person-layout,
  .mengluo-scene .person-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mengluo-scene .identity-panel {
    order: 0;
  }

  .identity-panel {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .identity-copy,
  .tag-cloud {
    justify-items: start;
    justify-content: flex-start;
    text-align: left;
  }

  .contact-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-stage {
    height: min(76vh, 760px);
    min-height: 620px;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 82px;
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
    height: 58px;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 10px;
    right: 10px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 214, 111, 0.22);
    border-radius: 8px;
    background: rgba(5, 18, 31, 0.94);
    backdrop-filter: blur(18px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 200ms ease,
      visibility 200ms ease,
      transform 200ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero-scene {
    padding: 92px 18px 82px;
  }

  .hero-inner {
    min-height: calc(100dvh - 166px);
  }

  .title-art text {
    font-size: 98px;
  }

  .hero-poem {
    margin-top: -8px;
    font-size: 20px;
  }

  .profile-scene {
    margin-top: 36px;
    padding: 152px 14px 150px;
  }

  .person-layout {
    gap: 18px;
  }

  .identity-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 26px 18px 20px;
    transform: none;
    transform-style: flat;
  }

  .avatar-frame,
  .identity-copy,
  .tag-cloud,
  .contact-grid {
    transform: none;
  }

  .identity-copy,
  .tag-cloud {
    justify-items: center;
    justify-content: center;
    text-align: center;
  }

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

  .gallery-theatre {
    padding: 12px 0 6px;
  }

  .gallery-stage {
    height: min(76vh, 660px);
    min-height: 560px;
  }

  .hero-orbit-system {
    width: 430px;
    height: 180px;
    top: 45%;
  }

  .orbit-star-a {
    --d: 202px;
  }

  .orbit-star-b {
    --d: 170px;
  }

  .orbit-star-c {
    --d: 148px;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 14px;
  }

  .title-art {
    width: 100%;
    max-width: 100%;
    transform: none;
    transform-origin: center;
  }

  .title-art text {
    font-size: 72px;
  }

  .hero-poem {
    padding: 11px 16px;
    margin-top: 2px;
    font-size: 17px;
  }

  .hero-orbit-system {
    width: 330px;
    height: 150px;
    top: 47%;
    opacity: 0.82;
  }

  .orbit-ring {
    inset: 18px 10px;
  }

  .orbit-ring-b {
    inset: 34px 44px;
  }

  .orbit-star-a {
    --s: 24px;
    --d: 152px;
  }

  .orbit-star-b {
    --s: 16px;
    --d: 126px;
  }

  .orbit-star-c {
    --s: 14px;
    --d: 112px;
  }

  .title-divider {
    width: 58px;
    height: 58px;
    top: 49%;
  }

  .title-divider span {
    inset: 18px;
  }

  .avatar-frame {
    width: 262px;
    height: 262px;
  }

  .avatar-frame img {
    width: 158px;
    height: 158px;
  }

  .frame-symbols i {
    width: 22px;
    height: 22px;
    margin-left: -11px;
    margin-top: -11px;
    transform:
      rotate(var(--angle))
      translateX(118px)
      rotate(calc(var(--angle) * -1));
  }

  .moon-frame .frame-symbols i {
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    transform:
      rotate(var(--angle))
      translateX(118px)
      rotate(calc(var(--angle) * -1));
  }

  .identity-copy h2 {
    font-size: 48px;
  }

  .identity-copy blockquote {
    font-size: 15px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-stage {
    height: min(72vh, 560px);
    min-height: 480px;
  }

  .gallery-slide {
    padding: 18px 14px;
  }

  .slide-image {
    max-width: 86%;
    max-height: calc(100% - 12px);
  }

  .gallery-slide.is-portrait .slide-image {
    max-width: min(72%, 320px);
    max-height: calc(100% - 10px);
  }

  .gallery-slide {
    padding: 12px 34px 22px;
  }

  .gallery-slide.is-prev {
    transform: translateX(-42%) translateZ(-110px) scale(0.58) rotateY(10deg);
  }

  .gallery-slide.is-next {
    transform: translateX(42%) translateZ(-110px) scale(0.58) rotateY(-10deg);
  }

  .gallery-button {
    width: 46px;
    height: 46px;
  }

  .gallery-button.prev {
    left: 10px;
  }

  .gallery-button.next {
    right: 10px;
  }

  .footer-poem {
    font-size: 27px !important;
  }
}

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

  .glow-cursor,
  .star-trail,
  .wish-star,
  .wish-spark,
  .wish-trail {
    display: none;
  }

  body.cursor-ready,
  body.cursor-ready a,
  body.cursor-ready button {
    cursor: auto;
  }
}
