/* =============================================
   全局样式
============================================= */
* {
  box-sizing: border-box;
}

.homeContainer {
  width: 100%;
  height: auto;
  text-align: center;
  touch-action: pan-y;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}


/* =============================================
   Banner 通用样式
============================================= */
.bannerContainer {
  background: #000;
  width: 100%;
  overflow: hidden;
  height: 540px;
  margin-bottom: 40px;
  position: relative;
}

@media only screen and (max-width: 750px) {
  .bannerContainer {
    height: 106.67vw;
  }
}

.bannerContainer .banner {
  height: 100%;
}

.bannerContainer .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
  display: block;
  min-width: 1440px;
  max-width: 1920px;
}

/* 添加大屏幕适配 */
@media only screen and (min-width: 1921px) {
  .bannerContainer {
    background: #000;
  }
  
  .bannerContainer .swiper-slide {
    max-width: none;
    width: 100vw;
  }
  
  .bannerContainer .bannerImg {
    width: 1920px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
  }
}

/* 添加中等屏幕适配 (751px-1440px) */
@media only screen and (min-width: 751px) and (max-width: 1440px) {
  .bannerContainer .swiper-slide {
    width: 100%;
    min-width: unset;
    max-width: 1440px;
  }
  
  .bannerContainer .bannerImg {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
  }
}


@media only screen and (max-width: 750px) {
  .bannerContainer .swiper-slide {
    min-width: unset;
    max-width: unset;
    height: 100%;
  }
}

.bannerContainer .bannerCard {
  display: block;
  height: 100%;
  cursor: pointer;
  position: relative;
}

@media only screen and (max-width: 750px) {
  .bannerContainer .bannerCard {
    height: 100%;
    position: relative;
    overflow: visible;
  }
}

.bannerContainer .bannerImg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  width: 1920px;
}

@media only screen and (max-width: 750px) {
  .bannerContainer .bannerImg {
    width: 100%;
    height: 61.33vw;
    object-fit: contain;
    z-index: 1;
  }
}

.bannerContainer .bannerDesc {
  margin: auto;
  max-width: 1560px;
  height: 100%;
  text-align: left;
  padding-left: 100px;
  position: relative;
}

@media only screen and (max-width: 750px) {
  .bannerContainer .bannerDesc {
    text-align: center;
    padding-left: 0;
    max-width: unset;
  }
}

.bannerContainer .bannerDesc .bannerDescContent {
  position: absolute;
  bottom: 80px;
  left: 100px;
}

@media only screen and (max-width: 750px) {
  .bannerContainer .bannerDesc .bannerDescContent {
    position: absolute;
    bottom: 0;
    margin: 65.399vw auto 0;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    z-index: 2;
  }
}

.bannerContainer .bannerDesc .bannerLogo {
  height: 136.5px;
  margin-top: 58px;
  margin-bottom: 40.5px;
  opacity: 0;
}

@media only screen and (max-width: 750px) {
  .bannerContainer .bannerDesc .bannerLogo {
    min-height: 30vw;
    height: 25.2vw;
    margin-top: 30.066vw;
    margin-bottom: 5.333vw;
    opacity: 1;
  }
}

.bannerContainer .bannerDesc .bannerTitle,
.bannerContainer .bannerDesc .bannerTDesc {
  color: #fff;
  text-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  font-size: 50px;
  line-height: 63px;
  height: 63px;
  font-weight: 450;
  text-shadow: 3px 4px 12px rgba(0, 0, 0, 0.82);
}

@media only screen and (max-width: 750px) {
  .bannerContainer .bannerDesc .bannerTitle,
  .bannerContainer .bannerDesc .bannerTDesc {
    line-height: 30px;
    height: 30px;
  }

  .bannerContainer .bannerDesc .bannerTitle {
    font-size: 25px;
  }

  .bannerContainer .bannerDesc .bannerTDesc {
    font-size: 16px;
  }
}

