/* ============================================================
   盛开的钢琴之森下 —— 粉丝展示站
   视觉基调：大正浪漫 × 水彩樱林 × 月夜钢琴
   ============================================================ */

@font-face {
  font-family: "PINO";
  src: url("../assets/font/pino-subset.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --night:      #171122;   /* 月夜底色 */
  --night-2:    #221933;   /* 夜色抬升 */
  --plum:       #3a2b4d;   /* 深梅紫 */
  --bloom:      #b98cc9;   /* 樱紫 */
  --sakura:     #f0b6c8;   /* 樱粉 */
  --sakura-hi:  #ffd9e4;   /* 樱粉高光 */
  --moon:       #f4eff8;   /* 月白 */
  --moon-dim:   #cfc6dd;   /* 月白·暗 */
  --gold:       #d9b06c;   /* 烛金 */
  --line:       rgba(240,182,200,.22);
  --serif: "PINO", "Noto Serif SC", "Source Han Serif SC", "SimSun", "MS Song", serif;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--moon);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sakura); text-decoration: none; }
a:hover { color: var(--sakura-hi); }

::selection { background: rgba(240,182,200,.35); }

/* ---------- 通用版式 ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.sec-head { margin-bottom: 40px; }
.sec-head .jp {
  font-size: 13px; letter-spacing: .5em; color: var(--bloom);
  text-transform: uppercase; margin-bottom: 6px; display: block;
}
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 600; letter-spacing: .18em;
  color: var(--moon);
}
.sec-head h2 .accent { color: var(--sakura); }
.sec-head .rule {
  width: 72px; height: 1px; margin-top: 18px;
  background: linear-gradient(90deg, var(--sakura), transparent);
}
.sec-head .lead { margin-top: 14px; color: var(--moon-dim); max-width: 720px; }

.quote {
  border-left: 2px solid var(--sakura);
  padding: 6px 0 6px 18px; margin: 18px 0;
  color: var(--sakura-hi); font-style: normal;
}
.quote .who { color: var(--bloom); font-size: .85em; margin-right: .6em; }
.quote .src { display:block; color: rgba(207,198,221,.55); font-size: 12px; margin-top: 4px; letter-spacing: .1em; }

.chip {
  display: inline-block; padding: 2px 12px; font-size: 12.5px; letter-spacing: .22em;
  border: 1px solid var(--line); border-radius: 999px; color: var(--moon-dim);
  background: rgba(34,25,51,.5);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  transition: background .4s, box-shadow .4s, padding .4s;
}
.nav.scrolled {
  background: rgba(23,17,34,.86); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line); padding: 10px 28px;
}
.nav .brand { display: flex; align-items: center; gap: 12px; color: var(--moon); }
.nav .brand .mark {
  width: 34px; height: 34px; border: 1px solid var(--sakura); color: var(--sakura);
  display: grid; place-items: center; font-size: 15px; border-radius: 2px;
  box-shadow: inset 0 0 12px rgba(240,182,200,.25);
}
.nav .brand b { font-weight: 600; letter-spacing: .22em; font-size: 15px; }
.nav .links { display: flex; gap: 30px; }
.nav .links a {
  color: var(--moon-dim); font-size: 14.5px; letter-spacing: .3em; position: relative;
  padding: 4px 0;
}
.nav .links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--sakura); transition: width .3s;
}
.nav .links a:hover::after, .nav .links a.active::after { width: 100%; }
.nav .links a.active { color: var(--sakura); }
#navToggle { display: none; background: none; border: 1px solid var(--line); color: var(--sakura);
  width: 40px; height: 36px; border-radius: 4px; font-size: 16px; cursor: pointer; }

/* ---------- 英雄区 ---------- */
.hero {
  min-height: 100svh; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--night);
}
.hero .bg, .banner .bg {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  will-change: transform;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(-1.2%, -0.8%, 0); }
  to   { transform: scale(1.12) translate3d(1.4%, 1%, 0); }
}
.hero .veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(23,17,34,0) 30%, rgba(23,17,34,.72) 100%),
    linear-gradient(180deg, rgba(23,17,34,.55) 0%, rgba(23,17,34,.15) 40%, rgba(23,17,34,.92) 100%);
}
.hero .glow {
  position: absolute; width: 70vmin; height: 70vmin; left: 50%; top: 42%;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(185,140,201,.28), rgba(185,140,201,0) 65%);
  filter: blur(10px); pointer-events: none;
}
.hero-inner { position: relative; text-align: center; z-index: 2; padding: 110px 24px 90px; }
.hero-inner .logo {
  height: min(46vh, 420px); margin: 0 auto 26px; width: auto;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.6));
}
.hero-inner .jp-title {
  font-size: clamp(15px, 2.2vw, 20px); letter-spacing: .55em; color: var(--moon-dim);
  text-indent: .55em; margin-bottom: 10px;
}
.hero-inner .tagline {
  color: var(--sakura-hi); letter-spacing: .2em; font-size: clamp(15px, 2vw, 19px);
  margin-bottom: 34px; opacity: .95;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 34px; border: 1px solid var(--sakura); color: var(--sakura-hi);
  letter-spacing: .3em; text-indent: .3em; font-size: 14.5px; border-radius: 2px;
  background: rgba(240,182,200,.08); transition: all .35s; cursor: pointer;
}
.btn:hover { background: rgba(240,182,200,.2); color: #fff; box-shadow: 0 0 24px rgba(240,182,200,.35); }
.btn--ghost { border-color: var(--line); color: var(--moon-dim); background: rgba(23,17,34,.35); }
.btn--ghost:hover { border-color: var(--sakura); color: var(--sakura-hi); }
.btn .k { text-indent: 0; }

.hero .meta-chips {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; z-index: 2;
  width: max-content; max-width: 92vw;
}

/* 开场黑幕（致敬游戏启动） */
#bootVeil {
  position: fixed; inset: 0; background: #000; z-index: 200; pointer-events: none;
  transition: opacity 1.6s ease; opacity: 1;
}
#bootVeil.gone { opacity: 0; }

