/* =========================================================
   GLORY SOUL — landing page
   Design reference: GS网页.ai  (artboard 1920 x 6093 @1x)
   Static edition: no JavaScript, no network requests, no scroll-pinning.
   All sizes are expressed in rem: 1rem = 16px at 1920.
   ========================================================= */

/* 字体走 base64 内联子集：file:// 直开不会触发 CORS，也不依赖任何外部字体服务 */

:root {
  --gold: #bf9965;
  --gold-soft: #b6a281;
  --paper: #ebe2d2;
  --ink: #231916;
  --black: #030202;
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "GodSerif", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  /* 16px at a 1920 viewport, scales down proportionally below that */
  font-size: clamp(10px, 0.83333vw, 16px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

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

a:focus-visible,
button:focus-visible {
  outline: 1px solid rgba(235, 226, 210, 0.9);
  outline-offset: 3px;
}

/* ============ PAGE BACKGROUND ============ */
.page {
  position: relative;
  background-color: var(--black);
  background-image: linear-gradient(180deg,
    #ede4d5 14.8%,
    #e8dacc 17.2%,
    #e4d0bf 19.7%,
    #dfc5b2 22.2%,
    #dabaa5 24.6%,
    #d6af98 27.1%,
    #d1a28a 29.5%,
    #cd9982 32.0%,
    #c38971 34.5%,
    #b87a63 36.9%,
    #ae6c56 39.4%,
    #a35e4a 41.9%,
    #985240 44.3%,
    #8f4839 46.8%,
    #8b4738 49.2%,
    #76362d 51.7%,
    #67312a 54.2%,
    #562b26 56.6%,
    #4b2c26 59.1%,
    #39201d 61.5%,
    #2b1a18 64.0%,
    #1e1311 66.5%,
    #15110f 68.9%,
    #0e0d0c 70.6%,
    #050404 72.2%,
    #030202 74.2%,
    #030202 100%);
  background-size: 100% 100%;  /* 渐变按整页高度铺满，避免窄视口下色标错位 */
  background-repeat: no-repeat;
}

/* 左右两条纹理带：直接采用设计稿的整条色带（内缘为完整花纹收口） */
.page::before,
.page::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  background-repeat: repeat-y;
  background-size: 100% auto;   /* 高度跟随宽度，任何视口都不拉伸 */
  pointer-events: none;
}
.page::before { left: 0; width: 18.05%; background-image: url("assets/band-left.png"); }
.page::after  { right: 0; width: 15.54%; background-image: url("assets/band-right.png"); }

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

.wrap {
  width: min(70.875rem, calc(100% - 4rem));
  margin: 0 auto;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 1.08rem;
  right: 2.15rem;
  z-index: 60;
  display: flex;
  gap: 0.75rem;
}
.nav .pill { transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.4s ease; }
.nav.is-solid .pill {
  box-shadow: 0 0 0 1px rgba(235, 226, 210, 0.18), 0 10px 26px rgba(0, 0, 0, 0.22);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 2.05rem;
  border-radius: 0.5rem;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fbf7ef;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.pill--ghost { background: rgba(58, 42, 30, 0.92); }
.pill--solid { background: rgba(126, 100, 76, 0.82); }
.pill:hover { background: rgba(30, 21, 15, 0.95); }

/* ============ HERO ============ */
.hero {
  height: 56.8rem;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: 50% 0%;
  text-align: center;
}
.hero__inner { padding-top: 19.2rem;  }
.hero__logo { width: 13.25rem; margin: 0 auto; }
.hero__tagline {
  margin: 4.35rem 0 0;
  font-size: 2.65rem;
  line-height: 1;
  letter-spacing: -0.039em;
  color: var(--gold-soft);
}

/* ============ FEATURES ============ */
.features { padding-top: 0.15rem; }
.features__list {
  display: flex;
  flex-wrap: wrap;          /* 放不下就换行，卡片本身尺寸不变 */
  justify-content: center;
  gap: 0.56rem;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
}
.feature {
  position: relative;
  overflow: hidden;
  flex: 1 1 13.72rem;
  max-width: 13.72rem;       /* 最大就是设计尺寸，绝不放大 */
  aspect-ratio: 219 / 120.75;
  padding: 2.55rem 1.2rem 0 1.35rem;
  border-radius: 0.3rem;
  background-color: #efe7dd;
  background-image: url("assets/tile-odd.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--ink);
}
.feature:nth-child(even) { background-image: url("assets/tile-even.png"); }
/* 第 4 张卡片的文案更长，AI 里单独用了小一号的字（12pt） */
.feature:nth-child(4) .feature__txt { font-size: 0.5625rem; }

/* 内缩一圈的细边框（AI 里约 5.5pt 处） */
.feature::after {
  content: "";
  position: absolute;
  inset: 0.26rem;
  border: 0.7px solid rgba(191, 174, 156, 0.42);
  border-radius: 0.18rem;
  pointer-events: none;
}
.feature__no,
.feature__txt { position: relative; display: block; }
.feature__no { font-size: 1.15rem; line-height: 1; }
.feature__txt {
  margin-top: 1.15rem;
  font-size: 0.71rem;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ============ TYPE ============ */
.eyebrow {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--paper);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 19.06rem;
  height: 1px;
  margin-top: 1.06rem;
  background: currentColor;
  opacity: 0.85;
}
.eyebrow--light { color: #fff; }

.h1 {
  margin: 1.1rem 0 0;
  font-weight: 400;
  font-size: 2.645rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: #fff;
}

.h2 {
  margin: 1.72rem 0 0;
  font-weight: 400;
  font-size: 2.79rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--paper);
}

/* ============ STORY ============ */
.story { padding-top: 3.25rem; }

/* full-width CJK quotes inside Latin text need tightening */
.apos { margin-right: -0.74em; }
.times { margin-right: -0.55em; }

/* the embedded serif subset has no outline for 4 — borrow one */
.digit { font-family: Georgia, "Times New Roman", serif; }

.lede {
  display: grid;
  grid-template-columns: 31.5rem 38.7rem;
  column-gap: 1.5rem;
  margin-top: 3.35rem;
  color: #fff;
}
.lede p {
  margin: 0;
  font-size: 1.205rem;
  line-height: 1.2;
}

.intro {
  position: relative;
  margin: 2.6rem 0 0;
}
.intro img {
  width: 100%;
  height: 39.3rem;
  object-fit: cover;
  object-position: 50% 45%;
}
.intro__label {
  position: absolute;
  left: 2.9rem;
  bottom: 1.5rem;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 3.8rem;
  margin-top: 3.4rem;
}
.pillar {
  padding-top: 1.19rem;
  border-top: 1px solid rgba(235, 226, 210, 0.55);
}
.pillar__no {
  display: block;
  font-size: 1.125rem;
  line-height: 1;
}
.pillar__title {
  margin: 1.95rem 0 0;
  font-weight: 400;
  font-size: 1.97rem;
  line-height: 1.15;
}
.pillar p {
  margin: 2.375rem 0 0;
  font-size: 1.125rem;
  line-height: 1.2;
}

/* ============ SERIES ============ */
.series { margin-top: 6.15rem; }

.series__grid {
  display: grid;
  grid-template-columns: 32.7rem 32.94rem;
  column-gap: 5.25rem;
  margin-top: 2.38rem;
}
.series__intro {
  max-width: 23.6rem;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
}
.card {
  position: relative;
  margin: 2.38rem 0 0;
}
.card__media {
  position: relative;
  height: 24.3rem;
  border-radius: 0.2rem;
  overflow: hidden;
  background: #2b1a14;
}
.card__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(26px, 0, 0) scale(1.012);
  transition: opacity 0.6s ease, transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.card__media[data-dir="back"] .card__shot { transform: translate3d(-26px, 0, 0) scale(1.012); }
.card__shot.is-on { opacity: 1; transform: none; }
.card__shot.is-prev { opacity: 0; }
.card__media[data-dir="fwd"] .card__shot.is-prev { transform: translate3d(-22px, 0, 0) scale(1.012); }
.card__media[data-dir="back"] .card__shot.is-prev { transform: translate3d(22px, 0, 0) scale(1.012); }
.card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1.65rem;
  height: 3.63rem;
  padding: 0 1.4rem;
  background: linear-gradient(90deg, #c6b299 0%, #7a6a5c 100%);
  border-radius: 0 0 0.2rem 0.2rem;
}
.card__brand {
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.card__title {
  font-size: 1.75rem;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #fff;
}
.series__body {
  max-width: 33.2rem;
  margin: 3.18rem 0 0;
  font-size: 1.125rem;
  line-height: 1.2;
}

.series__right { padding-top: 6.26rem; }

.tabs {
  display: flex;
  gap: 1.93rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tab {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 8.34rem;
  height: 5.45rem;
  padding: 0 0.85rem;
  border: 1.5px solid rgba(235, 226, 210, 0.55);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}
.tab:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(235, 226, 210, 0.85); }
.tab.is-on {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(235, 226, 210, 0.92);
}
.tab:focus-visible { outline: 1px solid rgba(235, 226, 210, 0.9); outline-offset: 3px; }
.tab__no {
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.tab__label {
  margin-top: 0.3rem;
  font-size: 1.847rem;
  line-height: 1;
}

.replay {
  margin: 3.38rem 0 0;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid rgba(235, 226, 210, 0.3);
  font-weight: 400;
  font-size: 2.79rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}
.replay__desc {
  max-width: 28rem;
  margin: 2.8rem 0 0;
  font-size: 1.125rem;
  line-height: 1.2;
}

/* ============ STANDARD ============ */
.standard { margin-top: 5.93rem; }
.standard__stage {
  position: relative;
  width: min(70.875rem, calc(100% - 4rem));
  margin: 3.4rem auto 0;
}
.standard__poster-link { display: block; }
.standard__poster {
  width: 100%;
  height: 50.1rem;
  object-fit: cover;
}

/* ============ NEWS ============ */
.news { margin-top: 3.42rem; }
.news__item { display: block; }
.news__item img {
  width: 100%;
  height: 50.7rem;
  object-fit: cover;
  margin-top: 2.69rem;
  transition: opacity 0.3s ease;
}
.news__item:hover img { opacity: 0.92; }
.news__title {
  margin: 2.05rem 0 0;
  font-weight: 400;
  font-size: 1.69rem;
  line-height: 1.2;
  letter-spacing: 0;
}

/* ============ FOOTER ============ */
.footer { margin-top: 8.5rem; padding-bottom: 6.2rem; }
.footer__rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(235, 226, 210, 0.16);
}
.footer__logo {
  width: 10.6rem;
  margin: 6.95rem auto 0;
}
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10.47rem;
  height: 4rem;
  margin: 5.5rem auto 0;
  border: 1px solid rgba(235, 226, 210, 0.45);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.footer__cta:hover { background: rgba(235, 226, 210, 0.1); border-color: rgba(235, 226, 210, 0.8); }
.footer__copy {
  margin: 2.3rem 0 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--paper);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .lede { grid-template-columns: 1fr; row-gap: 1.2rem; }
  .series__grid { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .series__right { padding-top: 2rem; }
}

/* 窄屏时只容两列，避免出现 3+1 的孤行；卡片尺寸仍保持设计尺寸 */
@media (max-width: 590px) {
  .features__list { max-width: calc(2 * 13.72rem + 0.56rem + 2rem); margin: 0 auto; }
}

@media (max-width: 900px) {

  .hero { height: 30rem; }
  .hero__inner { padding-top: 9rem; }
  .hero__logo { width: 7rem; }
  .hero__tagline { margin-top: 2.2rem; font-size: 1.7rem; }


  .h1 { font-size: 2rem; }
  .h2, .replay { font-size: 1.9rem; }
  .eyebrow { font-size: 1rem; }
  .eyebrow::after { width: 8rem; }

  .intro img { height: auto; aspect-ratio: 1.8; }
  .pillars { grid-template-columns: 1fr; row-gap: 2rem; }
  .pillar p { margin-top: 1rem; }
  .series__grid { grid-template-columns: 1fr; }
  .series__right { padding-top: 2.5rem; }
  .card__media { height: auto; aspect-ratio: 1.34; }
  .tabs { gap: 0.8rem; }
  .tab { width: 5.5rem; height: 3rem; }
  .tab__label { font-size: 1.2rem; }
  .tab__no { font-size: 0.7rem; }

  .standard__stage { width: calc(100% - 2rem); }
  .standard__poster { height: auto; aspect-ratio: 1.414; }

  .news__item img { height: auto; aspect-ratio: 1.398; }
  .news__title { font-size: 1.3rem; }

  .footer { margin-top: 5rem; }
  .footer__logo { width: 8rem; margin-top: 3rem; }
  .footer__cta { margin-top: 3rem; }
  .footer__copy { font-size: 0.9rem; }
}


/* =========================================================================
   静态版补充说明（相对交互版的差异）
   1) 整页按普通文档流排布：删掉滚动钉住、粒子入场、滚动显现等 JS 效果，
      所以没有任何元素会因「没等到 JS 加 class」而默认隐藏。
   2) Art / Toy / Artist 的切换改用 radio + :checked 兄弟选择器，
      零脚本也能交互，且刷新后浏览器会保留选中态。
   ========================================================================= */

.tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 卡片图与右栏文案：默认全部收起，只显示被选中的那一组 */
.card__shot { opacity: 0; transform: none; transition: none; will-change: auto; }
.replay, .replay__desc, .cap { display: none; }

#s-art:checked    ~ .series__pin .shot-art,
#s-toy:checked    ~ .series__pin .shot-toy,
#s-artist:checked ~ .series__pin .shot-artist { opacity: 1; }

#s-art:checked    ~ .series__pin .replay-art,
#s-toy:checked    ~ .series__pin .replay-toy,
#s-artist:checked ~ .series__pin .replay-artist,
#s-art:checked    ~ .series__pin .desc-art,
#s-toy:checked    ~ .series__pin .desc-toy,
#s-artist:checked ~ .series__pin .desc-artist { display: block; }

#s-art:checked    ~ .series__pin .cap-art,
#s-toy:checked    ~ .series__pin .cap-toy,
#s-artist:checked ~ .series__pin .cap-artist {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

#s-art:checked    ~ .series__pin .tab-art,
#s-toy:checked    ~ .series__pin .tab-toy,
#s-artist:checked ~ .series__pin .tab-artist {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(235, 226, 210, 0.92);
}

.tab { cursor: pointer; }
.tab-input:focus-visible ~ .series__pin .tabs { outline: 1px solid rgba(235,226,210,.9); outline-offset: 6px; }

.news__item { margin: 0; }

/* 窄屏时右上三枚按钮需要收缩，否则会盖住 hero 的 logo */
@media (max-width: 900px) {
  .nav { top: 0.8rem; right: 0.8rem; gap: 0.35rem; }
  .nav .pill { height: 2rem; padding: 0 0.85rem; font-size: 0.7rem; border-radius: 0.35rem; }
}


/* =========================================================================
   中英双语切换（纯 CSS，零 JS）
   - 语言 radio 是 body 直接子元素，用 ~ 选中 nav 与 .page 整页。
   - 只切换 .en/.zh 这两个内层 span 的 display，不与 Art/Toy/Artist
     那组外层 display 规则抢同一个元素，避免选择器优先级互相覆盖。
   ========================================================================= */
.lang-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.zh { display: none; }

#lang-zh:checked ~ .nav .en,
#lang-zh:checked ~ .page .en { display: none; }
#lang-zh:checked ~ .nav .zh,
#lang-zh:checked ~ .page .zh { display: inline; }

/* 右上角语言胶囊 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 0.25rem;
  border: 1px solid rgba(235, 226, 210, 0.45);
  border-radius: 0.5rem;
  background: rgba(58, 42, 30, 0.55);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: 0.35rem;
  color: #fbf7ef;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
#lang-en:checked ~ .nav .lang-opt--en,
#lang-zh:checked ~ .nav .lang-opt--zh {
  background: rgba(235, 226, 210, 0.92);
  color: #231916;
}
.lang-input:focus-visible ~ .nav .lang-switch { outline: 1px solid rgba(235,226,210,.9); outline-offset: 3px; }

/* 中文排版：GodSerif 只覆盖拉丁字符，中文交给系统宋体；
   负字距、行高、小卡的 nowrap 都要按中文重设，否则会挤成一团或溢出 */
/* 关键：GodSerif 是 woff2 子集，它的 cmap 里中文码位指向空白字形，
   浏览器因此不会回退到后面的中文字体，中文会整段消失。
   中文必须完全绕开 GodSerif，直接用系统宋体族。 */
.zh {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", "Microsoft YaHei", serif;
}
#lang-zh:checked ~ .page .hero__tagline .zh { letter-spacing: 0.02em; }
#lang-zh:checked ~ .page .eyebrow .zh { letter-spacing: 0.22em; }
#lang-zh:checked ~ .page .h1 .zh,
#lang-zh:checked ~ .page .h2 .zh,
#lang-zh:checked ~ .page .pillar__title .zh,
#lang-zh:checked ~ .page .replay .zh { letter-spacing: 0; line-height: 1.35; }
#lang-zh:checked ~ .page .lede .zh,
#lang-zh:checked ~ .page .pillar p .zh,
#lang-zh:checked ~ .page .series__intro .zh,
#lang-zh:checked ~ .page .series__body .zh,
#lang-zh:checked ~ .page .replay__desc .zh,
#lang-zh:checked ~ .page .news__title .zh { line-height: 1.85; letter-spacing: 0.01em; }
#lang-zh:checked ~ .page .feature__txt { white-space: normal; line-height: 1.45; }
#lang-zh:checked ~ .page .feature:nth-child(4) .feature__txt { font-size: 0.5rem; }
#lang-zh:checked ~ .page .tab__label .zh { font-size: 1.35rem; }
#lang-zh:checked ~ .page .card__title .zh { font-size: 1.35rem; font-style: normal; }
#lang-zh:checked ~ .page .footer__copy .zh { font-family: var(--sans); letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .lang-switch { height: 2rem; font-size: 0.65rem; border-radius: 0.35rem; }
  .lang-opt { height: 1.6rem; min-width: 2rem; padding: 0 0.35rem; }
}
