* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  color: white;
  line-height: 1.6;
}

.page-wrapper {
  width: 100%;
  display: block;
}

.bg-img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

.section {
  position: relative;
  width: 100%;
}

.game-logo {
  position: absolute;
  display: inline-block;
  text-decoration: none;
  user-select: none;
  pointer-events: auto;

  left: calc(343.5 / 1920 * 100%);

  top: calc(68 / 1080 * 100%);

  width: calc(371 / 1920 * 100%);

}

.age-reminder {
  position: absolute;
  display: inline-block;
  text-decoration: none;
  user-select: none;
  pointer-events: auto;


  left: calc(1482.5 / 1920 * 100%);
  top: calc(84.94 / 1080 * 100%);
  width: calc(94/ 1920 * 100%);
}

/* 覆盖层 */
.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* 标题：保持居中 */
.hero-title {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.8rem;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  width: 100%;
  z-index: 11;
}

.download-btn {
  position: absolute;

  left: 50%;
  top: calc(890 / 1080 * 100%);

  transform: translateX(-50%);

  display: flex;
  justify-content: space-between;
  align-items: center;

  width: calc(856 / 1920 * 100%);
  height: calc(118 / 1080 * 100%);
}

.download-btn a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;

  /* 宽度：380px 占父容器 856px 的比例 */
  width: calc(380 / 856 * 100%);

  /* 高度：与父容器一致 */
  height: 100%;
}

.download-btn .btn-image {
  display: block;
  width: 100%;
  /* 占满整个按钮宽度 */
  height: auto;
  /* 自动计算高度，保持图片比例 */
}

/* fallback 文字（图片加载失败时显示） */
.download-btn .btn-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  background: #ff6f00;
  border-radius: 8px;
}

#pc-layout .video-btn {
  position: absolute;
  left: calc(1334 / 1920 * 100%);
  top: calc(680 / 1080 * 100%);
  width: calc(100 / 1920 * 100vw);
  /* 确保这里按比例计算 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  pointer-events: auto;
}

#pc-layout .video-btn .btn-image {
  display: block;
  width: 100%;
  height: auto;
  /* 保持原始宽高比 */
}

/* ========== 视频弹窗样式 + 二维码弹窗（独立，不影响其他组件） ========== */
#videoModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  /* 足够高，盖住轮播图等 */
}

#jumpModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  top: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  transform: translateY(-60%);
}

.modal-content .modal-bg {
  display: block;
  height: auto;
  position: relative;
  z-index: 1;
}

.modal-content .qrcode {
  position: absolute;
  transform: translate(-50%, -50%);   
  height: auto;
  z-index: 2;
}

.modal-content.pc .modal-bg {
  width: calc(600/1920*100%);   
}

.modal-content.pc .qrcode {
  top: calc(487/1080*100%);
  left: calc(959/1920*100%);
  width: calc(314/1920*100vw);      
}

/* 弹窗背景图（如气泡框） */
.modal-content.mobile .modal-bg {
  width: calc(260/402*100vw);
}

/* 二维码：叠加在背景图上 */
.modal-content.mobile .qrcode {
  top: calc(398/874*100%);
  left: calc(201/402*100vw);
  width: calc(138/402*100vw);
}

.modal-content video {
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  outline: none;
  background: #000;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 1000000;
  line-height: 1;
  user-select: none;
}

/* ========== 底部轮播图样式 ========== */

.bottom-section {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1119;
}

.bottom-section .bg-img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
}

/* 轮播图外框 */
.carousel-frame {
  position: absolute;
  top: calc(91 / 1119 * 100%);
  left: calc(955 / 1920 * 100%);
  transform: translateX(-50%);
  width: calc(1060 / 1920 * 100%);
  height: calc(646 / 1119 * 100%);

  pointer-events: none;
  object-fit: cover;
}


/* 轮播图父节点,用于移动轮播图 */
.carousel-container {
  position: absolute;
  top: calc(172 / 1119 * 100%);
  left: calc(501 / 1920 * 100%);
  width: calc(920 / 1920 * 100%);
  height: calc(527 / 1119 * 100%);
  /* ← 关键：设定高度 */
  pointer-events: auto;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* 隐藏超出部分 */
  border-radius: calc(40 / 1920 * 100vw);
  /* 圆角半径，按需调整 */
}

/* 滑动轨道：所有 slide 横向排列 */
.carousel-track {
  display: flex;
  /* width: max-content; 自动撑开宽度 */
  height: 100%;
  transition: transform 0.5s ease-in-out;
  /* 平滑滑动 */
}