/* ---------- 分节横幅 ---------- */
.banner {
  position: relative; min-height: 44vh; display: flex; align-items: flex-end;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.banner .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,17,34,.5), rgba(23,17,34,.94) 96%);
}
.banner-inner { position: relative; z-index: 2; padding: 60px 0 46px; }
.banner h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: .24em; }
.banner .jp { letter-spacing: .5em; color: var(--bloom); font-size: 13px; display: block; margin-bottom: 8px; }
.banner .crumb { color: var(--moon-dim); font-size: 13px; letter-spacing: .2em; margin-top: 10px; }
.banner .crumb a { color: var(--moon-dim); }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(160deg, rgba(58,43,77,.5), rgba(34,25,51,.72));
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: transform .45s, box-shadow .45s, border-color .45s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(240,182,200,.45); }
.card .ph { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.card .ph img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease;
}
.card:hover .ph img { transform: scale(1.07); }
.card .ph .tag {
  position: absolute; top: 12px; left: 12px; font-size: 11.5px; letter-spacing: .28em;
  padding: 3px 10px; background: rgba(23,17,34,.72); color: var(--sakura-hi);
  border: 1px solid var(--line); border-radius: 2px;
}
.card .body { padding: 20px 22px 24px; }
.card h3 { font-size: 19px; letter-spacing: .18em; color: var(--moon); margin-bottom: 8px; font-weight: 600; }
.card h3 .jp { font-size: 12px; color: var(--bloom); letter-spacing: .2em; margin-left: 8px; font-weight: 400; }
.card p { color: var(--moon-dim); font-size: 14.5px; }
.card .more { display: inline-block; margin-top: 14px; font-size: 13px; letter-spacing: .25em; color: var(--sakura); }

/* 角色卡 */
.char-card { text-align: left; }
.char-card .ph { aspect-ratio: 1/1.05; }
.char-card .ph .art {
  position: absolute; inset: 0; background-size: cover; background-position: center 20%;
}
.char-card .ph .art img {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 92%; width: auto; max-width: none; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
  object-fit: contain; transition: transform 1s ease;
}
.char-card:hover .ph .art img { transform: translateX(-50%) scale(1.04); }

/* ---------- 信息表 ---------- */
.meta-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.meta-table th, .meta-table td { padding: 12px 14px; border-bottom: 1px dashed var(--line); text-align: left; }
.meta-table th { color: var(--bloom); letter-spacing: .25em; font-weight: 400; white-space: nowrap; width: 9em; }
.meta-table td { color: var(--moon-dim); }

