@font-face {
  font-family: "Mir Kai";
  src: url("../fonts/SIMKAI.TTF") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #08090d;
  --night: #1c1c20;
  --night-2: #282c2f;
  --paper: #e9e3d7;
  --gold: #d8bd8a;
  --gold-soft: #d8bd8a;
  --red: #8c1812;
  --muted: #cbcbcb;
  --line: rgb(255 255 255 / 20%);
  --header-height: 76px;
  --footer-height: 108px;
  --content-width: 1280px;
  --scene-height: 100vh;
  --footer-shift: 0px;
  --scene-duration: 800ms;
  --footer-duration: 400ms;
  --scene-ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: dark;
  font-family: "Mir Kai", SimKai, KaiTi, "Microsoft YaHei", sans-serif;
}

@supports (height: 100dvh) {
  :root { --scene-height: 100dvh; }
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-padding-top: var(--header-height); }
body { margin: 0; min-width: 320px; color: #fff; background: var(--ink); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: default; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #d8bd8a; outline-offset: 5px; }
.world :focus-visible { outline-color: #8c1812; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 10000; padding: 12px 18px; background: #fff; color: #111; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 公共头部：桌面 76px；移动头部断点独立于业务的 768px。 */
.site-header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 100; background: linear-gradient(180deg, rgb(0 0 0 / 80%) 10%, transparent); transition: transform var(--footer-duration) var(--scene-ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 50%); pointer-events: none; }
.header-inner { position: relative; display: flex; align-items: center; gap: 20px; width: 1560px; max-width: 100%; height: 100%; margin: 0 auto; padding: 0 20px; }
.brand { display: flex; flex: 0 0 103px; align-items: center; width: 103px; height: 70px; }
.brand picture { width: 100%; }
.brand img { width: 103px; max-height: 70px; object-fit: contain; }
.main-nav { display: flex; flex: 1 1 auto; align-items: center; align-self: stretch; min-width: 0; margin-left: 40px; }
.main-nav > a { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: var(--header-height); padding: 0 18px; color: #d8bd8a; font-size: 16px; line-height: normal; white-space: nowrap; transition: color 300ms; }
.main-nav > a::after { content: ""; position: absolute; top: 74px; left: 18px; right: 18px; height: 2px; background: #8c1812; opacity: 0; transition: opacity 300ms; }
.main-nav > a:hover::after, .main-nav > a:focus-visible::after, .main-nav > a.is-active::after, .main-nav > a[aria-current="page"]::after { opacity: 1; }
.main-nav > a:hover { color: #fff; }
.main-nav > a[aria-disabled="true"] { opacity: .5; }
.nav-external::before { content: "↗"; font-family: sans-serif; font-size: 12px; }
.nav-soon { font-family: "Microsoft YaHei", sans-serif; font-size: 9px; opacity: .75; }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-left: auto; }
.header-download { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; color: #d8bd8a; font-size: 16px; white-space: nowrap; }
.header-download:hover { color: #fff; }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; transition: transform 300ms, opacity 300ms; }
.menu-toggle::before { top: 14px; }
.menu-toggle span { top: 20px; }
.menu-toggle::after { top: 26px; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* 无 JS 时保留原生纵向页面；只有 html.js 启用五屏轨道。 */
.fullpage { position: relative; width: 100%; }
.fullpage-track { position: relative; width: 100%; }
.fullpage-section { position: relative; isolation: isolate; width: 100%; height: var(--scene-height); min-height: 540px; overflow: hidden; scroll-margin-top: var(--header-height); }
.section-art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.section-art img { width: 100%; height: 100%; object-fit: cover; }
html.js:has(body.home-page) { height: 100%; overflow: hidden; }
html.js body.home-page { height: var(--scene-height); overflow: hidden; overscroll-behavior-y: none; }
html.js .home-page .fullpage { position: fixed; inset: 0; height: var(--scene-height); overflow: hidden; transform: translate3d(0, 0, 0); transition: transform var(--footer-duration) var(--scene-ease); }
html.js .home-page .fullpage-track { height: 100%; transform: translate3d(0, calc(var(--scene-index, 0) * -100vh), 0); transition: transform var(--scene-duration) var(--scene-ease); will-change: transform; }
@supports (height: 100dvh) {
  html.js .home-page .fullpage-track { transform: translate3d(0, calc(var(--scene-index, 0) * -100dvh), 0); }
}
html.js .home-page .fullpage-section { height: var(--scene-height); min-height: 0; pointer-events: none; }
html.js .home-page .fullpage-section.is-active { pointer-events: auto; }
html.js .home-page .fullpage-section:not(.is-active) * { pointer-events: none !important; }

/* 首屏主视觉本身承载原站画面，不叠加自创大标题和金色卡片。 */
.hero { background: #000; }
.hero > .section-art img { object-position: center; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(0 0 0 / 24%), transparent 22%); }
.hero-brand-lockup { position: absolute; z-index: 2; bottom: 90px; left: 50%; transform: translateX(-50%); text-align: center; }
.hero-brand-lockup > .hero-kicker, .hero-brand-lockup > h1, .hero-brand-lockup > p { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-actions { display: flex; justify-content: center; }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 8px 25px; border: 1px solid rgb(255 255 255 / 55%); background: rgb(0 0 0 / 30%); color: #fff; font-size: 18px; }
.hero-cta:hover { border-color: #fff; background: rgb(0 0 0 / 50%); }
.scroll-hint { position: absolute; z-index: 3; bottom: 30px; left: 50%; display: none; width: 116px; min-height: 44px; padding: 9px 0; border: 0; background: transparent; transform: translateX(-50%); }
.scroll-hint img { width: 116px; height: auto; }
html.js .scroll-hint { display: block; }

/* 职业：1800px 舞台、1.66 张、800px 立绘；相邻卡模拟参考 coverflow。 */
.character { background: #282c2f; }
.character > .section-art img { object-position: center; }
.character-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.character-stage { --character-scale: 1; --character-slide-width: calc(1800px / 1.66); position: absolute; top: 50%; left: 50%; width: 1800px; height: 800px; transform: translate(-50%, -50%) scale(var(--character-scale)); transform-origin: center; }
.character-track { position: relative; display: flex; width: 100%; height: 800px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
.character-slide { position: relative; flex: 0 0 100%; height: 800px; text-align: center; scroll-snap-align: center; }
.character-image { display: block; width: 1085px; height: 800px; margin: 0 auto; pointer-events: none; }
.character-image img { width: 100%; max-width: none; height: 800px; object-fit: contain; }
.character-info { position: absolute; top: 474px; left: 0; right: 0; z-index: 2; }
.character-class-mark { position: absolute; top: 0; left: calc(50% - 16px); width: 32px; height: 12px; background: url("../media/character-class-mark.png") center top / 32px auto no-repeat; font-size: 0; }
.character-info h3 { margin: 0; padding-top: 25px; color: #fff; font-size: 54px; font-weight: 500; line-height: 1; }
.character-info p { margin: 22px 0 0; color: rgb(255 255 255 / 60%); font-size: 14px; font-weight: 500; line-height: 1; }
.character-more { display: inline-flex; align-items: center; height: 34px; margin-top: 28px; padding: 0 35px 0 19px; border: 1px solid #8e8e8e; background: url("../media/character-more.png") right 18px center / 8px auto no-repeat; color: #8e8e8e; font-size: 14px; }
.character-more > span { display: none; }
.character-more:hover { border-color: #fff; color: #fff; }
.character-arrow { position: absolute; top: 50%; z-index: 5; display: none; width: 33px; height: 50px; padding: 0; border: 0; background: transparent; transform: translateY(-50%); }
.character-arrow img { width: 33px; height: 50px; }
.character-prev { left: calc((1800px - min(100vw, 1800px)) / 2 + 220px); }
.character-prev img { transform: rotate(180deg); }
.character-next { right: calc((1800px - min(100vw, 1800px)) / 2 + 200px); }
.character-pagination { position: absolute; bottom: 98px; left: 0; right: 0; z-index: 5; display: none; align-items: center; justify-content: center; }
.character-pagination button { position: relative; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; }
.character-pagination button::before { content: ""; position: absolute; top: 18px; left: 10px; width: 8px; height: 8px; border-radius: 4px; background: #4f4f4f; transition: width 300ms, background 300ms, left 300ms; }
.character-pagination button.is-active::before, .character-pagination button[aria-selected="true"]::before { left: 5px; width: 18px; background: #fff; }
html.js .character-track { display: block; overflow: visible; perspective: 1200px; }
html.js .character-slide { --offset: 0; position: absolute; top: 0; left: 50%; width: var(--character-slide-width); opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(calc(-50% + var(--offset) * (var(--character-slide-width) - 240px)), 0, -750px); transition: transform 500ms, opacity 500ms, visibility 500ms; }
html.js .character-slide.is-prev { --offset: -1; }
html.js .character-slide.is-next { --offset: 1; }
html.js .character-slide.is-prev, html.js .character-slide.is-next { z-index: 1; opacity: .5; visibility: visible; }
html.js .character-slide.is-active { --offset: 0; z-index: 3; opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(-50%, 0, 0); }
html.js .character-slide .character-info { opacity: 0; transform: translateY(20px); transition: opacity 300ms, transform 300ms; }
html.js .character-slide.is-active .character-info { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
html.js .character-arrow, html.js .character-pagination { display: flex; }

/* 游戏地图：逻辑画布 2560×1080；3840×2160 原图按 1920×1080 居中，不拉伸。 */
.world { display: flex; flex-direction: column; align-items: center; padding-top: 100px; background: #fff; color: #000; }
.world-heading { position: relative; z-index: 3; flex: 0 0 auto; width: 100%; margin: 0; padding: 0 24px; text-align: center; transition: opacity 500ms; }
.world-heading > h2 { display: block; margin: 0; background: linear-gradient(90deg, #000 35.96%, #6f1914 56.93%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 48px; font-weight: 500; letter-spacing: -.03em; }
.world-heading-description { display: block; margin-top: 8px; color: #424242; font-size: 22px; font-weight: 700; }
.world-cloud { position: absolute; z-index: 2; top: 0; left: calc(50% - 1280px); width: 2560px; height: 540px; overflow: hidden; pointer-events: none; transition: opacity 500ms; }
.world-cloud picture { position: absolute; top: -100px; width: 2560px; }
.world-cloud img { width: 2560px; max-width: none; height: auto; }
.world-map { position: absolute; top: calc(50% - 490px); left: calc(50% - 1280px); width: 2560px; height: 1080px; transition: opacity 600ms; }
.world-map-image { position: absolute; top: 0; left: 320px; width: 1920px; height: 1080px; pointer-events: none; }
.world-map-image img { width: 1920px; max-width: none; height: 1080px; object-fit: contain; }
.world-pins { position: absolute; inset: 0; }
.world-pin { position: absolute; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; background: transparent; }
.world-pin img { width: 48px; height: 48px; transition: transform 300ms; }
.world-pin span { position: absolute; top: 0; left: 50%; color: #fff; font-size: 16px; line-height: 1.1; white-space: nowrap; text-shadow: 0 1px 4px #000; opacity: 0; transform: translate(-50%, 10px); transition: opacity 300ms, transform 300ms; pointer-events: none; }
.world-pin:hover img, .world-pin:focus-visible img { transform: translateY(10px); }
.world-pin:hover span, .world-pin:focus-visible span { opacity: 1; transform: translate(-50%, -10px); }
.pin-1 { left: 1180px; top: 610px; }
.pin-2 { left: 880px; top: 420px; }
.pin-3 { left: 1090px; top: 290px; }
.pin-4 { left: 1560px; top: 290px; }
.pin-5 { left: 1640px; top: 500px; }
.world::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: max(80px, calc(100% - 1080px)); background: linear-gradient(transparent, rgb(0 0 0 / 50%) 25%, #000 100%); pointer-events: none; }
.region-list { position: absolute; z-index: 6; bottom: clamp(30px, 7vh, 120px); left: 0; display: flex; justify-content: center; column-gap: clamp(28px, 7.4vw, 142px); width: 100%; }
.region-list button { position: relative; min-height: 44px; padding: 4px 5px; border: 0; background: none; color: #fff; font-size: 20px; line-height: 1; font-weight: 400; text-shadow: 1px 1px 3px #000; }
.region-list button::before, .region-list button::after { content: ""; position: absolute; top: calc(50% - 5px); width: 92px; height: 13px; background: url("../media/world-region-decoration.png") left center / 92px auto no-repeat; opacity: .5; pointer-events: none; }
.region-list button::before { right: 100%; transform: rotate(180deg); }
.region-list button::after { left: 100%; }
.region-list button.is-active, .region-list button[aria-selected="true"] { font-weight: 700; }
.region-list button:hover::before, .region-list button:hover::after, .region-list button.is-active::before, .region-list button.is-active::after { opacity: 1; }
.region-detail { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 500ms, visibility 500ms; }
.world.is-detail-open { overflow: hidden; }
.world.is-detail-open .region-detail { opacity: 1; visibility: visible; pointer-events: auto; }
.world.is-detail-open .world-heading, .world.is-detail-open .world-cloud, .world.is-detail-open .world-map { opacity: 0; visibility: hidden; pointer-events: none; }
.region-panel { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 500ms, visibility 500ms; }
.region-panel::before { content: ""; position: absolute; inset: 0; background: var(--region-image) center / cover no-repeat; pointer-events: none; }
.region-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / 65%), transparent 70%); pointer-events: none; }
.world.is-detail-open .region-panel.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
.region-back { position: absolute; z-index: 4; top: 122px; left: 80px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 0; background: rgb(255 255 255 / 75%); color: #000; font-size: 18px; }
.region-back::before { content: ""; width: 38px; height: 22px; background: url("../media/world-close.png") center / 38px 22px no-repeat; }
.region-back > span { display: none; }
.region-copy { position: absolute; z-index: 2; bottom: clamp(180px, 25vh, 280px); left: 50%; width: min(100%, 1440px); padding: 0 120px; color: #fff; text-align: center; text-shadow: 2px 2px 3px rgb(0 0 0 / 80%); transform: translateX(-50%); }
.region-copy > span { font-size: 26px; letter-spacing: .05em; line-height: 1.1; }
.region-copy h3 { margin: 8px 0 20px; font-size: 83px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.region-copy p { margin: 10px 0 0; color: #cbcbcb; font-size: 20px; font-weight: 300; letter-spacing: -.025em; line-height: 1.5; }
.region-mobile-nav { display: none; }

/* 四章叠放淡入淡出，轨道不做横向平移。 */
.chronicle { background: #000; }
.chronicle-slides { position: relative; display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
.chronicle-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; }
.chronicle-slide > .section-art img { object-position: center top; transform-origin: center 20%; }
html.js .chronicle-slide > .section-art img { animation: chronicle-scale-up 90s linear infinite alternate; animation-play-state: paused; }
html.js .chronicle-slide.is-motion-playing > .section-art img { animation-play-state: running; }
@keyframes chronicle-scale-up {
  0%, 100% { transform: scale(1); }
  33%, 66% { transform: scale(1.5); }
}
.chronicle-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(0 0 0 / 75%), transparent 72%); pointer-events: none; }
.chronicle-copy { position: absolute; z-index: 2; bottom: 167px; left: 50%; width: min(100%, 1200px); max-height: calc(100% - var(--header-height) - 195px); padding: 4px 120px; overflow-y: auto; scrollbar-width: thin; color: #fff; text-align: center; text-shadow: 2px 2px 3px rgb(0 0 0 / 80%); transform: translateX(-50%); }
.chronicle-copy > span { display: block; margin-bottom: 8px; font-size: clamp(18px, 2vw, 26px); letter-spacing: .05em; }
.chronicle-copy h2 { margin: 0 0 20px; font-size: clamp(38px, 6vw, 83px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.chronicle-text { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; color: #cbcbcb; font-size: clamp(13px, 1.5vw, 20px); letter-spacing: -.025em; line-height: 1.55; }
.chronicle-text p { margin: 0; }
.chronicle-pagination, .war-pagination { position: absolute; z-index: 5; bottom: 80px; left: 0; right: 0; display: none; align-items: center; justify-content: center; gap: 172px; }
.chronicle-pagination button, .war-pagination button { position: relative; flex-shrink: 0; min-height: 44px; padding: 0 15px; border: 0; background: none; color: #888; font-size: 20px; transition: color 500ms; }
.chronicle-pagination button::before, .chronicle-pagination button::after, .war-pagination button::before, .war-pagination button::after { content: ""; position: absolute; top: 50%; width: 172px; height: 2px; pointer-events: none; }
.chronicle-pagination button::before, .war-pagination button::before { right: 100%; background: linear-gradient(90deg, rgb(255 255 255 / 1%), rgb(255 255 255 / 10%)); }
.chronicle-pagination button::after, .war-pagination button::after { left: 100%; background: linear-gradient(90deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 1%)); }
.chronicle-pagination button > span { position: relative; display: block; }
.chronicle-pagination button > span::before, .chronicle-pagination button > span::after { content: ""; position: absolute; top: calc(50% - 2px); width: 5px; height: 5px; border-radius: 50%; background: #4c4c4c; pointer-events: none; }
.chronicle-pagination button > span::before { left: -15px; }
.chronicle-pagination button > span::after { right: -15px; }
.chronicle-pagination button.is-active, .chronicle-pagination button[aria-selected="true"], .war-pagination button.is-active, .war-pagination button[aria-selected="true"] { color: #fff; }
.chronicle-pagination button.is-active > span::before, .chronicle-pagination button.is-active > span::after { top: calc(50% - 7.5px); width: 100px; height: 15px; border-radius: 0; background: url("../media/chronicle-bullet-decoration.png") right center / 100px 15px no-repeat; }
.chronicle-pagination button.is-active > span::before { left: auto; right: calc(100% - 10px); }
.chronicle-pagination button.is-active > span::after { right: auto; left: calc(100% - 10px); transform: rotate(180deg); }
.chronicle-mobile-arrows { display: none; }
html.js .chronicle-slides { display: block; overflow: hidden; }
html.js .chronicle-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 500ms ease, visibility 500ms; }
html.js .chronicle-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
html.js .chronicle-pagination { display: flex; }
@media (min-width: 769px) and (max-aspect-ratio: 16/9) {
  .chronicle-slide:nth-child(2) > .section-art img { object-fit: contain; object-position: left top; }
}

/* 战争：参考容器 1074px / 两侧各 100px / 三卡；不是固定 320×432。 */
.war { --war-carousel-width: 1074px; --war-card-width: calc((var(--war-carousel-width) - 200px) / 3); --war-card-height: calc(var(--war-card-width) * 1.51818181); background: #15151a; }
.war-bg, .war-dim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.war-bg { background: url("../media/war-bg.jpg") center / cover no-repeat; }
.war-dim { z-index: 1; background: url("../media/war-dim-1.png") center / 100% 100% no-repeat; }
.war-bg picture, .war-dim picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.war-bg:has(picture), .war-dim:has(picture) { background-image: none; }
.war-bg img { width: 100%; height: 100%; object-fit: cover; }
.war-dim img { width: 100%; height: 100%; object-fit: fill; }
.war-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 100px 70px; text-align: center; }
.war-title { flex: 0 0 auto; margin-bottom: 30px; line-height: 1; }
.war-title > span { display: flex; align-items: center; justify-content: center; gap: 20px; color: #fff; font-size: 30px; font-weight: 500; }
.war-title > span::before, .war-title > span::after { content: ""; flex-shrink: 0; width: 171px; height: 14px; background: url("../media/war-title-decoration-left.png") center / contain no-repeat; }
.war-title > span::after { background-image: url("../media/war-title-decoration-right.png"); }
.war-title h2 { margin: 10px 0 0; padding: 0 15px; background: linear-gradient(180deg, #fff 21.35%, #4f4f4f 80.01%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 84px; font-weight: 500; letter-spacing: -.03em; }
.war-subtitle { flex: 0 0 auto; margin: 0 0 50px; color: #aaa; font-size: 16px; letter-spacing: -.025em; }
.war-carousel { position: relative; flex: 0 0 auto; width: var(--war-carousel-width); padding: 0 100px; }
.war-track { position: relative; display: flex; height: var(--war-card-height); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
.war-slide { position: relative; flex: 0 0 var(--war-card-width); width: var(--war-card-width); height: var(--war-card-height); padding: 0; border: 0; background: transparent; text-align: center; scroll-snap-align: center; }
.war-visual { position: relative; display: block; width: 100%; height: 100%; filter: grayscale(1); transition: filter 500ms; }
.war-visual > img:not(.war-play), .war-card-picture, .war-card-picture img { position: absolute; bottom: 0; left: 0; width: 100%; max-width: none; height: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; }
.war-subtitle p { margin: 0; }
.world-heading-description p { margin: 0; }
.war-dim.is-hidden { display: none; }
html.js .war-slide.is-prev, html.js .war-slide.is-next { pointer-events: auto; }
.war-slide.slide4 .war-visual { width: 107.575757%; margin-right: -7.575757%; }
.war-slide.slide5 .war-visual { width: 115.9%; margin-left: -8.2%; }
.war-play { position: absolute; top: calc(50% - 30px); left: calc(50% - 30px); width: 60px; height: 60px; pointer-events: none; }
.war-card-label { position: absolute; bottom: 20px; left: 0; right: 0; padding-top: 40px; background: url("../media/war-visual.png") center top / 80px auto no-repeat; color: #fff; font-size: 22px; text-shadow: 0 3px 6px #000; opacity: 0; transform: translateY(8px); transition: opacity 500ms, transform 500ms; pointer-events: none; }
.war-slide.is-active .war-visual { filter: none; }
.war-slide.is-active .war-card-label { opacity: 1; transform: translateY(0); }
.war-arrow { position: absolute; top: 50%; z-index: 5; display: none; width: 37px; height: 59px; padding: 0; border: 0; background: url("../media/war-navigation.png") center / 37px 59px no-repeat; color: transparent; font-size: 0; transform: translateY(-100%); }
.war-prev { left: 20px; transform: translateY(-100%) rotate(180deg); }
.war-next { right: 20px; }
.war-pagination { position: relative; flex: 0 0 auto; bottom: auto; margin-top: 30px; }
.war-pagination button.is-active::before, .war-pagination button.is-active::after { width: 100px; height: 15px; margin-top: -7.5px; background: url("../media/chronicle-bullet-decoration.png") right center / 100px 15px no-repeat; }
.war-pagination button.is-active::after { transform: rotate(180deg); }
html.js .war-track { display: block; overflow: visible; perspective: 1200px; pointer-events: none; }
html.js .war-slide { --offset: 0; position: absolute; top: 0; left: 50%; z-index: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(calc(-50% + var(--offset) * var(--war-card-width)), 0, -80px) rotateY(calc(var(--offset) * 30deg)); transition: transform 1000ms, opacity 500ms, visibility 500ms; }
html.js .war-slide.is-prev { --offset: -1; }
html.js .war-slide.is-next { --offset: 1; }
html.js .war-slide.is-prev, html.js .war-slide.is-next { z-index: 1; opacity: 1; visibility: visible; }
html.js .war-slide.is-active { --offset: 0; z-index: 3; opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(-50%, 0, 0); }
html.js .war-arrow { display: block; }
html.js .war-pagination { display: flex; }

/* 章节导航：桌面左侧纵向；业务移动断点 768px。 */
.chapter-nav { --chapter-color: #d9d9d9; position: fixed; top: 50%; left: 60px; z-index: 30; display: none; flex-direction: column; gap: 12px; transform: translateY(-50%); transition: transform var(--footer-duration) var(--scene-ease), opacity 300ms; }
.chapter-nav::before, .chapter-nav::after { content: ""; position: absolute; left: 9px; width: 2px; height: 148px; pointer-events: none; }
.chapter-nav::before { top: -148px; background: linear-gradient(to top, var(--chapter-color), transparent); }
.chapter-nav::after { bottom: -148px; background: linear-gradient(to bottom, var(--chapter-color), transparent); }
.chapter-nav button { position: relative; height: 44px; padding: 0 0 0 28px; border: 0; background: transparent; color: var(--chapter-color); font-size: 16px; line-height: 24px; text-align: left; }
.chapter-nav button::before { content: ""; position: absolute; top: 33px; left: 9px; width: 2px; height: 32px; background: var(--chapter-color); pointer-events: none; }
.chapter-nav button:last-child::before { display: none; }
.chapter-nav button::after { content: ""; position: absolute; top: 18px; left: 6px; width: 9px; height: 9px; background: var(--chapter-color); transform: rotate(45deg); pointer-events: none; }
.chapter-nav button.is-active { color: #fff; font-weight: 700; }
.chapter-nav button.is-active::after { top: 12px; left: 0; width: 20px; height: 20px; border: 1px solid currentColor; background: transparent; box-shadow: inset 0 0 0 4px rgb(255 255 255 / 15%); }
html.js .chapter-nav { display: flex; }
.chapter-nav.theme-black, body.is-world .chapter-nav, body:has(#world.is-active:not(.is-detail-open)) .chapter-nav { --chapter-color: #000; }
.chapter-nav.theme-black button.is-active, body.is-world:not(.is-world-detail) .chapter-nav button.is-active, body:has(#world.is-active:not(.is-detail-open)) .chapter-nav button.is-active { color: #000; }
body.is-world-detail .chapter-nav { --chapter-color: #d9d9d9; }
body.is-world-detail .chapter-nav button.is-active { color: #fff; }
html.js body:has(#home.is-active) .chapter-nav { opacity: 0; visibility: hidden; pointer-events: none; }

/* 页脚是五屏外的自然高度抽屉；只由 main 承担一次上提。 */
.site-footer { position: relative; z-index: 40; min-height: 108px; padding: 21px 17px; background: #1c1c20; color: #aaa; font-family: "Microsoft YaHei", sans-serif; font-size: 12px; line-height: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100%, var(--content-width)); min-height: 66px; margin: 0 auto; }
.footer-inner > div { min-width: 0; overflow-wrap: anywhere; }
.footer-inner strong { color: #cbcbcb; font-weight: 400; }
.footer-toggle { position: fixed; z-index: 110; right: 40px; bottom: 20px; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 12%); color: rgb(255 255 255 / 80%); font-family: sans-serif; font-size: 28px; line-height: 1; transition: transform var(--footer-duration) var(--scene-ease), color 300ms; }
.footer-toggle > span { display: block; transition: transform 300ms; }
.footer-toggle:hover { color: #fff; }
html.js .home-page > .site-footer { position: fixed; bottom: 0; left: 0; width: 100%; max-height: calc(var(--scene-height) - var(--header-height) - 44px); overflow-y: auto; opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0, 100%, 0); transition: transform var(--footer-duration) var(--scene-ease), opacity var(--footer-duration), visibility var(--footer-duration); }
html.js .home-page .footer-toggle { display: none; opacity: 0; visibility: hidden; pointer-events: none; }
html.js .home-page.is-last-scene .footer-toggle { display: flex; opacity: 1; visibility: visible; pointer-events: auto; }
html.js .home-page.is-footer-open { --footer-shift: var(--footer-height); }
html.js .home-page.is-footer-open .fullpage, html.js .home-page.is-footer-open > .site-header { transform: translate3d(0, calc(-1 * var(--footer-height)), 0); }
html.js .home-page.is-footer-open .chapter-nav { transform: translateY(calc(-50% - var(--footer-height))); }
html.js .home-page.is-footer-open > .site-footer { opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(0, 0, 0); }
html.js .home-page.is-footer-open .footer-toggle { transform: translateY(calc(-1 * var(--footer-height))); }
html.js .home-page.is-footer-open .footer-toggle > span { transform: rotate(180deg); }
html.js .home-page:not(.is-footer-open) > .site-footer { pointer-events: none; }
html.js .home-page:not(.is-footer-open) .footer-toggle { opacity: 0; visibility: hidden; pointer-events: none; }
html.js .home-page.is-last-scene .footer-toggle,
html.js body.is-last-scene .footer-toggle { opacity: 1; visibility: visible; pointer-events: auto; }

/* 视频：hidden 永远优先；JS 同时维护 hidden、is-open 和 aria-hidden。 */
.video-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 70px 20px 40px; background: rgb(0 0 0 / 90%); opacity: 0; visibility: hidden; pointer-events: none; }
.video-modal.is-open:not([hidden]) { display: flex; opacity: 1; visibility: visible; pointer-events: auto; }
.video-dialog { position: relative; width: min(100%, 1200px, calc((var(--scene-height) - 150px) * 16 / 9)); }
.video-dialog video { width: 100%; max-height: calc(var(--scene-height) - 150px); aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.video-close { position: absolute; z-index: 1; top: -50px; right: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; color: #fff; font-family: sans-serif; font-size: 30px; line-height: 1; }
.video-close:hover { background: rgb(255 255 255 / 10%); }
.video-note { margin: 10px 0 0; color: #cbcbcb; font-family: "Microsoft YaHei", sans-serif; font-size: 12px; line-height: 1.6; text-align: center; }
body.is-video-open { overflow: hidden; }

/* 子页正文由 pages.css 接管，仅保留公共排版基础。 */
body.subpage, body.article-view { min-height: 100vh; background: var(--paper); color: #171a20; }
body.subpage > main, body.article-view > main { min-height: calc(100vh - 108px); }
.section-inner, .content-width { position: relative; width: min(calc(100% - 48px), var(--content-width)); margin: 0 auto; }
.eyebrow { color: var(--red); font-size: 14px; letter-spacing: .12em; }
.display-title { margin: 18px 0 14px; font-size: clamp(38px, 5vw, 72px); font-weight: 500; line-height: 1.2; }
.section-copy { max-width: 700px; font-size: 16px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; border-bottom: 1px solid currentColor; color: var(--red); font-size: 14px; }

@media (min-width: 751px) and (max-width: 1080px) {
  .header-inner { gap: 10px; }
  .main-nav { margin-left: 10px; }
  .main-nav > a { padding: 0 12px; font-size: 14px; }
  .main-nav > a::after { left: 12px; right: 12px; }
}
@media (min-width: 769px) and (max-height: 959px) {
  .character-stage { --character-scale: .75; }
}
@media (min-width: 769px) and (max-height: 729px) {
  .character-stage { --character-scale: .5; }
}
@media (min-width: 769px) and (max-height: 860px) {
  .war { --war-carousel-width: 800px; }
  .war-title h2 { font-size: 64px; }
  .war-content { padding-top: 90px; padding-bottom: 60px; }
}
@media (min-width: 769px) and (max-height: 650px) {
  .war-title { margin-bottom: 14px; }
  .war-title > span { font-size: 24px; }
  .war-title h2 { font-size: 48px; }
  .war-subtitle { margin-bottom: 20px; }
  .war-pagination { margin-top: 12px; }
  .war-content { padding-top: 82px; padding-bottom: 20px; }
  .chronicle-copy { bottom: 100px; max-height: calc(100% - var(--header-height) - 120px); }
  .chronicle-copy h2 { font-size: 50px; }
  .chronicle-pagination { bottom: 35px; }
  .world-heading > h2 { font-size: 36px; }
  .world-heading-description { font-size: 18px; }
  .region-copy { bottom: 110px; }
  .region-copy h3 { font-size: 60px; }
  .region-copy p { font-size: 16px; }
}
@media (min-width: 769px) and (max-width: 1366px) {
  .chapter-nav { left: 30px; gap: 4px; }
  .chapter-nav button { font-size: 14px; }
  .chapter-nav button::before { height: 24px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .war { --war-carousel-width: 800px; }
  .war-title h2 { font-size: 60px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .chapter-nav { left: 20px; gap: 0; }
  .chapter-nav button { font-size: 13px; }
  .chapter-nav button::before { height: 20px; }
  .chronicle-copy { bottom: 120px; width: min(100%, 900px); padding: 4px 100px; }
  .chronicle-copy > span { font-size: 22px; }
  .chronicle-copy h2 { font-size: 60px; }
  .chronicle-text { max-width: 700px; font-size: 16px; }
  .chronicle-pagination { bottom: 60px; gap: 100px; }
  .chronicle-pagination button { font-size: 18px; }
  .chronicle-pagination button::before, .chronicle-pagination button::after { width: 100px; }
  .world-heading > h2 { font-size: 40px; }
  .world-heading-description { font-size: 18px; }
  .region-copy { padding: 0 90px; }
  .region-copy p { font-size: 17px; }
}

@media (max-width: 768px) {
  .fullpage-section { min-height: 540px; }
  .hero > .section-art img { position: absolute; top: 50%; left: 0; width: 100%; max-width: none; height: auto; object-fit: contain; transform: translateY(-50%); }
  .hero-brand-lockup { bottom: 90px; }
  .hero-cta { font-size: 16px; }
  .character > .section-art img { object-fit: cover; object-position: center; }
  .character-stage { --character-slide-width: 100vw; top: 50%; width: 100%; height: 475px; transform: translate(-50%, -50%); }
  .character-track, .character-slide { height: 475px; }
  .character-image { position: relative; left: -20px; display: flex; justify-content: center; width: 100%; max-width: none; height: 368px; margin: 0 auto; }
  .character-image img { flex: 0 0 auto; width: auto; max-width: none; height: 368px; object-fit: contain; }
  .character-slide:nth-child(2) .character-image { left: -27px; }
  .character-info { top: auto; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 86px 0 77px; background: linear-gradient(180deg, rgb(18 18 18 / 0%), rgb(37 29 23 / 85%) 41%, #24211f); }
  .character-class-mark { top: 86px; }
  .character-info h3 { padding-top: 24px; font-size: 40px; }
  .character-info p { margin-top: 10px; }
  .character-more { margin-top: 20px; }
  .character-arrow { top: 110px; width: 44px; height: 44px; transform: none; }
  .character-arrow img { width: 22px; height: 33px; margin: auto; }
  .character-prev { left: 5px; }
  .character-next { right: 5px; }
  .character-pagination { bottom: 11px; }
  .character-pagination button { width: 22px; }
  .character-pagination button::before { top: 20px; left: 9px; width: 4px; height: 4px; border-radius: 2px; }
  .character-pagination button.is-active::before, .character-pagination button[aria-selected="true"]::before { left: 6.5px; width: 9px; }
  html.js .character-track { perspective: none; }
  html.js .character-slide { transform: translate3d(calc(-50% + var(--offset) * 100vw), 0, 0); }
  html.js .character-slide.is-prev, html.js .character-slide.is-next { opacity: 1; }
  html.js .character-slide.is-active { transform: translate3d(-50%, 0, 0); }

  .world { align-items: flex-start; padding-top: 112px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .world-heading { position: sticky; left: 0; width: 100vw; padding: 0 15px; }
  .world-heading > h2 { font-size: 24px; }
  .world-heading-description { font-size: 14px; line-height: 1.5; }
  .world-map { top: calc(50% - 490px); left: 0; }
  .world-cloud { left: 0; }
  .world::after { display: none; }
  .world-pin span { opacity: 1; transform: translate(-50%, -10px); }
  .region-list { position: sticky; flex: 0 0 auto; left: 0; bottom: auto; flex-wrap: wrap; align-content: center; gap: 0 8px; width: 100vw; margin-top: auto; margin-bottom: 30px; padding: 0 16px; }
  .region-list button { padding: 4px 22px; font-size: 12px; }
  .region-list button::before, .region-list button::after { width: 46px; background-size: 92px auto; background-position: right center; }
  .region-list button::before { right: calc(100% - 20px); }
  .region-list button::after { left: calc(100% - 20px); }
  .world.is-detail-open { overflow: hidden; }
  .world.is-detail-open .region-list { z-index: 7; }
  .region-back { top: 100px; left: 20px; padding: 8px 10px 8px 0; font-size: 14px; }
  .region-copy { bottom: 130px; width: 100%; max-height: calc(100% - 285px); padding: 0 20px; overflow-y: auto; scrollbar-width: thin; }
  .region-copy > span { font-size: 18px; }
  .region-copy h3 { margin-bottom: 16px; font-size: 51px; }
  .region-copy p { font-size: 13px; }
  .region-mobile-nav { position: absolute; z-index: 3; top: 50%; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
  .region-mobile-nav button { width: 44px; height: 44px; padding: 0; border: 0; background: rgb(0 0 0 / 25%); color: #fff; font-size: 25px; pointer-events: none; }
  .world.is-detail-open .region-mobile-nav button { pointer-events: auto; }

  .chronicle-slide > .section-art img { object-position: center; transform-origin: center 50%; }
  .chronicle-copy { bottom: 80px; width: 100%; max-height: calc(100% - 205px); padding: 4px 40px; }
  .chronicle-copy > span { margin-bottom: 6px; font-size: 18px; }
  .chronicle-copy h2 { margin-bottom: 15px; font-size: 38px; }
  .chronicle-text { gap: 10px; font-size: 13px; line-height: 1.6; }
  .chronicle-pagination { bottom: 16px; gap: 0; }
  .chronicle-pagination button { width: 44px; height: 44px; padding: 0; font-size: 0; }
  .chronicle-pagination button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chronicle-pagination button::before, .chronicle-pagination button::after { display: none; }
  .chronicle-pagination button { background: url("../media/chronicle-bullet.png") center / 17px 17px no-repeat; }
  .chronicle-pagination button.is-active, .chronicle-pagination button[aria-selected="true"] { background-image: url("../media/chronicle-bullet-active.png"); }
  .chronicle-mobile-arrows { position: absolute; z-index: 5; top: 50%; left: 8px; right: 8px; justify-content: space-between; pointer-events: none; }
  .chronicle-mobile-arrows button { width: 44px; height: 44px; padding: 0; border: 0; background: url("../media/chronicle-navigation.png") center / 25px 40px no-repeat; color: transparent; font-size: 0; pointer-events: auto; }
  .chronicle-mobile-arrows button:first-child { transform: rotate(180deg); }
  html.js .chronicle-mobile-arrows { display: flex; }

  .war { --war-carousel-width: min(100vw, 600px); --war-card-width: calc((var(--war-carousel-width) + 100px) / 3); }
  .war-bg { background-image: url("../media/war-bg-mobile.jpg"); background-position: top; }
  .war-dim { background-image: url("../media/war-dim-1-mobile.png"); background-position: top; }
  .war-content { padding: 110px 0 60px; }
  .war-title { margin-bottom: 12px; }
  .war-title > span { gap: 5px; margin-bottom: 17px; font-size: 16px; }
  .war-title > span::before, .war-title > span::after { width: 97px; height: 8px; }
  .war-title h2 { margin-top: 0; padding: 0 10px; font-size: 36px; }
  .war-subtitle { max-width: 100%; margin-bottom: 50px; padding: 0 20px; font-size: 12px; line-height: 15px; }
  .war-carousel { width: var(--war-carousel-width); padding: 0; }
  .war-track { width: calc(100% + 100px); margin: 0 -50px; }
  .war-arrow { top: calc(50% - 45px); width: 44px; height: 44px; background-size: 26px 42px; transform: translateY(-50%); }
  .war-prev { left: 6px; transform: translateY(-50%) rotate(180deg); }
  .war-next { right: 6px; }
  .war-play { top: calc(50% - 20px); left: calc(50% - 20px); width: 40px; height: 40px; }
  .war-card-label { bottom: 12px; padding-top: 24px; background-size: 50px auto; font-size: 12px; }
  .war-pagination { gap: 0; min-height: 44px; margin-top: 40px; }
  .war-pagination button { position: absolute; min-width: 64px; color: transparent; opacity: 0; visibility: hidden; pointer-events: none; }
  .war-pagination button.is-active { position: relative; color: #fff; opacity: 1; visibility: visible; pointer-events: auto; font-size: 16px; }
  .war-pagination button::before, .war-pagination button::after { width: 80px; }

  .chapter-nav { top: 75px; right: 20px; left: auto; flex-direction: row; gap: 10px; padding-left: 20px; transform: none; }
  .chapter-nav::before, .chapter-nav::after { display: none; }
  .chapter-nav button { height: 32px; padding: 0; color: #a3a3a4; font-size: 12px; line-height: 1.1; }
  .chapter-nav button::after { display: none; }
  .chapter-nav button::before { top: auto; right: 0; bottom: 0; left: 0; width: auto; height: 1px; background: currentColor; opacity: 0; }
  .chapter-nav button:last-child::before { display: block; }
  .chapter-nav button.is-active { font-weight: 500; }
  .chapter-nav button.is-active::before { opacity: 1; }
  html.js .home-page.is-footer-open .chapter-nav { transform: translateY(calc(-1 * var(--footer-height))); }
  .footer-toggle { right: 20px; bottom: max(15px, env(safe-area-inset-bottom)); width: 36px; height: 36px; }
  .site-footer { padding: 15px 20px max(15px, env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 78px; }
  .section-inner, .content-width { width: calc(100% - 36px); }
}

@media (max-width: 750px) {
  :root { --header-height: 60px; }
  .site-header { height: 60px; background: #000; }
  .header-inner { gap: 10px; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
  .brand { flex-basis: 70px; width: 70px; height: 48px; }
  .brand img { width: 70px; max-height: 48px; }
  .main-nav { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; max-height: calc(var(--scene-height) - 60px); margin: 0; padding: 12px 20px 20px; overflow-y: auto; background: rgb(0 0 0 / 96%); }
  .main-nav > a { justify-content: flex-start; height: auto; min-height: 48px; padding: 12px 16px; font-size: 16px; }
  .main-nav > a::after { top: auto; bottom: 0; left: 16px; right: 16px; }
  .header-download { min-height: 44px; padding: 0 4px; font-size: 13px; }
  html.js .menu-toggle { display: block; }
  html.js .main-nav { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity 250ms, transform 250ms, visibility 250ms; }
  html.js .main-nav.is-open, html.js body.is-menu-open .main-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; min-height: 60px; }
  html:not(.js) .main-nav { position: static; order: 3; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; max-height: none; padding: 0; background: transparent; }
  html:not(.js) .main-nav > a { padding: 10px; font-size: 14px; }
}

@media (max-width: 500px) {
  .world-heading { max-width: 100vw; }
  .world-heading > h2 { max-width: 340px; margin: 0 auto; }
  .world-heading-description { max-width: 340px; margin-left: auto; margin-right: auto; }
  .war-title h2 { font-size: clamp(27px, 7.2vw, 36px); }
}
@media (max-width: 768px) and (max-height: 650px) {
  .character-stage { top: calc(50% + 34px); }
  .world { padding-top: 110px; }
  .world-heading > h2 { font-size: 22px; }
  .world-heading-description { font-size: 12px; }
  .chronicle-copy { bottom: 68px; max-height: calc(100% - 178px); padding-left: 38px; padding-right: 38px; }
  .chronicle-copy h2 { margin-bottom: 12px; font-size: 32px; }
  .chronicle-text { font-size: 12px; }
  .war-content { padding-top: 110px; padding-bottom: 36px; }
  .war-subtitle { margin-bottom: 26px; }
  .war-pagination { margin-top: 24px; }
}

/* 无脚本：各屏纵向可达，各内容轮播保留原生横向滚动。 */
html:not(.js) .character-stage { position: relative; top: auto; left: auto; width: 100%; max-width: 1800px; height: 800px; margin: 0 auto; transform: none; }
html:not(.js) .character { height: auto; min-height: var(--scene-height); padding-top: var(--header-height); }
html:not(.js) .character-track { width: 100%; }
html:not(.js) .character-slide { min-width: 100%; }
html:not(.js) .world-pins, html:not(.js) .region-list { display: none; }
html:not(.js) .war-slide .war-visual { filter: none; }
html:not(.js) .war-card-label { opacity: 1; transform: none; }
html:not(.js) .war { height: auto; min-height: var(--scene-height); }
html:not(.js) .war-content { min-height: var(--scene-height); }
html:not(.js) .war-carousel { max-width: 100%; }
@media (max-width: 768px) {
  html:not(.js) .character-stage { height: 475px; margin-top: 40px; }
  html:not(.js) .character { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* 原站还原契约：下载图、首屏语义层、章节状态和页脚抽屉由模板/JS提供。 */
.header-download {
  flex: 0 0 180px;
  width: 180px;
  height: var(--header-height);
  min-height: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}
.header-download picture,
.header-download img {
  display: block;
  width: 180px;
  height: 76px;
  max-width: none;
  object-fit: contain;
}
.header-download:hover { color: transparent; }

/* 游戏中心无链接时仍保持原站导航色与字号；data-inert-link由JS阻止跳转。 */
.main-nav > a[aria-disabled="true"],
.main-nav > a[data-inert-link] {
  opacity: 1;
  color: #d8bd8a;
  pointer-events: auto;
}
.main-nav > a[aria-disabled="true"]:hover,
.main-nav > a[data-inert-link]:hover { color: #fff; }
.nav-soon { opacity: 1; font-size: inherit; }

/* 原站首屏的品牌字样在主视觉素材中；这里只保留可访问的h1，不绘制CTA卡片。 */
.hero-brand-lockup {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hero-brand-lockup > h1 {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.hero-brand-lockup > :not(h1),
.hero-actions,
.hero-cta { display: none !important; }

/* 职业页原站没有底部三点分页，详情入口由data-character-detail承载。 */
.character-pagination { display: none !important; }
.character-more[data-character-detail] { display: inline-flex; }

/* 世界观原站层级：底图/地图、标题图和地图点脉冲分层，不改变现有主class。 */
.world-underlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.world-underlay picture,
.world-underlay img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.world-title-art {
  position: relative;
  z-index: 3;
  display: block;
  width: auto;
  max-width: min(80vw, 720px);
  max-height: 110px;
  margin: 0 auto;
  object-fit: contain;
}
.world-point-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: world-point-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes world-point-pulse {
  0% { opacity: .95; box-shadow: 0 0 0 0 rgb(255 255 255 / 70%); }
  70% { opacity: 0; box-shadow: 0 0 0 14px rgb(255 255 255 / 0%); }
  100% { opacity: 0; box-shadow: 0 0 0 14px rgb(255 255 255 / 0%); }
}

/* 原站页脚抽屉按实际内容测量；JS写入body --footer-height并驱动同一组位移。 */
.site-footer {
  min-height: 0;
  padding: 0;
}
.footer-inner {
  min-height: 0;
  padding: 1.75em 1.4em;
}
.footer-logo,
.footer-info,
.footer-links,
.footer-health,
.footer-copyright { min-width: 0; }
.footer-logo img { display: block; max-width: 100%; height: auto; }
.footer-health { color: #a8987f; }
.footer-info,
.footer-links,
.footer-copyright { color: #aaa; }
.footer-info a,
.footer-links a { transition: color 300ms; }
.footer-info a:hover,
.footer-links a:hover { color: #d3d3d3; }
.footer-toggle {
  display: none;
  width: 40px;
  height: 40px;
  right: 40px;
  bottom: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 80%);
}
.footer-toggle img,
.footer-toggle .toggle-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 300ms ease;
}
body.is-last-scene .footer-toggle { display: flex; }
body.is-footer-open .footer-toggle img,
body.is-footer-open .footer-toggle .toggle-icon,
body.is-footer-open .footer-toggle > span { transform: rotate(180deg); }
html.js .home-page > .site-footer {
  max-height: calc(var(--scene-height) - var(--header-height) - 44px);
}
html.js .home-page.is-footer-open > .site-footer {
  transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
  .header-download {
    flex: 0 0 120px;
    width: 120px;
    height: 46px;
  }
  .header-download picture,
  .header-download img {
    width: 120px;
    height: 46px;
  }
  .footer-toggle {
    right: 20px;
    bottom: max(15px, env(safe-area-inset-bottom));
    width: 36px;
    height: 36px;
  }
  .footer-toggle img,
  .footer-toggle .toggle-icon {
    width: 16px;
    height: 16px;
  }
  .footer-inner { padding: .6em .5em; }
  .footer-logo,
  .footer-info,
  .footer-links,
  .footer-health,
  .footer-copyright { width: 100%; text-align: center; }
  .world-title-art { max-width: 82vw; max-height: 72px; }
}

/* 已配置链接时游戏中心为链接；空配置时使用同一排版的非交互文字。 */
.main-nav > .main-nav-link {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  padding: 0 18px;
  color: #d8bd8a;
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
}
.main-nav > .main-nav-link::after {
  content: "";
  position: absolute;
  top: 74px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #8c1812;
  opacity: 0;
  transition: opacity 300ms;
}
.main-nav > .main-nav-link:hover::after,
.main-nav > .main-nav-link.is-active::after { opacity: 1; }
.main-nav > .main-nav-link:hover { color: #fff; }

/* 移动端按原站右侧抽屉处理，抽屉高度始终占满视口，不随首屏内容变短。 */
@media (max-width: 750px) {
  .site-header:has(.main-nav.is-open) { z-index: 2101; }
  html.js .main-nav,
  html.js .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 2000;
    display: block;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    max-height: none;
    min-height: 100vh;
    margin: 0;
    padding: 60px 0 20px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #000;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 200ms cubic-bezier(.4, 0, .2, 1), visibility 200ms;
  }
  html.js .main-nav.is-open,
  html.js body.is-menu-open .main-nav,
  html.js .nav-drawer.isOpen,
  html.js .nav-drawer.is-open,
  html.js body.is-menu-open .nav-drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  html.js .main-nav > a,
  html.js .main-nav > .main-nav-link,
  html.js .nav-drawer a {
    display: flex;
    align-items: center;
    min-height: 56px;
    height: auto;
    padding: 15px 40px 15px 20px;
    border-bottom: 1px solid #2e2e2e;
    background: #000;
    color: #d8bd8a;
    font-size: 18px;
    line-height: normal;
    text-align: left;
  }
  html.js .main-nav > a::after { top: auto; right: 0; bottom: 0; left: 0; height: 1px; }
  html.js .main-nav > a:hover,
  html.js .nav-drawer a:hover { color: #fff; }
  html.js .main-nav .nav-soon { margin-left: 6px; font-size: 14px; }
  html.js .menu-toggle { position: relative; z-index: 2101; }
  .nav-drawer-dim {
    position: fixed;
    inset: 0;
    z-index: 1999;
    background: rgb(0 0 0 / 80%);
  }
}

/* 原站页脚是居中信息列；CMS只替换内容，不改变健康提示、备案、链接和版权的顺序。 */
.site-footer .footer-container,
.footer-container {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 1.75em 1.4em;
}
.site-footer .footer-desktop,
.site-footer .footer-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7em;
  padding: 1.4em .7em;
  text-align: center;
}
.site-footer .footer-text { margin: 0; font-size: 12px; line-height: 20px; }
.footer-logo,
.footer-info,
.footer-links,
.footer-health,
.footer-copyright { display: block; font-size: 12px; line-height: 20px; }
.footer-health { color: #a8987f; }
.footer-copyright { color: #aaa; }
.footer-extra { display: inline-block; height: 20px; vertical-align: top; }
.footer-extra,
.footer-extra * { line-height: 1; overflow: hidden; }

@media (max-width: 767px) {
  .site-footer .footer-container,
  .footer-container { padding: .6em .5em; }
  .site-footer .footer-desktop { display: none; }
  .site-footer .footer-mobile {
    align-items: stretch;
    gap: .35em;
    padding: .6em .5em;
  }
  .site-footer .footer-section { padding: .7em 0; text-align: center; }
  .site-footer .footer-section--info > * + * { margin-top: .25em; }
}

@media (min-width: 768px) {
  .site-footer .footer-mobile { display: none; }
  .site-footer .footer-section { padding: 1.05em 0; }
  .site-footer .footer-section--info > * + * { margin-top: .5em; }
}

/* Header download imagery and original map transition behavior. */
.header-download {
  position: relative;
  display: block;
  flex: 0 0 180px;
  width: 180px;
  height: var(--header-height);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.header-download-default,
.header-download-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease;
}
.header-download-default picture,
.header-download-hover picture,
.header-download-default img,
.header-download-hover img {
  display: block;
  width: 180px;
  height: auto;
  max-width: none;
  object-fit: contain;
}
.header-download-hover { opacity: 0; }
.header-download:hover .header-download-default,
.header-download:focus-visible .header-download-default { opacity: 0; }
.header-download:hover .header-download-hover,
.header-download:focus-visible .header-download-hover { opacity: 1; }
.main-nav > .main-nav-link { flex: 0 0 auto; }
.header-download-label { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; line-height: normal; text-shadow: 0 4px 4px rgb(0 0 0 / 25%); }
/* 黄色原图自带文字；静态页重新渲染前仍保留旧背景上的文字。 */
.header-download:has(img[src*="header-download-yellow"]) .header-download-label { inset: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-footer { color: #56585b; }
.site-footer .footer-info,
.site-footer .footer-copyright { color: #56585b; }
.site-footer .footer-section--health { border-bottom: 1px solid #374151; }
.footer-toggle:hover { transform: scale(1.15); }
html.js .home-page.is-footer-open .footer-toggle:hover { transform: translateY(calc(-1 * var(--footer-height))) scale(1.15); }

.world { --map-transition-duration: 1000ms; --map-easing-inback: cubic-bezier(.9, -.08, .74, .05); }
.world-map { transform: translate(0, 0) scale(1); transform-origin: center; transition: transform var(--map-transition-duration) var(--map-easing-inback), opacity 600ms; }
.world.is-detail-pending .world-pins,
.world.is-detail-pending .region-list { opacity: 0; pointer-events: none; }
.world.is-detail-open .world-map { opacity: 0; visibility: hidden; pointer-events: none; }
.world.is-detail-open .region-detail { transition-delay: 0ms; }

/* The reference footer control remains available on every home scene. */
html.js .home-page .footer-toggle {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
html.js .home-page:not(.is-footer-open) .footer-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
html.js .home-page .footer-toggle { background: transparent; }

@media (min-width: 751px) and (max-width: 1080px) {
  .main-nav > .main-nav-link { padding: 0 12px; font-size: 14px; }
  .main-nav > .main-nav-link::after { left: 12px; right: 12px; }
}
@media (min-width: 751px) and (max-width: 768px) {
  .main-nav { margin-left: 8px; }
  .main-nav > a,
  .main-nav > .main-nav-link { flex: 0 0 auto; justify-content: center; min-height: 0; height: var(--header-height); padding: 0 9px; border: 0; font-size: 14px; }
  .main-nav > .main-nav-link::after { top: 74px; left: 9px; right: 9px; bottom: auto; height: 2px; }
}
@media (max-width: 768px) {
  .header-download { flex-basis: 120px; width: 120px; height: 46px; }
  .header-download-default picture,
  .header-download-hover picture,
  .header-download-default img,
  .header-download-hover img { width: 120px; height: auto; }
  .header-download-label { font-size: 16px; }
  .region-mobile-nav button:disabled { opacity: .25; }
}
@media (max-width: 750px) {
  .main-nav > .main-nav-link { justify-content: flex-start; min-height: 56px; height: auto; padding: 15px 20px; border-bottom: 1px solid #2e2e2e; font-size: 18px; }
  .main-nav > .main-nav-link::after { top: auto; right: 0; bottom: 0; left: 0; height: 1px; }
}
