/* =====================================================
   主题变量
===================================================== */

:root {
  color-scheme: light;
  --page-bg: #f6f8fc;
  --bg-base: #f6f8fc;
  --bg-soft: #eef4ff;
  --text-main: #10131a;
  --text-sub: rgba(16, 19, 26, 0.64);
  --text-faint: rgba(16, 19, 26, 0.48);
  --accent: #0a84ff;
  --accent-2: #75c7ff;
  --rose: #ff7fb2;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.76);
  --line: rgba(17, 24, 39, 0.09);
  --shadow-soft: 0 18px 50px rgba(31, 45, 71, 0.12);
  --shadow-card: 0 16px 38px rgba(31, 45, 71, 0.12);
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.16,1,.3,1);
}

html.theme-dark,
body:not(.light) {
  color-scheme: dark;
  --page-bg: #080c14;
  --bg-base: #080c14;
  --bg-soft: #111927;
  --text-main: #f6f8ff;
  --text-sub: rgba(246, 248, 255, 0.70);
  --text-faint: rgba(246, 248, 255, 0.48);
  --accent: #7ab7ff;
  --accent-2: #8ee6ff;
  --rose: #ff9ac6;
  --glass-bg: rgba(18, 25, 38, 0.68);
  --glass-strong: rgba(24, 31, 46, 0.86);
  --glass-border: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.11);
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.32);
}

/* =====================================================
   基础排版
===================================================== */

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-main);
  background-color: var(--page-bg);
  background:
    radial-gradient(900px 520px at 8% 8%, rgba(117, 199, 255, 0.22), transparent 62%),
    radial-gradient(760px 520px at 92% 16%, rgba(255, 127, 178, 0.16), transparent 58%),
    linear-gradient(180deg, var(--bg-base), var(--bg-soft));
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.theme-dark body,
body:not(.light) {
  background-color: var(--page-bg);
}

main,
#app {
  min-height: 100vh;
  background: transparent;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 58%, transparent);
  outline-offset: 4px;
}

h1, h2, h3, p { margin-top: 0; }

img, video { max-width: 100%; }

#app {
  position: relative;
  z-index: 2;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: opacity 300ms var(--spring), transform 300ms var(--spring), filter 300ms var(--spring);
}

#app.page-exit {
  opacity: .62;
  transform: translateY(8px) scale(.985);
  filter: blur(10px);
}

#app.page-enter { animation: pageEnter 420ms var(--spring) both; }

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* =====================================================
   背景
===================================================== */

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blobs::before,
.bg-blobs::after {
  content: "";
  position: absolute;
  width: min(48vw, 620px);
  height: min(48vw, 620px);
  border-radius: 50%;
  opacity: .38;
  filter: blur(90px);
  transform: translateZ(0);
}

.bg-blobs::before {
  left: -10%;
  top: -8%;
  background: radial-gradient(circle, rgba(88, 166, 255, .72), transparent 68%);
  animation: blobDriftA 32s ease-in-out infinite alternate;
}

.bg-blobs::after {
  right: -12%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(255, 128, 180, .52), transparent 68%);
  animation: blobDriftB 36s ease-in-out infinite alternate;
}

@keyframes blobDriftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, 7vh, 0) scale(1.08); }
}

@keyframes blobDriftB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-7vw, -5vh, 0) scale(1.06); }
}

/* =====================================================
   顶部按钮 / 音乐面板
===================================================== */

.topbar {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 80;
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn,
.pill-btn {
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  cursor: pointer;
  transition: transform 240ms var(--spring), box-shadow 240ms var(--spring), background 240ms var(--spring);
}

.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.pill-btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.icon-btn:hover,
.pill-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(31, 45, 71, 0.16);
}

.icon-btn:active,
.pill-btn:active { transform: translateY(0) scale(.97); }

.music-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  animation: panelIn 220ms var(--spring) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.music-panel-title {
  margin-bottom: 12px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
}

.music-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.music-list {
  display: grid;
  gap: 8px;
}

.music-list button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-main);
  background: rgba(255, 255, 255, .46);
  text-align: left;
  cursor: pointer;
}

body:not(.light) .music-list button { background: rgba(255, 255, 255, .06); }

.music-list button.active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.music-hint {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
}

/* =====================================================
   容器
===================================================== */

.container {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1350px);
  margin: clamp(76px, 8vw, 112px) auto 44px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,.70), rgba(255,255,255,.48)),
    var(--glass-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  overflow: hidden;
}

body:not(.light) .container {
  background:
    linear-gradient(135deg, rgba(31, 42, 63, .72), rgba(16, 22, 34, .58)),
    var(--glass-bg);
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 240px at 12% 0%, rgba(255,255,255,.42), transparent 65%),
    linear-gradient(120deg, transparent 34%, rgba(255,255,255,.16), transparent 72%);
  opacity: .65;
  mix-blend-mode: screen;
}

.container > * { position: relative; z-index: 1; }

