/* ==========================================================================
   index.css — prepaid_center/index.html 专属样式
   BEM 前缀: idx-
   单位: rem（flexible.js: 1rem = viewWidth / 10）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 全局 Reset（仅限本页范围）
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --idx-banner-chevron-size: 0.12rem;
  --idx-banner-chevron-stroke: 0.035rem;
  --idx-banner-arrow-gap: 0.6rem;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: -webkit-fill-available;
  height: calc(var(--vh, 1vh) * 100);
  height: 100dvh;
  overflow: hidden;
  font-family:
    Arial, "Microsoft YaHei", "PingFang TC", "Noto Sans TC", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  border: 0;
  cursor: pointer;
  background: transparent;
  outline: none;
}

a {
  display: block;
  text-decoration: none;
  outline: none;
}

/* --------------------------------------------------------------------------
   2. 主竖向全屏 Swiper
   -------------------------------------------------------------------------- */
.idx-main-swiper {
  width: 100%;
  height: 100%;
  height: calc(var(--vh, 1vh) * 100);
  height: 100dvh;
  /* 必须固定高度，Swiper 竖向模式才能全屏翻页 */
}

/* --------------------------------------------------------------------------
   3. 通用屏幕样式
   -------------------------------------------------------------------------- */
.idx-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 全屏背景图 */
.idx-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: top;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. 第一屏 P1
   -------------------------------------------------------------------------- */
.idx-p1-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.idx-p1-actions {
  position: absolute;
  top: 0.08rem;
  right: 0.25rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.idx-p1-actions__top,
.idx-p1-socials {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.idx-p1-actions__top {
  gap: 0.05rem;
}

.idx-p1-socials {
  gap: 0.04rem;
}

.idx-p1-socials__link {
  flex: 0 0 auto;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.idx-p1-socials__link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.idx-p1-socials__link:hover {
  opacity: 0.86;
  transform: translateY(-0.02rem);
}

/* 储值按钮 */
.idx-p1-btn-pay {
  flex: 0 0 auto;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.idx-p1-btn-pay:hover {
  opacity: 0.85;
  transform: translateY(-0.02rem);
}

.idx-language-switcher {
  position: relative;
  flex: 0 0 auto;
  width: 0.28rem;
  height: 0.28rem;
  color: #fff;
  font-size: 0.073rem;
  margin-left: 1vw;
}

.idx-language-switcher.is-open::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: 0.78rem;
  height: 8px;
  content: "";
}

.idx-language-switcher__trigger {
  display: flex;
  width: 0.28rem;
  height: 0.28rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.idx-language-switcher__trigger > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.02rem 0.04rem rgba(0, 0, 0, 0.28));
}

.idx-language-switcher__trigger:hover,
.idx-language-switcher__trigger[aria-expanded="true"] {
  opacity: 0.9;
  transform: translateY(-0.02rem);
}

.idx-language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 0.78rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 0.04rem;
  background: rgba(20, 198, 192, 0.94);
  box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.idx-language-switcher__option {
  position: relative;
  width: 100%;
  min-height: 0.24rem;
  padding: 0.045rem 0.06rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  line-height: 1.25;
  text-align: center;
  box-shadow: none;
}

.idx-language-switcher__menu li + li {
  border-top: 1px dashed rgba(255, 255, 255, 0.76);
}

.idx-language-switcher__option:hover,
.idx-language-switcher__option.active {
  background: rgba(0, 123, 125, 0.25);
  color: #fff;
}

.idx-language-switcher__option.active::before {
  position: absolute;
  top: 50%;
  left: 0.06rem;
  width: 0.025rem;
  height: 0.025rem;
  border-radius: 50%;
  background: #ffd84a;
  content: "";
  transform: translateY(-50%);
}

.idx-language-switcher__option:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.idx-language-switcher__trigger:focus-visible,
.idx-language-switcher__option:focus-visible,
.idx-p1-socials__link:focus-visible,
.idx-p1-btn-pay:focus-visible,
.idx-p1-download__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html:lang(ja) .idx-language-switcher {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

/* 下载按钮组：底部 50px，间距 10px，按图片自然尺寸显示 */
.idx-p1-download {
  position: absolute;
  bottom: 0.4rem; /* 50px ÷ 192px = 0.26rem */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.05rem; /* 10px ÷ 192px = 0.052rem */
  align-items: center;
  z-index: 2;
}

.idx-p1-download__btn {
  display: block;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.idx-p1-download__btn:hover {
  transform: translateY(-0.03rem);
  opacity: 0.85;
}

/* 向下滚动提示按鈕：固定在屏幕底部，最后一屏隐藏 */
.idx-p1-scroll-hint {
  position: fixed;
  bottom: 0.08rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  animation: idx-bounce 1.8s ease-in-out infinite alternate;
}

.idx-p1-scroll-hint::before {
  content: "";
  display: block;
  width: var(--idx-banner-chevron-size);
  height: var(--idx-banner-chevron-size);
  border-inline-end: var(--idx-banner-chevron-stroke) solid
    var(--idx-banner-theme-color, #219fff);
  border-block-end: var(--idx-banner-chevron-stroke) solid
    var(--idx-banner-theme-color, #219fff);
  transform: rotate(45deg);
  transition: opacity 0.2s ease;
}

.idx-p1-scroll-hint:hover::before {
  opacity: 0.76;
}

@keyframes idx-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(0.08rem);
    opacity: 0.65;
  }
}

/* --------------------------------------------------------------------------
   5. 第二屏 P2
   -------------------------------------------------------------------------- */
.idx-p2-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-left: 0.9375rem; /* 180px ÷ 192px */
  padding-bottom: 0.1rem;
}

.idx-p2-fb-module {
  position: relative;
  display: inline-block;
}

.idx-p2-fb-module__bg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  max-height: calc(var(--vh, 1vh) * 100);
  max-height: 100dvh;
  object-fit: contain;
}

.idx-p2-fb-module__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; /* 615px ÷ 192px */
  height: 480px; /* 560px ÷ 192px */
  border: 0;
  margin-top: 33px;
  margin-left: 0;
}
.idx-p2-fb-module__iframe iframe {
  width: 100%;
  height: 100%;
  max-height: 100%;
  /* max-width: 500px;
  max-height: 480px; */
}

/* --------------------------------------------------------------------------
   6. 第三屏 P3 — flexbox 布局
   -------------------------------------------------------------------------- */
.idx-p3-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 0;
  margin-top: 100px;
}

