/* ========== 神慾性仰 ========== */
:root {
  /* 神殿主题：酒红暗底＋玫瑰金＋圣光；配色取自 LOGO 的玫瑰金与蜜桃粉 */
  --abyss: #1e0b15;
  --night: #28111c;
  --steel: #2a0f1c;
  --line: #4a2232;
  --ember: #e2627e;     /* 主强调（玫瑰红） */
  --ember-hi: #ffb8c6;
  --gold: #e9b79c;      /* 玫瑰金 */
  --gold-hi: #ffe6d6;
  --bronze: #a9634c;
  --frost: #e9b79c;
  --mist: #f8ece6;
  --dim: #c9aea4;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: var(--sans);
  color: var(--mist);
  background: var(--abyss);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
b, strong { font-weight: 700; }
a { color: inherit; }

/* ---------- swal ---------- */
.swal2-styled.swal2-confirm { background-color: var(--ember); color: #fff; }
.swal2-styled.swal2-confirm:focus { box-shadow: 0 0 0 3px var(--ember-hi); }

/* ---------- QR ---------- */
#qr {
  position: fixed; z-index: 999; right: 24px; bottom: 24px;
  width: 92px; padding: 6px 8px 8px;
  background: var(--mist); color: var(--night);
  border-radius: 4px; text-align: center; cursor: pointer; display: none;
  box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(233, 183, 156, .45);
}
#qr h5 { font-size: 12px; padding: 2px 0 6px; }
#qr img { width: 100%; }

/* ---------- 导航 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 60px;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom, rgba(30, 11, 21, .94), rgba(30, 11, 21, .65));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(233, 183, 156, .35);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 6px 20px -8px rgba(226, 98, 126, .35);
}
.logo { position: absolute; left: 14px; top: 0; bottom: 0; height: 40px; margin: auto; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.logo a { display: block; }

#menu_control { position: absolute; opacity: 0; pointer-events: none; }
.menu_btn { position: absolute; right: 10px; top: 5px; width: 50px; height: 50px; cursor: pointer; }
.menu_btn span, .menu_btn::before, .menu_btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--mist);
  transition: transform .3s, opacity .3s;
}
.menu_btn span { top: 24px; }
.menu_btn::before { top: 16px; }
.menu_btn::after { top: 32px; }
#menu_control:checked ~ .menu_btn span { opacity: 0; }
#menu_control:checked ~ .menu_btn::before { transform: translateY(8px) rotate(45deg); }
#menu_control:checked ~ .menu_btn::after { transform: translateY(-8px) rotate(-45deg); }
#menu_control:focus-visible ~ .menu_btn { outline: 2px solid var(--gold); }

.navbar_nav {
  position: fixed; top: 60px; right: -260px; width: 240px; height: calc(100vh - 60px);
  background: var(--night); border-left: 1px solid rgba(233, 183, 156, .3);
  transition: right .4s ease;
}
#menu_control:checked ~ .navbar_nav { right: 0; }
.navbar_nav a {
  display: block; padding: 18px 24px; text-decoration: none; font-size: 16px; letter-spacing: .15em; cursor: pointer;
  border-bottom: 1px solid rgba(248, 236, 230, .08);
}
.navbar_nav a:hover, .navbar_nav a:focus-visible { color: var(--ember-hi); outline: none; }

/* ---------- 首屏 ----------
   版型只看「萤幕宽度」切换：
   · 宽度 ≥ 768：16:9 舞台，宽度上限＝(萤幕高度−顶栏)×16/9
   · 767 以下（手机）：1:2 舞台，宽度＝萤幕宽
   人物用 top／left／width（皆为「舞台」的百分比）定位，高度依原图比例自动；LOGO 区固定在舞台底部，尺寸跟着舞台宽度（--sw）。 */
.hero {
  --sw: min(100vw, calc((100vh - 60px) * 16 / 9));
  /* --cut＝LOGO 区从舞台的哪里开始（舞台高度的比例）；人物胸下都要在这条线以上 */
  --cut: .64;
  position: relative; overflow: hidden; isolation: isolate;
}
/* 背景：暖霞海湾港镇（https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/bg_hero.sym 
   要换图直接覆盖同名档即可 */
.hero_bg {
  position: absolute; inset: 0; z-index: -4;
  background: var(--night) url(https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/bg_hero.sym)  62% 40% / cover no-repeat;
  filter: brightness(1) saturate(.95);
}
.hero_bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at 50% 32%, rgba(255, 214, 196, .18), transparent 70%),
    linear-gradient(rgba(90, 20, 48, .2), rgba(60, 12, 32, .3));
  mix-blend-mode: multiply;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, transparent 0 50%, rgba(30, 11, 21, .35) 100%),
    linear-gradient(to bottom, rgba(30, 11, 21, .5) 0%, transparent 18%, transparent 62%, rgba(30, 11, 21, .7) 88%, var(--abyss) 100%);
}
/* 圣光（缓慢呼吸） */
.holy_glow {
  position: absolute; z-index: -2; left: 50%; bottom: -18%; width: 120vmin; height: 70vmin;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 190, 200, .5) 0%, rgba(226, 98, 126, .24) 35%, transparent 70%);
  mix-blend-mode: screen;
  animation: holyBreath 4.5s ease-in-out infinite alternate;
}
@keyframes holyBreath { 0% { opacity: .65; } 100% { opacity: 1; } }