.bannerContainer .bannerButton {
  width: 176px;
  height: 46px;
  background-color: #d32f2f;
  border: 1px solid #d32f2f;
  font-family: Helvetica;
  font-size: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9999;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media only screen and (min-width: 751px) {
  .bannerContainer .bannerButton {
    margin-top: 28px;
    box-shadow: rgba(211, 47, 47, 0.5) 3px 4px 12px 0;
  }
}

@media only screen and (max-width: 750px) {
  .bannerContainer .bannerButton {
    width: 89.333vw;
    height: 12.266vw;
    margin: 6.66vw auto 0;
    box-shadow: none;
  }
}

.bannerContainer .bannerButton:hover {
  background-color: #ee2727;
  border: 1px solid #ee2727;
}

.bannerContainer .pagStyles {
  bottom: 0px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  cursor: default;
  padding: 10px 0;
  height: 26px;
  cursor: pointer;
}

.bannerContainer .swiper-pagination {
  position: relative;
}

@media only screen and (min-width: 751px) {
  .bannerContainer .swiper-pagination {
    bottom: 0;
    margin-bottom: 30px;
  }
}

@media only screen and (max-width: 750px) {
  .bannerContainer .pagStyles {
    height: 18px;
    padding: 5px 0;
    position: absolute;
    bottom: 0 !important;
    width: 100%;
    z-index: 10;
  }

  .bannerContainer .swiper-pagination {
    bottom: 0 !important;
    margin-top: auto;
    margin-bottom: 0 !important;
  }

  .bannerContainer .swiper-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .bannerContainer div[class="swiper-wrapper"] {
    height: calc(100% - 18px) !important;
    flex: 1;
  }
}

.bannerContainer .bannerBar {
  background: rgba(255, 255, 255, 0.5);
  display: inline-block;
  height: 6px;
  width: 100px;
  margin-right: 4px;
  border-radius: 0;
  opacity: 1;
  position: relative;
}

@media only screen and (max-width: 750px) {
  .bannerContainer .bannerBar {
    flex: 1;
    max-width: 70px;
    height: 3px;
    margin-right: 2px;
  }
}

.bannerContainer .bannerBar .bar {
  width: 0;
  height: 100%;
  background: rgba(211, 47, 47, 0.8);
  position: absolute;
  left: 0;
  top: 0;
}

.bannerContainer .barActive {
  background: rgba(211, 47, 47, 0.5);
  position: relative;
  overflow: hidden;
  height: 10px;
}

@media only screen and (max-width: 750px) {
  .bannerContainer .barActive {
    height: 5px;
  }
}

.bannerContainer .barActive .bar {
  animation: progress 4s linear;
  background: rgba(211, 47, 47, 1);
  width: 100%;
}

@keyframes progress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.bannerContainer div[class="swiper-button-next"],
.bannerContainer div[class="swiper-button-prev"] {
  color: #d32f2f;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.15);
  top: 45%;
  outline: none;
  width: 40px;
  height: 80px;
}

.bannerContainer div[class="swiper-button-next"]::after,
.bannerContainer div[class="swiper-button-prev"]::after {
  font-size: 16px;
}

.bannerContainer div[class="swiper-button-next"] {
  left: auto;
  right: 20px;
}

.bannerContainer div[class="swiper-button-prev"] {
  right: auto;
  left: 20px;
}

@media only screen and (max-width: 750px) {
  .bannerContainer div[class="swiper-button-next"],
  .bannerContainer div[class="swiper-button-prev"] {
    width: 18px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .bannerContainer div[class="swiper-button-next"]::after,
  .bannerContainer div[class="swiper-button-prev"]::after {
    font-size: 16px;
  }

  .bannerContainer div[class="swiper-button-next"] {
    right: 0px;
  }

  .bannerContainer div[class="swiper-button-prev"] {
    left: 0px;
  }
}

.bannerContainer .swiper-btn-next::after {
  content: "next";
}

.bannerContainer .swiper-btn-prev::after {
  content: "prev";
}

.bannerContainer .show {
  opacity: 1 !important;
  transition: all 0.3s;
}

.bannerContainer div[class="swiper-wrapper"] {
  transition-timing-function: linear;
  -moz-transition-timing-function: linear;
  -ms-transition-timing-function: linear;
  height: 514px;
}

@media only screen and (max-width: 750px) {
  .bannerContainer div[class="swiper-wrapper"] {
    height: 100% !important;
    position: relative;
  }
}

@keyframes fadeIn {
  0% {
    transform: translateX(-49%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.fadeIn .bannrImgAnimation {
  animation: fadeIn 3.5s linear forwards;
}

@media only screen and (min-width: 751px) {
  .fadeIn .descAnimation {
    opacity: 0;
    animation: desc 1s linear forwards;
  }

  .fadeIn .delay-1 {
    animation-delay: 0.5s;
  }

  .fadeIn .delay-2 {
    animation-delay: 0.8s;
  }

  .fadeIn .delay-3 {
    animation-delay: 1.2s;
  }

  @keyframes desc {
    0% {
      transform: translateX(20px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .fadeIn .bannerLogo {
    opacity: 0;
    animation: desc 1s linear 0.5s forwards;
  }

  .fadeIn .bannerTitle,
  .fadeIn .bannerTDesc {
    opacity: 0;
    animation: desc 1s linear 0.8s forwards;
  }

  .fadeIn .bannerButton {
    opacity: 0;
    animation: desc 1s linear 1.2s forwards;
  }
}

@media only screen and (max-width: 750px) {
  .fadeIn .descAnimation {
    opacity: 1;
    animation: none;
  }

  .fadeIn .delay-1,
  .fadeIn .delay-2,
  .fadeIn .delay-3 {
    animation-delay: 0s;
  }

  .fadeIn .bannerLogo,
  .fadeIn .bannerTitle,
  .fadeIn .bannerTDesc,
  .fadeIn .bannerButton {
    opacity: 1;
    animation: none;
  }
}

@media screen and (max-width: 750px) {
  .swiper-slide[data-game-id="afk_journey"] .bannerImg {
    content: url("../images/AFK-m-bg-0827.webp");
  }

  .swiper-slide[data-game-id="xgame"] .bannerImg {
    content: url("../images/xgame-m-bg.webp"); 
  }

  .swiper-slide[data-game-id="warpath"] .bannerImg {
    content: url("../images/warpath-m-bg.webp");
  }

  .swiper-slide[data-game-id="afk"] .bannerImg {
    content: url("../images/afk-m-bg.webp");
  }

  .swiper-slide[data-game-id="rok"] .bannerImg {
    content: url("../images/rok-m-bg.webp");
  }

  .swiper-slide[data-game-id="abi"] .bannerImg {
    content: url("../images/abi-m-bg.webp");
  }

  .swiper-slide[data-game-id="aoc"] .bannerImg {
    content: url("../images/aoc-m-bg.webp");
  }

  .swiper-slide[data-game-id="gjj"] .bannerImg {
    content: url("../images/gjj-m-bg.webp");
  }

  .swiper-slide[data-game-id="isoland"] .bannerImg {
    content: url("../images/isoland-m-bg.webp");
  }

  .swiper-slide[data-game-id="pumpkin"] .bannerImg {
    content: url("../images/pumpkin-m-bg.webp");
  }

  #farlight84-banner .bannerImg,
  div[id="farlight84-banner"] .bannerImg,
  .swiper-slide[data-game-id="farlight84"] .bannerImg {
    content: url("../images/84-banner-m-0827.webp");
  }
}

.titleBlock {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  font-size: 30px;
}

.titleBlock .title {
  font-family: Helvetica-Bold;
  color: #333333;
}

.titleBlock .titleLink {
  font-family: Helvetica;
  color: #d32f2f;
  font-size: 18px;
  cursor: pointer;
}

@media only screen and (min-width: 751px) {
  .titleBlock .titleLink {
    margin-left: 12px;
  }
}

@media only screen and (max-width: 750px) {
  .titleBlock .titleLink {
    width: 30px;
    padding-left: 8px;
    text-align: left;
  }

  .titleBlock .titleLink .subTitle {
    display: none;
  }
}

.titleBlock .ic_arrows {
  font-size: 8px;
  margin-left: 4px;
  vertical-align: middle;
  display: inline-block;
}

.ic_arrows .text {
  display: inline-block;
  font-family: iconfont;
  vertical-align: middle;
}

/* =============================================
   游戏展示区域
============================================= */
.gameContainer {
  width: 100%;
  text-align: center;
  margin: auto;
  position: relative;
  padding: 0 40px;
  max-width: 1560px;
  min-width: 1440px;
}

/* 游戏容器通用样式 */
.gameContainer .swiper-container {
  overflow: visible;
  overflow-x: hidden;
}

.gameContainer .swiper-wrapper {
  width: 100%;
  height: 100%;
  margin-top: 20px;
}

.gameContainer .hide {
  opacity: 0;
}

.gameContainer .gamePageController {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  background: #ffffff;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
  color: #979797;
  font-size: 16px !important;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 !important;
}

.gameContainer .gamePageController:hover {
  background-color: #f9f9f9;
}

.gameContainer .gamePageController::after {
  content: "";
}

.gameContainer .gamePrev {
  left: 0;
}

.gameContainer .gameNext {
  right: 0px;
}

.gameContainer .gamePageController i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 16px;
}

@media only screen and (max-width: 750px) {
  .gameContainer {
    padding: 0;
    min-width: unset;
    overflow: hidden;
  }

  .gameContainer .swiper-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* 防止滚动条显示 */
  }

  .gameContainer .swiper-container::-webkit-scrollbar {
    display: none;
  }

  .gameContainer .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-right: 20px; /* 添加右侧20px留白 */
  }

  .gameContainer .swiper-slide {
    width: auto;
    flex-shrink: 0;
  }

  /* 隐藏移动端导航按钮 */
  .gameContainer .gamePageController {
    display: none;
  }

  .gameContainer .containerTitle {
    padding-left: 20px;
  }

  .gameContainer .containerTitle .title {
    font-size: 22px;
    font-family: Helvetica-Bold;
    color: #333333;
    line-height: 1.5715;
  }

  .gameContainer .gamePageController i {
    font-size: 12px;
  }
}

/* 创建左侧留白 */
.gameContainer .swiper-container::before {
  content: "";
  display: block;
  min-width: 20px;
  height: 1px;
}

/* 创建右侧留白 */
.gameContainer .swiper-container::after {
  content: "";
  display: block;
  min-width: 20px;
  height: 1px;
}

/* 确保首个卡片与左边缘有20px间距 */
@media only screen and (max-width: 750px) {
  .gameContainer .swiper-slide:first-child {
    margin-left: 20px;
  }
}

/* 确保最后一个卡片与右边缘有20px间距 */
.gameContainer .swiper-slide:last-child {
  margin-right: 20px;
}

/* =============================================
   游戏卡片样式
============================================= */
.gameCard {
  width: 100%;
  height: 100%;
  display: block;
  font-family: Helvetica-Bold;
  position: relative;
  min-width: 325px;
  max-width: 375px;
  padding-bottom: 48px;
}

/* 游戏卡片顶部区域 */
.gameCard .cardTop {
  width: 100%;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  min-height: 454px;
}

.gameCard .cardTop .gameCardImg {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* 游戏卡片描述区域 */
.gameCard .cardTop .gameDesc {
  width: 100%;
  height: 228px;
  color: #ffffff;
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  z-index: 0;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
}

.gameCard .cardTop .gameDesc .gameTitle {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 20px;
}

/* 游戏卡片Logo区域 */
.gameCard .gameLogo {
  width: 100px;
  height: 100px;
  margin: auto;
  margin-top: -50px;
  position: relative;
}

.gameCard .gameLogo .gameCardLogo {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  opacity: 0.999;
}

.gameCard .gameLogo .logoGaosi {
  width: 90px;
  height: 90px;
  filter: blur(17px);
  position: absolute;
  top: 10px;
  left: 5px;
  z-index: -1;
}

/* 游戏卡片附加效果 */
.gameCard:last-child {
  margin-right: 0;
}

.gameCard .gameBg {
  width: 100%;
  height: calc(100% + 127px);
  position: absolute;
  z-index: -3;
  top: -127px;
  display: none;
}

.gameCard:hover .cardTop .gameDesc {
  opacity: 1;
  transition: all 0.5s;
}

.gameCard:hover .gameBg {
  display: block;
}

.gameCard .gameDesc {
  opacity: 1;
  padding: 0 25px;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
}

.gameCard .gameDesc .gameTitle {
  font-family: HelveticaNeue-Bold;
  font-size: 24px;
}

.gameCard .gameDesc .gameSubTitle {
  font-family: Helvetica;
  font-size: 14px;
  line-height: 18px;
  margin-top: 12px;
  margin-bottom: 80px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 移动端游戏卡片样式 */
@media only screen and (max-width: 750px) {
  .gameCard {
    min-width: unset;
    padding-bottom: 30px;
    width: 47.2vw;
    height: 100%;
    font-family: Helvetica-Bold;
    position: relative;
    display: inline-block;
  }

  .gameCard .cardTop {
    min-height: 180px;
    width: 100%;
    height: 66.133vw;
    position: relative;
  }
  .gameCard .cardTop .gameCardImg {
    width: 100%;
    height: 100%;
  }

  .gameCard .cardTop .gameDesc {
    height: 100px;
    width: 100%;
    height: 26.133vw;
    background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 100%
    );
    color: #ffffff;
    text-align: center;
    line-height: 26.133vw;
    font-family: DINPro-Bold;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 0;
  }

  .gameCard .cardTop .gameDesc .gameTitle {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .gameCard .gameLogo {
    width: 70px;
    height: 70px;
    margin-top: -30px;
    margin: -30px auto auto;
    opacity: 0.999;
    text-align: center;
  }

  .gameCard .gameLogo .gameCardLogo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    opacity: 0.99999;
  }

  .gameCard .gameLogo .logoGaosi {
    width: 50px;
    height: 50px;
    position: absolute;
    filter: blur(17px);
    z-index: -2;
    border-radius: 15px;
    bottom: 10px;
    left: 10px;
  }

  .gameCard .gameDesc .gameTitle {
    font-size: 18px;
    font-family: "";
  }

  .gameCard .gameDesc .gameSubTitle {
    display: none; /* 在移动端隐藏游戏副标题 */
  }
}

@media screen and (min-width: 751px) {
  .gameCard .gameDesc {
    opacity: 0;
  }
}


.homeContainer { margin-bottom: 36px; }
.bannerContainer .bannerCard { color: white; isolation: isolate; }
.bannerContainer .bannerButton { display: inline-flex; justify-content: center; align-items: center; }
.bannerContainer .bannerBar { border: 0; padding: 0; cursor: pointer; }
.bannerContainer .pagStyles { margin: 0; }
.banner-swiper:hover .barActive .bar, .banner-swiper:focus-within .barActive .bar { animation-play-state: paused; }
.homeContainer .gameContainer { min-width: 0; }
.gameContainer .gameCard { min-width: 0; max-width: none; }
.gameCard .cardTop { min-height: 0; aspect-ratio: 325 / 454; }
.gameCard .cardTop .gameCardImg { height: 100%; object-fit: cover; }
.gameCard:focus-visible .cardTop .gameDesc { opacity: 1; }
.gameContainer .game-swiper { overflow: hidden; }
.gameContainer .gamePageController.hide { visibility: hidden; }
.ic_arrows::before { content: ""; display: inline-block; width: .55em; height: .55em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.rotate180 { transform: rotate(180deg); }
@media (min-width: 751px) {
  .bannerContainer .bannerImg { width: max(100%, 1440px); height: 100%; object-fit: cover; }
  .bannerContainer .bannerDescContent { max-width: calc(100% - 160px); }
}
@media (max-width: 750px) {
  .bannerContainer .swiper-wrapper { flex: 1 1 0; min-height: 0; }
  .bannerContainer .pagStyles { width: 100%; position: relative; flex: 0 0 18px; margin: 0; }
  .bannerContainer .bannerDescContent { pointer-events: none; }
  .bannerContainer .bannerImg { object-fit: cover; }
  .bannerContainer .bannerDesc .bannerTitle { font-size: clamp(18px, 5.7vw, 25px); }
  .bannerContainer .bannerDesc .bannerLogo { max-width: 80vw; object-fit: contain; }
  .gameContainer .swiper-slide:first-child { margin-left: 0; }
  .gameContainer .swiper-slide { width: 47.2vw; }
  .titleBlock .titleLink { display: inline-flex; align-items: center; min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .bannerContainer .fadeIn * { animation: none !important; opacity: 1 !important; }
  .bannerContainer .barActive .bar { animation: none; }
}
