/* 悟空修仙传 · 官方网站
   Concept: dawn to storm (从云海到渡劫). The page opens in the splash art's golden dawn,
   alternates rice paper and night, and ends in the 渡劫 lightning.
   Only the .f-brush and .f-serif rules may use the two web fonts, so that
   tools/sync-landing.js can list the characters each font must hold. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --ink: #1c1915;
  --ink-2: #3a332b;
  --ink-3: #6b5f52;
  --paper: #f3ebdd;
  --paper-2: #ebe0cc;
  --paper-3: #dccbb0;
  --card: rgba(255, 251, 243, 0.74);
  --mist: #dfe9e8;
  --jade-mist: #d5e8e3;
  --gold: #e8b85f;
  --gold-2: #f6d892;
  --gold-ink: #8a5f1f;
  --red: #b8332a;
  --red-2: #8e2219;
  --red-ink: #b8332a;
  --jade: #3f8f86;
  --jade-2: #2c6b64;
  --night: #101828;
  --night-2: #18233a;
  --storm: #7ccbff;
  --on-dark: #f3ebdd;
  --on-dark-2: #c9c1b3;
  --line: rgba(138, 95, 31, 0.28);
  --art-blend: multiply;
  --art-opacity: 0.22;
  --shadow: 0 18px 40px -18px rgba(28, 25, 21, 0.45);
  --f-brush: "WK Brush", "STKaiti", "KaiTi", "Kaiti SC", serif;
  --f-serif: "WK Serif", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --top-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #efe6d6;
    --ink-2: #d3c6b2;
    --ink-3: #a99b87;
    --paper: #17130f;
    --paper-2: #211b15;
    --paper-3: #3a3026;
    --card: rgba(36, 30, 23, 0.8);
    --mist: #121a1c;
    --jade-mist: #0f1e1c;
    --gold-ink: #e2b868;
    --jade-2: #7cc4b9;
    --red-ink: #e0796f;
    --line: rgba(232, 184, 95, 0.22);
    --art-blend: screen;
    --art-opacity: 0.12;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --ink: #efe6d6;
  --ink-2: #d3c6b2;
  --ink-3: #a99b87;
  --paper: #17130f;
  --paper-2: #211b15;
  --paper-3: #3a3026;
  --card: rgba(36, 30, 23, 0.8);
  --mist: #121a1c;
  --jade-mist: #0f1e1c;
  --gold-ink: #e2b868;
  --jade-2: #7cc4b9;
  --red-ink: #e0796f;
  --line: rgba(232, 184, 95, 0.22);
  --art-blend: screen;
  --art-opacity: 0.12;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- Fonts ---------- */
