/* ============================================================
   Summer Pockets REFLECTION BLUE 展示站 — 全站样式
   设计意象:夏空、积雨云、海与白沙
   ============================================================ */
:root {
  --sky: #6db9ec;
  --sky-2: #a8d8f0;
  --sea: #1e6fae;
  --deep: #16436e;
  --night: #0b1e33;
  --ink: #24425f;
  --ink-soft: #5a7a96;
  --sand: #faf7f0;
  --paper: #ffffff;
  --sun: #ffb648;
  --line: #dfe9f2;
  --shadow: 0 10px 30px rgba(22, 67, 110, .12);
  --shadow-lg: 0 24px 60px rgba(11, 30, 51, .18);
  --r: 16px;
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', SimSun, serif;
  --sans: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --kai: 'KaiTi', 'STKaiti', 'Noto Serif SC', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { opacity: .85; }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 6px;
  padding: 12px clamp(14px, 4vw, 42px);
  background: rgba(11, 30, 51, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .3s;
}
.nav.scrolled { background: rgba(11, 30, 51, .88); }
.nav .brand { display: flex; align-items: center; gap: 14px; margin-right: auto; color: #fff; }
.nav .brand img { height: 58px; width: auto; }
.nav .brand b { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .08em; }
.nav a.item {
  color: #eaf4fc; font-size: 14px; padding: 7px 13px; border-radius: 999px;
  transition: background .25s;
}
.nav a.item:hover, .nav a.item.on { background: rgba(255, 255, 255, .16); }
.nav .burger { display: none; color: #fff; background: none; border: 0; font-size: 22px; cursor: pointer; padding: 4px 10px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 92vh;
  display: grid; place-items: center;
  overflow: hidden; color: #fff; text-align: center;
}
.hero .bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,30,51,.25), rgba(11,30,51,.05) 40%, rgba(250,247,240,.9) 96%, var(--sand) 100%); }
.hero .inner { position: relative; padding: 120px 20px 90px; max-width: 900px; }
.hero .logo { width: min(520px, 78vw); margin: 0 auto 26px; filter: drop-shadow(0 6px 24px rgba(0,20,40,.45)); }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); font-weight: 600; text-shadow: 0 4px 24px rgba(0, 20, 40, .5); }
.hero p.sub { margin-top: 14px; font-size: clamp(15px, 2vw, 18px); letter-spacing: .35em; text-indent: .35em; opacity: .92; text-shadow: 0 2px 12px rgba(0,20,40,.5); }
.hero .cta { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 999px;
  font-size: 15px; letter-spacing: .12em; transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(255,255,255,.55); color: #fff;
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,30,60,.3); }
.btn.solid { background: var(--sea); border-color: var(--sea); }
.hero .cue {
  position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .3em; opacity: .85; animation: bob 2.2s ease-in-out infinite;
}
.hero .cue::after { content: ''; display: block; width: 1px; height: 44px; margin: 10px auto 0; background: linear-gradient(#fff, transparent); }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* 页头(子页) */
.pagehead { position: relative; min-height: 46vh; display: grid; place-items: end center; overflow: hidden; color: #fff; }
.pagehead .bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.pagehead .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,30,51,.42), rgba(11,30,51,.12) 45%, rgba(250,247,240,.96) 97%, var(--sand)); }
.pagehead .inner { position: relative; text-align: center; padding: 110px 18px 40px; }
.pagehead h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); letter-spacing: .18em; text-shadow: 0 3px 18px rgba(0,20,40,.55); }
.pagehead .en { margin-top: 6px; font-size: 12px; letter-spacing: .5em; text-transform: uppercase; opacity: .85; }

/* ---------------- 布局 ---------------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
section.band { padding: clamp(48px, 8vw, 90px) 0; }
.sec-title { text-align: center; margin-bottom: clamp(30px, 5vw, 54px); }
.sec-title h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); letter-spacing: .22em; color: var(--deep); display: inline-flex; align-items: center; gap: 16px; }
.sec-title h2::before, .sec-title h2::after { content: ''; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--sky)); }
.sec-title h2::after { background: linear-gradient(90deg, var(--sky), transparent); }
.sec-title .en { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .45em; text-transform: uppercase; color: var(--ink-soft); }
.sec-title.left { text-align: left; }
.sec-title.left h2::before { display: none; }

/* 波浪分隔 */
.wave { display: block; width: 100%; height: 60px; margin-bottom: -1px; }