.scene {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  width: var(--sw); height: calc(var(--sw) * .5625);
}
.hero_cast { position: absolute; inset: 0; z-index: 0; pointer-events: none; clip-path: inset(-60px -100vw 0 -100vw); }
.cast, .hero_anim { position: absolute; height: auto; max-width: none; transform: translateX(-50%); }

/* ===== 首屏人物（电脑版）=====
   width＝人物宽度（舞台宽度的 %）｜top＝离舞台顶端距离｜left＝人物中心水平位置｜z-index＝前后层次
   外左 黑发背影｜内左 绿发蓝纱｜中 红衣马尾主角（最大）｜内右 白衬衫｜外右 眼镜盘发白裙 */
/* 每位的胸下大约在原图高度的：红衣 62%｜绿发 52%｜白衬衫 53%｜外左黑发 52%｜外右眼镜 65%
   原图皆约为 宽:高 = 1:1.78，所以在 16:9 舞台上：人物高度（舞台高的 %）≈ width × 3.16
   胸下位置 ≈ top + width × 3.16 × 上面比例，都要小于 --cut（64%） */
.cast_l2   { left: 10%; top: 5%;  width: 25%;   z-index: 2; }
.cast_l1   { left: 27%; top: 1%;  width: 32.8%; z-index: 3; }
.hero_anim { left: 50%; top: -4%; width: 34.7%; z-index: 5; }
.cast_r1   { left: 74%; top: 1%;  width: 36.6%; z-index: 4; }
.cast_r2   { left: 93%; top: 8%;  width: 23.1%; z-index: 1; }

/* 配角摇曳（中间主角不加；用 translate／rotate 属性，不影响定位用的 transform） */
.cast { transform-origin: 50% 100%; }
.cast_l2 { animation: swaySoft 5s ease-in-out infinite alternate; }
.cast_r2 { animation: sway 4.2s ease-in-out -1.2s infinite alternate-reverse; }
.cast_r1 { animation: sway 4.6s ease-in-out -2.1s infinite alternate; }
.cast_l1 { animation: swayFloat 3.8s ease-in-out -.6s infinite alternate-reverse; }
@keyframes sway      { 0% { translate: 0 0; rotate: -1deg; } 100% { translate: 0 calc(var(--sw) * -1 / 100); rotate: 1deg; } }
@keyframes swaySoft  { 0% { translate: calc(var(--sw) * -.4 / 100) 0; rotate: -.8deg; } 100% { translate: calc(var(--sw) * .4 / 100) calc(var(--sw) * -.7 / 100); rotate: .8deg; } }
@keyframes swayFloat { 0% { translate: 0 0; rotate: 1deg; } 100% { translate: 0 calc(var(--sw) * -1.2 / 100); rotate: -1deg; } }

/* 后排配角压暗一点，让主角跳出来 */
.cast_l2, .cast_r2 { filter: brightness(.92); }

/* ===== 首屏氛围层 ===== */
.hero_halo {
  position: absolute; z-index: 4; left: 50%; top: -8%; width: calc(var(--sw) * 62 / 100); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 240, 230, .5) 0%, rgba(255, 190, 200, .28) 18%, rgba(226, 98, 126, .1) 40%, transparent 66%);
  mix-blend-mode: screen;
}
.hero_fog {
  position: absolute; z-index: 5; left: -20%; right: -20%; bottom: 0; height: 36%; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(226, 98, 126, .26), transparent 70%),
    linear-gradient(to bottom, transparent, rgba(42, 10, 24, .45) 55%, rgba(30, 11, 21, .85));
}
.hero_anim { filter: drop-shadow(0 0 2px rgba(255, 230, 220, .55)) drop-shadow(0 0 28px rgba(255, 150, 170, .4)); }
.sparks_front { z-index: 5; }
.sparks_front .spark { filter: blur(.6px); }

