/* reset */
body,
dl,
dd,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
p,
form,
header,
section,
article,
footer {
  margin: 0;
}
body,
button,
input,
select,
textarea {
  font:
    12px/1.5 tahoma,
    "\5FAE\8F6F\96C5\9ED1",
    sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
}
em,
b {
  font-style: normal;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  border: 0;
}
button,
input,
select,
textarea {
  font-size: 100%;
  outline: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
td,
th,
ul,
ol {
  padding: 0;
}

/* footer */
.section-foot {
  display: none;
  /* 必须给固定高度：swiper 初始化时页脚内容尚未由 foot.js 注入（高度为 0），
     高度为 0 的 slide 不进 snapGrid，页脚将永远滚不出来 */
  height: 160px !important;
  box-sizing: border-box;
  background: #000;
}
/* 页脚自定义区：左侧开发商标识图（#gfooter 官方页脚组件会把 .foot_left
   等自定义区块收进页脚模板的对应插槽，样式由 foot.js 注入结构接管） */
#gfooter .dev-logo {
  width: 234px;
  height: 50px;
  margin: 0 0 0 20px;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dev-logo.png") no-repeat 0 0 / 100% 100%;
}
.section-foot,
.section-foot a,
.section-foot a:visited {
  color: #666;
}

/* public */
html,
body {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  color: #fff;
  background: #000;
  height: 100%;
  min-width: 1024px;
  overflow: hidden;
  font-family:
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    "Heiti SC",
    sans-serif;
  font-size: 16px;
}
.container {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.container-swiper {
  width: 100%;
  height: 100%;
}
.section-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* ==========================================================================
   根字号缩放基准说明
   设计稿(Figma)画布宽度 2560px，换算公式：
     html fontSize(px) = clamp(1024, 当前窗口宽度, 3840) / 2560 * 100
   即 1rem = 100px(原生 2560 宽度下)；下文所有尺寸均按 "设计稿px / 100 = rem" 换算，
   因此页面内容会随浏览器窗口宽度等比缩放，同时铺满整个可视区域。
   实际换算脚本见 index.html <head> 内联脚本 与 js/index.js 的 PAGE.fn.setRootFontSize。
   ========================================================================== */

/* ==========================================================================
   表单控件默认样式清除（弹窗内 input/button 需要，先清除系统默认外观再自绘）
   ========================================================================== */
/* 用 :where() 把结构选择器的权重清零，使其与 .btn-xxx 等单类选择器保持同级特异性（0,1,0），
   后面写的具体按钮背景图样式才能按源码顺序正常覆盖这里的 background 重置，
   否则 ".dlg-root button"（特异性 0,1,1）会一直压制 ".btn-xxx"（特异性 0,1,0），
   导致所有弹窗内 <button> 的背景图完全不可见 */
.dlg-root :where(button, input, textarea, select) {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  color: inherit;
  line-height: normal;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.dlg-root :where(button) {
  cursor: pointer;
}
.dlg-root button::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.dlg-root input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.dlg-root input[type="checkbox"] {
  width: auto;
  height: auto;
}

/* 覆盖全局 a:hover{text-decoration:underline} 重置样式，本页新增的可点击元素统一不带下划线 */
.site-header a,
.slide-home__content a,
.scroll-down-hint,
.social-bar a,
.dlg-root a,
.site-header a:hover,
.slide-home__content a:hover,
.scroll-down-hint:hover,
.social-bar a:hover,
.dlg-root a:hover {
  text-decoration: none;
}

/* ==========================================================================
   固定顶部导航（position:fixed，跨所有 swiper 翻页屏幕常驻，z-index 高于 swiper 内容）
   ========================================================================== */
.site-header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 4.22rem;
  z-index: 500;
  pointer-events: none;
  user-select: none;
}
.site-header__decor {
  position: absolute;
  left: 0;
  top: 0;
  width: 4.49rem;
  height: 4.2rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/nav-logo-decor.png") no-repeat;
  background-size: 100% 100%;
}
.site-header__bar {
  position: absolute;
  left: 1.97rem;
  top: 0;
  width: 23.63rem;
  height: 1.2rem;
  background: #000;
}
.site-nav {
  position: absolute;
  left: 4rem;
  top: 0.51rem;
  width: 6.09rem;
  height: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}
.site-nav__indicator {
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.77rem;
  height: 0.07rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/nav-menu-indicator.png") no-repeat;
  background-size: 100% 100%;
  transition:
    left 0.3s ease,
    width 0.3s ease;
}
.site-nav__item {
  position: relative;
  display: inline-block;
  font-size: 0.24rem;
  font-weight: 500;
  letter-spacing: 0.024rem;
  line-height: 1;
  color: #9c9c9c;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav__item:hover,
.site-nav__item.is-active {
  color: #fff;
  text-decoration: none;
}

.site-login {
  position: absolute;
  /* left: 21rem; */
  right: 4rem;
  top: 0.43rem;
  height: 0.3rem;
  display: flex;
  align-items: center;
  pointer-events: auto;
}
.site-login__guest {
  position: relative;
}
.site-login__link {
  display: inline-block;
  font-size: 0.242rem;
  font-weight: 500;
  letter-spacing: 0.024rem;
  line-height: 1;
  color: #9c9c9c;
  transition: color 0.2s;
  position: relative;
}
.site-login__link::after {
  content: '';
  display: block;
  width: 96%;
  height: 0.02rem;
  background: #9c9c9c;
  position: absolute;
  bottom: -0.08rem;
  left: 0;
}
.site-login__guest:hover .site-login__link {
  color: #fff;
}
/* .site-login__underline {
  display: block;
  width: 0.63rem;
  height: 0.04rem;
  margin-top: 0.08rem;
  background: linear-gradient(90deg, #ff9a3c, #e8321f);
} */
.site-login__dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.14rem;
  min-width: 1.6rem;
  padding: 0.08rem 0;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 138, 31, 0.35);
  border-radius: 0.04rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.08rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 10;
}
.site-login__guest:hover .site-login__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-login__dropdown a {
  display: block;
  padding: 0.08rem 0.2rem;
  font-size: 0.16rem;
  color: #d8d8d8;
  white-space: nowrap;
  text-decoration: none;
}
.site-login__dropdown a:hover {
  color: #fff;
  background: rgba(255, 122, 26, 0.18);
}
.site-login__user {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  font-size: 0.18rem;
  color: #d8d8d8;
  white-space: nowrap;
}
.site-login__user b {
  color: #fff;
  font-weight: 700;
  max-width: 2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}
.site-login__logout {
  color: #9c9c9c;
  text-decoration: none;
  font-size: 0.16rem;
}
.site-login__logout:hover {
  color: #fff;
}

/* 顶部导航「立即预约/绑定手机/已绑定」—— 与首屏 .btn-reserve-group 同款做法：
   3 个同位置的独立按钮元素叠放在同一个定位容器内，JS 通过 is-active 控制同时只
   显示 1 个（而不是单个按钮切换 src/背景图）。定位容器复用原 .btn-nav-reserve
   的坐标尺寸，内部每个状态按钮用 inset:0 铺满容器。 */
.btn-nav-reserve-group {
  position: absolute;
  left: 21.97rem;
  top: 0;
  width: 3.22rem;
  height: 1.11rem;
  pointer-events: auto;
}
.btn-nav-reserve-state {
  position: absolute;
  inset: 0;
  display: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
  text-indent: -99rem;
  overflow: hidden;
}
.btn-nav-reserve-state.is-active {
  display: block;
}
.btn-nav-reserve-state--default {
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-nav-reserve.png");
}
.btn-nav-reserve-state--default:hover {
  filter: brightness(1.08);
}
.btn-nav-reserve-state--default:active {
  filter: brightness(0.94);
}
.btn-nav-reserve-state--bind {
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-nav-bind.png");
  cursor: pointer;
}
.btn-nav-reserve-state--bind:hover {
  filter: brightness(1.08);
}
.btn-nav-reserve-state--bind:active {
  filter: brightness(0.94);
}
.btn-nav-reserve-state--bound {
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-nav-bound.png");
  /* cursor: not-allowed; */
}

.site-logo {
  position: absolute;
  left: 0.25rem;
  top: 0.04rem;
  width: 3.38rem;
  height: 2.39rem;
  display: block;
  pointer-events: auto;
}
.site-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   背景媒体层（视频 + 静态图共存；视频可播放前显示静态图兜底）
   ========================================================================== */