/* Banner 轮播区域，布局与 sqbb2 的 game-special-swiper 保持一致 */
.idx-p3-banner-area {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-direction: column;
  --idx-banner-theme-color: #219fff;
}

/* Banner 容器水平居中，不使用装饰背景 */
.idx-banner-swiper__frame {
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(6.75rem, 1335px);
  height: min(3.135rem, 650px);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
}

.idx-banner-swiper {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  height: min(3.135rem, 650px);
  overflow: hidden;
}

.idx-banner-swiper .swiper-wrapper {
  align-items: center;
}

.idx-banner-swiper__slide {
  position: relative;
  height: min(3.135rem, 650px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(0) scale(0);
  z-index: 0;
  overflow: visible;
}

.idx-banner-swiper__card {
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  height: min(3.135rem, 650px);
  overflow: hidden;
  border-radius: 0.06rem;
}

.idx-banner-swiper__card img {
  width: auto;
  height: 100%;
  max-width: none;
  /* object-fit: cover; */
  border-radius: 0.06rem;
  cursor: pointer;
}

.idx-banner-swiper__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0.06rem;
  background: rgba(0, 0, 0, 0.32);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.idx-banner-swiper__slide.swiper-slide-active .idx-banner-swiper__card::after {
  opacity: 0;
}

.idx-banner-swiper__btn {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.26rem;
  height: 0.32rem;
  padding: 0;
  transform: translate(-100%, -50%);
  cursor: pointer;
}

.idx-banner-swiper__btn::before {
  content: "";
  display: block;
  width: calc(var(--idx-banner-chevron-size) * 1.75);
  height: calc(var(--idx-banner-chevron-size) * 1.75);
  border-inline-end: calc(var(--idx-banner-chevron-stroke) * 1.5) solid
    var(--idx-banner-theme-color);
  border-block-end: calc(var(--idx-banner-chevron-stroke) * 1.5) solid
    var(--idx-banner-theme-color);
  border-radius: 0.04rem;
  transform: rotate(135deg);
  transition: opacity 0.2s ease;
}

.idx-banner-swiper__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.05rem;
  width: calc(var(--idx-banner-chevron-size) * 0.65);
  height: calc(var(--idx-banner-chevron-size) * 0.65);
  /* border-inline-end: calc(var(--idx-banner-chevron-stroke) * 1.1) solid
    var(--idx-banner-theme-color);
  border-block-end: calc(var(--idx-banner-chevron-stroke) * 1.1) solid
    var(--idx-banner-theme-color); */
  background-color: var(--idx-banner-theme-color);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-45deg);
  transition: opacity 0.2s ease;
}

