/* ========== 性界大战 LUST WAR ========== */
:root {
  --abyss: #08040f;
  --night: #120a24;
  --violet: #2a1650;
  --crimson: #e2306b;
  --rose: #ff8cc6;
  --ice: #8fdcff;
  --mist: #eadff7;
  --dim: #b9a8d6;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", 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(--crimson); }
.swal2-styled.swal2-confirm:focus { box-shadow: 0 0 0 3px var(--rose); }

/* ---------- 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(--crimson), 0 0 24px rgba(226, 48, 107, .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(8, 4, 15, .92), rgba(8, 4, 15, .6));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 48, 107, .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(--rose); }

.navbar_nav {
  position: fixed; top: 60px; right: -260px; width: 240px; height: calc(100vh - 60px);
  background: var(--night); border-left: 1px solid rgba(226, 48, 107, .4);
  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;
  border-bottom: 1px solid rgba(234, 223, 247, .08);
}
.navbar_nav a:hover, .navbar_nav a:focus-visible { color: var(--rose); outline: none; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; box-sizing: border-box; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 80px 0 env(safe-area-inset-bottom, 0px);
  isolation: isolate;
}
.hero_bg {
  position: absolute; inset: 0; z-index: -4;
  background: url('https://a.xn--xwrq59aduur60a.com/xjdz/sym/scene_pool.sym')  50% 20% / cover no-repeat;
  filter: saturate(1.1) brightness(.9);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0 35%, rgba(12, 8, 40, .5) 80%),
    linear-gradient(to bottom, rgba(12, 8, 40, .35) 0%, transparent 25%, transparent 60%, rgba(8, 4, 15, .7) 88%, var(--abyss) 100%);
}

/* 裂缝：首屏唯一的动态 */
/* 星涡中心的呼吸光：首屏唯一的背景动态 */
.vortex_glow {
  position: absolute; z-index: -2; left: 50%; top: 20%; width: 70vmin; height: 70vmin;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(220, 245, 255, .55) 0%, rgba(143, 220, 255, .28) 25%, rgba(150, 110, 255, .14) 50%, transparent 70%);
  mix-blend-mode: screen;
}

.hero_cast {
  position: relative; z-index: -1; flex: 1; min-height: 118vw;
  pointer-events: none;
}
.cast {
  position: absolute; bottom: 0; width: auto;
  transform: translateX(-50%);
}

/* 中间主角：动态 WebP，CSS 完全不加动画 */
.hero_anim {
  position: absolute; z-index: 3; left: 50%; bottom: -30%;
  width: auto; height: 108%; max-width: 116%; object-fit: contain; object-position: bottom;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 26px rgba(143, 160, 255, .5));
}

/*
  配角以「高度」决定大小、以「中心点 left」决定位置，方便调整：
  手机：前排 霜茗（左）／吟游诗人（右）；后排较高处 薰（左上）／黛儿（右上）
*/
.cast_snake { left: 45%; height: 58%; bottom: 49%; z-index: 0; }
.cast_kaoru { left: 72%; height: 58%; bottom: 40%; z-index: 0; }
.cast_daier { left: 22%; height: 88%; bottom: 6%; z-index: 1; }
.cast_bard  { left: 85%; height: 81%; bottom: 1%; z-index: 1; }


/* 配角摇曳（中间主角不加，交给 WebP 本身） */
.cast { transform-origin: 50% 100%; }
.cast_snake { animation: swaySoft 5s ease-in-out infinite alternate; }
.cast_kaoru { animation: sway 4.2s ease-in-out -1.2s infinite alternate-reverse; }
.cast_daier { animation: sway 4.6s ease-in-out -2.1s infinite alternate; }
.cast_bard  { animation: swayFloat 3.8s ease-in-out -.6s infinite alternate-reverse; }
@keyframes sway {
  0% { translate: 0 0; rotate: -1.6deg; }
  100% { translate: 0 -16px; rotate: 1.6deg; }
}
@keyframes swaySoft {
  0% { translate: -6px 0; rotate: -1deg; }
  100% { translate: 6px -12px; rotate: 1deg; }
}
@keyframes swayFloat {
  0% { translate: 0 0; rotate: 1.5deg; }
  100% { translate: 0 -22px; rotate: -1.5deg; }
}