.fade-in { animation: fadeIn 520ms var(--spring) both; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =====================================================
   首页 Hero / 通用卡片
===================================================== */

.home { text-align: center; }

.site-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-size: 14px;
  font-weight: 700;
}

.site-title,
h1 {
  margin: 0 0 14px;
  color: var(--text-main);
  text-align: center;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.04em;
}

.site-desc,
.page-desc {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--text-sub);
  text-align: center;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.75;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
  text-align: left;
}

.card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 176px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  background: rgba(255,255,255,.58);
  box-shadow: 0 14px 34px rgba(31, 45, 71, .08);
  overflow: hidden;
  isolation: isolate;
  transition: transform 280ms var(--spring), box-shadow 280ms var(--spring), border-color 280ms var(--spring), background 280ms var(--spring);
  -webkit-tap-highlight-color: transparent;
}

body:not(.light) .card { background: rgba(255,255,255,.055); }

.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(450px 180px at 20% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  transition: opacity 280ms var(--spring);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 26px 60px rgba(31, 45, 71, .16);
}

.card:hover::after,
.card:focus-visible::after { opacity: 1; }

.card:active { transform: translateY(-2px) scale(.99); }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  font-size: 25px;
}

.card-title {
  color: var(--text-main);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.card-desc {
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.65;
}

.footer {
  margin-top: 34px;
  color: var(--text-faint);
  text-align: center;
  font-size: 13px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-inline: auto;
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  transition: transform 220ms var(--spring), background 220ms var(--spring);
}

.back-home:hover,
.back-home:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-2px);
}

/* =====================================================
   图片画廊 / Lightbox
===================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(31, 45, 71, .14);
  background: rgba(0, 0, 0, .06);
  transition: transform 280ms var(--spring), box-shadow 280ms var(--spring);
}

.gallery a:hover,
.gallery a:focus-visible {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 24px 54px rgba(31, 45, 71, .18);
}

.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms var(--spring), filter 420ms var(--spring);
}

.gallery a:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  background: rgba(5, 8, 14, .78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: opacity 240ms var(--spring);
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(94vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

.lightbox-close {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.lightbox-close::after {
  content: "关闭";
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.22);
}

/* =====================================================
   视频专区
===================================================== */

.video-page { width: min(100% - 28px, 1280px); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
  align-items: start;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.video-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.54);
  box-shadow: 0 16px 38px rgba(31, 45, 71, .12);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body:not(.light) .video-card { background: rgba(255,255,255,.06); }

.video-frame {
  position: relative;
  width: 100%;
  max-width: min(100%, 520px);
  max-height: min(76vh, 720px);
  margin-inline: auto;
  aspect-ratio: var(--video-ratio, 9 / 16);
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  contain: layout paint;
  isolation: isolate;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transform: none;
}

@supports not (aspect-ratio: 1 / 1) {
  .video-frame::before {
    content: "";
    display: block;
    padding-top: 177.7778%;
  }
}

.lazy-video-frame {
  background:
    radial-gradient(120% 70% at 50% 20%, rgba(255,255,255,.18), transparent 58%),
    linear-gradient(145deg, #111827, #030712);
  border: 1px solid rgba(255,255,255,.12);
}

.lazy-video-frame::after {
  content: "点击播放";
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 50%;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.13);
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 14px;
  font-weight: 800;
}

.video-frame.is-loaded::after {
  display: none;
}

.video-frame.is-loading::after {
  content: "正在准备";
}

.video-frame.is-error::after {
  content: "视频加载失败";
  background: rgba(255, 76, 76, .24);
}

.video-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-meta {
  padding: 12px 4px 2px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.video-page .video-grid,
.video-page .video-card,
.video-page .video-frame,
.video-page .video-meta {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* =====================================================
   小说页
===================================================== */

.novel {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-main);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 2.05;
  letter-spacing: .01em;
}

.novel p {
  margin: 0 0 1.15em;
  text-indent: 2em;
}

.reading-tools {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.reading-tools button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-main);
  background: rgba(255,255,255,.52);
  cursor: pointer;
}

body:not(.light) .reading-tools button { background: rgba(255,255,255,.07); }

.chapter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.chapter-list li {
  content-visibility: auto;
  contain-intrinsic-size: 56px;
}

.chapter-list a {
  display: block;
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text-main);
  background: rgba(255,255,255,.48);
  font-weight: 700;
  transition: transform 220ms var(--spring), border-color 220ms var(--spring), background 220ms var(--spring);
}

body:not(.light) .chapter-list a { background: rgba(255,255,255,.06); }

.chapter-list a:hover,
.chapter-list a:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.nav-chapter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.nav-chapter a {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.46);
  color: var(--accent);
  font-weight: 800;
}

body:not(.light) .nav-chapter a { background: rgba(255,255,255,.06); }

.scene-break {
  width: min(100%, 520px);
  height: 1px;
  margin: 1.6em auto;
  border: 0;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: .22;
}

.branch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.branch-links a {
  text-decoration: none;
}