/* ---------- 序章剧场（打字机） ---------- */
.theater {
  position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center;
}
.theater .bg {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  animation: kenburns 34s ease-in-out infinite alternate;
  filter: brightness(.72) saturate(1.05);
}
.theater .veil {
  position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 50% 45%, rgba(23,17,34,.1) 0%, rgba(23,17,34,.82) 100%);
}
.theater .inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 120px 26px; }
.theater .tw {
  font-size: clamp(17px, 2.3vw, 22px); line-height: 2.4; letter-spacing: .12em;
  color: var(--moon); text-shadow: 0 2px 14px rgba(0,0,0,.8); min-height: 5.2em;
}
.theater .tw .cursor {
  display: inline-block; width: 1px; height: 1.1em; background: var(--sakura);
  vertical-align: -0.15em; margin-left: 3px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.theater .from { margin-top: 26px; color: var(--bloom); font-size: 13px; letter-spacing: .3em; }

/* ---------- 三周目详解 ---------- */
.route-detail {
  display: grid; grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 48px; align-items: start; margin-bottom: 100px;
}
.route-detail:last-of-type { margin-bottom: 0; }
.route-detail:nth-of-type(even) .visual { order: 2; }
.route-detail .visual { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.route-detail .visual .mainimg { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; display: block; }
.route-detail .visual .badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  padding: 4px 16px; font-size: 12.5px; letter-spacing: .3em; border-radius: 2px;
  background: rgba(23,17,34,.82); border: 1px solid var(--line);
}
.route-detail .visual .badge.c1 { color: var(--sakura); border-color: rgba(240,182,200,.5); }
.route-detail .visual .badge.c2 { color: var(--bloom); border-color: rgba(185,140,201,.55); }
.route-detail .visual .badge.c3 { color: var(--gold); border-color: rgba(217,176,108,.5); }
.route-detail .visual .endmark {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(23,17,34,.92));
  font-size: 13px; letter-spacing: .22em; color: var(--moon-dim);
}
.route-detail h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: .16em; margin-bottom: 6px; }
.route-detail h3 small { font-size: 13px; color: var(--moon-dim); letter-spacing: .25em; margin-left: 12px; font-weight: 400; }
.route-detail .route-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px;
}
.route-detail .route-meta .chip { font-size: 12px; }
.route-detail .route-meta .chip b { color: var(--sakura-hi); font-weight: 400; margin-right: 6px; }
.route-detail .steps { list-style: none; margin: 4px 0 18px; display: grid; gap: 14px; }
.route-detail .steps li {
  position: relative; padding: 2px 0 2px 40px; color: var(--moon-dim); font-size: 14.5px;
}
.route-detail .steps li:not(.spoiler-hint)::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; color: var(--sakura);
  border: 1px solid var(--line); background: rgba(34,25,51,.6);
}
.route-detail .steps { counter-reset: step; }
.route-detail .steps li b { color: var(--moon); font-weight: 600; letter-spacing: .06em; }
.route-detail .steps i { font-style: normal; color: var(--bloom); font-size: 12.5px; letter-spacing: .08em; }
.route-note {
  border: 1px dashed var(--line); border-radius: 4px; padding: 14px 20px;
  color: rgba(207,198,221,.7); font-size: 13px; letter-spacing: .06em;
  background: rgba(34,25,51,.35); margin-top: 34px;
}

@media (max-width: 900px) {
  .route-detail { grid-template-columns: 1fr; gap: 24px; margin-bottom: 72px; }
  .route-detail:nth-of-type(even) .visual { order: 0; }
  .route-detail .visual .mainimg { aspect-ratio: 4/3.2; }
}

/* ---------- 时间线 ---------- */
.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: ""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.tl-item { position: relative; padding: 0 0 56px 78px; }
.tl-item .dot {
  position: absolute; left: 19px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--sakura);
  box-shadow: 0 0 0 4px rgba(240,182,200,.12), 0 0 18px rgba(240,182,200,.35);
}
.tl-item .day {
  color: var(--bloom); letter-spacing: .4em; font-size: 13px; display: block; margin-bottom: 6px;
}
.tl-item h3 { font-size: 22px; letter-spacing: .16em; margin-bottom: 12px; font-weight: 600; }
.tl-item .media { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin: 16px 0; box-shadow: var(--shadow); }
.tl-item .media img { width: 100%; }
.tl-item p { color: var(--moon-dim); max-width: 780px; }
.tl-item .q { margin-top: 12px; }