.hero_front { position: relative; text-align: center; padding: 0 16px 20px; margin-top: -90px; }
/* 只在 logo / 按钮后方压一层渐层，不影响上方人物亮度 */
.hero_front::before {
  content: ""; position: absolute; z-index: -1; left: -50vw; right: -50vw; top: 35%; bottom: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(8, 4, 15, .75) 55%, var(--abyss));
}
.hero_logo { width: min(78%, 420px); margin: 0 auto 14px; }
.hero_logo img { width: 100%; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .7)); }
.hero_tag {
  font-family: var(--serif); font-size: 16px; letter-spacing: .22em; text-indent: .22em;
  color: var(--rose); margin: 6px 0 18px; text-shadow: 0 2px 10px #000;
}

.download { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dl_btn {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  box-sizing: border-box; flex: 0 0 auto; width: min(42vw, 160px); aspect-ratio: 560 / 170; padding: 0 0 0 2px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: 0; color: #fff;
  text-shadow: 0 0 8px rgba(143, 220, 255, .9), 0 1px 2px #0b1530;
  background: url('https://a.xn--xwrq59aduur60a.com/xjdz/sym/btn_frame.sym') center / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 12px rgba(80, 60, 255, .35));
  transition: filter .2s, transform .2s;
}
.dl_btn svg { width: 21px; height: 21px; fill: currentColor; flex: none; filter: drop-shadow(0 0 6px rgba(143, 220, 255, .9)); }
.dl_btn:hover, .dl_btn:focus-visible {
  transform: translateY(-2px); outline: none;
  filter: brightness(1.15) drop-shadow(0 0 16px rgba(255, 140, 198, .7));
}
.dl_btn:focus-visible { filter: brightness(1.2) drop-shadow(0 0 0 #fff) drop-shadow(0 0 10px #fff); }

.reminder {
  max-width: 22em; margin: 4px auto 0; padding: 10px 4px 0;
  border-top: 1px solid rgba(255, 140, 198, .2);
  font-size: 12px; line-height: 1.7; color: var(--dim);
}
.reminder h4 { font-size: 12px; font-weight: 700; color: #ffd98a; }
.reminder p { font-size: 12px; }
.reminder strong { color: var(--mist); }

/* ---------- 通用段落标题 ---------- */
section { position: relative; }
.sec_title {
  text-align: center; margin: 0 auto 32px;
  font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 7vw, 52px);
  letter-spacing: .3em; text-indent: .3em; line-height: 1.2;
}
.sec_title span {
  display: inline-block; padding: 0 .2em;
  /* 呼应 LOGO：冰蓝为主，底部带一点粉 */
  background: linear-gradient(180deg, #ffffff 6%, #d4f1ff 24%, #8fdcff 44%, #c3a8ff 62%, #ff9ad0 80%, #ff6fae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2px rgba(60, 30, 120, .9)) drop-shadow(0 0 12px rgba(110, 190, 255, .45)) drop-shadow(0 0 16px rgba(255, 110, 180, .35));
}
.sec_title::after {
  content: ""; display: block; width: 120px; height: 10px; margin: 10px auto 0;
  background: linear-gradient(90deg, #ff7ab8, #8fdcff 50%, #ff7ab8);
  filter: drop-shadow(0 0 6px rgba(143, 220, 255, .7));
  clip-path: polygon(0 50%, 40% 30%, 46% 0, 52% 40%, 60% 20%, 100% 50%, 60% 80%, 54% 100%, 48% 60%, 40% 70%);
}

/* ---------- 世界观 ---------- */
.story {
  padding: 72px 0 64px; overflow: hidden;
  background:
    linear-gradient(to bottom, var(--abyss) 0%, rgba(8, 4, 15, .55) 30%, rgba(8, 4, 15, .75) 75%, var(--abyss) 100%),
    url('https://a.xn--xwrq59aduur60a.com/xjdz/sym/rift.sym')  center 40% / cover no-repeat;
}
.story { position: relative; isolation: isolate; }
.story_head { position: relative; z-index: 1; padding: 40px 18px 0; min-height: 310px; max-width: 520px; margin: 0 auto; box-sizing: border-box; }
.story_head .sec_title { text-align: left; text-indent: 0; margin-left: 0; }
.story_head .sec_title::after { margin-left: 0; }
.story_head .story_prologue { text-align: left; margin-left: 0; max-width: 8.5em; line-height: 1.7; }
/* 世界观角色：奥菲利亚（手机：包装层不定位，图片对齐整个 section） */
.story_art { display: contents; }
.story_mermaid {
  position: absolute; z-index: 0; top: 44px; right: -22%;
  width: 88%; height: 310px; max-width: none; pointer-events: none;
  object-fit: cover; object-position: 55% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 98%), linear-gradient(to right, transparent 0, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 60%, transparent 98%), linear-gradient(to right, transparent 0, #000 22%);
  mask-composite: intersect;
  filter: drop-shadow(0 0 24px rgba(143, 220, 255, .35));
}
.chronicle { z-index: 1; }
.story_prologue {
  margin: -12px auto 32px; text-align: center;
  font-family: var(--serif); font-size: clamp(17px, 4.6vw, 24px); color: #fff; letter-spacing: .12em;
  text-shadow: 0 2px 12px #000;
}
.era h3 {
  font-family: var(--serif); font-weight: 900; color: #fff; letter-spacing: .08em;
  text-shadow: 0 0 16px rgba(226, 48, 107, .7);
}
.era b { color: var(--rose); }
.era_time { color: var(--ice); }
.era_node {
  display: block; width: 14px; height: 14px; transform: rotate(45deg);
  background: var(--abyss); border: 2px solid var(--rose);
  box-shadow: 0 0 0 4px rgba(226, 48, 107, .22), 0 0 14px var(--crimson);
}
.era_major .era_node { width: 20px; height: 20px; background: var(--crimson); border-color: #fff; }
.elements { display: flex; gap: 8px; margin-top: 10px; padding: 0; }
.elements li {
  list-style: none; width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 13px; color: #fff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.el_god { background: linear-gradient(135deg, #ffe7a8, #c9922f); color: #3a2400 !important; }
.el_water { background: linear-gradient(135deg, #bdeeff, #2b86c9); }
.el_fire { background: linear-gradient(135deg, #ffb07a, #d8342a); }
.el_wind { background: linear-gradient(135deg, #c4f7d6, #2f9e69); }

/* 手机：直式年表——左时间｜中裂缝脊｜右内容，不用卡片 */
.chronicle { position: relative; max-width: 520px; margin: 0 auto; padding: 0 20px; }
.chronicle::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: calc(20px + 66px + 10px + 10px); width: 10px; z-index: 1;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, #ff5c9a 5%, var(--crimson) 50%, #ff5c9a 95%, transparent);
  clip-path: polygon(50% 0, 85% 6%, 25% 14%, 80% 22%, 20% 31%, 75% 40%, 30% 49%, 85% 58%, 20% 67%, 75% 76%, 25% 85%, 70% 93%, 50% 100%, 40% 93%, 0 85%, 55% 76%, 5% 67%, 60% 58%, 10% 49%, 55% 40%, 5% 31%, 60% 22%, 10% 14%, 60% 6%);
  filter: drop-shadow(0 0 8px #ff5c9a);
}
.era {
  position: relative; list-style: none;
  display: grid; grid-template-columns: 66px 20px 1fr; column-gap: 10px;
  padding: 12px 0 14px;
}
.era + .era { border-top: 1px solid rgba(255, 140, 198, .1); }
.era_time {
  grid-column: 1; grid-row: 1 / span 3; text-align: right; padding-top: 6px;
  font-size: 11px; line-height: 1.5; letter-spacing: .04em; white-space: nowrap;
}
.era_node { grid-column: 2; grid-row: 1; margin: 9px auto 0; position: relative; z-index: 2; }
.era_major .era_node { margin-top: 7px; width: 17px; height: 17px; }
.era h3 { grid-column: 3; font-size: 21px; line-height: 1.4; margin: 0 0 2px; }
.era > p:not(.era_time), .era .elements { grid-column: 3; }
.era > p:not(.era_time) { font-size: 13.5px; line-height: 1.8; color: var(--mist); }

/* 手机：收合式年表——绯界裂变常驻展开，其余同时只开一个 */
@media (max-width: 767px) {
  .era.is-collapsible h3 { cursor: pointer; display: flex; align-items: center; gap: 8px; -webkit-tap-highlight-color: transparent; }
  .era.is-collapsible h3::after {
    content: ""; width: 8px; height: 8px; margin-left: auto; margin-right: 4px;
    border-right: 2px solid var(--rose); border-bottom: 2px solid var(--rose);
    transform: rotate(45deg) translateY(-3px); transition: transform .25s;
  }
  .era.is-collapsible.is-open h3::after { transform: rotate(-135deg) translateY(-3px); }
  .era.is-collapsible h3:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
  .era.is-collapsible:not(.is-open) > p:not(.era_time),
  .era.is-collapsible:not(.is-open) .elements { display: none; }
  .era.is-collapsible:not(.is-open) { padding: 10px 0; }
  .era.is-collapsible:not(.is-open) .era_time { padding-top: 4px; }
}

/* 重点：绯界裂变 —— 魔渊图衬底，整段发光 */
.era_major {
  margin: 6px -20px; padding: 18px 20px 20px;
  background:
    linear-gradient(to right, rgba(8, 4, 15, .2), rgba(8, 4, 15, .82) 55%),
    url('https://a.xn--xwrq59aduur60a.com/xjdz/sym/rift.sym')  30% 45% / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 92, 154, .7), inset 0 -1px 0 rgba(255, 92, 154, .7);
}
.era_major + .era { border-top: 0; }
.era_major h3 { font-size: 26px; }
.era_now h3 { color: var(--rose); }

/* ---------- 游戏特色 ---------- */
.introduce {
  padding: 72px 0 80px;
  background:
    linear-gradient(to bottom, var(--abyss), rgba(8, 4, 15, .6) 30%, rgba(8, 4, 15, .7) 70%, var(--abyss)),
    url('https://a.xn--xwrq59aduur60a.com/xjdz/sym/scene_hall.sym')  center / cover no-repeat;
}
.swiper { padding-bottom: 36px; }
.swiper-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.swiper-pagination-bullet { background: var(--mist); opacity: .4; width: 22px; height: 4px; border-radius: 0; }
.swiper-pagination-bullet-active { background: var(--crimson); opacity: 1; }
.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(--crimson); transform: scaleX(0); transition: transform .25s;
  }
  .navbar_nav a:hover::after, .navbar_nav a:focus-visible::after { transform: scaleX(1); }

  .hero_front { padding-bottom: 32px; }
  .hero_logo { width: min(34vw, 41vh); }
  .hero_tag { font-size: 20px; }
  .download { gap: 20px; }
  .dl_btn { width: min(24vw, 22.5vh); gap: 4px; font-size: min(1.8vw, 1.7vh); letter-spacing: .04em; }
  .dl_btn svg { width: min(3vw, 2.8vh); height: min(3vw, 2.8vh); }
  .download { gap: min(20px, 1.9vh); }
  .reminder { max-width: 22em; font-size: max(12px, 1.12vh); }
  .reminder h4, .reminder p { font-size: inherit; }

}

@media (min-width: 1200px) {
}

@media (min-width: 768px) {
  /* 电脑：横向裂缝年表 */
  .chronicle {
    grid-column: 2; max-width: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px;
  }
  .chronicle::before { display: none; }
  .era::before {
    content: ""; position: absolute; left: 0; right: 0; top: 37px; height: 12px; z-index: 0;
    background: linear-gradient(to right, #ff5c9a, var(--crimson) 50%, #ff5c9a);
    clip-path: polygon(0 50%, 12% 20%, 25% 75%, 38% 15%, 50% 70%, 62% 25%, 75% 80%, 88% 20%, 100% 50%, 88% 60%, 75% 100%, 62% 55%, 50% 95%, 38% 45%, 25% 95%, 12% 55%);
    filter: drop-shadow(0 0 8px #ff5c9a);
  }
  .era_node { position: relative; z-index: 1; }
  .era:nth-child(3n+1) { border-left: 0; }
  .chronicle::before {
    top: 37px; bottom: auto; left: 24px; right: 24px; width: auto; height: 12px; transform: none;
    background: linear-gradient(to right, transparent, #ff5c9a 3%, var(--crimson) 50%, #ff5c9a 97%, transparent);
    clip-path: polygon(0 50%, 4% 20%, 9% 75%, 14% 15%, 19% 70%, 25% 25%, 31% 80%, 37% 20%, 43% 70%, 49% 10%, 55% 75%, 61% 25%, 67% 80%, 73% 20%, 79% 70%, 85% 25%, 91% 75%, 96% 30%, 100% 50%, 96% 60%, 91% 95%, 85% 55%, 79% 90%, 73% 45%, 67% 100%, 61% 55%, 55% 95%, 49% 40%, 43% 90%, 37% 45%, 31% 100%, 25% 55%, 19% 90%, 14% 45%, 9% 95%, 4% 50%);
  }
  .era {
    display: block; padding: 0 16px 24px; margin: 0;
    background: linear-gradient(to bottom, transparent 0 62px, rgba(18, 10, 36, .82) 62px);
    border-top: 0; border-left: 1px solid rgba(255, 140, 198, .12); border-bottom: 2px solid rgba(255, 140, 198, .35);
    box-shadow: none;
  }
  .era:first-child { border-left: 0; }
  .era + .era { border-top: 0; }
  .era_time { height: 28px; padding: 0; text-align: left; font-size: 13px; letter-spacing: .25em; }
  .era_node { margin: 6px 0 22px 2px; width: 16px; height: 16px; }
  .era_major .era_node { width: 22px; height: 22px; margin: 3px 0 19px 0; }
  .era h3 { font-size: 26px; margin: 0 0 8px; }
  .era_major h3 { font-size: 30px; }
  .era > p:not(.era_time) { font-size: 14px; line-height: 1.85; }
  .era_major {
    margin: 0; padding: 0 16px 24px;
    background: linear-gradient(to bottom, transparent 0 62px, rgba(226, 48, 107, .32) 62px, rgba(18, 10, 36, .9));
    border-bottom-color: var(--crimson); box-shadow: none;
  }
  .elements li { width: 38px; height: 38px; font-size: 15px; }
}

/* 平板（768–1099）：人鱼在标题右侧，年表 3×2 全宽 */
@media (min-width: 768px) and (max-width: 1099px) {
  .story { padding: 64px 32px 56px; }
  .story_head { max-width: none; min-height: 400px; padding: 80px 0 0; }
  .story_head .story_prologue { max-width: none; }
  .story_mermaid {
    width: auto; height: 540px; right: 4%; top: 20px; object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 80%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 80%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .chronicle { padding: 0; max-width: none; }
}

/* 电脑（≥1100）：左 奥菲利亚｜右 标题＋年表 */
@media (min-width: 1100px) {
  /* 电脑：左 奥菲利亚｜右 标题＋年表（3×2） */
  .story {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr);
    grid-template-rows: auto 1fr; column-gap: 32px;
    padding: 80px max(24px, calc((100% - 1320px) / 2)) 72px;
  }
  /* 奥菲利亚：放大并站在水波光环中，尾巴沉入下缘 */
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); min-height: 720px; }
  .story_art {
    display: block; position: relative; grid-column: 1; grid-row: 1 / span 2;
    margin: -80px 0 -72px;
  }
  .story_art::before {
    content: ""; position: absolute; left: 50%; top: 44%; width: 760px; height: 760px;
    transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
    background:
      repeating-radial-gradient(circle, transparent 0 46px, rgba(143, 220, 255, .16) 47px 48px),
      radial-gradient(circle, rgba(143, 220, 255, .3) 0%, rgba(110, 120, 255, .14) 42%, transparent 68%);
    -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
    mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  }
  .story_mermaid {
    position: absolute; z-index: 1; left: 50%; top: 80px; right: auto; bottom: auto;
    width: auto; height: calc(100% + 220px); max-width: none; max-height: none;
    transform: translateX(-50%); object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(143, 220, 255, .4));
    /* 尾巴在区块下缘之前就渐层透明 */
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, rgba(0, 0, 0, .6) 54%, transparent 68%);
    mask-image: linear-gradient(to bottom, #000 40%, rgba(0, 0, 0, .6) 54%, transparent 68%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .story_head { grid-column: 2; min-height: 0; max-width: none; padding: 0; margin: 0; }
  .story_head .sec_title { text-align: left; text-indent: 0; margin: 0 0 24px; }
  .story_head .sec_title::after { margin: 10px 0 0; }
  .story_head .story_prologue { text-align: left; margin: -4px 0 32px; max-width: none; }
}


/* 首屏五人阵（≥768）
   人物区永远贴齐首屏顶端（top: 0），宽度上限 1.8 倍首屏高，超宽萤幕会集中在中间。
   人物高度 = min(设定比例, 对应 vw)：只有视窗比 5:4 更窄时才会等比缩小，避免互相挤压 */
@media (min-width: 768px) {
  .hero { padding-top: 60px; }
  .hero_front { margin-top: 0; }
  .hero_cast {
    position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: 0 auto;
    height: auto; width: min(100%, 180vh); min-height: 0;
  }
  .hero_anim { height: min(100%, 80vw); max-width: 60%; bottom: 0; }
  /* 外左 霜茗(后层)｜内左 黛儿｜中 主角｜内右 吟游诗人｜外右 薰(后层) */
  .cast_snake { left: 10%; height: min(74%, 59vw); bottom: 7%; z-index: 0; }
  .cast_daier { left: 30%; height: min(88%, 70vw); bottom: 0; z-index: 2; }
  .cast_bard  { left: 71%; height: min(88%, 70vw); bottom: 0; z-index: 2; }
  .cast_kaoru { left: 90%; height: min(76%, 61vw); bottom: 7%; z-index: 0; }
}

/* 直式平板（≥768 且直式）：用电脑五人阵，首屏高度跟着宽度走，避免上方大片空白 */
@media (min-width: 768px) and (max-aspect-ratio: 1/1) {
  .hero { min-height: 0; height: calc(60px + 92vw); }
  .hero_cast { height: 100%; width: 100%; }
  .hero_anim { height: 96%; max-width: 64%; }
  .cast_snake { left: 9%;  height: 60%; bottom: 12%; }
  .cast_daier { left: 24%; height: 74%; bottom: 4%; }
  .cast_bard  { left: 77%; height: 74%; bottom: 4%; }
  .cast_kaoru { left: 92%; height: 62%; bottom: 12%; }
}

/* 大手机／小平板（600–767 且宽高比 < 5:4）：沿用手机排法，
   人物区填满首屏剩余高度，宽度不超过 0.8 倍视窗高度，避免人物散太开 */
@media (min-width: 600px) and (max-width: 767px) and (max-aspect-ratio: 5/4) {
  .hero_cast { min-height: 0; width: min(100%, 80vh); margin: 0 auto; }
  .hero_logo { width: min(440px, 56vw, 40vh); }
  .dl_btn { width: min(230px, 30vw); font-size: 16px; }
  .dl_btn svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vortex_glow { animation: none; }
  .cast, .cast_kaoru, .cast_snake, .cast_daier, .cast_bard { animation: none; }
  .dl_btn { transition: none; }
}

/* 手机：世界观 → 游戏特色 之间的留白缩小 */
@media (max-width: 767px) {
  .story { padding-bottom: 20px; }
  .introduce { padding-top: 36px; padding-bottom: 40px; }
  .introduce .sec_title { margin-bottom: 22px; }
}

/* ---------- 更多游戏 BANNER（仅手机） ---------- */
.more_game { width: 90%; max-width: 520px; margin: 0 auto; padding: 0 0 40px; text-align: center; }
#more_game_btn {
  display: block; overflow: hidden; border-radius: 12px;
  border: 2px solid rgba(255, 140, 198, .55);
  box-shadow: 0 0 0 4px rgba(226, 48, 107, .15), 0 0 24px rgba(226, 48, 107, .45), 0 8px 24px rgba(0, 0, 0, .6);
}
#more_game_btn img { width: 100%; display: block; }
@media (min-width: 768px) {
  .mobile { display: none !important; }
}
/* ===== 下载按钮防冲突（只改 CSS 版）=====
   平台 JS 会把 #down-ios-pack 设成 display: block，所以按钮一律以 block 排版：
   图示＋文字用 inline-block 并排、文字置中，行高 = 按钮高度来垂直置中。
   （不动按钮的 display，平台的掉签切换照常运作） */
.download .dl_btn { display: block; }
.download a.dl_btn {
  padding: 0 !important; margin: 0 !important;
  text-align: center !important; white-space: nowrap !important;
  line-height: calc(min(42vw, 160px) * 170 / 560) !important;
  animation: none !important; -webkit-animation: none !important;
}
.download a.dl_btn > svg,
.download a.dl_btn > span {
  display: inline-block !important; float: none !important; position: static !important;
  vertical-align: middle !important; margin: 0 !important; padding: 0 !important;
}
.download a.dl_btn > svg { margin-right: 3px !important; max-width: none !important; }
.download a.dl_btn > span { width: auto !important; line-height: 1 !important; font-size: inherit !important; }

@media (min-width: 768px) {
  .download a.dl_btn { line-height: calc(min(24vw, 22.5vh) * 170 / 560) !important; }
  .download a.dl_btn > svg { margin-right: 4px !important; }
}
@media (min-width: 600px) and (max-width: 767px) and (max-aspect-ratio: 5/4) {
  .download a.dl_btn { line-height: calc(min(230px, 30vw) * 170 / 560) !important; }
}