@font-face { font-family: "WK Brush"; src: url("../assets/fonts/brush.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "WK Serif"; src: url("../assets/fonts/serif.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
.f-brush { font-family: var(--f-brush); font-weight: 400; }
.f-serif { font-family: var(--f-serif); font-weight: 600; }
.f-sans { font-family: var(--f-sans); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--f-sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; }
[hidden] { display: none !important; }
dialog:not([open]) { display: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; color: #fff; background: var(--red); text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 6px; font-size: 13px; line-height: 1.5; color: var(--gold-ink); background: rgba(232, 184, 95, 0.12); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; overflow: hidden; border: 0; border-radius: 999px; font: 700 16px/1 var(--f-sans); letter-spacing: 0.12em; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s; }
.btn--play { color: #fff8ec; background: linear-gradient(180deg, #d24a3d 0%, var(--red) 55%, var(--red-2) 100%); box-shadow: inset 0 0 0 1.5px rgba(246, 216, 146, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -10px rgba(142, 34, 25, 0.9); }
.btn--play::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 240, 200, 0.45), transparent); transform: skewX(-20deg); animation: shine 4.5s 1.5s infinite; }
.btn--play:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(246, 216, 146, 0.9), inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 16px 30px -12px rgba(142, 34, 25, 0.95); }
.btn--play.is-soon { color: #f3ebdd; background: linear-gradient(180deg, #6f675d, #57504a); box-shadow: inset 0 0 0 1.5px rgba(243, 235, 221, 0.35); cursor: default; transform: none; }
.btn--play.is-soon::after { display: none; }
.btn--ghost { color: var(--on-dark); background: rgba(16, 24, 40, 0.35); box-shadow: inset 0 0 0 1.5px rgba(243, 235, 221, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(16, 24, 40, 0.55); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 34px; font-size: 17px; }
.btn--xl { min-height: 60px; padding: 0 46px; font-size: 19px; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* ---------- Seals and section heads ---------- */
.seal { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 6px 9px 7px 10px; color: #fff4e0; background: var(--red); font-size: 28px; line-height: 1; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px rgba(255, 236, 210, 0.35), 0 6px 14px -6px rgba(142, 34, 25, 0.7); }
.seal--gold { color: var(--night); background: linear-gradient(160deg, var(--gold-2), var(--gold)); box-shadow: inset 0 0 0 2px rgba(255, 250, 235, 0.45), 0 6px 18px -6px rgba(232, 184, 95, 0.6); }
.sec { position: relative; padding: 88px 0; overflow: hidden; isolation: isolate; }
.sec__head { position: relative; max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec__head .seal { margin-bottom: 14px; }
.sec__head::after { content: ""; display: block; width: 120px; height: 39px; margin: 18px auto 0; background: url("../assets/img/cloud-193.webp") center / contain no-repeat; filter: drop-shadow(0 2px 4px rgba(28, 25, 21, 0.35)); opacity: 0.9; }
.sec__head--left::after { margin-left: 0; }
.sec__kicker { font-size: 14px; letter-spacing: 0.5em; text-indent: 0.5em; color: var(--gold-ink); }
.sec__title { margin: 6px 0 14px; font-size: 32px; font-size: clamp(28px, 8vw, 40px); line-height: 1.25; letter-spacing: 0.06em; word-break: keep-all; text-wrap: balance; color: var(--ink); }
.sec__lead { max-width: 640px; margin: 0 auto; font-size: 15px; text-wrap: pretty; color: var(--ink-2); }
.sec__head--left { text-align: left; margin-left: 0; }
.sec__head--left .sec__kicker { text-indent: 0; }
.sec__head--left .sec__lead { margin-left: 0; }
.sec--night { color: var(--on-dark); background: var(--night); }
.sec--night .sec__title { color: var(--on-dark); }
.sec--night .sec__lead { color: var(--on-dark-2); }
.sec--night .sec__kicker { color: var(--gold); }
@media (min-width: 1024px) {
  .sec { padding: 120px 0; }
  .sec__title { font-size: 58px; }
  .sec__lead { font-size: 17px; }
}

/* ---------- Header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--top-h); color: var(--on-dark); background: linear-gradient(180deg, rgba(16, 24, 40, 0.55), rgba(16, 24, 40, 0)); transition: background-color 0.3s, box-shadow 0.3s; }
.top.is-solid { background: rgba(20, 17, 14, 0.88); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgba(232, 184, 95, 0.35); }
.top__inner { display: flex; align-items: center; height: 100%; }
.top__brand { flex: none; display: block; width: 104px; margin-right: auto; }
.top__brand img { width: 104px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.top__nav { display: flex; align-items: center; }
.top__nav a { position: relative; padding: 8px 12px; font-size: 15px; letter-spacing: 0.14em; text-decoration: none; opacity: 0.92; }
.top__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.top__nav a:hover::after, .top__nav a:focus-visible::after { transform: scaleX(1); }
.top__music { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin: 0 8px 0 6px; padding: 0; border: 0; border-radius: 50%; color: var(--gold-2); background: rgba(243, 235, 221, 0.08); box-shadow: inset 0 0 0 1px rgba(232, 184, 95, 0.5); cursor: pointer; }
.top__music svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top__bars { display: none; align-items: flex-end; height: 16px; }
.top__bars i { display: block; width: 3px; height: 100%; margin: 0 1.5px; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: bars 0.9s ease-in-out infinite; }
.top__bars i:nth-child(2) { animation-delay: -0.3s; }
.top__bars i:nth-child(3) { animation-delay: -0.6s; }
.top__music[aria-pressed="true"] svg { display: none; }
.top__music[aria-pressed="true"] .top__bars { display: flex; }
.top__play { display: none; }
.top__menu { position: relative; display: none; flex: none; width: 44px; height: 44px; margin-left: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.top__menu span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 1px; background: var(--on-dark); transition: transform 0.3s var(--ease), opacity 0.3s; }
.top__menu span:nth-child(1) { top: 15px; }
.top__menu span:nth-child(2) { top: 21px; }
.top__menu span:nth-child(3) { top: 27px; }
.top__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.top__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.top__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@keyframes bars { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@media (min-width: 640px) { .top__play { display: inline-flex; } }
@media (max-width: 1023px) {
  .top__nav { position: absolute; top: var(--top-h); left: 0; right: 0; height: 44px; padding: 0 var(--gutter); overflow-x: auto; white-space: nowrap; background: rgba(20, 17, 14, 0.9); scrollbar-width: none; }
  .top__nav::-webkit-scrollbar { display: none; }
  .top__menu { display: block; }
  .js .top__nav { position: fixed; top: 0; bottom: 0; z-index: -1; height: auto; flex-direction: column; justify-content: center; padding: var(--top-h) var(--gutter) 40px; white-space: normal; background: radial-gradient(ellipse at 50% 30%, rgba(232, 184, 95, 0.14), transparent 60%), rgba(12, 14, 22, 0.97); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
  .js .menu-open .top__nav { opacity: 1; visibility: visible; transition: opacity 0.3s; }
  .js .top__nav a { padding: 10px 24px; font-size: 24px; letter-spacing: 0.4em; text-indent: 0.4em; }
  .js .top__nav a::after { display: none; }
}
body.menu-open, body.frame-open { overflow: hidden; }

/* ---------- Top image (dawn) ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; color: var(--on-dark); background: #2a2131 url("../assets/img/hero-blur-96.webp") center 30% / cover no-repeat; }
.hero__art { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -2; }
.hero__pic { width: 100%; height: 100%; overflow: hidden; }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: drift-zoom 24s var(--ease) both; }
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 24, 40, 0.45) 0%, rgba(16, 24, 40, 0) 20%, rgba(18, 14, 12, 0.2) 34%, rgba(18, 14, 12, 0.62) 56%, rgba(18, 14, 12, 0.86) 78%, rgba(18, 14, 12, 0.94) 100%); }
.hero__motes { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__clouds span { position: absolute; z-index: 0; width: 220px; height: 71px; background: url("../assets/img/cloud-193.webp") center / contain no-repeat; opacity: 0.8; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25)); animation: cloud-drift 38s linear infinite; }
.hero__clouds span:nth-child(1) { top: 13%; left: -30%; }
.hero__clouds span:nth-child(2) { top: 4%; left: -40%; width: 160px; height: 52px; opacity: 0.6; animation-duration: 54s; animation-delay: -20s; }
.hero__inner { position: relative; z-index: 2; padding-top: calc(var(--top-h) + 24px); padding-bottom: 150px; text-align: center; }
.hero__logo { width: 78vw; max-width: 380px; margin: 0 auto; }
.hero__logo img { width: 100%; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)); }
.hero__tagline { margin: 4px 0; font-size: 26px; font-size: clamp(22px, 7vw, 30px); line-height: 1.3; letter-spacing: 0.04em; white-space: nowrap; color: var(--gold-2); text-shadow: 0 2px 0 rgba(90, 50, 10, 0.6), 0 0 24px rgba(232, 184, 95, 0.55); }
.hero__sub { margin: 0 0 22px; font-size: 14px; letter-spacing: 0.1em; color: rgba(243, 235, 221, 0.92); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; }
.hero__cta > * { margin: 6px; }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 18px; list-style: none; }
.hero__facts li { display: flex; flex-direction: column; align-items: center; padding: 0 8px; font-size: 12px; color: var(--on-dark-2); border-left: 1px solid rgba(232, 184, 95, 0.35); }
.hero__facts li:first-child { border-left: 0; }
.hero__facts b { font-size: 15px; letter-spacing: 0.08em; color: var(--on-dark); }
.hero__facts .hero__age { flex-direction: row; }
.hero__age img { width: 24px; margin-right: 5px; }
.hero__age a { text-underline-offset: 3px; }
.hero__scroll { position: absolute; left: 50%; bottom: 110px; z-index: 3; width: 30px; height: 48px; margin-left: -15px; border-radius: 15px; box-shadow: inset 0 0 0 1.5px rgba(243, 235, 221, 0.6); }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: scroll-dot 1.8s infinite; }
.qr { display: none; }
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .ridge--hero { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: 140px; background: var(--paper); -webkit-mask: url("../assets/img/ridge-mist-1500.webp") center bottom / auto 100% repeat-x; mask: url("../assets/img/ridge-mist-1500.webp") center bottom / auto 100% repeat-x; pointer-events: none; }
  @media (min-width: 1024px) { .ridge--hero { height: 200px; } }
}
@keyframes drift-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes cloud-drift { from { transform: translateX(0); } to { transform: translateX(180vw); } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 359px) {
  .hero__facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; row-gap: 8px; }
  .hero__facts li:nth-child(odd) { border-left: 0; }
}
@media (max-height: 760px) and (max-width: 1023px) { .hero__scroll { display: none; } }
@media (min-width: 640px) {
  .hero__tagline { font-size: 36px; }
  .hero__sub { font-size: 16px; }
}
@media (min-width: 1024px) {
  .hero { align-items: center; }
  .hero::before { background: linear-gradient(90deg, rgba(14, 18, 30, 0.82) 0%, rgba(14, 18, 30, 0.55) 38%, rgba(14, 18, 30, 0.15) 70%, rgba(14, 18, 30, 0.35) 100%), linear-gradient(180deg, rgba(14, 18, 30, 0.4), transparent 30%, transparent 70%, rgba(14, 18, 30, 0.6)); }
  .hero__art { top: calc(var(--top-h) + 26px); bottom: auto; left: auto; right: calc((100% - min(100%, var(--wrap))) / 2 + var(--gutter)); z-index: 0; width: auto; height: calc(100vh - 220px); min-height: 480px; max-height: 780px; aspect-ratio: 1520 / 2736; padding: 10px; border-radius: 4px; background: linear-gradient(135deg, var(--gold-2), #b8873a 40%, var(--gold-2) 60%, var(--gold-ink)); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
  .hero__art::before, .hero__art::after { content: ""; position: absolute; left: -18px; right: -18px; height: 16px; border-radius: 8px; background: radial-gradient(circle at 8px 50%, var(--gold-2) 0 5px, transparent 6px), radial-gradient(circle at calc(100% - 8px) 50%, var(--gold-2) 0 5px, transparent 6px), linear-gradient(180deg, #5a3a22, #2b1a10); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
  .hero__art::before { top: -12px; }
  .hero__art::after { bottom: -12px; }
  .hero__pic { border-radius: 2px; box-shadow: 0 0 0 1px rgba(28, 25, 21, 0.6); }
  .hero__inner { padding-top: calc(var(--top-h) + 40px); padding-bottom: 120px; text-align: left; }
  .hero__copy { max-width: 540px; }
  .hero__logo { width: 460px; max-width: 100%; margin: 0; }
  .hero__tagline { font-size: 44px; }
  .hero__sub { font-size: 18px; }
  .hero__cta { justify-content: flex-start; margin-left: -6px; }
  .hero__facts { justify-content: flex-start; }
  .hero__facts li:first-child { padding-left: 0; }
  .hero__clouds span:nth-child(1) { top: 12%; width: 320px; height: 103px; }
  .hero__clouds span:nth-child(2) { width: 220px; height: 71px; }
  .hero__scroll { bottom: 120px; }
  .qr { display: flex; align-items: center; width: max-content; margin-top: 26px; padding: 10px 16px 10px 10px; border-radius: 12px; background: rgba(243, 235, 221, 0.08); box-shadow: inset 0 0 0 1px rgba(232, 184, 95, 0.35); }
  .qr__code { width: 92px; height: 92px; border-radius: 6px; }
  .qr figcaption { margin-left: 14px; font-size: 15px; letter-spacing: 0.12em; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero__art { max-height: 760px; }
  .hero__copy { max-width: 470px; }
  .hero__logo { width: 380px; }
  .hero__tagline { font-size: 38px; }
}

/* ---------- Footer ---------- */
.foot { position: relative; padding: 56px 0 40px; font-size: 13px; line-height: 1.9; color: var(--on-dark-2); background: #14110e; }
.foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.foot__brand { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.foot__brand img { width: 140px; margin-right: 16px; }
.foot__brand p { letter-spacing: 0.2em; color: var(--on-dark); }
.foot__links { display: flex; flex-wrap: wrap; margin-bottom: 14px; list-style: none; }
.foot__links li { margin-right: 18px; }
.foot__links a { color: var(--on-dark); text-decoration: none; }
.foot__links a:hover { color: var(--gold-2); }
.foot__lines { display: flex; flex-wrap: wrap; margin-bottom: 6px; }
.foot__lines:empty { display: none; }
.foot__lines > * { margin-right: 18px; }
.foot__advice { margin-top: 16px; letter-spacing: 0.08em; color: var(--on-dark); }
.foot__records { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(232, 184, 95, 0.2); }
.foot__records:empty { display: none; }
.foot__records > * { margin: 0 9px; }

/* ---------- Play bar (phones and tablets) ---------- */
.playbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; padding: 10px var(--gutter); padding-bottom: calc(10px + env(safe-area-inset-bottom)); color: var(--on-dark); background: rgba(20, 17, 14, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgba(232, 184, 95, 0.4); transition: transform 0.35s var(--ease), visibility 0.35s; }
.js .playbar { transform: translateY(110%); visibility: hidden; }
.js .playbar.is-shown { transform: none; visibility: visible; }
.playbar__info { display: flex; align-items: center; min-width: 0; margin-right: auto; }
.playbar__info img { flex: none; width: 44px; height: 44px; margin-right: 10px; border-radius: 10px; }
.playbar__info span { min-width: 0; }
.playbar__info b { display: block; font-size: 15px; line-height: 1.3; }
.playbar__info small { display: block; overflow: hidden; font-size: 11px; color: var(--on-dark-2); white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 1023px) { .foot { padding-bottom: 116px; padding-bottom: calc(116px + env(safe-area-inset-bottom)); } }
@media (min-width: 1024px) { .playbar { display: none; } }

/* ---------- Dialogs ---------- */
.playframe, .lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; color: var(--on-dark); background: transparent; }
.playframe::backdrop, .lightbox::backdrop { background: rgba(8, 10, 16, 0.88); }
.playframe[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.playframe__bar { display: flex; align-items: center; justify-content: space-between; width: calc(min(100vh - 120px, 960px) * 9 / 16); max-width: 92vw; margin-bottom: 10px; }
.playframe__bar b { font-size: 16px; letter-spacing: 0.2em; }
.playframe__actions { display: flex; align-items: center; }
.playframe__new, .playframe__close { margin-left: 10px; padding: 8px 14px; border: 0; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--on-dark); background: rgba(243, 235, 221, 0.12); cursor: pointer; }
.playframe__new:hover, .playframe__close:hover { background: rgba(243, 235, 221, 0.22); }
.playframe__device { height: calc(100vh - 120px); max-height: 960px; aspect-ratio: 9 / 16; padding: 10px; border-radius: 32px; background: linear-gradient(180deg, #2a2520, #14110e); box-shadow: 0 0 0 1px rgba(232, 184, 95, 0.45), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.playframe__device iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 24px; background: #000; }

/* ---------- Reveal and motion ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .ink-in { -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 70%); mask-image: radial-gradient(circle, #000 50%, transparent 70%); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 0 0; mask-size: 0 0; transition: -webkit-mask-size 1.6s var(--ease), mask-size 1.6s var(--ease); }
.js .ink-in.is-in { -webkit-mask-size: 300% 300%; mask-size: 300% 300%; }
.is-asleep, .is-asleep *, .is-asleep *::before, .is-asleep *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .ink-in { -webkit-mask-image: none; mask-image: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- 壹 主线 ---------- */
.sec--story { padding-top: 64px; background: var(--paper); }
.sec--story::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: url("../assets/img/map-1500.webp") center top / 1500px auto no-repeat; opacity: var(--art-opacity); mix-blend-mode: var(--art-blend); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 90%); }
.ridge-deco { position: absolute; top: 300px; left: 0; right: 0; z-index: -1; height: 300px; background: url("../assets/img/ridge-mist-1500.webp") center bottom / auto 100% repeat-x; opacity: 0.14; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; max-width: 880px; margin: 0 auto 56px; overflow: hidden; list-style: none; border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); }
.stats li { padding: 20px 10px 16px; text-align: center; background: var(--card); }
.stats__n { display: block; font-size: 42px; line-height: 1.1; color: var(--red-ink); }
.stats__l { font-size: 13px; letter-spacing: 0.2em; color: var(--ink-3); }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__ui { display: none; align-items: center; justify-content: center; margin-top: 8px; }
.js .rail__ui { display: flex; }
.rail__bar { position: relative; width: 160px; height: 3px; margin: 0 16px; overflow: hidden; border-radius: 2px; background: var(--line); }
.rail__bar span { display: block; height: 100%; background: var(--gold); transform: scaleX(0.1); transform-origin: left; transition: transform 0.2s; }
.rail__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.rail__btn:disabled { opacity: 0.35; cursor: default; }
.chapter { --world: #3f8f86; position: relative; padding: 26px 20px 20px; border-top: 4px solid var(--world); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.chapter[data-world="魔界"] { --world: #9b2c22; }
.chapter[data-world="妖界"] { --world: #7a5aa6; }
.chapter[data-world="冥界"] { --world: #4a5a70; }
.chapter[data-world="天界"] { --world: #c4932f; }
.chapter__no { font-size: 13px; letter-spacing: 0.3em; color: var(--world); }
.chapter__name { margin: 4px 0 8px; font-size: 30px; line-height: 1.2; }
.chapter__text { margin-bottom: 14px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.chapter__where { font-size: 12px; line-height: 1.8; color: var(--ink-3); }
.chapter__world { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; color: #fff; background: var(--world); }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .chapters.rail__track { grid-auto-columns: 46%; }
}
@media (min-width: 1024px) {
  .stats__n { font-size: 52px; }
  .chapters.rail__track { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; overflow: visible; }
  .js .chapters + .rail__ui { display: none; }
}

/* ---------- 贰 境界之路 ---------- */
.sec--realms { background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 16%, var(--mist) 84%, var(--paper) 100%); }
.sec--realms::before { content: ""; position: absolute; top: 0; right: -12%; z-index: -1; width: 80%; height: 100%; background: url("../assets/img/realm-bg-750.webp") center / cover no-repeat; opacity: 0.5; -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 70%); }
.realms-layout { display: grid; grid-template-areas: "intro" "grid" "panel"; gap: 28px; }
.realms-intro { grid-area: intro; }
.realms-intro .sec__head { margin-bottom: 24px; }
.legend { list-style: none; }
.legend li { display: flex; align-items: center; margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.legend img { flex: none; width: 52px; height: 52px; margin-right: 12px; object-fit: contain; }
.legend b { margin-right: 8px; color: var(--ink); }
.realms { grid-area: grid; list-style: none; }
.realm { --tier: #3a332b; display: flex; align-items: flex-start; margin-bottom: 14px; }
.realm:nth-child(n+6) { --tier: #2c6b64; }
.realm:nth-child(n+11) { --tier: #4b3f7a; }
.realm:nth-child(n+16) { --tier: #a0731f; }
.realm__node { display: flex; flex: none; flex-direction: column; align-items: center; width: 88px; padding: 0; border: 0; background: none; cursor: default; }
.realm__orb { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; color: #fbf4e6; background: radial-gradient(circle at 50% 42%, var(--tier) 0 54%, rgba(0, 0, 0, 0) 72%); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.realm__name { width: 2.2em; font-size: 20px; line-height: 1.05; text-align: center; word-break: break-all; }
.realm__no { margin-top: 6px; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); }
.realm__lv { font-size: 11px; color: var(--ink-3); }
.realm__info { flex: 1; margin-left: 12px; padding: 12px; border-radius: 10px; font-size: 13px; background: var(--card); }
.realm-panel { grid-area: panel; display: none; }
.realm__title { display: flex; flex-wrap: wrap; align-items: baseline; margin-bottom: 10px; }
.realm__title span { margin-right: 12px; font-size: 40px; line-height: 1.1; }
.realm__title small { font-size: 13px; color: var(--ink-3); }
.realm__stages { display: flex; flex-wrap: wrap; margin-bottom: 8px; list-style: none; }
.realm__stages li { margin: 0 6px 6px 0; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--paper-2); }
.realm__unlocks { margin-bottom: 6px; }
.realm__fate { display: flex; align-items: center; font-size: 13px; color: var(--jade-2); }
.realm__fate .ico { margin-right: 6px; }
.js .realms { display: flex; flex-wrap: wrap-reverse; padding: 12px 4px; border-radius: 20px; background: linear-gradient(0deg, rgba(58, 51, 43, 0.06), rgba(232, 184, 95, 0.16)); }
.js .realm { display: block; width: 25%; margin: 0; padding: 8px 4px; }
.js .realm__node { width: 100%; cursor: pointer; }
.js .realm__info { display: none; }
.js .realm-panel { display: block; padding: 22px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.realm-panel.is-fresh { animation: panel-in 0.45s var(--ease); }
.realm__node[aria-pressed="true"] .realm__orb { transform: scale(1.08); box-shadow: 0 0 0 3px var(--gold), 0 0 28px 4px rgba(232, 184, 95, 0.55); }
.js .realm__node:hover .realm__orb { transform: scale(1.05); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) {
  .js .realm { width: 20%; }
  .realm__orb { width: 76px; height: 76px; }
}
@media (min-width: 1024px) {
  .realms-layout { grid-template-columns: 5fr 6fr; grid-template-areas: "intro grid" "panel grid"; align-items: start; column-gap: 48px; }
  .js .realm { width: 25%; padding: 11px 6px; }
  .realm__orb { width: 86px; height: 86px; }
  .realm__name { font-size: 22px; }
}

/* ---------- 叁 玩法 ---------- */
.sec--play { background: var(--paper); }
.sec--play::before { content: ""; position: absolute; top: 0; right: 0; z-index: -1; width: 46%; max-width: 560px; height: 100%; background: url("../assets/img/play-bg-750.webp") right top / contain no-repeat; opacity: 0.5; mix-blend-mode: var(--art-blend); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; }
.feature { position: relative; padding: 18px 14px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(28, 25, 21, 0.5), inset 0 0 0 1px rgba(232, 184, 95, 0.6); }
.feature img { width: 56px; height: 56px; margin-bottom: 8px; object-fit: contain; }
.feature h3 { margin-bottom: 6px; font-size: 18px; }
.feature p { margin-bottom: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.feature .chip { margin: 0; }
.daily { display: grid; gap: 10px; margin-top: 26px; padding: 16px; list-style: none; border-radius: var(--radius); background: rgba(184, 51, 42, 0.07); box-shadow: inset 0 0 0 1px rgba(184, 51, 42, 0.18); }
.daily li { display: flex; align-items: center; font-size: 14px; color: var(--ink-2); }
.daily img { flex: none; width: 40px; height: 40px; margin-right: 10px; object-fit: contain; }
.daily b { margin-right: 8px; color: var(--red-ink); }
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .daily { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .feature { padding: 22px 18px 18px; }
  .feature img { width: 64px; height: 64px; }
}

/* ---------- 肆 道友 ---------- */
.sec--companions { background: var(--paper); }
.sec--companions::before { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: -1; height: 900px; background: url("../assets/img/companions-bg-750.webp") center top / cover no-repeat; opacity: 0.5; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.tags { display: flex; flex-wrap: wrap; margin-bottom: 8px; }
.tags span { margin: 0 8px 6px 0; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: var(--jade-2); box-shadow: inset 0 0 0 1px currentColor; }
.skills { list-style: none; }
.skills li { padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
.skills b { display: block; font-size: 16px; color: var(--red-ink); }
.lead-card { display: grid; align-items: center; gap: 18px; margin-bottom: 30px; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.lead-card__art { position: relative; width: 200px; margin: 0 auto; }
.lead-card__art::before { content: ""; position: absolute; top: 15%; left: 10%; right: 10%; bottom: 5%; border-radius: 50%; background: radial-gradient(circle, rgba(232, 184, 95, 0.55), rgba(232, 184, 95, 0) 70%); }
.lead-card__art img { position: relative; width: 100%; }
.lead-card__name { font-size: 42px; line-height: 1.15; }
.lead-card__line { margin: 4px 0 8px; color: var(--ink-2); }
.tabs__list { display: flex; justify-content: center; margin-bottom: 14px; padding: 8px 6px; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { display: flex; flex: none; flex-direction: column; align-items: center; margin: 0 8px; padding: 4px 0; border: 0; color: var(--ink-2); background: none; cursor: pointer; }
.tabs__tab img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper-3); transition: box-shadow 0.3s, transform 0.3s var(--ease); }
.tabs__tab span { margin-top: 6px; font-size: 15px; }
.tabs__tab[aria-selected="true"] img { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--gold), 0 8px 20px -8px rgba(138, 95, 31, 0.8); }
.tabs__tab[aria-selected="true"] span { color: var(--red-ink); }
.companion { display: grid; align-items: center; gap: 20px; margin-bottom: 18px; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.is-tabbed .companion { margin-bottom: 0; }
.companion__art { position: relative; max-width: 360px; margin: 0 auto; }
.companion__art::before { content: ""; position: absolute; top: 6%; left: 6%; right: 6%; bottom: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(28, 25, 21, 0.16) 0 50%, rgba(28, 25, 21, 0) 70%); }
.companion__art img { position: relative; width: 100%; filter: drop-shadow(0 18px 30px rgba(28, 25, 21, 0.35)); }
.companion__name { margin-bottom: 6px; font-size: 44px; line-height: 1.1; }
.quote { position: relative; margin: 14px 0; padding: 14px 16px 14px 44px; border-radius: 12px; font-size: 15px; line-height: 1.85; color: var(--ink-2); background: rgba(232, 184, 95, 0.1); }
.quote::before { content: "\201C"; position: absolute; top: 4px; left: 12px; font: 700 40px/1 Georgia, serif; color: var(--gold); }
.unlock { display: flex; align-items: center; font-size: 13px; color: var(--ink-3); }
.unlock img { flex: none; width: 32px; height: 32px; margin-right: 8px; }
.companion.is-shown { animation: panel-in 0.45s var(--ease); }
@media (min-width: 768px) {
  .lead-card { grid-template-columns: 220px 1fr; }
  .lead-card__art { width: 220px; }
  .tabs__tab img { width: 80px; height: 80px; }
}
@media (min-width: 1024px) {
  .lead-card { grid-template-columns: 280px 1fr; padding: 28px 40px; }
  .lead-card__art { width: 280px; }
  .companion { grid-template-columns: 5fr 7fr; padding: 32px 40px; }
  .tabs__tab { margin: 0 16px; }
  .tabs__tab img { width: 92px; height: 92px; }
}

/* ---------- 伍 灵宠 ---------- */
.sec--pets { padding-bottom: 170px; background: linear-gradient(180deg, var(--paper) 0%, var(--jade-mist) 22%, var(--jade-mist) 78%, var(--paper) 100%); }
.isle { position: absolute; z-index: -1; opacity: 0.9; pointer-events: none; }
.isle--a { top: 40px; left: -60px; width: 220px; }
.isle--b { right: -80px; bottom: 150px; width: 280px; }
.pets.rail__track { grid-auto-columns: 64%; }
.pet { position: relative; padding: 18px 16px; border-radius: 20px; text-align: center; background: var(--card); box-shadow: var(--shadow); }
.pet__art { position: relative; width: 100%; max-width: 220px; margin: 0 auto 6px; }
.pet__art::before { content: ""; position: absolute; top: 8%; left: 8%; right: 8%; bottom: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(63, 143, 134, 0.35), rgba(63, 143, 134, 0) 70%); }
.pet__art img { position: relative; width: 100%; filter: drop-shadow(0 12px 18px rgba(20, 40, 38, 0.35)); transition: transform 0.5s var(--ease); }
.pet__art img[width="116"] { width: 116px; margin: 36px auto; }
.pet:hover .pet__art img { transform: translateY(-6px) scale(1.03); }
.pet__name { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; }
.pet__bonus { margin-bottom: 4px; font-size: 13px; color: var(--ink-2); }
.pet__bonus b { color: var(--jade-2); }
.pet__unlock { font-size: 12px; color: var(--ink-3); }
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .ridge--night { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0; height: 140px; background: var(--night); -webkit-mask: url("../assets/img/ridge-mist-1500.webp") center bottom / auto 100% repeat-x; mask: url("../assets/img/ridge-mist-1500.webp") center bottom / auto 100% repeat-x; transform: scaleX(-1); pointer-events: none; }
}
@media (min-width: 640px) { .pets.rail__track { grid-auto-columns: 36%; } }
@media (min-width: 1024px) {
  .pets.rail__track { grid-auto-columns: calc((100% - 3 * 14px) / 4); margin: 0; padding: 4px 0 18px; }
  .isle--a { width: 300px; }
  .isle--b { width: 380px; }
}

/* ---------- 陆 试炼塔 ---------- */
.sec--tower { background: radial-gradient(ellipse at 50% 0%, #1d2b48 0%, var(--night) 62%); }
.sec--tower::before { content: ""; position: absolute; top: 0; left: 50%; z-index: -2; width: 750px; max-width: 140%; height: 100%; background: url("../assets/img/tower-bg-750.webp") center top / 100% auto no-repeat; opacity: 0.6; transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.sec--tower::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 0%, rgba(16, 24, 40, 0) 28%, rgba(16, 24, 40, 0) 72%, var(--night) 100%), linear-gradient(180deg, rgba(16, 24, 40, 0.2) 0%, rgba(16, 24, 40, 0) 30%, var(--night) 80%); }
.tower__sky { position: absolute; top: 0; left: 0; right: 0; z-index: -1; height: 60%; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 42%, #fff, transparent), radial-gradient(1.5px 1.5px at 46% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 16%, #fff, transparent), radial-gradient(1px 1px at 88% 44%, #fff, transparent), radial-gradient(1px 1px at 8% 52%, #fff, transparent), radial-gradient(1.2px 1.2px at 54% 56%, #fff, transparent); opacity: 0.55; animation: twinkle 6s ease-in-out infinite alternate; }
.tower-faces { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; list-style: none; }
.tower-faces li { display: flex; flex-direction: column; align-items: center; width: 110px; margin: 0 8px 12px; font-size: 12px; text-align: center; color: var(--on-dark-2); }
.tower-faces img { width: 88px; height: 88px; margin-bottom: 8px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(232, 184, 95, 0.6), 0 0 26px rgba(232, 184, 95, 0.25); }
.tower-faces b { font-size: 15px; color: var(--gold-2); }
.wall { margin: 0 calc(var(--gutter) * -1); }
.wall__row { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; list-style: none; }
.plate { flex: none; margin: 0 6px 8px; padding: 6px 14px; border-radius: 4px; font-size: 14px; letter-spacing: 0.1em; color: #e9d6ad; background: linear-gradient(180deg, rgba(232, 184, 95, 0.16), rgba(232, 184, 95, 0.06)); box-shadow: inset 0 0 0 1px rgba(232, 184, 95, 0.38); }
.plate--famous { font-size: 17px; font-weight: 700; color: var(--gold-2); background: linear-gradient(180deg, rgba(232, 184, 95, 0.32), rgba(184, 135, 58, 0.14)); box-shadow: inset 0 0 0 1px rgba(246, 216, 146, 0.7), 0 0 18px rgba(232, 184, 95, 0.25); }
.wall.is-moving { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wall.is-moving .wall__row { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: wall-left 140s linear infinite; }
.wall.is-moving .wall__row:nth-child(2) { animation-name: wall-right; animation-duration: 160s; }
.wall.is-moving .wall__row:nth-child(3) { animation-duration: 180s; }
.wall.is-moving:hover .wall__row, .wall.is-moving:focus-within .wall__row { animation-play-state: paused; }
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.7; } }
@keyframes wall-left { to { transform: translateX(-50%); } }
@keyframes wall-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (min-width: 1024px) { .tower-faces li { width: 140px; margin: 0 18px 12px; } .tower-faces img { width: 104px; height: 104px; } }

/* ---------- 柒 美术鉴赏 ---------- */
.sec--art { background: linear-gradient(180deg, var(--night) 0%, #241d2c 55%, #3a2a2a 100%); }
.gallery { column-count: 2; column-gap: 12px; }
.shot { position: relative; display: block; margin: 0 0 12px; overflow: hidden; border-radius: 12px; break-inside: avoid; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.7); }
.shot img { width: 100%; transition: transform 0.6s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(180deg, transparent, rgba(10, 8, 12, 0.85)); }
.shot figcaption b { display: block; font-size: 22px; line-height: 1.2; color: var(--on-dark); }
.shot figcaption span { font-size: 12px; letter-spacing: 0.2em; color: var(--gold-2); }
.shot__open { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.shots__title { margin-bottom: 12px; font-size: 18px; letter-spacing: 0.2em; color: var(--gold-2); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; margin-bottom: 28px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; }
.shots li { scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; }
@media (min-width: 1024px) {
  .gallery { column-count: 3; column-gap: 18px; }
  .shot { margin-bottom: 18px; }
  .shots { grid-auto-columns: 18%; }
}

/* ---------- 渡劫 band ---------- */
.storm { position: relative; padding: 110px 0 120px; overflow: hidden; isolation: isolate; text-align: center; color: var(--on-dark); background: #0b1324 url("../assets/img/storm-bg-750.webp") center 30% / cover no-repeat; }
.storm::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 19, 36, 0.8), rgba(11, 19, 36, 0.35) 40%, rgba(11, 19, 36, 0.88)); }
.storm__flash { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: radial-gradient(ellipse at 62% 18%, rgba(170, 220, 255, 0.55), transparent 60%); opacity: 0; pointer-events: none; animation: flash 9s infinite; }
.storm__bolt { position: absolute; top: 0; right: 12%; z-index: -1; width: 90px; height: 55%; fill: rgba(200, 236, 255, 0.92); filter: drop-shadow(0 0 12px var(--storm)) drop-shadow(0 0 30px var(--storm)); opacity: 0; animation: flash 9s infinite; }
.storm__title { margin-bottom: 12px; font-size: 44px; line-height: 1.25; letter-spacing: 0.08em; text-shadow: 0 0 22px rgba(124, 203, 255, 0.6), 0 2px 0 rgba(0, 0, 0, 0.5); }
.storm__text { max-width: 520px; margin: 0 auto 26px; text-wrap: pretty; color: var(--on-dark-2); }
.storm__cta { display: flex; justify-content: center; }
.storm .qr { margin: 26px auto 0; }
@keyframes flash { 0%, 61%, 64.5%, 67.5%, 100% { opacity: 0; } 62.5%, 66% { opacity: 1; } }
@media (min-width: 1024px) {
  .storm { padding: 150px 0 160px; }
  .storm__title { font-size: 72px; }
}

/* ---------- 捌 健康游戏 ---------- */
.sec--care { background: var(--paper); }
.care { display: grid; gap: 18px; }
.care__card { padding: 22px 20px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.care__card h3 { display: flex; align-items: center; margin-bottom: 12px; font-size: 20px; }
.care__card h3 img { width: 40px; margin-right: 10px; }
.care__card ol { padding-left: 1.3em; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.care__card li { margin-bottom: 6px; }
.care__card--advice { background: linear-gradient(180deg, rgba(184, 51, 42, 0.08), rgba(184, 51, 42, 0.02)), var(--card); }
.limits { width: 100%; border-collapse: collapse; font-size: 14px; }
.limits th, .limits td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.limits th { font-weight: 600; color: var(--ink-3); }
.limits b { color: var(--red-ink); }
.care__note { margin-top: 12px; font-size: 12px; line-height: 1.8; color: var(--ink-3); }
.advice { font-size: 17px; line-height: 2.2; letter-spacing: 0.12em; text-align: center; color: var(--ink); }
@media (min-width: 1024px) { .care { grid-template-columns: 1.3fr 1fr 0.9fr; align-items: start; } }

/* ---------- 常见问题 ---------- */
.sec--faq { padding-top: 0; background: var(--paper); }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 18px 44px 18px 0; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; top: 50%; right: 8px; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--red), var(--red)) center / 14px 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 14px no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-bottom: 18px; font-size: 14px; color: var(--ink-2); }

/* ---------- Lightbox ---------- */
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { max-width: 92vw; text-align: center; }
.lightbox img { width: auto; max-width: 92vw; max-height: 80vh; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.lightbox figcaption { margin-top: 12px; font-size: 15px; letter-spacing: 0.2em; color: var(--gold-2); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: fixed; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; color: var(--on-dark); background: rgba(243, 235, 221, 0.12); cursor: pointer; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { top: 50%; left: 14px; margin-top: -24px; }
.lightbox__next { top: 50%; right: 14px; margin-top: -24px; }
.lightbox .ico { width: 22px; height: 22px; }

/* ---------- Dark mode: the ink painting shows its strokes, not its paper ---------- */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec--play::before { filter: invert(1); opacity: 0.2; } }
:root[data-theme="dark"] .sec--play::before { filter: invert(1); opacity: 0.2; }