.idx-banner-swiper__btn:hover::before {
  opacity: 0.76;
}

.idx-banner-swiper__btn:hover::after {
  opacity: 0.76;
}

.idx-banner-swiper__btn--next {
  right: var(--idx-banner-arrow-inset, 0px);
  left: auto;
  transform: translate(100%, -50%);
}

.idx-banner-swiper__btn--prev {
  left: var(--idx-banner-arrow-inset, 0px);
}

.idx-banner-swiper__btn--next::before {
  transform: rotate(-45deg);
}

.idx-banner-swiper__btn--next::after {
  right: auto;
  left: 0.05rem;
  transform: translateY(-50%) rotate(135deg);
}

.idx-banner-swiper__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.idx-banner-swiper__pagination {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.12rem;
  gap: 0.08rem;
  transform: none;
  z-index: 3;
}

.idx-banner-swiper__pagination li {
  position: relative;
  width: 0.08rem;
  height: 0.08rem;
  background-color: #fff;
  border-radius: 50%;
  opacity: 1 !important;
  cursor: pointer;
}

.idx-banner-swiper__pagination li.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.idx-banner-swiper__pagination li.active::after {
  content: "";
  display: block;
  width: 0.05rem;
  height: 0.05rem;
  z-index: 2;
  background-color: var(--idx-banner-theme-color);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Banner 图片预览弹框
   -------------------------------------------------------------------------- */
.idx-banner-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

.idx-banner-modal__img {
  /* 按原始尺寸显示，超出则等比缩放至上限 */
  max-width: 90vw;
  max-height: 90%;
  max-height: calc(var(--vh, 1vh) * 90);
  max-height: 90dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.idx-banner-modal__close {
  position: fixed;
  top: 20px;
  top: calc(var(--vh, 1vh) * 2);
  top: 2dvh;
  right: 3vw;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease;
}

.idx-banner-modal__close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   7. Footer（第三屏底部）
   -------------------------------------------------------------------------- */
.idx-footer {
  flex-shrink: 0;
  /* background: #171717; */
  color: #777;
}

.idx-footer__inner {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: min(100%, 12rem);
  margin: 0 auto;
  padding: 0.18rem 0.4rem;
}

/* 游戏 Logo */
.idx-footer__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2vw;
}

.idx-footer__logo img {
  height: auto;
  width: auto;
  object-fit: contain;
}

/* 分级图 + 免责声明区域 */
.idx-footer__rating-block {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.16rem;
  min-width: 0;
}

.idx-footer__level {
  flex-shrink: 0;
  width: auto;
  height: auto;
}

.idx-footer__disclaimers ul {
  display: grid;
  gap: 0.04rem;
}

.idx-footer__disclaimers li {
  color: #777;
  font-size: 0.08rem;
  line-height: 1.5;
}

/* 右侧：用户协议 + 版权 */
.idx-footer__links-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.06rem;
}

.idx-footer__nav {
  display: flex;
  align-items: center;
  gap: 0.08rem;
}