.bg-media {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: #000;
}
.bg-media__video,
.bg-media__poster {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.bg-media__video {
  z-index: 1;
}
.bg-media__poster {
  z-index: 2;
  transition: opacity 0.6s ease;
}
/* 视频成功播放后，JS 会给 .bg-media 添加 .is-video-ready，淡出静态图 */
.bg-media.is-video-ready .bg-media__poster {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   第一屏：首页内容
   ========================================================================== */
.slide-home__content {
  position: absolute;
  left: 2.75rem;
  /* 用 bottom 而非 top 锚定：.slide-home 的高度取自真实视口高度（非按宽度等比缩放），
     窗口宽高比与设计稿 16:9 不一致时，top 值会让内容在视觉上偏移到画面中间；
     bottom 锚定可确保内容始终贴在首屏画面左下角 */
  bottom: 1.996rem;
  z-index: 2;
}
.slide-home__headline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.04rem;
  line-height: 1;
  color: #f3d4b8;
  white-space: nowrap;
  font-style: italic;
  animation: fxFadeSlideUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.slide-home__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 1.1rem;
  animation: fxFadeSlideUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
}

/* 立即预约 / 绑定手机 / 已绑定 —— Figma「按钮4个」分组内 3 个同位置的独立矩形图层
   （绑定手机、已绑定为 visible:false 隐藏图层，不是立即预约的伪状态），
   拆成 3 个独立按钮元素叠放在同一个定位容器内，JS 通过 is-active 控制同时只显示 1 个 */
.btn-reserve-group {
  position: relative;
  width: 4.94rem;
  height: 0.96rem;
}
.btn-reserve-state {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-weight: 700;
  font-size: 0.26rem;
  text-align: center;
  transition: filter 0.2s;
  text-indent: -99rem;
  overflow: hidden;
}
.btn-reserve-state.is-active {
  display: flex;
}
.btn-reserve-state--default {
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-hero-reserve.png");
}
.btn-reserve-state--default:hover {
  filter: brightness(1.08);
}
.btn-reserve-state--default:active {
  filter: brightness(0.92);
}
/* 对应 Figma 隐藏图层"绑定手机"(节点 2:79)/"已绑定"(节点 2:80)，
   均为设计稿「开发使用图层>按钮4个」分组内的真实切图（文字已烘焙进图片，与立即预约同款边框样式） */
.btn-reserve-state--bind {
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-hero-bind.png");
  cursor: pointer;
}
.btn-reserve-state--bind:hover {
  filter: brightness(1.08);
}
.btn-reserve-state--bind:active {
  filter: brightness(0.92);
}
.btn-reserve-state--bound {
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-hero-bound.png");
  /* cursor: not-allowed; */
}

.btn-hero-signup {
  display: block;
  width: 4.28rem;
  height: 0.88rem;
  margin-top: 0.08rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-hero-signup.png") no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
  text-indent: -99rem;
  overflow: hidden;
}
.btn-hero-signup:hover {
  filter: brightness(1.08);
}
.btn-hero-signup:active {
  filter: brightness(0.92);
}

/* 向下滑动提示箭头 */
.scroll-down-hint {
  position: absolute;
  left: 12.68rem;
  bottom: 0.47rem;
  width: 0.35rem;
  height: 0.17rem;
  z-index: 2;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/icon-scroll-down.png") no-repeat;
  background-size: 100% 100%;
  animation: fxArrowBounce 1.4s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
/* 第四屏「人物」起（其后即页脚）不再提示下滑，隐藏箭头（js toggleScrollDownHint 切换） */
.scroll-down-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* 社媒侧边栏 */
.social-bar {
  position: absolute;
  left: 0.56rem;
  /* 同上，用 bottom 锚定避免窗口宽高比变化时内容偏移到画面中间，始终贴左下角 */
  bottom: 0.63rem;
  width: 0.59rem;
  height: 4.36rem;
  z-index: 3;
  text-align: center;
}
.social-bar__label {
  display: block;
  font-size: 0.241rem;
  font-weight: 400;
  line-height: 1.2;
  color: #ffe7d4;
}
.social-bar__divider {
  display: block;
  width: 0.5rem;
  height: 1px;
  margin: 0.12rem auto 0;
  background: #ffe7d4;
  opacity: 0.6;
}
.social-bar__list {
  position: absolute;
  left: 0;
  top: 1.22rem;
  width: 0.59rem;
  height: 3.14rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/social-icons.png") no-repeat;
  background-size: 100% 100%;
}
.social-bar__list li {
  height: 25%;
}
.social-bar__item {
  display: block;
  width: 100%;
  height: 100%;
}
/* 二维码悬浮弹层（设计稿隐藏图层：二维码框，hover/点击微信图标触发显示） */
.social-qr {
  position: absolute;
  left: 0.96rem;
  top: 0;
  width: 3.91rem;
  height: 3.94rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-0.12rem);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
  pointer-events: none;
}
.social-qr.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.social-qr__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.social-qr__code {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: 3.42rem;
  height: 3.42rem;
}
/* 视频号二维码弹层：同款结构，垂直位置对准社媒栏第 2 个图标（视频号），
   比微信弹层（对准第 1 个图标，top:0）低一个图标位的高度（列表高 3.14rem / 4 项） */
.social-qr--sph {
  top: 0.79rem;
}

/* ==========================================================================
   动效
   ========================================================================== */
@keyframes fxFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fxArrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.1rem);
  }
}

/* ==========================================================================
   弹窗/遮罩/滚动锁定通用骨架（配合 js/index.js 内的 DialogController 使用）
   结构：.dlg-overlay > .dlg-mask + .dlg-center-box
   调用：DialogController.show('reward' | 'tip' | 'gallery') / .hide(name) / .hideAll()
   ========================================================================== */