/* LOGO 后方光晕 */
.hero_logo::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 120%; height: 160%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 200, 190, .4) 0%, rgba(226, 98, 126, .14) 40%, transparent 70%);
  filter: blur(6px);
}
/* 标语两侧的玫瑰金饰线＋小星 */
.hero_tag { display: flex; align-items: center; justify-content: center; gap: .8em; }
.hero_tag::before, .hero_tag::after {
  content: ""; flex: none; width: 3.2em; height: 9px;
  background:
    radial-gradient(circle, #fff 0 1.5px, transparent 2.5px) right center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, var(--gold) 80%) left center / calc(100% - 9px) 1px no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 190, 200, .8));
}
.hero_tag::after { transform: scaleX(-1); }

/* ===== LOGO＋下载区：固定在舞台底部 ===== */
/* ===== LOGO＋下载区：接在舞台的 --cut 位置（人物胸下），排在正常流里，首屏高度由它撑开 ===== */
.hero_front {
  position: relative; z-index: 6; text-align: center;
  margin-top: calc(60px + var(--sw) * .5625 * var(--cut));
  padding: 0 20px max(18px, calc(var(--sw) * 2 / 100));
}
.hero_front::before {
  content: ""; position: absolute; z-index: -1; top: calc(var(--sw) * -2 / 100); bottom: 0; left: 50%; width: 100vw;
  transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(rgba(30, 11, 21, 0) 0, rgba(30, 11, 21, .55) calc(var(--sw) * 6 / 100), rgba(30, 11, 21, .85) calc(var(--sw) * 14 / 100), var(--abyss) 100%);
}
/* LOGO 原图上方约 14% 是透明留白，所以往上拉一点（负 margin），放大但不把按钮挤出第一屏 */
.hero_logo { position: relative; width: calc(var(--sw) * 31 / 100); margin: calc(var(--sw) * -4 / 100) auto 0; }
.hero_logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .75)); }
.hero_tag {
  font-family: var(--serif); font-weight: 700; font-size: clamp(14px, calc(var(--sw) * 1.45 / 100), 26px); letter-spacing: .24em; text-indent: .24em;
  color: var(--gold-hi); margin: 0 0 calc(var(--sw) * .6 / 100); text-shadow: 0 2px 10px #000;
}

/* ===== 下载按钮（红宝石金框图 https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/btn_frame.sym  1 : .328）=====
   【防 CSS 相冲，规则集中在这一段，别处不要再写 .dl_btn】
   1. 显示／隐藏完全交给 <head> 的 #down-ios-link / #down-ios-pack { display } 与平台 JS：
      这里只用「class 选择器」写 display: block，权重低于 ID，所以掉签切换一定生效；任何地方都不要对按钮 ID 写 display。
   2. 外观属性（尺寸、背景、边框、内距、字）一律加 !important，平台若注入 #down-xxx { ... } 也盖不掉。
   3. ICON＋文字放在 .dl_inner，由 HTML 行内 style（!important）绝对定位贴满按钮、flex 置中，不受外部 CSS 影响。
   4. 尺寸只用变数（--w 宽度，其余跟着算），各断点只改 --w。 */