.idx-footer__nav-btn {
  color: #8e8e8e;
  font-size: 0.08rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.idx-footer__nav-btn:hover {
  color: #c8c8c8;
}

.idx-footer__nav-sep {
  color: #555;
  font-size: 0.09rem;
  line-height: 1;
}

.idx-footer__copyright {
  color: #747474;
  font-size: 0.08rem;
  /* white-space: nowrap; */
}

/* --------------------------------------------------------------------------
   8. xzy_new Footer（独立最后一屏）
   -------------------------------------------------------------------------- */
.idx-xzy-footer-slide {
  width: 100%;
  height: auto !important;
  background-color: #333;
  flex: 0 0 auto;
  border: none;
}

.idx-xzy-footer-desktop {
  display: block;
  width: 100%;
}

.idx-xzy-footer-mobile {
  display: none;
}

.idx-xzy-footer__fifth {
  width: 100%;
  flex: 0 0 auto;
  padding: 14px 0;
  background-color: #333;
}

.idx-xzy-footer__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.0729rem;
  color: #797979;
  flex: 0 0 auto;
}

.idx-xzy-footer__main a {
  color: #797979;
  text-decoration: none;
}

.idx-xzy-footer__main a:hover {
  color: #4086ff;
}

.idx-xzy-footer__logo {
  flex: 0 0 auto;
  margin-right: 0.3333rem;
  display: flex;
  gap: 20px;
}

.idx-xzy-footer__logo img {
  display: block;
  width: auto;
  max-height: 120px;
  object-fit: contain;
}

.idx-xzy-footer__beian {
  flex: 1 1 auto;
  padding: 0 0.2083rem;
  border-left: 0.0052rem solid #454545;
  border-right: 0.0052rem solid #454545;
}

.idx-xzy-footer__beian > main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.idx-xzy-footer__beian-info {
  flex: 0 0 auto;
}

.idx-xzy-footer__friend-link nav a {
  display: inline;
  margin-right: 0.0208rem;
  word-break: keep-all;
}

.idx-xzy-footer__friend-link nav {
  white-space: nowrap;
}

.idx-xzy-footer__agreement {
  /* margin-top: 10px; */
}

.idx-xzy-footer__agreement a,
.idx-xzy-footer__info a {
  display: inline;
  margin-left: 12px;
}

.idx-xzy-footer__info {
  flex: 0 0 auto;
  font-size: 0.0729rem;
}

.idx-xzy-footer__info p {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  line-height: 0.1146rem;
}

.idx-xzy-footer__info p img {
  display: block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.idx-xzy-footer__tips {
  flex: 0 0 auto;
  margin-top: 10px;
}

.idx-xzy-footer__report {
  margin-top: 0.0833rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background-color: #333;
}

.idx-xzy-footer__report a,
.idx-xzy-footer__report img {
  display: block;
  flex: 0 0 auto;
}

.idx-xzy-footer__report a {
  margin: 0 2px;
}

.idx-xzy-footer__ewm-wrapper {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  line-height: 0.1667rem;
}

.idx-xzy-footer__ewm-wrapper section + section {
  margin-left: 0.1042rem;
}

.idx-xzy-footer__ewm-wrapper section {
  padding: 0 0.0521rem;
}

.idx-xzy-footer__ewm-wrapper img {
  width: 110px;
  height: 114px;
  margin: 0 auto;
}

.idx-xzy-footer-mobile__main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #000;
  flex: 0 0 auto;
  color: #898989;
  font-size: 0.3rem;
  padding: 0.5rem 0 0.8rem;
  height: auto;
  min-height: 248px;
  line-height: 1.8;
  text-align: center;
}

.idx-xzy-footer-mobile__main a {
  display: inline;
  color: inherit;
}

.idx-xzy-footer-mobile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  margin-bottom: 0.3rem;
}

.idx-xzy-footer-mobile__logo img {
  display: block;
  width: auto;
  max-width: 40%;
  height: auto;
  max-height: 1.2rem;
  object-fit: contain;
}

.idx-xzy-footer-mobile__friend-link {
  text-align: center;
}

.idx-xzy-footer-mobile__company-info {
  text-align: center;
  line-height: 1.6;
}

.idx-xzy-footer-mobile__police-record {
  display: flex;
  align-items: center;
  justify-content: center;
}

