.Template2_container2__JH2Ap {
  display: flex;
  flex-direction: column;
  background: url('/bg.png') no-repeat center center;
  background-size: cover;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  overflow: hidden;
}

.Template2_header__j7yDv {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*! 兜底padding - 不支持safe-area-inset的设备 */

  padding: 4rem 9rem 1rem 9rem;

  /*! 现代浏览器 - 支持env()的设备 */

  padding: calc(4rem + env(safe-area-inset-top)) 9rem 1rem 9rem;

  /*! 旧版Safari - 支持constant()的设备 */

  padding: calc(4rem + constant(safe-area-inset-top)) 9rem 1rem 9rem;
}

/* 搜索容器样式 */
.Template2_searchContainer__Ok6xe {
  display: flex;
  align-items: center;
}

.Template2_searchForm__TiNu_ {
  display: flex;
  align-items: center;
  background: #be9f80;
  border-radius: 8rem;
  height: 8rem;
}

.Template2_searchInput__zkO6X {
  border: none;
  outline: none;
  background: transparent;
  width: 29rem;
  height: 8rem;
  padding: 0 2.7rem;
  font-size: 3rem;
  color: #fff;
  font-family: 'Microsoft YaHei';
  flex-shrink: 0;
}

.Template2_searchInput__zkO6X::placeholder {
  color: #fff;
  font-size: 3rem;
}