.download {
  display: flex; justify-content: center; flex-wrap: nowrap;
  gap: 4px; margin-bottom: 16px; padding: 0 4px;
}
.download a.dl_btn {
  --w: min(calc((100vw - 32px) / 2), 250px);
  --h: calc(var(--w) * .328);
  --fs: clamp(13px, calc(var(--h) * .27), 21px);
  --ic: calc(var(--fs) * 1.1);
  display: block;
  position: relative !important; flex: 0 0 auto;
  box-sizing: border-box !important; width: var(--w) !important; height: var(--h) !important;
  min-width: 0 !important; min-height: 0 !important; max-width: none !important;
  padding: 0 !important; margin: 0 !important; line-height: 1 !important;
  border: 0 !important; border-radius: 0 !important; outline-color: var(--gold-hi);
  background: url('https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/btn_frame.sym')  center / 100% 100% no-repeat !important;
  box-shadow: none !important;
  font-size: var(--fs) !important; font-weight: 700 !important; letter-spacing: 0 !important;
  color: #fff3ee !important; text-decoration: none !important; text-align: center !important;
  text-shadow: 0 1px 2px rgba(60, 0, 20, .9), 0 0 10px rgba(255, 160, 180, .55);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  cursor: pointer; transition: transform .2s, filter .2s;
  animation: none !important; -webkit-animation: none !important;
  -webkit-tap-highlight-color: transparent;
}
.download a.dl_btn::before, .download a.dl_btn::after { content: none !important; }
/* 文字区只在中间胶囊内；扫光也被裁在胶囊内，不会扫到两侧金饰 */
.download a.dl_btn .dl_inner { gap: calc(var(--fs) * .32); clip-path: inset(17% 12% 20% 12% round 999px); }
.download a.dl_btn .dl_inner::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 26%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 230, 220, .35), transparent);
  transform: skewX(-20deg);
  animation: dlSheen 4.8s ease-in-out infinite;
}
.download a#down-an-pack .dl_inner::before { animation-delay: .6s; }
@keyframes dlSheen { 0%, 65% { left: -40%; } 100% { left: 120%; } }
.download a.dl_btn svg {
  width: var(--ic) !important; height: var(--ic) !important; fill: currentColor !important;
  filter: drop-shadow(0 0 5px rgba(255, 190, 200, .8));
}
.download a.dl_btn .dl_label { font-size: var(--fs) !important; font-weight: 700 !important; color: #fff3ee !important; }
.download a.dl_btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 14px rgba(255, 150, 175, .6));
}
.download a.dl_btn:active { transform: translateY(0); filter: brightness(.95); }
.download a.dl_btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
@media (min-width: 768px) {
  .download { gap: calc(var(--sw) * .6 / 100); }
  .download a.dl_btn { --w: min(calc(var(--sw) * 19 / 100), 300px); --fs: clamp(16px, calc(var(--h) * .3), 28px); }
}