/* ---------- 路线卡 ---------- */
.route-card { position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; }
.route-card .bgim {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 1.4s ease, filter .8s;
  filter: brightness(.8);
}
.route-card:hover .bgim { transform: scale(1.06); filter: brightness(.95); }
.route-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,17,34,.18) 20%, rgba(23,17,34,.94) 92%);
}
.route-card .body { position: relative; z-index: 2; padding: 28px; width: 100%; }
.route-card .rt { color: var(--gold); font-size: 12.5px; letter-spacing: .4em; display: block; margin-bottom: 8px; }
.route-card h3 { font-size: 24px; letter-spacing: .16em; margin-bottom: 10px; }
.route-card p { color: var(--moon-dim); font-size: 14.5px; }

/* 剧透模糊 */
.spoiler {
  filter: blur(7px) saturate(.8); cursor: pointer; transition: filter .8s;
  user-select: none;
}
.spoiler.on, .spoiler:focus { filter: none; }
.spoiler-hint {
  list-style: none;
  font-size: 12px; color: var(--bloom); letter-spacing: .25em; margin-top: 4px; opacity: .85;
}

/* ---------- VN 演出器 ---------- */
.vn-stage {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: #000; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow); user-select: none;
}
.vn-bg, .vn-bg2 {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .01s;
}
.vn-bg.show { opacity: 1; }
.vn-bg .kb, .vn-bg2 .kb {
  position: absolute; inset: -5%; background: inherit; background-size: cover; background-position: center;
}
.vn-bg.show .kb { animation: vnkb 14s ease-in-out infinite alternate; }
@keyframes vnkb {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.09) translate(1.2%, -1%); }
}
.vn-sprite {
  position: absolute; bottom: 0; height: 92%; width: auto; opacity: 0;
  transform: translateX(-50%) translateY(14px); left: 50%;
  transition: opacity .8s ease, transform .8s ease, filter .6s;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.6));
  pointer-events: none;
}
.vn-sprite.left  { left: 30%; }
.vn-sprite.right { left: 70%; }
.vn-sprite.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.vn-sprite.dim { filter: brightness(.45) drop-shadow(0 12px 30px rgba(0,0,0,.6)); }
.vn-sprite.bob { animation: bob 5.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { margin-bottom: 0; } 50% { margin-bottom: .8%; } }