.Template2_searchButton__wLEJ4 {
  color: white;
  border: none;
  height: 8rem;
  width: 8rem; /* 圆形按钮 */
  padding: 0;
  font-size: 0; /* 隐藏文字 */
  cursor: pointer;
  font-family: 'Microsoft YaHei';
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.Template2_searchButton__wLEJ4::before {
  display: inline-block;
  content: '';
  width: 3.4rem;
  height: 3.4rem;
  background: url('/icon_search.png') no-repeat center center;
  background-size: 100% 100%;
}

.Template2_clearButton__aKmZZ {
  background: #ccc;
  color: #666;
  border: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.Template2_clearButton__aKmZZ:hover {
  background: #999;
  color: white;
}

/* 搜索结果样式 */
.Template2_searchResultsHeader__Fl98K {
  width: 100%;
  text-align: center;
  margin-top: -15rem;
  margin-bottom: 2rem;
  padding: 2rem;
}

.Template2_searchResultsTitle__vbDMo {
  font-family: 'Microsoft YaHei';
  font-size: 3.4rem;
  color: #380000;
  margin: 0 0 1rem 0;
  font-weight: bold;
}

.Template2_searchResultsSubtitle__5j3Ug {
  font-family: 'Microsoft YaHei';
  font-size: 2.4rem;
  color: #666;
  margin: 0;
}

.Template2_searchResultsGrid__7sM69 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.Template2_noSearchResults__CpJIV {
  width: 100%;
  text-align: center;
  padding: 0 2rem;
}

.Template2_noSearchResults__CpJIV p {
  font-family: 'Microsoft YaHei';
  font-size: 2.4rem;
  color: #666;
  margin: 0;
}

.Template2_menuItem__RPN2w {
  font-family: 'Microsoft YaHei';
  font-size: 3.8rem;
  color: #380000;
  text-decoration: underline;
}

.Template2_logo__JkFUf {
  display: inline-flex;
  font-size: 5.2rem;
  font-weight: bold;
  background: linear-gradient(to bottom, #140200, #7f2e00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.Template2_logo__JkFUf img {
  width: 100%;
  height: 100%;
}

.Template2_main__ygbeR {
  flex: 1;
  display: flex;
  align-items: center;
}

.Template2_gridWrapper__02zg4 {
  position: relative;
  width: 100%;
  height: 100%;
}

.Template2_sliderViewport__l9456 {
  overflow: hidden;
  height: 100%;
  position: relative;
  z-index: 1;
}

.Template2_sliderTrack__Z5XsC {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 300ms ease-in-out;
}

.Template2_gridPage__eVams {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.Template2_gridPage__eVams.Template2_last__0yaAD {
  /* 最后一屏的特殊样式 */
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
}

.Template2_grid__Hpgi5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 9rem;
}

.Template2_moreGamesComingSoon__iZNrb {
  display: block;
  width: 100%;
  font-family: 'Microsoft YaHei';
  font-size: 3.5rem;
  color: #380000;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  margin-bottom: -10rem;
}

/* 轮播容器样式 */
.Template2_carouselContainer__m4TUp {
  width: 82rem;
  height: 32.8rem;
  margin-bottom: 1rem;
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.Template2_carouselWrapper__VtetN {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.Template2_carouselTrack__YrpWb {
  display: flex;
  width: 700%; /* 7个轮播图（6个真实+1个克隆），总宽度是容器的7倍 */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.Template2_carouselTrack__YrpWb.Template2_noTransition__KPOgb {
  transition: none !important;
}

.Template2_carouselSlide__K_z0q {
  flex: 0 0 14.285714%; /* 每个slide占据track的1/7宽度，相当于容器的100%宽度 */
  width: 14.285714%;
  height: 100%;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('/game_bg.png') no-repeat center center;
  background-size: 100% 100%;
  transition: transform 0.3s ease-out;
}

.Template2_carouselSlide__K_z0q:active {
  transform: translateY(-10px);
}

.Template2_carouselImage__vPQLh {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 轮播指示器样式 */
.Template2_carouselIndicators__X1EfG {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.Template2_carouselDot__Vsi_j {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.Template2_carouselDot__Vsi_j:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.Template2_carouselDotActive__zT1VJ {
  background-color: white;
  transform: scale(1.2);
}

/* 原有图片容器样式（备用） */
.Template2_videoContainer__c4Cxz {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 82rem;
  height: 32.8rem;
  margin-bottom: 1rem;
  border-radius: 2rem;
  background: url('/game_bg.png') no-repeat center center;
  background-size: 100% 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease-out;
}

.Template2_videoContainer__c4Cxz:active {
  transform: translateY(-10px);
}

.Template2_video__L7hWo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 历史游戏展示区域样式 */
.Template2_history__UZUQk {
  display: flex;
  align-items: center;
  background: url('/history_bg.svg') no-repeat center center;
  background-size: cover;
  width: 82rem;
  height: 12.5rem;
  margin: 0.5rem auto;
  box-sizing: border-box;
  border-radius: 2rem;
}

.Template2_historyTitle__bXO6o {
  font-family: 'Microsoft YaHei';
  font-size: 2.4rem;
  color: #380000;
  text-align: center;
  font-weight: bold;
}

.Template2_historyGrid__CtHzL {
  flex: 1;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.Template2_historyGameItem__A1b1J {
  position: relative;
  cursor: pointer;
  border-radius: 1rem;
  margin: 0 2rem;
  transition: transform 0.2s ease-out;
}

.Template2_historyGameItem__A1b1J:active,
.Template2_historyGameItem__A1b1J.Template2_clicked__5SLUo {
  transform: scale(1.15);
}

.Template2_historyGameImageContainer__cag9c {
  width: 9.2rem;
  height: 9.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.Template2_historyGameImage__OIdgU {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.8rem;
}

.Template2_historyGameRecommend__hCi_Q {
  position: absolute;
  right: -1rem;
  top: -1.3rem;
  width: 2.3rem;
  height: 2.3rem;
  text-indent: -9999px;
  background: url('/icon_recommend.png') no-repeat center center;
  background-size: 100% 100%;
}

@keyframes Template2_breathe__dGz02 {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.Template2_playButton__23COz {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24rem;
  height: 8rem;
  color: #fff;
  font-family: 'Microsoft YaHei';
  font-size: 3rem;
  font-weight: bold;
  border: none;
  outline: none;
  text-shadow: 0rem 0.125rem 0.16rem rgba(0, 0, 0, 1);
  background: url(/_next/static/media/play_now.f9cdc795.png) no-repeat center center;
  background-size: 100% 100%;
  animation: Template2_breathe__dGz02 2s ease-in-out infinite;
  transition: transform 0.15s ease-out;
}

.Template2_gameCard__ZgtDg {
  display: flex;
  align-items: center;
  width: 40.4rem;
  height: 17.5rem;
  margin: 0.5rem 0;
  background: url('/game_bg.png') no-repeat center center;
  background-size: 100% 100%;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}

.Template2_gameCard__ZgtDg.Template2_clicked__5SLUo {
  /* Add your desired styles for the clicked state here */
  /* background-color: #f0f0f0; */
  transform: scale(1.05);
}

.Template2_gameImageContainer__1A_RM {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  width: 14rem;
  height: 14rem;
  margin-left: 0.8rem;
  overflow: hidden;
  background: url('/round.png') no-repeat center center;
  background-size: 100% 100%;
  transition: transform 0.15s ease-out;
}

.Template2_gameCard__ZgtDg:active {
  transform: scale(1.05);
}

.Template2_gameImage__g2sAC {
  width: 12.4rem;
  height: 12.4rem;
  border-radius: 12.4rem;
}

.Template2_gameName__yPyhg {
  flex: 1;
  color: #fff;
  line-height: 1.2;
  font-size: 4rem;
  font-family: 'Microsoft YaHei';
  font-weight: bold;
  text-align: center;
  text-shadow: 0rem 0.125rem 0.16rem rgba(0, 0, 0, 1);
  user-select: none;
}

.Template2_footer__PNuXh {
  padding: 1rem 0 4em 0;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Template2_footerItem__p0m_y {
  margin: 0 1.33rem;
  font-size: 2.8rem;
  font-weight: bold;
  color: #380000;
  text-decoration: underline;
}

.Template2_navButton__D_SbZ {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8rem;
  height: 8rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.Template2_navButton__D_SbZ:disabled {
  opacity: 0.4;
  cursor: default;
}

.Template2_navButtonLeft__nkW8s {
  left: 0.3rem;
  background-image: url('/arrow_left.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.Template2_navButtonRight__3taDI {
  right: 0.3rem;
  background-image: url('/arrow_right.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.Template2_pageIndicator__Y04_n {
  position: absolute;
  bottom: -6rem;
  left: 50%;
  transform: translateX(-50%);
  color: #380000;
  font-weight: bold;
  font-size: 3rem;
}

/* 当做ipad适配 */
@media screen and (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) {
  .Template2_header__j7yDv {
    width: 64rem;
    margin: 0 auto;
    /*! 兜底padding - 不支持safe-area-inset的设备 */

    padding: 3rem 0 1rem 0;

    /*! 现代浏览器 - 支持env()的设备 */

    padding: calc(3rem + env(safe-area-inset-top)) 0 1rem 0;

    /*! 旧版Safari - 支持constant()的设备 */

    padding: calc(3rem + constant(safe-area-inset-top)) 0 1rem 0;
  }
  .Template2_header__j7yDv .Template2_logo__JkFUf {
    font-size: 4rem
  }
  .Template2_searchContainer__Ok6xe {
    margin-left: 2rem;
  }
  .Template2_searchForm__TiNu_ {
    width: 36rem;
    height: 7rem;
    border-radius: 7rem;
  }
  .Template2_searchInput__zkO6X {
    height: 7rem;
    font-size: 1.4rem;
    padding: 0 0 0 2rem;
  }
  .Template2_searchButton__wLEJ4 {
    width: 7rem;
    height: 7rem;
  }
  .Template2_searchResultsTitle__vbDMo {
    font-size: 2.8rem;
  }
  .Template2_searchResultsSubtitle__5j3Ug {
    font-size: 1.8rem;
  }
  .Template2_grid__Hpgi5 {
    display: flex;
    width: 64rem;
    margin: 0 auto;
    padding: 0;
  }
  .Template2_carouselContainer__m4TUp {
    width: 100%;
    height: 24rem;
    object-fit: cover;
  }
  .Template2_playButton__23COz {
    width: 17rem;
    height: 6.5rem;
    font-size: 2.8rem;  
  }
  .Template2_history__UZUQk {
    width: 100%;
    height: 9rem;
  }
  .Template2_historyGameItem__A1b1J {
    margin: 0 1.7rem;
  }
  .Template2_historyGameImageContainer__cag9c {
    width: 6.8rem;
    height: 6.8rem;
  }
  .Template2_historyGameImage__OIdgU {
    width: 100%;
    height: 100%;
  }
  .Template2_gameCard__ZgtDg {
    width: 31.3rem;
    height: 12rem;
  }
  .Template2_gameImageContainer__1A_RM {
    width: 10rem;
    height: 10rem;
  }
  .Template2_gameImage__g2sAC {
    width: 9rem;
    height: 9rem;
  }
  .Template2_gameName__yPyhg {
    font-size: 2.8rem;
  }
  .Template2_footerItem__p0m_y {
    font-size: 2.2rem;
  }
  .Template2_navButton__D_SbZ {
    width: 6rem;
  }
  .Template2_navButtonLeft__nkW8s {
    left: 10rem;
  }
  .Template2_navButtonRight__3taDI {
    right: 10rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
  .Template2_header__j7yDv {
    width: 38rem;
    margin: 0 auto;
    /*! 兜底padding - 不支持safe-area-inset的设备 */
    padding: 1rem 0 1rem 0;
    /*! 现代浏览器 - 支持env()的设备 */
    padding: calc(1rem + env(safe-area-inset-top)) 0 1rem 0;
    /*! 旧版Safari - 支持constant()的设备 */
    padding: calc(1rem + constant(safe-area-inset-top)) 0 1rem 0;
  }
  .Template2_header__j7yDv .Template2_logo__JkFUf {
    font-size: 2.4rem;
  }
  .Template2_searchContainer__Ok6xe {
    margin-left: 1rem;
  }
  .Template2_searchForm__TiNu_ {
    height: 3.6rem;
  }
  .Template2_searchInput__zkO6X {
    width: 13rem;
    height: 3.6rem;
    font-size: 1.4rem;
    padding: 0 0 0 1.2rem;
  }
  .Template2_searchInput__zkO6X::placeholder {
    font-size: 1.4rem;
  }
  .Template2_searchButton__wLEJ4 {
    width: 3.6rem;
    height: 3.6rem;
  }
  .Template2_searchButton__wLEJ4::before {
    width: 2rem;
    height: 2rem;
  }
  .Template2_clearButton__aKmZZ {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.2rem;
  }
  .Template2_searchResultsTitle__vbDMo {
    font-size: 2.4rem;
  }
  .Template2_searchResultsSubtitle__5j3Ug {
    font-size: 1.6rem;
  }
  .Template2_grid__Hpgi5 {
    display: flex;
    width: 38rem;
    margin: 0 auto;
    padding: 0;
  }
  .Template2_carouselContainer__m4TUp {
    width: 100%;
    height: 14rem;
    object-fit: unset;
    background-size: 100% 100%;
    border-radius: 1.5rem;

  }
  .Template2_playButton__23COz {
    width: 10rem;
    height: 4rem;
    font-size: 1.6rem;  
  }
  .Template2_history__UZUQk {
    width: 100%;
    height: 6rem;
    border-radius: 1rem;
  }
  .Template2_historyGameItem__A1b1J {
    margin: 0 0.8rem;
  }
  .Template2_historyGameImageContainer__cag9c {
    width: 4.5rem;
    height: 4.5rem;
  }
  .Template2_historyGameImage__OIdgU {
    width: 100%;
    height: 100%;
  }
  .Template2_historyGameRecommend__hCi_Q {
    width: 1.5rem;
    height: 1.5rem;
    right: -0.5rem;
    top: -0.65rem;
  }
  .Template2_gameCard__ZgtDg {
    width: 18.7rem;
    height: 7.2rem;
    margin: 0.3rem 0;
  }
  .Template2_gameImageContainer__1A_RM {
    width: 6.2rem;
    height: 6.2rem;
  }
  .Template2_gameImage__g2sAC {
    width: 5.6rem;
    height: 5.6rem;
  }
  .Template2_gameName__yPyhg {
    font-size: 2rem;
  }
  .Template2_footer__PNuXh {
    padding: 0.5rem 0 2rem 0;
  }
  .Template2_footerItem__p0m_y {
    font-size: 1.6rem;
  }
  .Template2_navButton__D_SbZ {
    width: 3rem;
  }
  .Template2_navButtonLeft__nkW8s {
    left: 27rem;
  }
  .Template2_navButtonRight__3taDI {
    right: 27rem;
  }
  .Template2_searchResultsTitle__vbDMo {
    font-size: 2rem;
  }
  .Template2_moreGamesComingSoon__iZNrb {
    margin: 0;
    font-size: 2rem;
  }
}

/* Desktop适配：当视口>=1200px（root字体固定为12px）时，容器固定为76rem居中 */
@media (min-width: 1367px) {
  .Template2_container2__JH2Ap {
    max-width: 50rem;
  }
  .Template2_header__j7yDv {
    /*! 兜底padding - 不支持safe-area-inset的设备 */

    padding: 1rem 5rem 1rem 5rem;

    /*! 现代浏览器 - 支持env()的设备 */

    padding: calc(1rem + env(safe-area-inset-top)) 5rem 1rem 5rem;

    /*! 旧版Safari - 支持constant()的设备 */

    padding: calc(1rem + constant(safe-area-inset-top)) 5rem 1rem 5rem;
  }
  .Template2_logo__JkFUf {
    font-size: 2.6rem;
  }
  .Template2_menuItem__RPN2w {
    font-size: 1.6rem;
  }

  .Template2_grid__Hpgi5 {
    padding: 0 5rem;
  }
  
  /* 轮播容器移动端适配 */
  .Template2_carouselContainer__m4TUp {
    width: 40.4rem;
    height: 17.5rem;
    margin-bottom: 0.7rem;
    border-radius: 1rem;
  }
  
  .Template2_carouselIndicators__X1EfG {
    bottom: 0.8rem;
    gap: 0.5rem;
  }
  
  .Template2_carouselDot__Vsi_j {
    width: 0.8rem;
    height: 0.8rem;
  }
  
  .Template2_videoContainer__c4Cxz {
    width: 40.4rem;
    height: 17.5rem;
    margin-bottom: 0.7rem;
    border-radius: 1rem;
  }
  .Template2_gameCard__ZgtDg {
    width: 19.7rem;
    height: 8.5rem;
  }
  .Template2_gameImageContainer__1A_RM {
    width: 7rem;
    height: 7rem;
    margin-left: 0.4rem;
  }
  .Template2_gameImage__g2sAC {
    width: 6.2rem;
    height: 6.2rem;
  }
  .Template2_gameName__yPyhg {
    margin: 0 0.5rem;
    font-size: 1.8rem;
  }

  .Template2_playButton__23COz {
    width: 10.3rem;
    height: 3.4rem;
    font-size: 1.4rem;
  }

  .Template2_history__UZUQk {
    width: 40.4rem;
    height: 6rem;
    margin: 0.5rem auto;
    border-radius: 1rem;
  }

  .Template2_historyGrid__CtHzL {
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .Template2_historyGameItem__A1b1J {
    margin: 0 1rem;
  }

  .Template2_historyGameImageContainer__cag9c {
    width: 4.4rem;
    height: 4.4rem;
  }

  .Template2_historyGameImage__OIdgU {
    border-radius: 0.4rem;
  }

  .Template2_historyGameRecommend__hCi_Q {
    width: 1.15rem;
    height: 1.15rem;
    right: -0.5rem;
    top: -0.65rem;
  }

  .Template2_navButton__D_SbZ {
    width: 4.5rem;
    height: 4.5rem;
  }
  .Template2_navButtonLeft__nkW8s {
    left: 0;
  }
  .Template2_navButtonRight__3taDI {
    right: 0;
  }
  .Template2_footer__PNuXh {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .Template2_footerItem__p0m_y {
    font-family: 'Microsoft YaHei';
    font-size: 1.6rem;
    margin: 0 1rem;
  }
 
  .Template2_searchForm__TiNu_ {
    height: 3rem;
  }
  .Template2_searchInput__zkO6X {
    width: 13rem;
    height: 3rem;
    padding: 0 1rem;
    font-size: 14px; /* 调整PC端字体大小 */
  }
  .Template2_searchInput__zkO6X::placeholder {
    font-size: 14px;
  }
  .Template2_searchButton__wLEJ4 {
    width: 3rem;
    height: 3rem;
  }
  .Template2_searchButton__wLEJ4::before  {
    width: 1.5rem;
    height: 1.5rem;
  }
  .Template2_searchResultsHeader__Fl98K {
    margin-top: -5rem;
  }
  .Template2_searchResultsTitle__vbDMo {
    font-size: 1.8rem;
  }
  .Template2_searchResultsSubtitle__5j3Ug {
    font-size: 1.4rem;
  }
  .Template2_moreGamesComingSoon__iZNrb {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2.2rem;
  }
}