.reminder {
  max-width: 24em; margin: 6px auto 0; padding: 10px 4px 0; position: relative;
  font-size: 12px; line-height: 1.7; color: rgba(224, 204, 196, .85);
}
.reminder::before {
  content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 183, 156, .5), transparent);
}
.reminder h4 { font-size: 12px; font-weight: 700; color: #ffd4c2; }
.reminder p { font-size: 12px; }
.reminder strong { color: var(--mist); white-space: nowrap; }

/* ---------- 通用段落标题（重新设计）----------
   中文主标＝玫瑰金渐层字，两侧是金色卷草＋红宝石菱形（呼应下载按钮）；
   下方小字英文副标；后方一行超大空心英文当底纹。英文写在 h2 的 data-en。 */
section { position: relative; }
.sec_title {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
  margin: 0 auto 36px; padding: 0;
  font-family: var(--serif); font-weight: 900; line-height: 1.2; text-align: center;
}
/* 底纹：超大空心英文 */
.sec_title::before {
  content: attr(data-en); position: absolute; z-index: -1; left: 50%; top: 46%;
  transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(56px, 10vw, 150px); letter-spacing: .12em;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 183, 156, .2);
}
/* 英文副标 */
.sec_title::after {
  content: attr(data-en); display: flex; align-items: center; gap: 14px; margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(11px, 1vw, 14px);
  letter-spacing: .55em; text-indent: .55em; color: var(--gold);
  text-shadow: 0 0 10px rgba(226, 98, 126, .5);
}
.sec_title span {
  display: inline-flex; align-items: center; gap: clamp(10px, 1.6vw, 22px);
  font-size: clamp(32px, 4.8vw, 58px); letter-spacing: .28em; text-indent: .28em;
}
/* 两侧卷草＋红宝石 */
.sec_title span::before, .sec_title span::after {
  content: ""; flex: none; width: clamp(110px, 13vw, 200px); aspect-ratio: 170 / 32;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 32'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23e9b79c' stop-opacity='0'/%3E%3Cstop offset='.3' stop-color='%23e9b79c'/%3E%3Cstop offset='1' stop-color='%23fff1e6'/%3E%3C/linearGradient%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1e6'/%3E%3Cstop offset='.5' stop-color='%23e9b79c'/%3E%3Cstop offset='1' stop-color='%23a9634c'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffc2cf'/%3E%3Cstop offset='.45' stop-color='%23d0305a'/%3E%3Cstop offset='1' stop-color='%236a0f26'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 16H104' stroke='url%28%23l%29' stroke-width='2'/%3E%3Cpath d='M40 12H96M40 20H96' stroke='url%28%23l%29' stroke-width='.8' stroke-opacity='.6'/%3E%3Ccircle cx='60' cy='16' r='1.6' fill='%23ffe6d6'/%3E%3Cpath d='M104 16c10 0 12-9 20-8 6 1 5 9-1 9' fill='none' stroke='url%28%23g%29' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M104 16c10 0 12 9 20 8 6-1 5-9-1-9' fill='none' stroke='url%28%23g%29' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M150 4l11 12-11 12-11-12z' fill='url%28%23r%29' stroke='url%28%23g%29' stroke-width='1.6'/%3E%3Cpath d='M150 8l4 5-4 1-4-1z' fill='%23fff' fill-opacity='.7'/%3E%3Cpath d='M130 16h6' stroke='url%28%23g%29' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 160, 180, .45));
}
.sec_title span::after { transform: scaleX(-1); }
/* 中文字：玫瑰金渐层（用内层文字的背景裁切，不影响两侧装饰） */
.sec_title span {
  color: #ffe6d6;
  background: linear-gradient(180deg, #fffaf6 0%, #ffe6d6 30%, #e9b79c 52%, #a9634c 70%, #f2c4ac 86%, #fff2ea 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #3a0a1a) drop-shadow(0 0 18px rgba(226, 98, 126, .45));
}
.introduce { overflow-x: clip; }
@media (max-width: 767px) {
  .sec_title::before { font-size: 15vw; letter-spacing: .06em; }
  .sec_title span { font-size: 9vw; letter-spacing: .2em; text-indent: .2em; gap: 8px; }
  .sec_title span::before, .sec_title span::after { width: 22vw; }
  .sec_title::after { letter-spacing: .4em; text-indent: .4em; }
}

/* ---------- 世界观 ----------
   一整幕：背景＝选中的时代，女英雄立于场景中，左侧三个时代就是切换入口。 */
.story { position: relative; overflow: hidden; isolation: isolate; padding: 8px 0 48px; }
.story_bgs { position: absolute; inset: 0; z-index: -2; }
.story_bg {
  position: absolute; inset: 0; opacity: 0;
  background-position: center 30%; background-size: cover; background-repeat: no-repeat;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 7s ease-out;
}
/* 三个时代的场景：远古＝地下锻造厅（铸造神器）｜千年前＝峡谷边境前哨（圣战前线）｜现在＝月下天文台（异界来客）
   原图偏亮，用 filter 压暗；::after 叠一层酒红色调，和整页配色统一 */
.story_bg { filter: brightness(.95) saturate(.95); }
.story_bg::after { content: ""; position: absolute; inset: 0; background: rgba(90, 20, 48, .18); mix-blend-mode: multiply; }
.story_bg_ancient { background-image: url(https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/bg_ancient.sym);  background-position: 78% 50%; }
.story_bg_war     { background-image: url(https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/bg_war.sym);      background-position: 70% 40%; }
.story_bg_now     { background-image: url(https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/bg_now.sym);     background-position: 72% 40%; }
.story[data-active="ancient"] .story_bg_ancient,
.story[data-active="war"]     .story_bg_war,
.story[data-active="now"]     .story_bg_now { opacity: 1; transform: scale(1); }
.story::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--abyss) 0%, rgba(30, 11, 21, .2) 10%, rgba(30, 11, 21, .3) 34%, rgba(30, 11, 21, .85) 50%, rgba(30, 11, 21, .9) 88%, var(--abyss) 100%);
}

.story_stage { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

.story_art { position: relative; z-index: 0; margin: 0 -20px; pointer-events: none; }
.story_art::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 110%; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 190, .28) 0%, rgba(226, 98, 126, .08) 40%, transparent 66%);
}
/* 手机：人物置中、略放大，下半身渐隐 */
.story_art img {
  width: 112%; max-width: none; margin-left: -6%;
  filter: drop-shadow(0 0 24px rgba(0, 0, 0, .55));
  -webkit-mask-image: linear-gradient(to bottom, #000 34%, transparent 58%);
  mask-image: linear-gradient(to bottom, #000 34%, transparent 58%);
}

.story_text { position: relative; z-index: 1; margin-top: -112vw; }
/* 手机：文字压在人物下方，后方垫渐层确保可读 */
.story_text::before {
  content: ""; position: absolute; z-index: -1; left: -20px; right: -20px; top: -40px; bottom: -48px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(30, 11, 21, 0) 0, rgba(30, 11, 21, .72) 120px, rgba(30, 11, 21, .93) 260px, rgba(30, 11, 21, .93) calc(100% - 60px), rgba(30, 11, 21, 0) 100%);
}
.story_title { position: relative; z-index: 2; margin: 48px auto 8px; }
.story_hook {
  font-family: var(--serif); font-weight: 900; color: #fff;
  font-size: clamp(22px, 6.6vw, 48px); line-height: 1.35; letter-spacing: .04em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .9);
  margin-bottom: 14px;
}
.story_hook span { display: block; }
.story_hook span:last-child { color: #ffd6c6; }
.story_sub {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--serif); font-weight: 700; font-size: clamp(14px, 4.3vw, 17px); letter-spacing: .1em; color: var(--ember-hi);
  text-shadow: 0 0 12px rgba(226, 98, 126, .4), 0 1px 6px #000;
}
.story_sub::before { content: ""; width: 28px; height: 2px; flex: none; background: linear-gradient(90deg, var(--ember), transparent); }
.story_body {
  max-width: 30em; font-size: 15px; line-height: 1.95; color: #ecdcd4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
  margin-bottom: 18px;
}