/* 每个 slide 占满视窗宽高 */
.carousel-slide {
  width: 100%;
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  /* 禁止压缩 */
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 箭头按钮：独立尺寸 */
/* 数值调整---箭头按钮实际宽高比和位置在这里进行调整 */
.carousel-btn {
  position: absolute;
  transform: translateY(-50%);
  /* 添加这行代码后图片定位为图片中心 */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 25;

  /* 👇 明确尺寸，防止 1x1 */
  width: calc(106 / 1920 * 100vw);
  height: calc(65 / 1119 * 100%);
}

.carousel-btn.prev {
  top: calc(430 / 1119 * 100%);
  left: calc(360 / 1920 * 100%);
}

.carousel-btn.next {
  top: calc(430 / 1119 * 100%);
  left: calc(1450 / 1920 * 100%);
}

.carousel-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 轮播图点指示器 */
#pc-layout .carousel-dots {
  position: absolute;
  bottom: calc(350 / 1119 * 100%);
  /* 距离底部 20px（按比例）*/
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: calc(12 / 1920 * 100vw);
  /* 点间距 */
  z-index: 25;
}

#pc-layout .carousel-dot {
  width: calc(24 / 1920 * 100vw);
  height: calc(24 / 1920 * 100vw);
  background: url('../images/unselected-point.png') no-repeat center center;
  background-size: contain;
  cursor: pointer;
  transition: opacity 0.3s ease;
  /* 透明度变化作为点击反馈 */
}

#pc-layout .carousel-dot.active {
  background-image: url('../images/selected-point.png');
}

/* 下方跳转按钮组覆盖层 */
.buttons-overlay {
  position: absolute;
  top: calc(850/ 1119 * 100%);
  left: calc(507/ 1920 * 100%);
}

.link-btn-group {
  display: flex;
  align-items: center;
  /* 或 center，根据设计 */
  gap: calc(75 / 1920 * 100vw);
  /* 按钮间距（按比例）*/
  /* width: calc(977 / 1920 * 100%);
  height: calc(228 / 1119 * 100%); */
}

/* 下方跳转按钮组 */
.link-btn {
  /* position: relative;  */
  width: calc(170 / 1920 * 100vw);
  height: calc(222 / 1119 * 100%);
  flex: none;
  /* 防止容器空间不足时被压缩 */
  z-index: 30;
}

/* 下方跳转按钮组 */
.link-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 保持图标比例 */
}


/* 底栏文字 */
.multi-link {
  position: absolute;
  /* left: calc(592 / 1920 * 100%); */
  left: calc(400 / 1920 * 100%);
  /* 水平居中示例 */
  top: calc(41.5 / 263 * 100%);
  /* 垂直居中 ≈ 130px from top */
  display: flex;
  gap: calc(45 / 1920 * 100vw);
  margin: 0;
  padding: 0;
  color: white;
}

.separator {
  font-size: calc(12 / 1920 * 100vw);
  color: white;
  white-space: nowrap;
  transition: color 0.2s;
}

.link-title {
  font-size: calc(16 / 1920 * 100vw);
  text-decoration: none;
  /* 去掉下划线 */
  color: white;
  white-space: nowrap;
}

.overlay-footer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
}

.footer-text-block {
  position: absolute;
  /* left: calc(592 / 1920 * 100%); */
  left: calc(400 / 1920 * 100%);
  top: calc(96.5 / 263 * 100%);
  font-size: calc(16 / 1920 * 100vw);
  line-height: calc(30 / 1920 * 100vw);
  display: flex;
  gap: calc(18 / 1920 * 100vw);
  margin: 0;
  padding: 0;
  color: rgba(174, 174, 174, 1);
  opacity: 0.5;
}

.company-logo {
  position: absolute;
  top: calc(35 / 263 * 100%);
  left: calc(256 / 1920 * 100%);
  width: calc(250 / 1920 * 100vw);
  height: calc(45 / 263 * 100%);
  pointer-events: auto;
}


/*===== 手机端适配(402*874) =====*/
.page-wrapper.mobile {
  overflow-x: hidden;
  /* 仅隐藏横向溢出 */
  overflow-y: visible;
  /* 允许纵向溢出*/
}

/* 父物体控制其缩放和位置 */
.section.mobile {
  width: calc(800 / 402 * 100%);
  height: auto;
  overflow: hidden;
  /* 防止超出部分显示 */
  transform: translateX(-50%);
  left: calc(201 / 402 * 100vw);
}

.bg-img-mobile {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* 图片按比例缩放，但不裁剪 */
  object-position: center;
  /* 图片居中显示 */
}

.bg-img-mobile.footer{
  width: 50%;
  transform: translateX(50%);
}

.download-btn-mobile {
  position: absolute;

  /* 按钮水平居中 */
  left: 50%;
  /* 相对于视口的中心 */
  top: calc(720 / 874 * 100%);
  /* 上边距基于 1080p 分辨率 */

  /* 使用 transform 进行微调居中 */
  transform: translateX(-50%);

  /* 启用 Flex 布局，并让子项顶到边缘 */
  display: flex;
  justify-content: space-between;
  /* 子项左右对齐 */
  align-items: center;
  /* 垂直居中（如果需要） */

  /* 设置固定宽高（基于 1920x1080 分辨率） */
  width: calc(300 / 402 * 100vw);
}

.download-btn-mobile a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;

  /* 宽度：380px 占父容器 856px 的比例 */
  width: calc(140 / 402 * 100vw);

  /* 高度：与父容器一致 */
  height: 100%;
}