/* ---------------- 卡片 ---------------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card {
  background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ph { aspect-ratio: 16/9; background-size: cover; background-position: center; transition: transform .5s; }
.card .bd { padding: 20px 22px 24px; }
.card h3 { font-family: var(--serif); font-size: 19px; color: var(--deep); letter-spacing: .08em; }
.card p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.card .go { display: inline-block; margin-top: 14px; font-size: 13px; letter-spacing: .18em; color: var(--sea); }

/* 数字统计 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.stat { text-align: center; padding: 26px 10px; border-radius: var(--r); background: rgba(255,255,255,.75); box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); color: var(--sea); }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* 引言带 */
.quote-band { position: relative; padding: clamp(60px, 10vw, 110px) 0; background: linear-gradient(180deg, #10293f, #0b1e33); color: #dfeefb; overflow: hidden; }
.quote-band .fx { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5), transparent 60%), radial-gradient(2px 2px at 70% 60%, rgba(160,220,255,.5), transparent 60%), radial-gradient(3px 3px at 40% 75%, rgba(255,255,255,.35), transparent 60%); opacity: .8; }
.quote-band .wrap { position: relative; max-width: 780px; text-align: center; }
.quote-band p { font-family: var(--kai); font-size: clamp(17px, 2.6vw, 22px); line-height: 2.3; }
.quote-band .who { margin-top: 22px; font-size: 13px; letter-spacing: .3em; opacity: .75; }

/* ---------------- 角色速览 ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 12px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  transition: transform .3s; border: 2px solid transparent;
}
.chip:hover { transform: translateY(-4px); border-color: var(--sky-2); }
.chip img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; box-sizing: border-box; box-shadow: inset 0 0 0 1px var(--line); }
.chip b { font-family: var(--serif); color: var(--deep); font-size: 16px; letter-spacing: .1em; }
.chip i { display: block; font-style: normal; font-size: 11px; color: var(--ink-soft); letter-spacing: .12em; }

/* ---------------- 角色页 ---------------- */
.char-hero { position: relative; overflow: hidden; color: #fff; }
.char-hero .bgstripe { position: absolute; inset: 0; background: linear-gradient(135deg, var(--ch, #2a5d9c), rgba(11,30,51,.9)); }
.char-hero .bubbles { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 15% 25%, rgba(255,255,255,.5), transparent 55%), radial-gradient(3px 3px at 80% 35%, rgba(255,255,255,.35), transparent 55%), radial-gradient(2px 2px at 55% 80%, rgba(255,255,255,.4), transparent 55%); }
.char-hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: end; padding-top: 110px; padding-bottom: 0; min-height: 72vh; }
.char-hero .info { padding-bottom: 70px; }
.char-hero .prefix { font-size: 12px; letter-spacing: .5em; opacity: .8; }
.char-hero h1 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 56px); margin: 10px 0 4px; letter-spacing: .1em; text-shadow: 0 4px 24px rgba(0,20,40,.4); }
.char-hero .ja { font-size: 15px; letter-spacing: .28em; opacity: .85; }
.char-hero .tagline { margin-top: 26px; font-family: var(--kai); font-size: clamp(16px, 2.2vw, 21px); color: #ffe9c9; }
.char-hero .sprite { align-self: end; justify-self: center; width: min(440px, 92%); filter: drop-shadow(0 18px 40px rgba(0,10,25,.5)); animation: float 5.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.char-hero .fadew { position: absolute; inset: auto 0 0 0; height: 130px; background: linear-gradient(180deg, transparent, var(--sand)); }

.char-body { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.char-body .main p { margin-bottom: 1.2em; }
.quotebox { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 28px 30px; }
.quotebox h3 { font-family: var(--serif); color: var(--deep); font-size: 17px; letter-spacing: .2em; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.quotebox blockquote { font-family: var(--kai); font-size: 16.5px; color: var(--ink); padding: 10px 0 10px 15px; border-left: 3px solid var(--sky-2); }
.quotebox .qsp { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; letter-spacing: .1em; }
.narration { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); font-style: italic; }
.route-card { margin-top: 20px; background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.7)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; font-size: 14px; }
.route-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 8px; }
.route-card dt { color: var(--ink-soft); }
.route-card dd { color: var(--deep); font-weight: 600; }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; }
.cg-grid figure { position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); }
.cg-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s; }
.cg-grid figure:hover img { transform: scale(1.06); }
.cg-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(11,30,51,.82)); }
.pager { display: flex; justify-content: space-between; margin-top: 60px; gap: 16px; }
.pager a { flex: 1; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 22px; color: var(--deep); font-family: var(--serif); letter-spacing: .12em; }
.pager a span { display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: .3em; margin-bottom: 4px; }
.pager a.next { text-align: right; }