/* 三个时代：故事的延续，也是切换场景的入口 */
.realm_tabs { max-width: 32em; }
.realm_tab {
  --accent: #e9b79c;
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; column-gap: 14px;
  width: 100%; padding: 14px 0; margin: 0; border: 0; border-top: 1px solid rgba(233, 183, 156, .16);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.realm_tab:last-child { border-bottom: 1px solid rgba(233, 183, 156, .16); }
.realm_ancient { --accent: #ffd9a8; }
.realm_war     { --accent: #ff8f9f; }
.realm_now     { --accent: #d6b8ff; }
.realm_tab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
  transition: width .6s ease;
}
.realm_tab.is-active::after { width: 100%; }
/* 时代徽记：菱形框＋线条图示 */
.tab_mark {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 2px 4px 0;
  border: 1px solid rgba(233, 183, 156, .4); transform: rotate(45deg);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.tab_mark svg {
  width: 22px; height: 22px; transform: rotate(-45deg);
  fill: none; stroke: #c9aea4; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .4s;
}
.realm_tab.is-active .tab_mark { border-color: var(--accent); background: rgba(255, 255, 255, .06); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.realm_tab.is-active .tab_mark svg { stroke: var(--accent); }
.tab_main { display: flex; flex-direction: column; min-width: 0; }
.tab_time { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--accent); opacity: .75; }
.tab_title {
  font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: .12em; line-height: 1.4;
  color: #dcc8c0; transition: color .3s;
}
.tab_desc {
  max-height: 0; overflow: hidden; opacity: 0;
  font-size: 14px; line-height: 1.75; color: #ecdcd4; text-wrap: pretty;
  transition: max-height .5s ease, opacity .35s ease;
}
.realm_tab.is-active .tab_time { opacity: 1; }
.realm_tab.is-active .tab_title { color: #fff; text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent); }
.realm_tab.is-active .tab_desc { max-height: 9em; opacity: 1; margin-top: 4px; transition-delay: .1s; }
.realm_tab:hover .tab_title { color: #fff; }
.realm_tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (min-width: 600px) {
  .story_text { margin-top: -70vw; }
  .story_art { margin: 0 auto; width: 80%; }
  .story_art img { width: 100%; margin-left: 0; }
}

/* ===== 电脑（≥768）：场景满版；左叙事｜女英雄立于场景中 ===== */
@media (min-width: 768px) {
  .story { padding: 0; }
  .story::before {
    background:
      linear-gradient(to bottom, var(--abyss) 0%, rgba(30, 11, 21, 0) 14%, rgba(30, 11, 21, 0) 72%, rgba(30, 11, 21, .85) 92%, var(--abyss) 100%),
      linear-gradient(90deg, rgba(30, 11, 21, .86) 0%, rgba(30, 11, 21, .62) 30%, rgba(30, 11, 21, .1) 55%, rgba(30, 11, 21, .05) 75%, rgba(30, 11, 21, .3) 100%);
  }
  .story_stage {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .story_art { grid-column: 2; grid-row: 2; align-self: start; width: auto; margin: -20px 0 0; }
  .story_art img {
    width: 82%; margin: 0 auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
  }
  .story_text { grid-column: 1; grid-row: 2; align-self: center; margin-top: 0; padding: 36px 24px 40px 0; }
  .story_text::before { display: none; }
  .story_hook { font-size: clamp(30px, 3.5vw, 48px); }
  .story_sub { font-size: clamp(16px, 1.4vw, 20px); }
  .story_title { grid-column: 1 / span 2; grid-row: 1; margin: 88px auto 0; }
  .story_body { font-size: 16px; }
  .realm_tab { grid-template-columns: 60px minmax(0, 1fr); column-gap: 18px; padding: 16px 0; }
  .tab_title { font-size: 21px; }
  .realm_tab.is-active .tab_title { font-size: 25px; }
  .tab_desc { font-size: 15px; }
}

/* ---------- 游戏特色 ---------- */
.introduce {
  padding: 28px 0 80px;
  /* 背景：皇家花园（https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/bg_feature.sym  */
  background:
    linear-gradient(to bottom, var(--abyss), rgba(40, 12, 24, .5) 28%, rgba(40, 12, 24, .58) 72%, var(--abyss)),
    url(https://na.xn--xysq9ib8h8r3c.xn--fiqs8s/sysy/sym/bg_feature.sym)  center 40% / cover no-repeat;
}
.swiper { padding-bottom: 36px; }
.swiper-slide img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-sizing: border-box;
  border: 1px solid rgba(233, 183, 156, .65);
  box-shadow: 0 0 0 4px rgba(233, 183, 156, .1), 0 0 30px rgba(226, 98, 126, .22), 0 12px 40px rgba(0, 0, 0, .65);
}
.swiper-pagination-bullet { background: var(--mist); opacity: .4; width: 22px; height: 4px; border-radius: 0; }
.swiper-pagination-bullet-active { background: linear-gradient(90deg, var(--gold-hi), var(--ember)); opacity: 1; box-shadow: 0 0 8px rgba(226, 98, 126, .7); }
.swiper-3d .swiper-slide-shadow-left { background-image: linear-gradient(to left, rgba(0, 0, 0, .3), rgba(0, 0, 0, .15)); }
.swiper-3d .swiper-slide-shadow-right { background-image: linear-gradient(to right, rgba(0, 0, 0, .3), rgba(0, 0, 0, .15)); }

/* ================= 平板 / PC ================= */
@media (min-width: 768px) {
  #qr { display: block; }
  .menu_btn { display: none; }
  .navbar_nav {
    position: absolute; top: 0; right: 16px; width: auto; height: 60px; display: flex;
    background: none; border: 0;
  }
  .navbar_nav a { border: 0; padding: 0 22px; line-height: 60px; position: relative; }
  .navbar_nav a::after {
    content: ""; position: absolute; left: 22px; right: 22px; bottom: 12px; height: 2px;
    background: var(--ember); transform: scaleX(0); transition: transform .25s;
  }
  .navbar_nav a:hover::after, .navbar_nav a:focus-visible::after { transform: scaleX(1); }

  .reminder { max-width: 22em; font-size: clamp(12px, calc(var(--sw) * .85 / 100), 15px); }
  .reminder h4, .reminder p { font-size: inherit; }
}

/* ---------- 767 以下（手机版）：1:2 舞台 ----------
   后排上方：黑发背影（左）、眼镜盘发（右）；中排：绿发（左）、白衬衫（右）；前排中间：红衣马尾主角（最大）
   主角往下放，LOGO 区压到她的腰部 */
@media (max-width: 767px) {
  /* 手机舞台 1:2；LOGO 区从舞台约 60% 处（121vw）开始 */
  .hero { --sw: 100vw; }
  .scene { width: 100vw; height: 200vw; }
  .hero_front { margin-top: calc(60px + 121vw); padding: 0 4vw 6vw; }
  /* 手机舞台 1:2：人物高度（舞台高的 %）≈ width × 0.89 */
  /* 手机构图（依指定数值）：主角在中间最前；两侧人物在左右；后排两位在主角头部上方 */
  .cast_l2   { left: 40%; top: 0;   width: 46%; }
  .cast_r2   { left: 68%; top: 0;   width: 40%; }
  .cast_l1   { left: 20%; top: 14%; width: 72%; }
  .cast_r1   { left: 84%; top: 14%; width: 70%; }
  .hero_anim { left: 52%; top: 16%; width: 80%; }
  .hero_logo { width: 98vw; margin-top: -6vw; }
  .hero_tag { font-size: 4.2vw; margin-bottom: 4vw; letter-spacing: .14em; text-indent: .14em; gap: .5em; }
  .hero_tag::before, .hero_tag::after { width: 1.6em; }
  .hero_halo { top: 9%; width: 90vw; }
  .reminder { font-size: max(11px, 3.2vw); }
  .reminder h4, .reminder p { font-size: inherit; }
  .introduce { padding-top: 32px; padding-bottom: 40px; }
  .introduce .sec_title { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .holy_glow { animation: none; }
  .download a.dl_btn .dl_inner::before { animation: none !important; }
  .cast, .cast_l2, .cast_r2, .cast_l1, .cast_r1 { animation: none; }
  .dl_btn, .story_bg, .realm_tab::after, .tab_mark, .tab_desc { transition: none; }
}

/* ---------- 更多游戏 BANNER（仅手机） ---------- */
.more_game { width: 90%; max-width: 520px; margin: 0 auto; padding: 0 0 40px; text-align: center; }
@media (min-width: 768px) { .more_game { padding-bottom: 72px; } }
#more_game_btn {
  display: block; overflow: hidden; border-radius: 12px;
  border: 2px solid rgba(233, 183, 156, .55);
  box-shadow: 0 0 0 4px rgba(233, 183, 156, .12), 0 0 24px rgba(233, 183, 156, .35), 0 8px 24px rgba(0, 0, 0, .6);
}
#more_game_btn img { width: 100%; display: block; }
@media (min-width: 768px) {
  .mobile { display: none !important; }
}

/* ---------- 圣光星屑（首屏、世界观；由 main.js 产生） ---------- */
.sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.story .sparks { z-index: 0; }
.story_stage { z-index: 1; }
.spark {
  position: absolute; bottom: -12px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff0ea;
  box-shadow: 0 0 6px 2px rgba(255, 170, 190, .85), 0 0 14px 4px rgba(226, 98, 126, .35);
  opacity: 0;
  animation: sparkRise var(--d) linear var(--delay) infinite;
}
@keyframes sparkRise {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  8%   { opacity: 1; }
  70%  { opacity: .8; }
  100% { transform: translate(var(--dx), -85vh) scale(.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sparks { display: none; } }

/* ---------- 超宽萤幕（≥1800） ---------- */
@media (min-width: 1800px) {
  .story_stage { max-width: 1560px; }
  .story_body { font-size: 18px; max-width: 34em; }
  .realm_tabs { max-width: 36em; }
  .tab_title { font-size: 23px; }
  .realm_tab.is-active .tab_title { font-size: 28px; }
  .tab_desc { font-size: 16px; }
  .sec_title { font-size: 58px; }
}

/* 外左角色原图头顶被裁切：顶部淡出，避免出现一条平切边 */
/* 人物下缘淡出（原图在大腿处切断，避免露出平切边） */
.cast, .hero_anim {
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
}

/* ---------- 顶栏「更多游戏」按钮（手机在侧边选单内、电脑在顶栏右侧，都显示） ---------- */
.navbar_nav a.nav_more { color: var(--gold-hi); }
@media (min-width: 768px) {
  .navbar_nav { align-items: center; }
  .navbar_nav a.nav_more {
    margin-left: 10px; padding: 0 22px; line-height: 38px; height: 40px; box-sizing: border-box;
    border: 1px solid var(--gold); border-radius: 999px;
    background: linear-gradient(180deg, #7a1d3a, #4a0f24);
    color: #fff3ee; letter-spacing: .12em;
    box-shadow: 0 0 12px rgba(226, 98, 126, .35);
    transition: filter .2s, box-shadow .2s;
  }
  .navbar_nav a.nav_more::after { content: none; }
  .navbar_nav a.nav_more:hover, .navbar_nav a.nav_more:focus-visible {
    color: #fff; filter: brightness(1.15); box-shadow: 0 0 18px rgba(226, 98, 126, .6);
  }
}

/* ===== 世界观分页：菱形场景小图（取代原本的线条图示） ===== */
.realm_tab { grid-template-columns: 64px minmax(0, 1fr); }
.tab_thumb {
  position: relative; display: block; width: 56px; height: 56px; margin: 2px 4px 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, #fff1e6, #e9b79c 45%, #a9634c 75%, #ffe0cc);
  transition: filter .4s;
  filter: saturate(.55) brightness(.8);
}
.tab_thumb img {
  position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.realm_tab.is-active .tab_thumb, .realm_tab:hover .tab_thumb { filter: none; }
.realm_tab.is-active .tab_thumb { animation: thumbGlow 2.4s ease-in-out infinite alternate; }
@keyframes thumbGlow { from { filter: drop-shadow(0 0 0 transparent); } to { filter: drop-shadow(0 0 8px rgba(255, 180, 195, .9)); } }
@media (min-width: 768px) {
  .realm_tab { grid-template-columns: 74px minmax(0, 1fr); }
  .tab_thumb { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .realm_tab.is-active .tab_thumb { animation: none; } }

/* 世界观立绘（盔甲女武士）：原图解析度较低（413×724），电脑版限制显示宽度避免糊掉 */
@media (min-width: 768px) {
  .story_art img { width: min(96%, 580px); }
}