.vn-text {
  position: absolute; left: 3%; right: 3%; bottom: 3.5%; z-index: 6;
  background: linear-gradient(180deg, rgba(20,14,30,.88), rgba(20,14,30,.78));
  border: 1px solid rgba(240,182,200,.4); border-radius: 3px;
  padding: 16px 22px 18px; min-height: 27%;
  box-shadow: 0 8px 40px rgba(0,0,0,.55), inset 0 0 40px rgba(185,140,201,.06);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.vn-text .name {
  position: absolute; top: -17px; left: 18px;
  background: linear-gradient(180deg, #2c2140, #1c1428);
  border: 1px solid rgba(240,182,200,.55); color: var(--sakura-hi);
  padding: 3px 22px; letter-spacing: .3em; font-size: 14px; border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.vn-text .body {
  font-size: clamp(13px, 1.45vw, 17px); line-height: 1.95; color: var(--moon);
  letter-spacing: .05em; min-height: 3.9em; margin-top: 6px;
}
.vn-text .narr .name { display: none; }
.vn-text .cite {
  position: absolute; right: 12px; bottom: 6px; font-size: 10.5px; color: rgba(207,198,221,.4);
  letter-spacing: .12em;
}
.vn-text .next-arrow {
  position: absolute; right: 14px; bottom: 10px; color: var(--sakura);
  animation: nudge 1.4s ease-in-out infinite; font-size: 15px;
}
@keyframes nudge { 0%,100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(3px); opacity: .4; } }

/* VN 转场遮罩 */
.vn-fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.vn-fx .wipe {
  position: absolute; inset: -2%;
  background: linear-gradient(180deg, rgba(23,17,34,1), rgba(58,43,77,1));
  transform: scaleY(0); transform-origin: top;
}
.vn-fx.stripe-v .wipe { display: none; }
.vn-fx .stripes { position: absolute; inset: 0; display: flex; }
.vn-fx .stripes i {
  flex: 1; background: linear-gradient(180deg, #241b30, #3a2b4d);
  transform: scaleY(0); transform-origin: top;
}
.vn-fx .blocks { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); }
.vn-fx .blocks i { background: #241b30; transform: scale(0); }
.vn-fx .flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.vn-fx .white { position: absolute; inset: 0; background: #fdf8f2; opacity: 0; transition: opacity 1.8s ease; }
.vn-fx.go .wipe { animation: wipeY 1.1s ease-in-out forwards; }
.vn-fx.go.stripe-v .stripes i { animation: wipeY .9s ease-in-out forwards; }
.vn-fx.go.stripe-v .stripes i:nth-child(even) { animation-name: wipeYUp; }
@keyframes wipeY {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes wipeYUp { 0% { transform: scaleY(0); } 45%,55% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.vn-fx.go .blocks i { animation: blockIn 1s ease-in-out forwards; }
@keyframes blockIn { 0% { transform: scale(0); } 42%,58% { transform: scale(1); } 100% { transform: scale(0); } }
.vn-fx.go .flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
.vn-fx.go .white { opacity: 1; }

/* VN 标题落幅 */
.vn-title-drop {
  position: absolute; inset: 0; z-index: 7; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(23,17,34,.25), rgba(23,17,34,.7));
}
.vn-title-drop.show { display: flex; }
.vn-title-drop img { height: 62%; filter: drop-shadow(0 0 34px rgba(240,182,200,.4)); animation: logoIn 2.2s ease; }
@keyframes logoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.vn-controls {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px;
}
.vn-controls .btn { padding: 9px 22px; font-size: 13px; }
.vn-progress { flex: 1; min-width: 160px; height: 2px; background: var(--line); border-radius: 2px; position: relative; }
.vn-progress i {
  position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sakura);
  transition: width .5s; box-shadow: 0 0 8px rgba(240,182,200,.6);
}
.vn-chapters { display: flex; gap: 8px; flex-wrap: wrap; }
.vn-chapters button {
  background: rgba(34,25,51,.6); border: 1px solid var(--line); color: var(--moon-dim);
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .2em; padding: 6px 14px;
  border-radius: 2px; cursor: pointer; transition: all .3s;
}
.vn-chapters button:hover, .vn-chapters button.on { color: var(--sakura-hi); border-color: var(--sakura); background: rgba(240,182,200,.12); }

/* ---------- 画廊 ---------- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal figure {
  position: relative; overflow: hidden; border-radius: 3px; cursor: zoom-in;
  border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--night-2);
}
.gal figure.tall { aspect-ratio: 3/4; grid-row: span 2; }
.gal figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease, filter .5s; }
.gal figure:hover img { transform: scale(1.06); filter: brightness(1.08); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(23,17,34,.92));
  font-size: 12.5px; letter-spacing: .12em; color: var(--moon-dim);
  opacity: 0; transform: translateY(8px); transition: all .4s;
}
.gal figure:hover figcaption { opacity: 1; transform: none; }

#lightbox {
  position: fixed; inset: 0; z-index: 150; display: none; place-items: center;
  background: rgba(10,7,16,.94); backdrop-filter: blur(6px); padding: 4vmin;
}
#lightbox.show { display: grid; }
#lightbox img { max-width: 94vw; max-height: 88vh; border: 1px solid var(--line); box-shadow: var(--shadow); }
#lightbox .cap { margin-top: 14px; color: var(--moon-dim); letter-spacing: .15em; font-size: 14px; text-align: center; }
#lightbox .x {
  position: absolute; top: 20px; right: 26px; font-size: 30px; color: var(--moon-dim);
  cursor: pointer; line-height: 1;
}

/* ---------- BGM 播放器 ---------- */
#bgmDock {
  position: fixed; left: 18px; bottom: 18px; z-index: 95;
  display: flex; align-items: center; gap: 12px;
  background: rgba(23,17,34,.88); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 10px; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .4s, opacity .4s;
}
#bgmDock .disc {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sakura);
  display: grid; place-items: center; cursor: pointer; color: var(--sakura); font-size: 15px;
  background: radial-gradient(circle at 35% 35%, rgba(240,182,200,.25), transparent 60%);
  position: relative;
}
#bgmDock .disc.playing::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(240,182,200,.5); animation: ring 2s ease-out infinite;
}
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
#bgmDock .info { cursor: pointer; }
#bgmDock .info .t { font-size: 13px; color: var(--sakura-hi); letter-spacing: .14em; white-space: nowrap; }
#bgmDock .info .s { font-size: 10.5px; color: var(--moon-dim); letter-spacing: .18em; }
#bgmDock .pl {
  position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 250px;
  background: rgba(23,17,34,.96); border: 1px solid var(--line); border-radius: 4px;
  padding: 10px; display: none; box-shadow: var(--shadow);
}
#bgmDock .pl.show { display: block; }
#bgmDock .pl button {
  display: flex; justify-content: space-between; width: 100%; gap: 14px;
  background: none; border: 0; color: var(--moon-dim); font-family: var(--serif);
  font-size: 13px; letter-spacing: .1em; padding: 8px 10px; cursor: pointer; border-radius: 3px;
  text-align: left;
}
#bgmDock .pl button:hover { background: rgba(240,182,200,.1); color: var(--sakura-hi); }
#bgmDock .pl button.on { color: var(--sakura); }
#bgmDock .pl button .d { color: rgba(207,198,221,.5); font-size: 11px; }
#bgmDock .hint { font-size: 10.5px; color: rgba(207,198,221,.55); padding: 6px 10px 2px; letter-spacing: .1em; }