/* 配角 */
.supports { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.support { display: flex; gap: 14px; align-items: center; background: #fff; padding: 16px 18px; border-radius: var(--r); box-shadow: var(--shadow); }
.support img { width: 62px; height: 88px; object-fit: contain; }
.support b { font-family: var(--serif); color: var(--deep); display: block; margin-bottom: 4px; }
.support p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------------- VN 对话框 ---------------- */
.vn-stage { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #06121f; }
.vn-bg { aspect-ratio: 16/8.2; background-size: cover; background-position: center; position: relative; }
.vn-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(4,14,26,.66)); }
.vn-box {
  position: absolute; left: 4%; right: 4%; bottom: 4%;
  background: rgba(8, 24, 40, .78); border: 1px solid rgba(140, 200, 240, .35);
  border-radius: 10px; padding: 44px 30px 24px; min-height: 132px;
  backdrop-filter: blur(3px);
}
.vn-name {
  position: absolute; top: -16px; left: 18px;
  background: linear-gradient(135deg, var(--sky), var(--sea));
  color: #fff; font-family: var(--serif); letter-spacing: .2em;
  padding: 5px 22px; border-radius: 6px; font-size: 15px; box-shadow: 0 4px 14px rgba(0,20,40,.4);
}
.vn-name::before { content: '◆ '; font-size: 10px; vertical-align: 2px; }
.vn-text { color: #f2f8fd; font-family: var(--kai); font-size: clamp(15px, 2vw, 18.5px); line-height: 2; min-height: 3.4em; }
.vn-text .cursor { display: inline-block; width: 8px; height: 1.1em; background: #bfe3ff; vertical-align: -3px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vn-ctrl { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.vn-ctrl button {
  padding: 10px 26px; border-radius: 999px; border: 1px solid var(--sky-2);
  background: #fff; color: var(--deep); font-size: 14px; letter-spacing: .16em; cursor: pointer;
  transition: all .25s; font-family: var(--sans);
}
.vn-ctrl button:hover { background: var(--sky-2); }
.vn-ctrl button.primary { background: var(--sea); color: #fff; border-color: var(--sea); }
.vn-hint { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 10px; letter-spacing: .12em; }

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; margin: 10px 0; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--sky), var(--sky-2) 70%, transparent); }
.tl-item { position: relative; padding: 0 0 30px 22px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--sky); box-shadow: 0 0 0 4px rgba(109,185,236,.18); }
.tl-item .d { font-family: var(--serif); color: var(--sea); font-size: 17px; letter-spacing: .14em; }
.tl-item .tag { display: inline-block; margin-left: 10px; font-size: 11px; letter-spacing: .18em; color: #fff; background: var(--sky); border-radius: 999px; padding: 2px 12px; vertical-align: 3px; }
.tl-item p { font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; max-width: 720px; }

/* ---------------- 地点 ---------------- */
.spot { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); min-height: 250px; display: flex; align-items: flex-end; background-size: cover; background-position: center; transition: transform .35s; }
.spot:hover { transform: translateY(-5px); }
.spot .cap { position: relative; width: 100%; padding: 60px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(9,24,40,.86)); }
.spot .cap b { font-family: var(--serif); font-size: 18px; letter-spacing: .16em; }
.spot .cap p { font-size: 12.5px; opacity: .92; margin-top: 4px; line-height: 1.7; }