.dlg-root {
  /* 不设置 position/z-index，避免形成独立层叠上下文，
     否则内部 .dlg-overlay 的 z-index 只在本层叠上下文内生效，
     会被 .swiper{z-index:1} 等兄弟层叠上下文盖住 */
}
.dlg-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.dlg-overlay.is-show {
  z-index: 2000;
}
.dlg-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.dlg-overlay.is-show .dlg-mask {
  opacity: 1;
  pointer-events: auto;
}
.dlg-center-box {
  position: absolute;
  left: 50%;
  top: 50%;
  max-height: var(--vh100, 100vh);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition:
    transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.25s ease;
  pointer-events: none;
}
.dlg-overlay.is-show .dlg-center-box {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
html.body-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* ---- 浮层_预约得奖励页面 ---- */
.dlg-reward {
  left: 45%;
  width: 16.51rem;
  height: 7.91rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dialog-reward-bg.png") no-repeat;
  background-size: 100% 100%;
}
/* Figma 设计稿内"浮层_预约得奖励页面"本身没有关闭按钮图层，
   按需求在右上角补充一个关闭入口，样式与"浮层_图片或视频弹窗"的关闭按钮保持一致
   （复用同一张 btn-gallery-close.png 切图 + 同样的 hover 效果） */
.dlg-reward__close {
  position: absolute;
  right: 0.9rem;
  top: 0.36rem;
  width: 0.52rem;
  height: 0.42rem;
  /* .dlg-reward__form 在 DOM 顺序上排在关闭按钮之后，且铺满整个弹窗（left/top:0, 100%x100%），
     不显式提高层级的话会盖住关闭按钮右上角这块区域，导致点击落在 form 上而不是按钮上 */
  z-index: 2;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-gallery-close.png") no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
}
.dlg-reward__close:hover {
  filter: brightness(1.3);
}
.dlg-reward__left {
  position: absolute;
  left: 4.76rem;
  top: 1.68rem;
  width: 3.44rem;
  text-align: center;
}
.dlg-reward__title {
  margin: 0;
  font-size: 0.22rem;
  color: #fff;
  width: 100%;
  position: absolute;
  left: 0;
  top: 30px;
}
.dlg-reward__chest {
  display: block;
  width: 100%;
}
.dlg-reward__sub {
  margin: 0.2rem 0 0;
  font-size: 0.22rem;
  color: #d8d8d8;
  width: 100%;
  position: absolute;
  left: 0;
  top: 266px;
}
.dlg-reward__form {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.dlg-field {
  position: absolute;
  left: 8.97rem;
  top: 1.87rem;
  width: 5.61rem;
  height: 0.52rem;
  margin: 0;
  display: flex;
  align-items: center;
}
.dlg-field label {
  flex: none;
  width: 0.84rem;
  font-size: 0.2rem;
  font-weight: 700;
  color: #fff;
}
.dlg-field input {
  flex: 1;
  height: 0.46rem;
  padding: 0 0.16rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #A8330A;
  /* border-radius: 0.04rem; */
  font-size: 0.18rem;
  color: #fff;
}
.dlg-field--code {
  top: 2.67rem;
}
.dlg-field--code input {
  width: 2.03rem;
  flex: none;
}
.btn-get-code {
  flex: none;
  width: 2.34rem;
  height: 0.48rem;
  margin-left: 0.07rem;
  background: #FD620A;
  box-sizing: border-box;
  border: 1px solid #A8330A;
  /* border-radius: 0.04rem; */
  font-weight: bold;
  font-size: 0.2rem;
  color: #1a1a1a;
  text-align: center;
  transition: filter 0.2s;
}
.btn-get-code:hover:not(:disabled) {
  filter: brightness(1.1);
}
.btn-get-code:disabled {
  background: #6b4324;
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}
.dlg-agree {
  position: absolute;
  left: 8.92rem;
  top: 3.42rem;
  width: 3.78rem;
  height: 0.55rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.dlg-agree__box {
  position: relative;
  flex: none;
  width: 0.64rem;
  height: 0.55rem;
  margin-right: 0.14rem;
  /* background: #ff7a1a; */
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/checkbox-unchecked.png") no-repeat 0 0 / 100% 100%;
  box-shadow: 0.03rem 0.03rem 0 rgba(0, 0, 0, 0.5);
}
.dlg-agree__box::after {
  content: "";
  position: absolute;
  left: 46%;
  top: 42%;
  width: 0.2rem;
  height: 0.12rem;
  border-left: 4px solid #1a1a1a;
  border-bottom: 4px solid #1a1a1a;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0;
  transition: opacity 0.15s;
}
.dlg-agree input:checked ~ .dlg-agree__box::after {
  opacity: 1;
}
.dlg-agree__text {
  font-size: 0.2rem;
  font-weight: 700;
  color: #fff;
}
.dlg-reward__disclaimer {
  position: absolute;
  left: 8.98rem;
  top: 4.12rem;
  width: 5.6rem;
  margin: 0;
  font-size: 0.16rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.btn-dialog-claim {
  position: absolute;
  left: 9.85rem;
  top: 5.59rem;
  width: 3.37rem;
  height: 0.69rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-dialog-claim.png") no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
}
.btn-dialog-claim:hover {
  filter: brightness(1.08);
}

/* ---- 浮层_温馨提示弹窗 ---- */
.dlg-tip {
  width: 13.97rem;
  height: 7.04rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dialog-tip-bg.png") no-repeat;
  background-size: 100% 100%;
  text-align: center;
}
.dlg-tip__title {
  position: absolute;
  left: 50%;
  top: 0.83rem;
  width: 2.54rem;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.6327rem;
  font-weight: 400;
  color: #f3d3b7;
  white-space: nowrap;
  margin-left: 20px;
  font-weight: bold;
}
.dlg-tip__msg {
  /* position: absolute;
  left: 50%;
  top: 2.66rem;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.3rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  margin-left: 20px; */
  height: 5.7rem;
  padding: 0 1.4rem 0 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-dialog-confirm {
  position: absolute;
  left: 5.06rem;
  top: 4.21rem;
  width: 4.29rem;
  height: 0.88rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-dialog-confirm.png") no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
}
.btn-dialog-confirm:hover {
  filter: brightness(1.08);
}

/* ---- 浮层_解除手机号绑定弹窗 / 浮层_除手机号绑定提示信息弹窗 ----
   两个弹窗共用同一张框体切图（Figma 内 imageRef 相同），尺寸同为 1375x694；
   换算规则与其他弹窗一致：rem = 设计稿像素值 / 100 */
.dlg-unbind,
.dlg-unbind-tip {
  width: 13.75rem;
  height: 6.94rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dialog-unbind-bg.png") no-repeat;
  background-size: 100% 100%;
}
/* 两个弹窗标题同位（x 5.52rem / y 0.71rem，54.27px） */
.dlg-unbind__title {
  position: absolute;
  left: 5.52rem;
  top: 0.71rem;
  margin: 0;
  font-size: 0.5427rem;
  font-weight: 400;
  line-height: 0.53rem;
  color: #f3d3b7;
  white-space: nowrap;
}
.dlg-unbind__phone {
  position: absolute;
  left: 5.78rem;
  top: 1.76rem;
  margin: 0;
  font-size: 0.26rem;
  color: #fff;
  white-space: nowrap;
}
.dlg-unbind__code {
  position: absolute;
  left: 4.35rem;
  top: 2.42rem;
  margin: 0;
  display: flex;
  align-items: center;
}
.dlg-unbind__code input {
  flex: none;
  width: 3.12rem;
  height: 0.48rem;
  padding: 0 0.1rem;
  box-sizing: border-box;
  border: 0;
  outline: none;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dialog-unbind-input.png") no-repeat 0 0 / 100% 100%;
  font-size: 0.2rem;
  text-align: center;
  color: #fff;
}
.dlg-unbind__code input::placeholder {
  color: #f3d3b7;
  opacity: 1;
}
/* 设计稿内"获取验证码"按钮切图为纯橙色色块，直接用 CSS 纯色实现，无需额外切图 */
.btn-unbind-get-code {
  flex: none;
  width: 2.4rem;
  height: 0.48rem;
  margin-left: 0.22rem;
  border: 0;
  background: #fd620a;
  font-size: 0.2rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  transition: filter 0.2s;
}
.btn-unbind-get-code:hover:not(:disabled) {
  filter: brightness(1.1);
}
.btn-unbind-get-code:disabled {
  filter: brightness(0.7);
  color: rgba(0, 0, 0, 0.6);
  cursor: not-allowed;
}
/* 设计稿勾选框（42x35）比绑定弹窗的（64x55）小，选中态打勾按比例缩小，方案与 .dlg-agree__box 一致 */
.dlg-unbind__agree {
  position: absolute;
  left: 2.66rem;
  top: 3.36rem;
  margin: 0;
  cursor: pointer;
}
.dlg-unbind__agree input {
  display: none;
}
.dlg-unbind__check {
  position: relative;
  display: block;
  width: 0.42rem;
  height: 0.35rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dialog-unbind-checkbox.png") no-repeat 0 0 / 100% 100%;
}
.dlg-unbind__check::after {
  content: "";
  position: absolute;
  left: 45%;
  top: 45%;
  width: 0.16rem;
  height: 0.09rem;
  border-left: 3px solid #1a1a1a;
  border-bottom: 3px solid #1a1a1a;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0;
  transition: opacity 0.15s;
}
.dlg-unbind__agree input:checked ~ .dlg-unbind__check::after {
  opacity: 1;
}
.dlg-unbind__notice {
  position: absolute;
  left: 3.14rem;
  top: 3.37rem;
  width: 8.12rem;
  margin: 0;
  font-size: 0.2rem;
  font-weight: 500;
  line-height: 0.3rem;
  color: #fff;
}
.btn-dialog-unbind {
  position: absolute;
  left: 5.23rem;
  top: 4.62rem;
  width: 3.79rem;
  height: 0.78rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-dialog-unbind.png") no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
}
.btn-dialog-unbind:hover {
  filter: brightness(1.08);
}
.dlg-unbind-tip__msg {
  position: absolute;
  left: 2.94rem;
  top: 1.98rem;
  width: 8.4rem;
  margin: 0;
  font-size: 0.2rem;
  font-weight: 500;
  line-height: 0.3rem;
  color: #fff;
}
/* 提示弹窗底部「按钮-关闭」节点在设计稿中为隐藏图层、切图无法直接导出，
   以同款「立即解绑」金色按钮切图为底：程序化抹除原文字后烘焙「关闭」二字
   （颜色 #311C37 与原文字一致，见 ossweb-img/pc/btn-dialog-unbind-close.png） */
.dlg-unbind-tip__close {
  position: absolute;
  left: 5.23rem;
  top: 4.3rem;
  width: 3.79rem;
  height: 0.78rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-dialog-unbind-close.png") no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
}
.dlg-unbind-tip__close:hover {
  filter: brightness(1.08);
}

/* ---- 浮层_图片或视频弹窗（预留给后续屏幕调用 PAGE.act.showGallery()） ---- */
.dlg-gallery {
  width: 18rem;
  height: 10.6rem;
}
.dlg-gallery__frame {
  position: absolute;
  left: 1.2rem;
  top: 0;
  width: 15.97rem;
  height: 10.25rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dialog-gallery-frame.png") no-repeat;
  background-size: 100% 100%;
}
.dlg-gallery__stage {
  position: absolute;
  left: 0.08rem;
  top: 1.21rem;
  width: 15.23rem;
  height: 8.54rem;
  overflow: hidden;
  background: #0a0a0a;
  /* 设计稿内"图片框"是平行四边形裁切的斜切相框（非直角矩形），
     实测 dialog-gallery-frame.png 橙色可视窗口的四角坐标后换算得出该平行四边形。
     这个裁剪框作用在 Swiper 容器本身（静止不动），内部 .swiper-wrapper 左右滑动切换时，
     始终只露出这个平行四边形窗口范围内的内容，不会出现"整个窗口跟着左右移动"的问题，
     也不需要再给每个 slide 的图片单独裁剪一次平行四边形 */
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
.dlg-gallery__stage .swiper-slide img,
.dlg-gallery__stage .swiper-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dlg-gallery__decor {
  position: absolute;
  left: 0.55rem;
  top: 8.96rem;
  width: 5.8rem;
  height: 0.99rem;
  pointer-events: none;
  z-index: 3;
}
.btn-gallery-prev,
.btn-gallery-next {
  position: absolute;
  top: 4.5rem;
  width: 1.39rem;
  height: 1.52rem;
  /* HTML 结构上这两个按钮在 .dlg-gallery__frame 之前，
     而相框图右上角有一块不透明的红色撕裂装饰正好压在关闭按钮位置，
     不加 z-index 时按后续兄弟元素覆盖的默认层叠顺序会被相框盖住，这里显式提高层级 */
  z-index: 2;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: filter 0.2s;
}
.btn-gallery-prev {
  left: 0;
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-gallery-prev.png");
}
.btn-gallery-next {
  left: 16.61rem;
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-gallery-next.png");
}
.btn-gallery-prev:hover,
.btn-gallery-next:hover {
  filter: brightness(1.2);
}
.btn-gallery-close {
  position: absolute;
  left: 15.61rem;
  top: 0.53rem;
  width: 0.52rem;
  height: 0.42rem;
  z-index: 2;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-gallery-close.png") no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
}
.btn-gallery-close:hover {
  filter: brightness(1.3);
}
.dlg-gallery__dots {
  position: absolute;
  left: 7.57rem;
  top: 10.45rem;
  width: 1.59rem;
  height: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 翻页小圆点素材复用自「游戏特色」轮播同款切图（dot-feature-default/active.png）：
   原本图集/新闻/游戏特色三处各自切了一张尺寸略有差异（42x15 / 44x17 / 72x23）但
   颜色、平行四边形斜切角度完全一致的小圆点图（实测验证：默认态三张都是纯色
   #464646，高亮态三张都是同一条橙到黄的渐变色，斜切比例也一致），本质是同一个
   设计元素被重复导出了 3 份。又因为这里全部用 background-size:100% 100% 按 CSS
   width/height 拉伸铺满，图片原始像素尺寸并不影响最终显示效果，于是统一合并为
   一套切图，取三者中分辨率最高的 dot-feature-default/active.png，删掉了
   dot-default.png/dot-active.png/dot-news-default.png/dot-news-active.png
   这四个冗余文件。 */
.dlg-gallery__dots span {
  display: block;
  width: 0.42rem;
  height: 0.15rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dot-feature-default.png") no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.dlg-gallery__dots span.is-active {
  width: 0.7rem;
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dot-feature-active.png");
}

/* ==========================================================================
   第三~四屏（新闻/人物）内容制作中占位屏
   后续补充真实设计稿内容时，直接在 .section-placeholder 内替换为正式结构即可，
   顶部导航高亮与底部指示条联动逻辑（data-slide）无需改动。
   ========================================================================== */
.section-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1310 0%, #050302 100%);
}
.section-placeholder__inner {
  text-align: center;
}
.section-placeholder__title {
  margin: 0;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  color: #f3d4b8;
}
.section-placeholder__desc {
  margin: 0.24rem 0 0;
  font-size: 0.2rem;
  color: #9c9c9c;
}

/* ==========================================================================
   第二屏：游戏特色
   每个 slide 内部复用首屏 .bg-media（视频+静态图共存）结构与定位规则，
   因此这里只需定义 Swiper 容器本身的尺寸，视频/静态图的缩放裁切复用全局
   .bg-media__video/.bg-media__poster 规则（position:absolute + left/top:50% +
   translate(-50%,-50%) + object-fit:cover），与第一屏背景完全一致。
   ========================================================================== */
.bg-feature {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
.bg-feature .swiper-wrapper,
.bg-feature .swiper-slide {
  width: 100%;
  height: 100%;
}
/* 轮播分页小圆点：设计稿「轮播切换按钮」节点原本是 1 张合并图（1个高亮态+3个默认态拼在一起），
   已拆成 dot-feature-active.png / dot-feature-default.png 两张独立切图，这里用 JS 按 slide 数量动态生成。
   设计稿内该控件水平居中、贴近画面底部（原始坐标 left:1106 top:1256 于 2560x1440 画布），
   与首屏 .slide-home__content 同理用 bottom 锚定，避免窗口宽高比变化时随背景图裁切偏移。
   这套 dot-feature-default/active.png 是三处小圆点（本屏 + 弹窗图集 + 新闻翻页）里像素
   分辨率最高的一套，经核实三处切图颜色/形状完全一致，已合并统一复用这一套，详见
   .dlg-gallery__dots 与 .news-dots 旁的说明。 */
.feature-dots {
  position: absolute;
  left: 50%;
  bottom: 1.61rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.04rem;
  transform: translateX(-50%);
}
.feature-dots span {
  display: block;
  width: 0.72rem;
  height: 0.23rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dot-feature-default.png") no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
  transition: filter 0.2s;
}
.feature-dots span:hover {
  filter: brightness(1.2);
}
.feature-dots span.is-active {
  width: 1.15rem;
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dot-feature-active.png");
  cursor: default;
}

/* ==========================================================================
   第三屏：新闻中心
   设计稿节点「新闻列表」内容整体在画面垂直方向大致居中（标题顶部 y=289，
   翻页点底部 y=1116，内容总高约 827px，不贴顶/贴底），因此用 .news-content
   做「top:50% + translateY(-50%)」整体垂直居中，而不是照抄设计稿的 top 像素值，
   这样任意窗口高宽比下内容都保持视觉居中，不会像之前首屏内容 top 定位那样跑偏。
   背景图缩放/定位方式与首屏 .bg-media 一致：position:absolute + left/top:50% +
   translate(-50%,-50%) + object-fit:cover。
   ========================================================================== */
.news-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0605;
}
.news-bg img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.news-content {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 1;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
}
.news-title {
  display: block;
  width: 5.98rem;
  height: 0.82rem;
  margin: 0 auto;
}
.news-carousel {
  width: 17.79rem;
  height: 5.59rem;
  margin: 0.8rem auto 0;
  /* 只预留上下缓冲区：卡片 hover 整体放大(scale(1.04))后高度会略增，
     缓冲区让放大效果停留在 overflow:hidden 的裁切边界内，不被裁掉
     （content-box 下 padding 只扩大裁切边界、不挤占内容高度）；
     左右不加缓冲——Swiper 是按 clientWidth(含左右 padding) 计算分组宽度的，
     左右加 padding 会把这部分空间让给卡片组重新居中分布，反而侵蚀缓冲区本身；
     横向放大的裁切风险改用 transform-origin 处理（见下方 :first-child/:last-child），
     让首尾卡片的放大方向朝卡片间隙（内侧）展开，不朝容器边界（外侧）展开。
     上下缓冲已从外部 margin 中扣除，不影响与标题/分页点之间的视觉间距 */
  padding: 0.12rem 0;
  box-sizing: content-box;
  overflow: hidden;
}
.news-carousel__group {
  display: flex;
  justify-content: center;
  gap: 0.62rem;
}

/* 新闻卡片：对应设计稿「新闻轮播列表」内单张卡片（552x559 设计像素 -> 5.52rem x 5.59rem） */
.news-card {
  position: relative;
  display: block;
  flex: 0 0 5.52rem;
  width: 5.52rem;
  height: 5.59rem;
  text-align: left;
  text-decoration: none;
  transform-origin: center;
  transition: transform 0.3s;
  color: #fff;
}
/* 每组固定 3 张卡片：第 1 张放大方向朝右（往组内间隙展开），
   第 3 张放大方向朝左，避免紧贴容器左右裁切边界的外侧被裁掉；
   中间第 2 张左右都有间隙缓冲，维持默认居中展开 */
.news-carousel__group > .news-card:first-child {
  transform-origin: left center;
}
.news-carousel__group > .news-card:last-child {
  transform-origin: right center;
}
/* 鼠标移上去时整条新闻框（图片+文字+按钮）一起放大，而不是只放大图片；
   hover 时提升 z-index，避免放大后视觉上压在相邻卡片下方 */
.news-card:hover {
  transform: scale(1.04);
  z-index: 3;
  color: #fff;
}
.news-card__thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 5.52rem;
  height: 3.07rem;
}
.news-card__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.news-card__image {
  position: absolute;
  left: 0.13rem;
  top: 0.11rem;
  z-index: 1;
  width: 5.27rem;
  height: 2.83rem;
  object-fit: cover;
}
/* 文字区背景暗板（对应设计稿「组21」反光/底板装饰图，与图片框局部重叠，
   z-index 低于 .news-card__thumb，重叠部分会被图片盖住，和设计稿表现一致） */
.news-card::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 2.64rem;
  z-index: -1;
  width: 5.4rem;
  height: 2.95rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/card-panel.png") no-repeat;
  background-size: 100% 100%;
}
.news-card__title {
  width: 90%;
  height: 0.32rem;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  left: 0.29rem;
  top: 3.36rem;
  z-index: 2;
  margin: 0;
  font-size: 0.33rem;
  font-weight: 400;
  line-height: 0.32rem;
  white-space: nowrap;
}
.news-card__title span {
  color: #fff;
}
.news-card__title em {
  margin-left: 0.06rem;
  color: #f64e08;
  font-style: normal;
}
.news-card__desc {
  position: absolute;
  left: 0.29rem;
  top: 3.95rem;
  z-index: 2;
  width: 90%;
  margin: 0;
  font-size: 0.183rem;
  line-height: 1.75;
  color: #cbcbcb;
  /* 资讯摘要最多显示 2 行，超出部分隐藏并以省略号结尾（接口返回的 sDesc 长度不定，
     固定 2 行可保证卡片高度稳定，不会挤压下方日期/按钮区域） */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.news-card__meta {
  position: absolute;
  left: 0.29rem;
  top: 4.86rem;
  z-index: 2;
}
.news-card__divider {
  display: block;
  width: 1.79rem;
  height: 0.02rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/card-divider.png") no-repeat;
  background-size: 100% 100%;
}
.news-card__date {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.183rem;
  color: #cbcbcb;
}
.news-card__btn {
  position: absolute;
  left: 4.11rem;
  top: 4.99rem;
  z-index: 2;
  width: 1.21rem;
  height: 0.41rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/card-btn-detail.png") no-repeat;
  background-size: 100% 100%;
  transition: filter 0.2s;
  /* "查看详情"文字已经烘焙进切图，这里的文本节点仅保留给无障碍阅读，视觉上需隐藏，
     否则会继承 <a> 的默认文字颜色叠加显示在图片上方，出现重影变色 */
  color: transparent;
}
.news-card:hover .news-card__btn {
  filter: brightness(1.3);
}

/* 底部翻页小圆点：设计稿「翻页组件」拆成 1 个高亮态 + 2 个默认态，这里按真实分组数量动态渲染。
   切图复用「游戏特色」轮播同款 dot-feature-default/active.png（经核实与原先单独导出的
   dot-news-default/active.png 颜色、平行四边形斜切角度完全一致，只是像素尺寸不同，
   background-size:100% 100% 下显示效果等价，已合并为一套，详见 .feature-dots 旁的说明） */
.news-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  margin: 0.65rem auto 0;
}
.news-dots span {
  display: block;
  width: 0.44rem;
  height: 0.17rem;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dot-feature-default.png") no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
  transition: filter 0.2s;
}
.news-dots span:hover {
  filter: brightness(1.2);
}
.news-dots span.is-active {
  width: 0.69rem;
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/dot-feature-active.png");
  cursor: default;
}

/* ==========================================================================
   第四屏：人物（英雄人物轮播）
   结构分层（从下到上）：role-bg 背景 < role-list 列表页(卡片轮播/所有角色) < role-fg 前景光效
   < role-detail 详情页浮层。role-fg 是压在卡片之上的半透明地台光晕，pointer-events:none
   穿透，不影响卡片热区/箭头/TAB 点击。
   ========================================================================== */
.slide-role {
  position: relative;
  overflow: hidden;
  background: #050302;
}
.role-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.role-bg img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.role-fg {
  position: absolute;
  left: 0;
  top: 0.71rem;
  z-index: 2;
  width: 100%;
  height: 13.69rem;
  object-fit: cover;
  pointer-events: none;
}

.role-list {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.role-list__viewport {
  position: absolute;
  inset: 0;
}
.role-list__viewport--all {
  display: none;
}
.role-list[data-mode="all"] .role-list__viewport--card {
  display: none;
}
.role-list[data-mode="all"] .role-list__viewport--all {
  display: block;
}

/* 卡片角色轮播：水平方向用 left:50%+translateX(-50%) 居中，不跟随设计稿写死的
   x 像素值，保证任意窗口宽高比下都稳定居中；垂直方向用 max() 在"正常居中位置"与
   "贴着顶部导航栏下沿的安全位置"之间取更靠下的一个：
     - calc(50% - 7rem) 等价于以前的 top:50%+translateY(-50%)（7rem = 容器高度
       14rem 的一半）
     - 4.52rem = 顶部导航 .site-header 实际高度 4.22rem + 0.3rem 安全间距
   窗口足够高时走居中分支，窗口偏矮（容器被导航栏吃掉一截，例如 3840x1958 这种
   偏宽的宽高比）时自动切到贴顶分支，确保卡片顶部永远不会被固定定位的顶部导航栏
   遮住，超出的部分从底部溢出即可（.role-carousel-wrap 本身 overflow:hidden 会
   裁掉多余部分，不会露出异常内容）。 */
.role-carousel-wrap {
  position: absolute;
  left: 50%;
  /* top: max(4.52rem, calc(50% - 7rem)); */
  top: calc(50% - 7rem);
  transform: translateX(-50%);
  width: 100%;
  height: 14rem;
  overflow: hidden;
}
.role-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  /* 横向裁掉滑出可视区的卡片（轮播主体行为），纵向不裁剪，专门给动画放大留空间 */
  overflow-x: hidden;
  overflow-y: hidden;
}
/* 卡片默认重叠堆叠：每张卡片都是同一尺寸的正方形（切图本身 1500x1500、角色居中），
   靠负值 spaceBetween（JS 里按当前卡片实际渲染宽度的比例动态计算，并在 resize 时
   重新计算，详见 js/index.js initRoleSwiper/updateRoleSpacing）制造卡片间的视觉重叠；
   z-index 由 JS 按 Swiper slide.progress（离中心的距离）动态计算，越靠中间层级越高，
   天然实现"中间卡片盖住相邻卡片"的效果。
   尺寸参考设计稿「中间高亮角色」实际像素(994x1103)放大，比旧版 9.6rem 明显更大。 */
.role-carousel .swiper-slide.role-card {
  position: relative;
  width: 13.4rem;
  height: 13.4rem;
  /* 卡片之间用负值 spaceBetween 重叠，若 role-card 本身可捕获点击，即便是透明留白
     区域也会先于下层卡片拦截事件（层级更高的卡片会整块遮挡住被压住卡片的热区），
     所以这里关闭整个 slide 的点击，只开放 .role-card__hotzone */
  pointer-events: none;
}
/* 缩放/弹出动画必须作用在这层内部包裹元素上，不能直接写在 .role-card（即 Swiper
   的 .swiper-slide）本身：Swiper 会给每个 slide 内联设置 transform（横向定位用），
   内联样式优先级高于任何 CSS 类选择器，写在外层的 transform:scale 会被直接覆盖、
   完全不生效，所以额外包一层只做缩放动画，不受 Swiper 定位逻辑影响。
   默认态基准 scale 定为 1.1（约为原尺寸的 1.1 倍）：只放大视觉渲染，不改变
   .role-card 本身用于 Swiper 布局计算的盒子尺寸（13.4rem，spaceBetween 仍按这个
   原始宽度算），于是放大后的图像会自然溢出卡片槽位、向相邻卡片方向多盖一截，
   制造"默认卡片可见区域相互重合一点"的效果，而不是把所有卡片和间距一起等比放大
   （那样重叠比例不变，视觉上不会有新增的重合感）。 */
.role-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform: scale(1.1);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.role-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* 高亮角色切换动画：被选中的瞬间先略微缩小/透明，快速放大超出目标尺寸再回弹到
   最终的 1.15 倍（要求3："淡入弹出而且放大一点再回弹"），结束后保持在 1.15 倍 */
@keyframes role-card-pop {
  0% {
    transform: scale(0.82);
    opacity: 0;
  }
  55% {
    transform: scale(1.24);
    opacity: 1;
  }
  78% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}
.role-card.is-role-pop .role-card__inner {
  animation: role-card-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.role-card.is-role-active .role-card__inner {
  transform: scale(1.15);
}
/* 要求：高亮卡片背后的默认卡片始终保持显示，不做隐藏——只靠上面的 z-index
   （role-card.style.zIndex，离中心越近层级越高）让高亮卡片自然盖在其之上 */
/* 点击热区：覆盖默认态卡片本体的核心可识别区域（人物脸部/躯干），不是整张 1500x1500
   图（四周大面积透明留白+投影不应该可点击）。
   宽度收窄到 24%（而非按切图可见范围取的 46%）是为了配合当前卡片重叠比例
   ROLE_CARD_OVERLAP_RATIO:0.7（相邻卡片中心间距=卡片宽度的 30%）：
   24% < 30%，确保相邻两张卡片的热区不会互相重叠覆盖，否则点击一张默认卡片时会被
   层级更高的相邻高亮卡片热区"抢走"点击，表现为"点哪张卡片都切不过去/
   高亮出来的是别的角色"（即"高亮卡片和默认卡片对不上"的根因，二者必须按比例联动，
   若后续调整 ROLE_CARD_OVERLAP_RATIO，这里的宽度也要同步收紧到小于对应的间距比例）。 */
.role-card__hotzone {
  position: absolute;
  left: 38%;
  top: 20%;
  width: 24%;
  height: 58%;
  display: block;
  cursor: pointer;
  pointer-events: auto;
}
/* 要求：鼠标移上去卡片不做高亮效果——因此这里刻意不加任何 :hover 的 transform/filter */

.role-arrow {
  position: absolute;
  top: 50%;
  /* 卡片的 z-index 由 JS 按"1~卡片总数"的连续小整数排名动态分配（具体原因见
     js/index.js updateRoleCarousel 内的详细说明），数值很小（最高也就是卡片总数量级，
     约几十），这里随手给个显著更高的值即可，确保箭头始终盖在所有卡片之上 */
  z-index: 2000;
  width: 1.28rem;
  height: 1.41rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: filter 0.2s;
}
.role-arrow img {
  display: block;
  width: 100%;
  height: 100%;
}
.role-arrow--prev {
  left: 0.3rem;
}
.role-arrow--next {
  right: 0.3rem;
}
.role-arrow:hover {
  filter: brightness(1.25);
}
.role-arrow:active {
  filter: brightness(0.9);
}
/* 左右切换箭头只属于「卡片角色」轮播模式的交互，「所有角色」列表模式没有横向
   切换的概念，切到 all 模式时要把箭头一起隐藏，否则会悬浮在列表上方显得多余；
   角色详情页浮层打开时同理要隐藏（详情页本身就盖在轮播上方，箭头会穿帮悬浮在
   详情页内容之上）。.role-arrow 在 DOM 结构上写在 .role-list/.role-detail 前面
   （兄弟选择器 ~/+ 只能向后选，选不到它们），所以这里直接给 .slide-role 开关
   状态类，由 js/index.js initRoleModeTab / openRoleDetail/closeRoleDetail 统一
   维护，不依赖 DOM 顺序。 */
.slide-role.is-role-all-mode .role-arrow,
.slide-role.is-role-detail-open .role-arrow,
.slide-role.is-role-mode-transitioning .role-arrow {
  display: none;
}

/* ==========================================================================
   「卡片角色 / 所有角色」模式切换过渡动画：点击底部 TAB 切换时，在
   .role-mode-transition 这层播放"收牌（把当前模式可见的卡片逐张收拢到舞台
   中央，叠成一沓）+ 发牌（从同一个堆叠点按目标模式的默认布局逐张弹开）"的
   动画，总时长固定 1 秒（见 js/index.js ROLE_MODE_GATHER_MS/ROLE_MODE_DEAL_MS，
   420ms 收牌 + 580ms 发牌，每张卡片依次错峰启动，不是所有卡片同时动），
   模拟真实的"收牌/发牌"手感。
   过渡层里的卡片都是临时的"幽灵卡片"（用真实卡片的 <img src> 克隆出的一次性
   元素，不是真实可交互的卡片，动画播完立即清空），这样可以不受 Swiper/iScroll
   自身定位逻辑的约束，自由地在任意起点/终点之间做位移动画；真正的卡片轮播/
   所有角色列表全程只在背后做好默认态的重新定位（不可见，等动画播完才揭晓），
   用户看到的全程都是这层幽灵卡片在动。
   ========================================================================== */
.role-mode-transition {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
/* 幽灵卡片直接用 left/top/width/height 做位移缩放动画（js/index.js 里对每个
   ghost 单独设置 transition 和目标值），不是靠 transform:scale——两种模式的
   卡片原始宽高比不同（卡片角色 1:1 正方形、所有角色约 0.68 的竖版），如果用
   transform:scale(x,y) 把一个非正方形的起点矩形强行怼成正方形的堆叠点，x/y
   两个方向缩放倍数不一致，会把已经用 object-fit:contain 排好版的图片在动画
   过程中拉花变形（所有角色列表下尤其明显，表现为"纵向压扁"）。直接给 width/
   height 做数值过渡则不存在这个问题：只要起点和终点的宽高比相同（js 侧
   getRoleModePileBox 已经保证这一点——堆叠点方框按卡片自身宽高比等比缩放，
   不拉伸），浏览器逐帧线性插值出来的任意中间帧宽高比也必然和起止点完全一致，
   不会变形。transform 仅用于叠加 getRoleModeStackOffset 算出的"一沓牌"错位/
   小角度旋转装饰，幅度很小，不影响这个结论。 */
.role-mode-transition__ghost {
  position: absolute;
  transform-origin: center center;
  will-change: left, top, width, height, transform;
}
.role-mode-transition__ghost img {
  display: block;
  width: 100%;
  height: 100%;
  /* 正常情况下 ghost 方框的宽高比本身就等于图片的真实宽高比（无论是贴合真实
     卡片位置的起止帧，还是按卡片自身宽高比等比缩放的堆叠点方框），object-fit
     在这里只是容错保险（避免极端情况下的四舍五入误差造成一两像素的拉伸） */
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* 目标模式的真实内容在过渡动画播放期间保持可用的真实布局尺寸（给 Swiper/iScroll
   正常测量、定位），但视觉上先隐藏，等幽灵卡片"发牌"完毕后再一次性揭晓，避免
   用户看到背后已经摆好的真实卡片提前穿帮 */
.role-list__viewport.is-mode-transition-hidden {
  opacity: 0;
  pointer-events: none;
}
/* 过渡动画播放期间临时禁用 TAB 按钮，防止动画进行中再次点击导致状态错乱
   （JS 侧也有同名场景的旗标兜底，这里是双保险） */
.role-mode-tab.is-mode-transitioning {
  pointer-events: none;
}

/* ==========================================================================
   角色详情页：点击任意角色卡片后在本屏内打开。设计稿节点「人物详情页」(node-id 1:3)
   使用的是独立的 2560x1440 画布坐标系（与卡片轮播/所有角色列表不是同一份设计稿），
   下面各元素的 left/top/width/height 直接按设计稿标注的绝对像素值换算成 rem
   （全站统一换算规则：rem = 设计稿像素值 / 100，因为 js/index.js setRootFontSize
   把根字号设为 (窗口宽度/设计基准宽度2560)*100px，当窗口=设计基准宽度时 1rem=100px，
   故设计稿里的 Xpx 对应 X/100 rem，不是 /25.6——这一点统一在此注明，避免后续改动
   详情页位置时再次算错比例），不做额外居中处理，以保证与设计稿视觉还原度最高。
   ========================================================================== */
.role-detail {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow: hidden;
}
.role-detail.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.role-detail__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.role-detail__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.role-detail__back {
  position: absolute;
  right: 0.6rem;
  top: 2.6rem;
  z-index: 5;
  width: 2.77rem;
  height: 0.61rem;
  padding: 0;
  background: url("https://game.gtimg.cn/images/dnffight/web202610/pc/btn-role-back.png") no-repeat;
  background-size: 100% 100%;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.role-detail__back:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

/* ---- 右侧人物信息：投影 + 人物图 + 人物名 + 介绍文案 ---- */
.role-detail__info {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---- 角色详情内容切换动效 ----
   左侧菜单拖动/点击切到另一个角色时（不含首次打开详情页那次，首次用详情页浮层
   自身的 opacity 过渡就够了，不需要叠加这一层，见 js/index.js renderRoleDetailContent
   的 animate 参数），右侧人物信息区 + 图片轮播整体先轻微下沉淡出，JS 把图片 src /
   文案文本换成新角色的内容后，再淡入回弹到原位，用同一条 cubic-bezier 缓动曲线，
   让"内容本身在变"这件事有一个柔和、统一的过渡，而不是切图瞬间跳变。 */
.role-detail__info,
.role-detail__carousel {
  transition: opacity 0.32s cubic-bezier(0.33, 1, 0.68, 1), transform 0.32s cubic-bezier(0.33, 1, 0.68, 1);
}
.role-detail.is-content-switching .role-detail__info,
.role-detail.is-content-switching .role-detail__carousel {
  opacity: 0;
  transform: translateY(0.14rem);
}

/* 人物投影：设计稿里用 mix-blend-mode:luminosity + 20% 透明度叠在人物图右后方，
   做出一圈朦胧光晕效果；直接复用同一张人物插画裁切出的大尺寸版本，不需要
   美术额外出一张"纯阴影"素材，CSS 混合模式就能还原设计稿效果 */
.role-detail__shadow {
  position: absolute;
  left: 11.6rem;
  top: 0;
  width: 14rem;
  height: 14.4rem;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.2;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.role-detail__char {
  position: absolute;
  left: 9.17rem;
  /* top: 1.45rem; */
  bottom: 0;
  width: 15.25rem;
  height: 12.95rem;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.role-detail__name-wrap {
  position: absolute;
  left: 3.83rem;
  top: 3.17rem;
  width: 9.32rem;
  height: 2.94rem;
}
.role-detail__name-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* 人物名图加载失败时，浏览器默认会在 <img> 原位置画出"裂图"边框+小图标占位，
   仅靠下面显示文字兜底还不够，必须把这个失效的 img 本身也隐藏掉，否则裂图
   占位框会跟兜底文字重叠显示，很显眼 */
.role-detail__name-wrap.is-name-fallback .role-detail__name-img {
  display: none;
}
/* 人物名切图缺失时的文字兜底（例如详情素材还未补齐的角色）：默认隐藏，
   只有 js/index.js 监听 .role-detail__name-img 的 error 事件后才会显示 */
.role-detail__name-text {
  display: none;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
}
.role-detail__name-wrap.is-name-fallback .role-detail__name-text {
  display: block;
}
.role-detail__desc {
  position: absolute;
  left: 4.11rem;
  top: 6.61rem;
  width: 7.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.22rem;
  line-height: 1.2;
}
.role-detail__desc p {
  margin: 0 0 0.2rem;
}
.role-detail__desc p:last-child {
  margin-bottom: 0;
}
/* 角色介绍文案还未补齐时的占位提示样式 */
.role-detail__desc p.is-desc-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ---- 图片轮播：人脸特写/全身立绘真实可切换的 Swiper 轮播，设计稿节点「图片轮播」
   (node-id 1:158) ----
   四层从下到上：装饰边框(红色+渐变描边，静态图) < Swiper 舞台(clip-path 裁出平行
   四边形可视窗口，内部滑动切换人脸特写/全身立绘两张 slide，裁剪框固定不动，写法
   参考 .dlg-gallery__stage 弹窗里的同款实现) < 半透明灰度蒙版(美术源文件自带
   alpha 通道的平行四边形裁剪图，不需要额外 clip-path，直接整柔化画面色调) <
   底部分段指示器(真正的切换按钮，不是展示图，用 role-detail-carousel-switch-
   default/active.png 两枚小分段素材按当前角色实际轮播张数动态渲染，点击跳转)。
   各元素 left/top/width/height 同样按设计稿像素值 / 100 换算成 rem，与本文件顶部
   .role-detail 下其余元素的换算规则保持一致。
   clip-path 的平行四边形百分比（15% 0, 100% 0, 88% 100%, 0 100%）是从蒙版 PNG
   自身的 alpha 通道边界实测得出（蒙版四角中有两角 alpha=0、两角有值，说明蒙版本身
   就是按这个四边形裁剪烘焙的，直接量它比量带描边渐变的边框图更准），顶边从 15%
   起、底边到 88% 止，整体向右上方倾斜，与边框图的斜切方向一致。 */
.role-detail__carousel {
  position: absolute;
  left: 3.45rem;
  top: 9.28rem;
  width: 6.25rem;
  height: 2.65rem;
  z-index: 2;
}
.role-detail__carousel-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.role-detail__carousel-stage {
  position: absolute;
  left: 0.06rem;
  top: 0.29rem;
  width: 6.14rem;
  height: 2.13rem;
  overflow: hidden;
  cursor: grab;
  clip-path: polygon(15% 0, 100% 0, 88% 100%, 0 100%);
}
.role-detail__carousel-stage:active {
  cursor: grabbing;
}
/* 轮播图素材（detail-carousel-N.jpg，1524x854，宽高比约 1.79）比舞台视口
   （6.14rem x 2.13rem，宽高比约 2.88）更"高"，object-fit:cover 让图片横向撑满、
   纵向等比放大后居中显示，上下两端超出舞台的部分被舞台的 overflow:hidden +
   clip-path 裁掉，不压缩宽高比；object-position 显式写 center，保证纵向居中 */
.role-detail__carousel-stage .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.role-detail__carousel-mask {
  position: absolute;
  left: 0.06rem;
  top: 0.29rem;
  width: 6.14rem;
  height: 2.13rem;
  opacity: 0.46;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.role-detail__carousel-switch {
  position: absolute;
  left: 50%;
  top: 2.17rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.04rem;
}
/* 分段指示器的每一段：默认态用较窄的灰色斜切条，当前 slide 对应的那一段切换成
   更宽的橙色渐变斜切条（宽度加宽+换图两个变化一起做，呼应设计稿里"当前段明显更宽"
   的视觉层级），宽度变化带 transition 让点击切换时不是生硬跳变 */
.role-detail__carousel-switch-item {
  flex-shrink: 0;
  width: 0.21rem;
  height: 0.08rem;
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/role-detail-carousel-switch-default.png");
  background-size: 100% 100%;
  cursor: pointer;
  transition: width 0.25s ease;
}
.role-detail__carousel-switch-item.is-active {
  width: 0.35rem;
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/role-detail-carousel-switch-active.png");
}

/* ---- 左侧角色列表菜单：竖向可拖动切换 ---- */
.role-detail__sidebar {
  position: absolute;
  left: 0;
  /* top: 1.13rem; */
  top: 0;
  width: 3.12rem;
  /* height: 13.03rem; */
  height: 100%;
  box-sizing: border-box;
  padding-top: 1.12rem;
  z-index: 2;
}
.role-detail__sidebar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* 可视窗口：对应设计稿里"文案 [mask]"的裁剪范围，超出这个高度的列表项直接被裁掉
   不可见（而不是单纯靠透明度淡出），窗口内再叠加逐项透明度实现"越靠边缘越淡"的
   视觉效果，两者结合才是设计稿的真实表现 */
.role-detail__sidebar-viewport {
  position: absolute;
  left: 0;
  top: 2.9rem;
  width: 100%;
  height: 6.82rem;
  overflow: hidden;
}
.role-detail__sidebar-swiper {
  position: relative;
  width: 100%;
  height: 100%;
}
/* Swiper 纵向模式：每一项高度固定（与设计稿里相邻角色名的平均间距一致），
   不用 slidesPerView:'auto' 是因为所有列表项都是等高的纯文字行，不需要按
   内容自适应宽高，固定高度能让 centeredSlides 的居中计算更稳定 */
.role-detail__sidebar-item {
  position: relative;
  height: 1.3rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  /* 分割线：用渐隐渐显的细线而不是实色，两端透明避免在列表左右边缘显得突兀生硬，
     比直接套用设计稿切图更容易适配不同角色数量下的动态列表高度 */
  border-top: 1px solid;
  border-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0)
    )
    1;
}
.role-detail__sidebar-item:first-child {
  border-top: none;
}
/* 高亮背景图：已把源图裁到"图内两条发光线正好落在图片上下边缘"的范围（裁剪前
   源图上下还各带了一截渐隐的发光拖尾，图内线条实际落在距边缘约 11% 的位置，
   跟外面 1px 的 border-top 分割线对不上，会看起来像套了两条线）。现在
   background-size:100% 100% 拉伸铺满本元素（inset:0，跟分割线共用同一个盒子），
   图内线条正好贴合到 item 的上边缘和下边缘，与默认态的 border-top 分割线完全重合，
   高亮时只看到一条线（略粗/略亮），不会是裂成两条 */
.role-detail__sidebar-item-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/role-detail-sidebar-selected.png");
  background-size: 100% 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.role-detail__sidebar-item.is-sidebar-active .role-detail__sidebar-item-bg {
  opacity: 1;
}
.role-detail__sidebar-item-arrow {
  position: absolute;
  right: 0.1rem;
  top: 50%;
  width: 0.38rem;
  height: 0.5rem;
  transform: translateY(-50%);
  background-image: url("https://game.gtimg.cn/images/dnffight/web202610/pc/role-detail-sidebar-arrow.png");
  background-size: 100% 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.role-detail__sidebar-item.is-sidebar-active .role-detail__sidebar-item-arrow {
  opacity: 1;
}
.role-detail__sidebar-item-text {
  width: 2rem;
  text-align: center;
  /* background: #fc0; */
  position: relative;
  z-index: 1;
  padding-left: 0.3rem;
  color: #fff;
  font-size: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
  transform-origin: left center;
  /* 透明度由 js/index.js 按与选中项的距离动态设置（0=1, 1=0.8, 2=0.5, 3+=0.25），
     transition 让拖动切换时的淡入淡出更顺滑，不是生硬的瞬间跳变；额外给选中态加一个
     轻微放大 + 字重变化，让"哪一项被选中"这件事除了背景高亮之外再多一层细腻反馈 */
  transition: opacity 0.2s ease, transform 0.25s ease, font-weight 0.2s ease;
}
.role-detail__sidebar-item.is-sidebar-active .role-detail__sidebar-item-text {
  /* font-weight: 700; */
  transform: scale(1.06);
}


/* ==========================================================================
   「所有角色」模式：竖向滚动列表。设计稿节点「更多英雄」排版规则——第一行 4 个
   角色卡片、从第二行起每行 5 个，均居中对齐；角色顺序/数量完全来自
   js/role-config.js（JS 按 4、5、5...动态分行），这里只负责样式。
   列表区域必须严格卡在第四屏内部（不能把浏览器原生滚动条带出去），所以用
   iScroll 接管滚动（真正滚动的是 .role-all__content，.role-all__scroll 固定
   高度 + overflow:hidden 当裁剪窗口），右侧滚动条轨道/滑块完全自绘（不用设计稿
   那张滑块长度写死的静态切图），滑块高度/位置由 js/index.js 按 iScroll 实时
   滚动比例动态计算，适配任意角色数量下的真实可滚动范围。
   ========================================================================== */
.role-all {
  position: absolute;
  left: 50%;
  /* 顶部让开固定头部（.site-header 高 4.22rem），底部让开 .role-mode-tab
     （bottom:0.9rem 起、本身还有图标+文字的高度），避免列表内容被头尾遮挡 */
  top: 1.5rem;
  bottom: 1.8rem;
  transform: translateX(-50%);
  /* 总宽度拆成两部分：5 张卡片（第二行起的行数）+ 4 条列间距的"行内容"宽度
     （5 * 3.54rem + 4 * 0.3rem = 18.9rem）+ 左右各 0.4rem 的"溢出缓冲区"
     （见 .role-all__scroll 的 padding 注释），总宽度保持 19.7rem 不变，
     只是把原来过大的列间距（0.5rem）匀出一部分改成缓冲区，视觉上行间距更紧凑，
     同时解决了高亮卡片贴着容器边缘被裁切的问题；第一行只有 4 张卡片时在这个
     宽度内居中，不会跟第二行起的卡片错列 */
  width: 19.7rem;
}
.role-all__scroll {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* 左右缓冲区：CSS overflow:hidden 裁剪的边界是"padding 外沿"而不是"内容边沿"，
     也就是说内容只要还没超出 padding 范围就不会被裁掉——高亮态卡片比默认态卡片
     物理尺寸更大（见 .role-all-card__img 的说明），贴着行边缘的卡片放大后会向
     左右两侧多出约 0.32rem，这里留 0.4rem 缓冲区正好够用，不会被边界裁切；
     box-sizing:border-box 确保加了 padding 后可视区域总宽度仍是 100% 不变 */
  padding: 0 0.4rem;
  box-sizing: border-box;
}
.role-all__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 上下各留一点行间距，避免首行卡片紧贴滚动区域顶部、末行贴底部，同时也给
     首尾行的高亮卡片纵向放大预留一点缓冲空间（放大后纵向多出约 0.3rem） */
  padding: 0.3rem 0;
}
.role-all-row {
  display: flex;
  justify-content: center;
  /* 从 0.5rem 减小到 0.3rem，卡片间距更紧凑；省出来的空间挪给上面
     .role-all__scroll 的左右缓冲区，用于容纳高亮卡片放大后的溢出 */
  gap: 0.3rem;
}
.role-all-row + .role-all-row {
  margin-top: 0.3rem;
}
.role-all-card {
  position: relative;
  width: 3.54rem;
  /* 用 padding-top 按切图真实宽高比（522/354）撑开高度，而不是写死 height，
     这样卡片宽度以后如需整体调整时高度能自动跟着保持原始比例，不会变形 */
  padding-top: calc(3.54rem * (522 / 354));
  cursor: pointer;
}
.role-all-card__inner {
  position: absolute;
  inset: 0;
  /* 纯定位容器，不再承担缩放动画（缩放改为直接调整 .role-all-card__img 的
     真实宽高，见下方说明），这样内部的 <img> 可以用 left/top:50% +
     translate(-50%,-50%) 以"卡片中心点"为基准标出自己的实际渲染尺寸 */
}
/* 人物卡片图：默认态(list-default.png)和高亮态(list-active.png)是两张
   物理画布尺寸不同的切图——默认态 354x522，高亮态是美术在同一基准下画的
   "更大一圈、带红色描边装饰"的卡片（物理尺寸 418x581，不是同一张图的
   简单矩形放大，所以不能直接在相同的盒子里用 scale() 或 object-fit:contain
   强行怼成一样大，那样会出现两个问题：
     1）object-fit:contain 会按两者宽高比的差异把高亮图"按比例收缩"塞进
        默认态的盒子里，视觉上人物会比默认态显得更小（也就是反馈里说的
        "高亮状态的卡片缩小了"）；
     2）如果再叠加一层 CSS scale(1.1) 想把缩小的问题拉回来，两次缩放一叠加，
        最终尺寸/宽高比和原图完全对不上，人物与红色卡片外框的相对位置也会
        跟着跑偏。
   正确做法：按"切图像素 / 100 = rem"这个全站统一换算比例，让默认态和
   高亮态各自按自己的真实物理尺寸显示（默认 3.54 x 5.22rem，高亮
   4.18 x 5.81rem，与 354px/418px 两张图自身的像素尺寸完全对应，不经过
   任何二次缩放），并且都用 left/top:50% + translate(-50%,-50%) 以同一个
   "卡片中心点"为基准对齐——这样切换时人物和外框是以中心向外自然长大一圈，
   而不是被压缩变形或整体错位。宽高用 width + height:auto（不用
   object-fit），交给浏览器按图片自身宽高比自动算出对应高度，不需要手动
   维护两套高度数值、也不会因为手滑算错比例导致变形。 */
.role-all-card__img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.54rem;
  height: auto;
  transform: translate(-50%, -50%);
  /* 用稍带回弹感的缓动曲线给"变大/变小"这件事本身增加一点弹性，不需要额外
     叠加 transform:scale 动画也能有类似轮播卡片那种"弹出来"的观感 */
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.role-all-card.is-role-all-hover {
  position: relative;
  z-index: 2;
}
.role-all-card.is-role-all-hover .role-all-card__img {
  width: 4.36rem;
}

/* 自绘滚动条：轨道固定在列表容器右侧，宽度/配色取自设计稿「滚动条」切图
   （滑块 #f64e08、轨道 10% 不透明度白色），但不直接用那张图——那张图把
   "轨道+滑块"固定比例合成在一张静态图里，滑块长度写死，角色数量变化后
   比例就会失真，这里改成纯 CSS 画轨道 + JS 按 iScroll 实时可滚动比例动态
   设置滑块高度/位置，适配任意角色数量。 */
.role-all__scrollbar {
  position: absolute;
  right: -0.5rem;
  top: 0;
  bottom: 0;
  width: 0.07rem;
  border-radius: 0.035rem;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.role-all__scrollbar.is-hidden {
  display: none;
}
.role-all__scrollbar-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  border-radius: 0.035rem;
  background: #f64e08;
}

.role-mode-tab {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  z-index: 3;
  display: flex;
  gap: 0.3rem;
  transform: translateX(-50%);
}
.role-mode-tab__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  background: none;
  border: none;
  padding: 0;
  color: #8a8989;
  font-size: 0.14rem;
  cursor: pointer;
}
.role-mode-tab__item .text-card-role {
  margin-left: -0.12rem;
}
.role-mode-tab__icon {
  display: block;
  width: 0.53rem;
  height: 0.5rem;
}
.role-mode-tab__item.is-active {
  color: #f64e08;
  cursor: default;
}