.download-btn-mobile .btn-image {
  display: block;
  width: 100%;
  /* 占满整个按钮宽度 */
  height: auto;
  /* 自动计算高度，保持图片比例 */
}

.download-btn-mobile .btn-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  background: #ff6f00;
  border-radius: 8px;
}

.top-content-mobile {
  position: absolute;
  width: 100%;
  top: calc(30 / 874 * 100vh);
}

.game-logo-mobile {
  position: absolute;
  display: inline-block;
  text-decoration: none;
  user-select: none;
  pointer-events: auto;

  left: 50%;
  transform: translateX(calc(-190 / 402 * 100vw));
  width: calc(160 / 402 * 100vw);
}

.age-reminder-mobile {
  position: absolute;
  display: inline-block;
  text-decoration: none;
  user-select: none;
  pointer-events: auto;

  left: 50%;
  transform: translateX(calc(130 / 402 * 100vw));
  width: calc(50 / 402 * 100vw);
}

#mobile-layout .video-btn-mobile {
  position: absolute;
  left: 50%;
  top: calc(545 / 874 * 100%);
  width: calc(30 / 402 * 100%);
  height: calc(80 / 874 * 100%);
  transform: translateX(calc(135 / 402 * 100vw));
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  pointer-events: auto;
}

#mobile-layout .video-btn-mobile .btn-image {
  display: block;
  width: 100%;
  height: auto;
  /* 保持原始宽高比 */
}

/* 下方跳转按钮覆盖层 */
.buttons-overlay-mobile {
  position: absolute;
  top: calc(720/ 874 * 100vw);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
}

.link-btn-group-mobile {
  display: flex;
  align-items: center;

  gap: calc(125 / 1920 * 100vw);
}

/* 下方跳转按钮组 */
.link-btn-mobile {
  width: calc(65 / 402 * 100vw);
  flex: none;
  /* 防止容器空间不足时被压缩 */
  z-index: 30;
}

/* 下方跳转按钮组 */
.link-btn-mobile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 保持图标比例 */
}


.section.mobile.footer-section {
  width: calc(1600 / 402 * 100%);
}

.company-logo.mobile {
  position: absolute;
  top: calc(50 / 263 * 100%);
  left: calc(202 / 402 * 100%);
  width: calc(125 / 402 * 100vw);
  pointer-events: auto;
  transform: translateX(-50%);
}

/* 底栏文字 */
.multi-link.mobile {
  /* 手机适配修改 */
  left: calc(201 / 402 * 100%);
  /* top: calc(120 / 263 * 100%); */
  top: calc(50 / 263 * 100%);
  /* 新增 */
  transform: translateX(-50%);
}

.separator.mobile {
  font-size: calc(8 / 402 * 100vw);
}

.link-title.mobile {
  font-size: calc(8 / 402 * 100vw);
}

.footer-text-block-mobile {
  position: absolute;
  left: 50%;
  /* 水平居中示例 */
  /* top: calc(40 / 100 * 100%); */
  top: calc(40 / 100 * 100%);
  text-align: center;
  /* 新增 */
  transform: translateX(-50%);
  /* 垂直居中 ≈ 130px from top */
  font-size: calc(6 / 402 * 100vw);
  color: rgba(174, 174, 174, 1);
  opacity: 0.5;
}

/* 第一行：许可证 */
.footer-text-block-mobile .license-line {
  margin-bottom: calc(8 / 402 * 100vw);
}

/* 第二行：公告标题 */
.footer-text-block-mobile .notice-title {
  margin-bottom: calc(2 / 402 * 100vw);
  /* ← 控制与第三行的距离 */
}


/* ====手机轮播图==== */
/* 轮播图父节点,用于移动轮播图 */
.carousel-container.mobile {
  position: absolute;
  top: calc(148 / 874 * 100%);
  left: 50%;
  transform: translateX(-50%);
  width: 39.5%;
  height: 39%;
  /* ← 关键：设定高度 */
  pointer-events: auto;
}

.carousel-frame-mobile {
  position: absolute;
  top: calc(99.5 / 874 * 100%);
  left: calc(398 / 402 * 100vw);
  transform: translateX(-50%);
  width: 45%;

  pointer-events: none;
  object-fit: cover;
}

.carousel-viewport.mobile {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(15 / 402 * 100vw);
}

.carousel-btn.prev.mobile {
  top: calc(320 / 874 * 100%);
  left: calc(103 / 402 * 100%);
}

.carousel-btn.next.mobile {
  top: calc(320 / 874 * 100%);
  left: calc(286 / 402 * 100%);
}

#mobile-layout .carousel-dots {
  position: absolute;
  bottom: calc(320 / 874 * 100%);
  /* 距离底部 20px（按比例）*/
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: calc(12 / 402 * 100vw);
  z-index: 25;
}

#mobile-layout .carousel-dot {
  width: calc(24 / 402 * 100vw);
  height: calc(24 / 874 * 100vw);
  background: url('../images/unselected-point.png') no-repeat center center;
  background-size: contain;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#mobile-layout .carousel-dot.active {
  background-image: url('../images/selected-point.png');
}