/* 站头 / 站尾 / 各页面区块
   每个组件的响应式覆盖紧跟在它自己的定义之后，避免被后加载文件盖掉 */

/* ---------- 站头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(30, 22, 48, .76);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand__mark {
  width: 40px; height: 36px; flex: 0 0 40px;
  object-fit: contain;
  image-rendering: pixelated;
}
.brand__name { display: block; color: var(--text); font-size: 19px; font-weight: 700; line-height: 1.2; }
.brand__en { display: block; color: var(--text-muted); font-family: var(--font-pixel); font-size: 10px; letter-spacing: .08em; }
.brand:hover .brand__name { color: var(--brand-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-body);
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav__link:hover { background: var(--fill); color: var(--text); }
.nav__link[aria-current="page"] { background: rgba(255, 159, 196, .16); color: var(--brand-2); font-weight: 700; }
.header-right { display: flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--fill-2);
  color: var(--text);
  border: 0;
  border-radius: 50%;
  font-size: 18px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .15); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-right .pill { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
    background: var(--bg-2);
    border-radius: 0 0 var(--r-card) var(--r-card);
    box-shadow: var(--sh-lg);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 13px 16px; }
}
@media (max-width: 560px) {
  .header-right .btn { display: none; }
}

/* ---------- 内页页头 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(760px 380px at 86% -34%, rgba(255, 159, 196, .22), transparent 72%),
    radial-gradient(640px 340px at -4% 132%, rgba(185, 166, 255, .20), transparent 72%);
  background-repeat: no-repeat;
}
.page-hero__inner { position: relative; z-index: 1; padding-block: var(--sp-8); }
/* 右上角一撮像素方点，交代「像素游戏」，又不抢标题 */
.page-hero::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 56px;
  width: 160px;
  height: 130px;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--brand), var(--brand)),
    linear-gradient(var(--lav), var(--lav)),
    linear-gradient(var(--butter), var(--butter)),
    linear-gradient(var(--brand-2), var(--brand-2)),
    linear-gradient(var(--lav), var(--lav)),
    linear-gradient(var(--mint), var(--mint));
  background-size: 12px 12px, 8px 8px, 6px 6px, 14px 14px, 6px 6px, 8px 8px;
  background-position: 0 0, 58px 30px, 116px 4px, 96px 74px, 26px 96px, 140px 104px;
  opacity: .42;
  pointer-events: none;
}
@media (max-width: 860px) {
  .page-hero::after { display: none; }
}
.page-hero__inner { position: relative; z-index: 1; padding-block: var(--sp-8); }
.page-hero .breadcrumb { margin-bottom: var(--sp-3); }
.page-hero .label { display: inline-flex; margin-top: var(--sp-3); }
.page-hero h1 { font-size: var(--fs-h1); margin-top: var(--sp-3); }
.page-hero .lead { font-size: var(--fs-body); margin-top: var(--sp-3); }
.page-hero__body { max-width: 620px; }
@media (max-width: 720px) {
  .page-hero__inner { padding-block: var(--sp-6); }
}