.idx-xzy-footer-mobile__police-record img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   9. Vue 模板兜底
   [v-cloak] 隐藏未编译模板，避免 Vue 首次渲染前出现 [[ ]] 闪烁
   -------------------------------------------------------------------------- */
[v-cloak] {
  display: none;
}

/* 移动端专属 Logo 默认在 PC 端隐藏 */
.idx-p1-logo-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   9. 移动端适配 (<= 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  :root {
    --idx-banner-chevron-size: 0.38rem;
    --idx-banner-chevron-stroke: 0.06rem;
  }

  /* Banner 预览弹框：移动端关闭按钮移至底部居中 */
  .idx-banner-modal__img {
    max-height: 78%;
    max-height: calc(var(--vh, 1vh) * 78);
    max-height: 78dvh;
  }
  .idx-banner-modal__close {
    top: auto;
    right: auto;
    bottom: 6%;
    bottom: calc(var(--vh, 1vh) * 6);
    bottom: 6dvh;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
  }

  /* P1 首屏调整 */
  .idx-p1-actions {
    top: 0.16rem;
    right: 0.16rem;
    gap: 12px;
  }

  .idx-p1-actions__top {
    gap: 0.12rem;
  }

  .idx-p1-socials {
    gap: 0.1rem;
  }

  .idx-p1-socials__link {
    width: 1.12rem;
    height: 1.12rem;
  }

  .idx-language-switcher {
    width: 1.12rem;
    height: 1.12rem;
    font-size: 0.3rem;
    margin-left: 2vw;
  }

  .idx-language-switcher.is-open::after {
    width: 3.2rem;
  }

  .idx-language-switcher__trigger {
    width: 1.12rem;
    height: 1.12rem;
  }

  .idx-language-switcher__option {
    min-height: 0.72rem;
    padding: 0.12rem 0.16rem;
    border-radius: 0.12rem;
  }

  .idx-language-switcher__trigger > img {
    width: 100%;
    height: 100%;
  }

  .idx-language-switcher__menu {
    top: calc(100% + 8px);
    width: 3.2rem;
    border-radius: 0.12rem;
  }

  .idx-language-switcher__option.active::before {
    left: 0.18rem;
    width: 0.08rem;
    height: 0.08rem;
  }

  .idx-p1-logo-mobile {
    display: block;
    position: absolute;
    top: 4%;
    top: calc(var(--vh, 1vh) * 4);
    top: 4dvh;
    left: 5vw;
    width: 35vw;
    z-index: 10;
  }
  .idx-p1-btn-pay {
    max-width: 36vw;
  }
  .idx-p1-btn-pay img {
    width: 100%;
    height: auto;
  }
  .idx-p1-download {
    bottom: 10dvh;
    left: 5vw;
    width: 90vw;
    flex-wrap: wrap;
    gap: 2vw 3vw;
    justify-content: center;
    transform: none;
  }
  .idx-p1-download__btn {
    width: 40%; /* 2x2 布局 */
  }
  .idx-p1-download__btn img {
    width: 100%;
    height: auto;
  }
  .idx-p1-scroll-hint {
    bottom: 2%;
    bottom: calc(var(--vh, 1vh) * 2);
    bottom: 2dvh;
  }

  /* P2 新闻页调整 */
  .idx-p2-fb-module {
    width: 9.21rem;
    height: 10.35rem;
    padding-left: 0;
    margin: 0 auto;
    margin-bottom: 1.2rem;
  }
  .idx-p2-content {
    padding-left: 0;
    justify-content: center;
    align-items: flex-end;
  }
  .idx-p2-fb-module__bg {
    object-fit: contain;
  }
  .idx-p2-fb-module__iframe {
    width: 6.68rem;
    height: 6.4rem;
    margin-left: 0;
    margin-top: 0.4rem;
  }
  .idx-p2-fb-module__iframe iframe {
    /* max-width: 6.68rem; */
    height: 100%;
    width: 100%;
  }

  /* P3 轮播区域：复用 sqbb2 移动端 banner 的尺寸和排列 */
  .idx-p3-banner-area {
    width: 100%;
  }
  .idx-p3-content {
    margin-top: 10vh;
  }
  .idx-banner-swiper__frame {
    width: fit-content;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
    display: block;
    padding: 0;
  }
  .idx-banner-swiper__btn {
    position: absolute;
    top: 50%;
    z-index: 4;
    flex: none;
    width: 0.88rem;
    height: 1.07rem;
    transform: translateY(-50%);
  }
  .idx-banner-swiper__btn::before {
    width: calc(var(--idx-banner-chevron-size) * 1.5);
    height: calc(var(--idx-banner-chevron-size) * 1.5);
    border-width: calc(var(--idx-banner-chevron-stroke) * 2);
  }
  .idx-banner-swiper__btn::after {
    right: 0.3rem;
    border-width: calc(var(--idx-banner-chevron-stroke) * 1.4);
  }
  .idx-banner-swiper__btn--prev {
    left: 0.3rem;
  }
  .idx-banner-swiper__btn--next {
    right: 0.3rem;
    left: auto;
    transform: translateY(-50%);
  }
  .idx-banner-swiper__btn--next::after {
    right: auto;
    left: 0.3rem;
  }
  .idx-banner-swiper {
    width: fit-content;
    max-width: 100%;
    height: auto;
    margin-left: 0;
    padding-left: 0;
  }
  .idx-banner-swiper__slide {
    height: auto;
  }
  .idx-banner-swiper__card {
    width: 6rem;
    max-width: 6rem;
    height: auto;
  }
  .idx-banner-swiper__card img {
    width: 100%;
    height: auto;
  }

  .idx-banner-swiper__pagination {
    width: 100%;
    margin-top: 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .idx-banner-swiper__pagination li {
    position: relative;
    width: 0.4rem;
    height: 0.4rem;
    margin: 0;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1 !important;
    cursor: pointer;
  }

  .idx-banner-swiper__pagination li.active {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .idx-banner-swiper__pagination li.active::after {
    content: "";
    display: block;
    width: 0.25rem;
    height: 0.25rem;
    z-index: 2;
    background-color: var(--idx-banner-theme-color);
    border-radius: 50%;
  }

  /* Footer 调整 */
  .idx-footer {
    height: auto;
    width: 100%;
    /* background: #171717; */
  }
  .idx-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vw;
    height: auto;
  }
  .idx-footer__links-block {
    display: contents; /* 使 nav 和 copyright 成为直接子元素，可利用 order 排序 */
  }
  .idx-footer__nav {
    order: 1;
    display: flex;
    justify-content: center;
    gap: 4vw;
    margin-bottom: 1vw;
  }
  .idx-footer__nav-btn {
    font-size: 3.2vw;
    color: #a0a0a0;
  }
  .idx-footer__nav-sep {
    font-size: 3.2vw;
    color: #444;
  }
  .idx-footer__logo {
    order: 2;
    margin: 1vw 0;
    display: flex;
    width: 100%;
    justify-content: space-around;
  }
  .idx-footer__logo img {
    width: 32vw;
    height: auto;
  }
  .idx-footer__copyright {
    order: 3;
    font-size: 2.8vw;
    color: #747474;
    text-align: center;
  }
  .idx-footer__rating-block {
    order: 4;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4vw;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2vw;
    text-align: left;
  }
  .idx-footer__level {
    width: 14vw;
    height: auto;
    flex-shrink: 0;
  }
  .idx-footer__disclaimers {
    flex: 1;
    min-width: 0;
  }
  .idx-footer__disclaimers ul {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    padding: 0;
    margin: 0;
  }
  .idx-footer__disclaimers li {
    font-size: 2.7vw;
    line-height: 1.2;
    color: #777;
    text-align: left;
    list-style: none;
  }

  /* xzy_new Footer 移动端布局 */
  .idx-xzy-footer-slide {
    width: 100%;
    height: auto !important;
    padding: 0;
  }

  .idx-xzy-footer-desktop {
    display: none;
  }

  .idx-xzy-footer-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idx-p1-socials__link,
  .idx-language-switcher__trigger,
  .idx-p1-btn-pay,
  .idx-p1-download__btn {
    transition: none;
  }

  .idx-p1-scroll-hint {
    animation: none;
  }
}