#app.flip-out-next .container { transform-origin: left center; animation: flipOutNext 220ms var(--spring) both; }
#app.flip-out-prev .container { transform-origin: right center; animation: flipOutPrev 220ms var(--spring) both; }
#app.flip-in-next .container { transform-origin: right center; animation: flipInNext 300ms var(--spring) both; }
#app.flip-in-prev .container { transform-origin: left center; animation: flipInPrev 300ms var(--spring) both; }

@keyframes flipOutNext {
  from { opacity: 1; transform: translateX(0) rotateY(0); }
  to { opacity: 0; transform: translateX(-18px) rotateY(-8deg); }
}

@keyframes flipOutPrev {
  from { opacity: 1; transform: translateX(0) rotateY(0); }
  to { opacity: 0; transform: translateX(18px) rotateY(8deg); }
}

@keyframes flipInNext {
  from { opacity: 0; transform: translateX(18px) rotateY(8deg); }
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

@keyframes flipInPrev {
  from { opacity: 0; transform: translateX(-18px) rotateY(-8deg); }
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

/* =====================================================
   联系页
===================================================== */

.contact-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.50);
}

body:not(.light) .contact-row { background: rgba(255,255,255,.06); }

.contact-label {
  color: var(--text-sub);
  font-weight: 800;
}

.contact-value { color: var(--text-main); line-height: 1.7; }

.support-section {
  margin-top: 34px;
  text-align: center;
}

.support-section h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.support-section p {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.7;
}

.pay-grid {
  width: min(100%, 980px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 360px));
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.pay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.54);
  box-shadow: var(--shadow-card);
  text-align: center;
}

body:not(.light) .pay-card { background: rgba(255,255,255,.06); }

.pay-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 800;
}

.pay-image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
}

.pay-card img {
  width: min(100%, 260px);
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

/* =====================================================
   游戏入口页
===================================================== */

.game-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.game-card {
  min-height: 280px;
  padding: 0;
  overflow: hidden;
}

.game-card-inner {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 32px;
  background:
    radial-gradient(560px 260px at 18% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 66%),
    radial-gradient(440px 220px at 100% 100%, color-mix(in srgb, var(--rose) 18%, transparent), transparent 62%);
}

.game-card .card-icon {
  width: 58px;
  height: 58px;
  font-size: 30px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.game-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-sub);
  background: rgba(255,255,255,.34);
  font-size: 13px;
  font-weight: 700;
}

body:not(.light) .game-tags span { background: rgba(255,255,255,.06); }

.game-action {
  align-self: end;
  justify-self: start;
  padding: 11px 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5ac8fa);
  font-weight: 900;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 28%, transparent);
}

/* =====================================================
   PC 首屏入口
===================================================== */

.pc-entry-splash { display: none; }

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  body.pc-entry-active { overflow: hidden; }

  .pc-entry-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: block;
    background: #07142a;
    opacity: 1;
    transition: opacity 420ms var(--spring), visibility 420ms var(--spring);
  }

  .pc-entry-splash.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .pc-entry-button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: #07142a url("/images/site-entry-pc.png") center center / contain no-repeat;
  }

  .pc-entry-button::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 62%, rgba(2,10,26,.45));
  }

  .pc-entry-hint {
    position: absolute;
    right: 34px;
    bottom: 30px;
    z-index: 1;
    padding: 11px 22px;
    border-radius: 999px;
    color: rgba(255,255,255,.94);
    background: rgba(8,18,42,.44);
    border: 1px solid rgba(255,255,255,.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    letter-spacing: .18em;
    font-size: 15px;
  }
}

/* =====================================================
   动画 / Reveal
===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--spring), transform 560ms var(--spring);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   响应式
===================================================== */

@media (max-width: 780px) {
  .topbar {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    gap: 8px;
  }

  .icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .container {
    width: min(100% - 20px, 720px);
    margin-top: 76px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .card-grid,
  .game-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card { min-height: 152px; padding: 22px; }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .video-card {
    padding: 10px;
  }

  .video-frame {
    max-height: min(76svh, 660px);
    border-radius: 16px;
  }

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

  .pay-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 380px;
  }

  .chapter-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-title,
  h1 { font-size: 32px; }

  .site-desc,
  .page-desc { font-size: 16px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .game-card-inner { padding: 24px; }
}

/* =====================================================
   性能模式 / Reduced Motion
===================================================== */

body.perf-lite .bg-blobs::before,
body.perf-lite .bg-blobs::after {
  opacity: .22;
  filter: blur(60px);
  animation: none;
}

body.perf-lite .container,
body.perf-lite .icon-btn,
body.perf-lite .pill-btn,
body.perf-lite .music-panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .container,
  .icon-btn,
  .pill-btn,
  .music-panel {
    background: var(--glass-strong);
  }
}

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

  .pc-entry-splash { transition: none !important; }

  #app.flip-out-next .container,
  #app.flip-out-prev .container,
  #app.flip-in-next .container,
  #app.flip-in-prev .container {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