/* ---------- 章节标题组 ---------- */
.section-head { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.section-head--center { align-items: center; text-align: center; }
.section-head p { max-width: var(--w-prose); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(880px 520px at 78% 10%, rgba(255, 159, 196, .22), transparent 64%),
    radial-gradient(720px 500px at 4% 92%, rgba(185, 166, 255, .18), transparent 66%),
    linear-gradient(160deg, #261B3D 0%, #1E1630 52%, #2A1F44 100%);
  background-repeat: no-repeat;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: var(--sp-6);
  align-items: end;
  min-height: 560px;
  padding-block: var(--sp-7) 0;
}
.hero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-bottom: var(--sp-7);
}
.hero__logo { width: 72px; height: 66px; image-rendering: pixelated; }
.hero__title {
  font-size: var(--fs-display);
  letter-spacing: .02em;
  background: linear-gradient(180deg, #FFFAFC 26%, #FFC4DB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__en { color: var(--brand); font-family: var(--font-pixel); font-size: 22px; letter-spacing: .16em; }
.hero__figure {
  position: relative;
  align-self: end;
  margin: 0;
  filter: drop-shadow(0 20px 36px rgba(11, 6, 20, .55)) drop-shadow(0 0 70px rgba(255, 159, 196, .18));
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}
.hero__figure img { width: 100%; height: auto; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: var(--fs-xs); color: var(--text-muted); }
.trust__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: 0 0 8px; box-shadow: 0 0 0 4px rgba(166, 231, 201, .16); }

/* 数据条：柔和小块，无分隔线 */
.stats { padding-block: var(--sp-6); }
.stats__inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); }
.stats__item { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--fill); }
.stats__k { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 4px; }
.stats__v { display: block; font-size: var(--fs-h4); color: var(--text); font-weight: 700; }
.stats__v small { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; margin-left: 4px; }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 360px; min-height: 480px; }
  .stats__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: var(--sp-6); }
  .hero__body { padding-bottom: var(--sp-5); }
  .hero__figure { max-width: 400px; justify-self: center; }
  .hero__logo { width: 58px; height: 54px; }
}
@media (max-width: 560px) {
  .hero__body .row > .btn { width: 100%; }
  .stats { padding-block: var(--sp-5); }
  .stats__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item:last-child { grid-column: 1 / -1; }
  .stats__v { font-size: 17px; }
}

/* ---------- 介绍区 ---------- */
.intro-card { display: flex; flex-direction: column; gap: var(--sp-2); min-height: 284px; }
.intro-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 720px) {
  .intro-card { min-height: 0; }
  .intro-card__meta { margin-top: var(--sp-2); }
}