/* ---------------- 图鉴 ---------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.tabs button { padding: 8px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 14px; letter-spacing: .12em; transition: all .25s; }
.tabs button.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative; box-shadow: var(--shadow); }
.masonry img { width: 100%; transition: transform .5s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 10px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(11,30,51,.85)); opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption { opacity: 1; }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 14, 24, .93); display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox .cap { color: #cfe6f7; margin-top: 16px; font-size: 14px; letter-spacing: .1em; }
.lightbox .x { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 34px; cursor: pointer; opacity: .8; }
.lightbox .arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 44px; cursor: pointer; padding: 30px; opacity: .65; user-select: none; }
.lightbox .arrow:hover { opacity: 1; }
.lightbox .prev { left: 8px; } .lightbox .next { right: 8px; }

/* ---------------- 音乐 ---------------- */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: rgba(9, 24, 40, .94); backdrop-filter: blur(12px);
  color: #e8f3fc; display: none; align-items: center; gap: 16px;
  padding: 10px clamp(14px, 3vw, 30px);
  box-shadow: 0 -8px 30px rgba(0,10,25,.35);
}
.player-bar.on { display: flex; }
.player-bar .pp { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sun); color: #3a2500; font-size: 16px; cursor: pointer; flex: none; }
.player-bar .meta { min-width: 150px; }
.player-bar .meta b { display: block; font-size: 14px; }
.player-bar .meta span { font-size: 11.5px; opacity: .7; }
.player-bar .bar { flex: 1; height: 5px; background: rgba(255,255,255,.16); border-radius: 99px; cursor: pointer; position: relative; }
.player-bar .bar i { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--sky), var(--sun)); border-radius: 99px; }
.player-bar .close { background: none; border: 0; color: #9fc3de; font-size: 20px; cursor: pointer; }
.track { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .25s; }
.track:hover { transform: translateX(4px); }
.track .no { font-family: var(--serif); color: var(--sky); font-size: 18px; width: 34px; text-align: center; flex: none; }
.track b { display: block; font-size: 15.5px; color: var(--deep); }
.track .t-sub { display: block; font-size: 12.5px; color: var(--sea); margin-top: 2px; }
.track .t-note { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 3px; line-height: 1.6; }
.track.playing { outline: 2px solid var(--sun); }

/* ---------------- 技术页 ---------------- */
.codeblock { background: #0d2036; color: #c9e4f6; border-radius: 14px; padding: 22px 26px; font-family: Consolas, 'Courier New', monospace; font-size: 13.5px; line-height: 1.9; overflow-x: auto; box-shadow: var(--shadow-lg); }
.codeblock .k { color: #7fd0e8; } .codeblock .s { color: #ffd27f; } .codeblock .c { color: #5b7f9c; }
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.flow .node { background: #fff; border: 1.5px solid var(--sky-2); color: var(--deep); border-radius: 10px; padding: 12px 20px; font-size: 13.5px; text-align: center; box-shadow: var(--shadow); }
.flow .arr { color: var(--sky); font-size: 20px; }
.notice { background: #fff8e8; border: 1px solid #f2dfae; color: #7a5c1e; border-radius: 12px; padding: 16px 22px; font-size: 13.5px; }

/* ---------------- 页脚 ---------------- */
footer { position: relative; margin-top: 40px; background: var(--night); color: #b9d2e6; }
footer .wave { fill: var(--sand); margin-bottom: -2px; }
footer .inner { max-width: 1120px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 32px) 40px; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
footer .fnav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; }
footer .fnav a { color: #b9d2e6; }
footer .tiny { width: 100%; font-size: 12px; opacity: .6; line-height: 1.8; }
footer .brandline { display: flex; align-items: center; gap: 12px; }
footer .brandline img { height: 34px; opacity: .9; }

/* ---------------- 入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
/* 中等宽度(窄窗口/侧栏预览):正文区先切单列,避免右侧栏被挤压得过窄 */
@media (max-width: 1020px) {
  .char-body { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .char-hero .wrap { grid-template-columns: 1fr; }
  .char-hero .sprite { width: min(320px, 76%); margin-top: -10px; }
  .char-hero .info { padding-bottom: 20px; text-align: center; }
  .masonry { columns: 2 220px; }
  .nav .menu { position: fixed; top: 86px; left: 0; right: 0; background: rgba(9,24,40,.97); display: none; flex-direction: column; padding: 12px 20px 18px; }
  .nav .menu.open { display: flex; }
  .nav .burger { display: block; }
}
@media (min-width: 881px) { .nav .menu { display: flex; } }

/* ---------------- 旧版切换（新版展示馆 → 旧版展示页） ---------------- */
.nav a.item.legacy {
  margin-left: 4px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .06);
  letter-spacing: .02em;
  white-space: nowrap;
}
.nav a.item.legacy:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .75);
}
@media (max-width: 880px) {
  .nav a.item.legacy { margin: 6px 0 0; text-align: center; }
}

/* 窄屏导航：品牌不折行、字号略收（8 项菜单在汉堡里） */
.nav .brand b { white-space: nowrap; }
@media (max-width: 880px) {
  .nav .brand { gap: 8px; }
  .nav .brand img { height: 44px; }
  .nav .brand b { font-size: 16px; letter-spacing: .04em; }
}