/* ---------- 花瓣画布 ---------- */
#petals { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

/* ---------- 胶片颗粒 & 晕影 ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 81; pointer-events: none;
  background: radial-gradient(130% 110% at 50% 42%, transparent 62%, rgba(10,6,18,.42) 100%);
  mix-blend-mode: multiply;
}

/* ---------- 入场动画 ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ---------- 世界观分镜 ---------- */
.world-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; }
.world-tile { position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); min-height: 300px; display: flex; align-items: flex-end; }
.world-tile .bgim { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.3s; }
.world-tile:hover .bgim { transform: scale(1.05); }
.world-tile .veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23,17,34,.9)); }
.world-tile .cap { position: relative; z-index: 2; padding: 20px 22px; }
.world-tile .cap b { letter-spacing: .2em; font-size: 17px; display: block; margin-bottom: 4px; }
.world-tile .cap span { color: var(--moon-dim); font-size: 13px; }

/* ---------- 歌词卡 ---------- */
.lyrics {
  background: linear-gradient(160deg, rgba(58,43,77,.35), rgba(34,25,51,.6));
  border: 1px solid var(--line); border-radius: 4px; padding: 30px 34px;
}
.lyrics h4 { letter-spacing: .3em; color: var(--sakura); margin-bottom: 4px; font-size: 17px; }
.lyrics .by { font-size: 12px; color: var(--moon-dim); letter-spacing: .2em; margin-bottom: 16px; }
.lyrics p { color: var(--moon-dim); font-size: 14.5px; line-height: 2.2; }
.lyrics p b { color: var(--moon); font-weight: 400; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line); padding: 54px 0 110px; margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(10,6,18,.6));
}
footer .fin { text-align: center; color: var(--bloom); letter-spacing: .5em; font-size: 14px; margin-bottom: 26px; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer .note { color: rgba(207,198,221,.62); font-size: 12.5px; max-width: 640px; line-height: 2; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .world-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 18px; }
  .tl-item { padding-left: 56px; }
  .tl-item .dot { left: 11px; }
  .nav .links {
    position: fixed; inset: 0 0 0 auto; width: min(72vw, 320px);
    background: rgba(20,14,30,.97); flex-direction: column; gap: 0;
    padding: 90px 36px; transform: translateX(100%); transition: transform .45s;
    backdrop-filter: blur(12px); border-left: 1px solid var(--line);
  }
  .nav .links.open { transform: none; }
  .nav .links a { padding: 16px 0; font-size: 16px; border-bottom: 1px dashed var(--line); }
  #navToggle { display: grid; place-items: center; z-index: 2; }
  .hero-inner .logo { height: min(38vh, 300px); }
  .vn-text .body { font-size: 12.5px; min-height: 4.6em; }
  .route-card { min-height: 380px; }
  #bgmDock .info { display: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { padding: 11px 22px; font-size: 13px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero .bg, .banner .bg, .theater .bg, .vn-bg .kb, .vn-sprite.bob { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