/* ---------- 特色网格 ---------- */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.theme-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, #342753, #2A1F42);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-md);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1), box-shadow .26s ease;
}
.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg), 0 10px 34px rgba(255, 143, 187, .18);
}
.theme-card__media { aspect-ratio: 16 / 10; background: #241A38; overflow: hidden; }
.theme-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
/* 透明底插画：完整显示，不裁头脚 */
.theme-card__media--art { background: radial-gradient(circle at 50% 34%, rgba(255, 159, 196, .20), transparent 70%), #241A38; }
.theme-card__media--art img { object-fit: contain; object-position: center bottom; padding: 8px 8px 0; }
.theme-card__body { display: flex; flex-direction: column; gap: 8px; padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.theme-card__body h3 { font-size: var(--fs-h4); }
.theme-card__body p { font-size: var(--fs-sm); }
@media (max-width: 1024px) { .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .themes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 图文交错（整块大图） ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: var(--sp-6); align-items: center; }
.feature--flip { grid-template-columns: 460px minmax(0, 1fr); }
.feature__text { display: flex; flex-direction: column; gap: var(--sp-2); }
.feature__points { font-size: var(--fs-xs); color: var(--text-muted); }
.feature__media { justify-self: center; max-width: 100%; }
.feature__media img { display: block; max-height: 470px; width: auto; max-width: 100%; }
.feature__media .media__caption { text-align: left; }
@media (max-width: 900px) {
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__media { order: 2; }
}

/* ---------- 图鉴 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.gallery--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--single { display: block; max-width: 960px; margin-inline: auto; }
.gallery--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #241A38;
  box-shadow: var(--sh-md);
  cursor: zoom-in;
  transition: transform .26s cubic-bezier(.2, .8, .3, 1), box-shadow .26s ease;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
/* 插画是透明底立绘，用 contain 完整呈现，避免切头切脚 */
.shot--tall { background: radial-gradient(circle at 50% 38%, rgba(255, 159, 196, .18), transparent 70%), #241A38; }
.shot--tall img { object-fit: contain; object-position: center; }
.shot:hover { transform: translateY(-5px); box-shadow: var(--sh-lg), 0 10px 30px rgba(255, 143, 187, .16); }
.shot:hover img { transform: scale(1.03); }
.shot::after {
  content: attr(data-caption);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(20, 13, 33, .94), transparent);
  color: var(--text);
  font-size: var(--fs-xs);
  text-align: left;
  opacity: 0;
  transition: opacity .2s ease;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot--tall { aspect-ratio: 4 / 5; }
.shot--wide { aspect-ratio: 16 / 9; }
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .gallery, .gallery--trio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .gallery--wide { grid-template-columns: minmax(0, 1fr); }
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(20, 13, 33, .97);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox__img { max-width: min(1100px, 96vw); max-height: 86vh; object-fit: contain; border-radius: var(--r-card); background: var(--bg); }
.lightbox__cap { margin-top: var(--sp-3); color: var(--text-muted); font-size: var(--fs-sm); text-align: center; }
.lightbox__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--fill-2);
  color: var(--text);
  border: 0;
  border-radius: 50%;
  font-size: 20px;
}
.lightbox__close:hover { background: rgba(255, 159, 196, .22); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--fill-2);
  color: var(--text);
  border: 0;
  border-radius: 50%;
  font-size: 20px;
}
.lightbox__nav:hover { background: rgba(255, 159, 196, .22); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- 角色卡 ---------- */
.chars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.char {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(170deg, #362A56, #2A1F42);
  box-shadow: var(--sh-md);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1), box-shadow .26s ease;
}
.char:hover { transform: translateY(-5px); box-shadow: var(--sh-lg), 0 10px 30px rgba(255, 143, 187, .16); }
.char__media { aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 32%, rgba(255, 159, 196, .22), transparent 72%); }
.char__media img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.char__body { padding: var(--sp-3) var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: 6px; }
.char__body h3 { font-size: var(--fs-h4); }
.char__body p { font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .chars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .chars { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 地点条目：软卡片，无分隔线 ---------- */
.places { display: flex; flex-direction: column; gap: var(--sp-2); }
.place { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-sm); background: var(--fill); }
.place .label { display: block; padding: 0; background: none; color: var(--brand); }
.place h3 { font-size: var(--fs-h4); margin: 6px 0 6px; }
.place p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- 平台卡 ---------- */
.platform-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  min-height: 350px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--sh-md);
}
.platform-card--active {
  background: linear-gradient(165deg, #4B3669, #392A57);
  box-shadow: var(--sh-md), 0 0 36px rgba(255, 143, 187, .12);
}
.platform-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.platform-card__icon { width: 36px; height: 36px; flex: 0 0 36px; }
.platform-card__desc { flex: 1 1 auto; }
.platform-card__action { margin-top: auto; }

/* 四列并排：收一档内边距与字号，保证一行放得下、文字不折 */
.platforms .platform-card { padding: var(--sp-4); gap: var(--sp-2); }
.platforms .platform-card h3 { font-size: var(--fs-h4); }
.platforms .platform-card__desc { font-size: var(--fs-xs); line-height: 1.75; }
@media (min-width: 721px) {
  .platforms .platform-card { min-height: 300px; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .platforms .btn { padding: 12px 12px; font-size: var(--fs-xs); }
}
@media (max-width: 720px) {
  .platform-card { min-height: 0; }
  .platform-card__action { margin-top: var(--sp-3); }
}

.sysbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-card);
  background: var(--fill);
  font-size: var(--fs-sm);
}

/* ---------- 底部行动区 ---------- */
.final-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -80px; left: 50%;
  width: min(620px, 90%);
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 159, 196, .20), transparent);
  pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-xs); }
.final-cta__links a { color: var(--text-body); text-decoration: none; }
.final-cta__links a:hover { color: var(--brand-2); }

/* ---------- 页脚 ---------- */
.site-footer { background: linear-gradient(180deg, #211838 0%, #171026 26%); padding-block: var(--sp-7) var(--sp-4); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-6); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-xs); }
.site-footer__col h4 { font-size: var(--fs-sm); }
.site-footer__col a { color: var(--text-muted); text-decoration: none; }
.site-footer__col a:hover { color: var(--brand-2); }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 44px; height: 40px; image-rendering: pixelated; }
.site-footer__divider { height: 1px; background: rgba(255, 255, 255, .07); margin-block: var(--sp-5) var(--sp-3); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .site-footer__bottom { flex-direction: column; }
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  display: none;
  place-items: center;
  background: var(--card-hi);
  color: var(--brand-2);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--sh-md);
  font-size: 18px;
}
.to-top:hover { background: rgba(255, 159, 196, .24); color: var(--text); }
.to-top.is-visible { display: grid; }
