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

body {
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  color: #fff;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Header Banner Section */
.first-box {
  position: relative;
  width: 100%;
  height: 100vh; /* 铺满整个视口高度 */
  min-height: 100vh;
}

.banner-box {
  position: relative;
  width: 100%;
  height: 100%; /* 继承first-box的高度 */
  min-height: 100vh; /* 确保至少铺满首屏 */
}

.banner-box-header {
  height: 72px;
  width: 100%;
  top: 0;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 50px;
  background-image: url("../img/titleBg.png");
  background-size: cover;
  border-bottom: 1px solid #0DFAFE;
  z-index: 15;
}
.banner-box .playVideo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  cursor: pointer;
  z-index: 10;
}
.banner-box .playVideo .playVideoImg{
  height: 231px;
  width: 231px;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 5;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 使用cover铺满整个容器 */
  background-color: #000; /* 添加黑色背景填充空白区域 */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.banner-box.video-playing .playVideo {
  display: none;
}

.banner-box.video-playing .video-container {
  display: block;
}
.banner-box-header-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.banner-box-header-list-item-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500; /* Medium对应的粗细，一般是500 */
  font-size: 14px;
  padding: 10px 20px;
  transition: all 0.3s;
}

.banner-box-header-list-item-link:hover,
.banner-box-header-list-item-link-active {
  color: #0EF1FE;
}

.banner-box-header-logo {
  position: absolute;
  left: 67px;
  display: flex;
  align-items: center;
}
.banner-box-header-logo .leftTopLine{
  margin: 0 8px;
}
.banner-box-header-logo .leftTopLogoImgLine{
  height: 23px;
  width: auto;
}
.banner-box-header-logo .leftTopLogo1,.leftTopLogo2,.leftTopLine {
  display: flex;
}
.banner-box-header-logo .leftTopLogo1 .leftTopLogoImg{
  height: 41px;
  width: auto;
}
.banner-box-header-logo .leftTopLogo2 .leftTopLogoImg{
  height: 37px;
  width: auto;
}

/* Download buttons */
.download-box {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.download-box-btn {
  width: 200px;
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #fff;
}

.download-box-btn-left {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.download-box-btn:not(.download-box-btn-left) {
  background: linear-gradient(135deg, #4834d4, #686de0);
}

.download-box-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.download-box-btn-left::after {
  content: "Download iOS";
}

.download-box-btn:not(.download-box-btn-left)::after {
  content: "Download Android";
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Group Sections */
.group-box {
  margin: 0 auto;
}

.group1, .group2, .group3, .group4 {
  margin-bottom: 80px;
}

.group2-title, .group3-title, .group4-title {
  text-align: center;
  margin-bottom: 30px;
}

.group2-title-img, .group3-title-img, .group4-title-img {
  width: 300px;
  height: 60px;
  background-color: #0099ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto;
}

.group2-title-img::after { content: "GAME STRATEGY"; }
.group3-title-img::after { content: "GAME FEATURES"; }
.group4-title-img::after { content: "BRAND ACTIVITIES"; }

.look-more {
  text-align: right;
  margin-bottom: 30px;
}

.look-more-text {
  color: #00aaff;
  text-decoration: none;
  font-size: 16px;
}

.look-more-text:hover {
  text-decoration: underline;
}

/* Group 1 - MLB Licensed Section */
.mlb-licensed-section {
  background-color: #171717;
  padding: 120px 0 60px 0;
  border-radius: 15px;
  margin-bottom: 80px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

.mlb-licensed-title {
  text-align: center;
}
.mlb-licensed-img {
  display: inline-block;
  height: 43px;
}

.mlb-licensed-content {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.mlb-licensed-left {
  flex: 1;
}

.mlb-players-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mlb-players-logo .middleIconShow{
  width: 585px;
  height: 146px;
}

.players-logo-placeholder {
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
  font-size: 12px;
}

.players-logo-placeholder::after {
  content: "PLAYERS LOGO";
}

.players-text {
  color: #fff;
}

.officially-licensed {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.mlb-players-inc {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
}
.mlb-year {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.mlb-licensed-right {
  flex: 1.5;
}

.mlb-officially-title {
  margin-bottom: 20px;
}
.mlb-officially-title-img {
  display: inline-block;
  height: 20px;
}

.mlb-description {
  font-weight: 500; /* Medium对应的粗细，一般是500 */
  font-size: 18px;
  color: #FFFFFF;
}

.mlb-desc-line {
  margin-bottom: 5px;
  font-size: 14px;
}

.time {
  color: #999;
  font-size: 14px;
}

.type {
  background-color: #00aaff;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

/* Group 2 - About This Game */
.about-game-section {
  background: url("../img/middleBlueBg.png") no-repeat center;
  padding: 80px 50px;
  margin-bottom: 80px;
  text-align: center;
}

.about-game-title {
  text-align: center;
  margin-bottom: 60px;
}
.about-game-title .about-game-title-show{
  height: 43px;
}

.about-game-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-game-desc {
  margin-bottom: 30px;
}

.about-game-desc-line {
  font-size: 20px;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 8px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.about-game-desc:last-child {
  margin-bottom: 0;
}

/* Group 3 - News Section */
.news-section {
  padding: 60px 0;
  border-radius: 15px;
  margin-bottom: 80px;
}

.news-header {
}

.news-title {
  text-align: center;
}
.news-title .news-title-img{
  display: inline-block;
  height: 43px;
}

.news-more {
  text-align: right;
  font-size: 16px;
  color: #00FFFF;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.news-more:hover {
  color: #ffffff;
}
.news-content{
  margin-top: 30px;
  display: flex;
  justify-content: center;
}
.news-content-main {

}
.news-content-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-item {
  background-color: #1a1a1a;
  overflow: hidden;
  transition: transform 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item-image {
  width: 385px;
  height: 216px;
  overflow: hidden;
}
.news-item-image .news-item-image-show{
  width: 100%;
  height: auto;
}

.news-item-info {
  width: 386px;
  height: 115px;
  background: url(../img/indexCardBg.png) no-repeat center;
  background-size: cover;
  padding: 20px;
}

.news-item-title {
  font-size: 16px;
  font-weight: bold;
  color: #00FFFF;
  margin-bottom: 10px;
  line-height: 1.3;
  white-space: nowrap;        /* 防止文本换行 */
  overflow: hidden;           /* 隐藏溢出内容 */
  text-overflow: ellipsis;    /* 显示省略号 */
}
.view-news-item{
  cursor: pointer;
}
.news-item-desc {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.5;
  display: block;
  word-wrap: break-word;
}

/* Responsive for news section */
@media (max-width: 1024px) {
  .news-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-content {
    grid-template-columns: 1fr;
  }

  .news-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .news-title {
    font-size: 36px;
  }
}

/* Group 4 - Features Carousel */
.features-section {
  padding: 60px 50px;
  margin-bottom: 80px;
}

.features-title {
  text-align: center;
}
.features-title .features-title-img{
  display: inline-block;
  height: 43px;
}


/* Swiper styles for group4 */
.group4 .swiper-box {
  position: relative;
  margin-top: 70px;
}

.group4 .swiper-box .swiper {
  position: relative;
  width: 1163px;
  height: 489px;
  margin: 0 auto;
}

.group4 .swiper-box .swiper .pic {
  width: 872px;
  height: 100%;
  position: relative;
  padding: 0;
  margin: 0 auto;
}

.group4 .swiper-box .swiper .pic li {
  -webkit-transition: all 0.8s;
  -moz-transition: all 0.8s;
  -o-transition: all 0.8s;
  -ms-transition: all 0.8s;
  transition: all 0.8s;
  width: 869px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -434.5px;
  overflow: hidden;
  z-index: 3;
  display: none;
}

.group4 .swiper-box .swiper .pic li img {
  width: 869px;
  height: 489px;
}

.group4 .swiper-box .swiper .pic li.now {
  z-index: 6;
  display: block;
}

.group4 .swiper-box .swiper .pic li.next {
  opacity: 0.3;
  z-index: 4;
  left: 72%;
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -o-transform: scale(0.9);
  -ms-transform: scale(0.9);
  transform: scale(0.9);
  display: block;
}

.group4 .swiper-box .swiper .pic li.prev {
  z-index: 4;
  opacity: 0.3;
  left: 28%;
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -o-transform: scale(0.9);
  -ms-transform: scale(0.9);
  transform: scale(0.9);
  display: block;
}

.group4 .swiper-box .swiper .prev-btn {
  position: absolute;
  height: 104px;
  width: 55px;
  left: 54px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  cursor: pointer;
}

.group4 .swiper-box .swiper .prev-btn .prev-btn-img {
  height: 104px;
  width: 55px;
}

.group4 .swiper-box .swiper .next-btn {
  position: absolute;
  height: 104px;
  width: 55px;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  cursor: pointer;
}

.group4 .swiper-box .swiper .next-btn .next-btn-img {
  height: 104px;
  width: 55px;
}

.group4 .swiper-dot {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.group4 .swiper-dot .swiper-dot-item {
  width: 21px;
  height: 21px;
  background: #666;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.group4 .swiper-dot .swiper-dot-item-active {
  width: 21px;
  height: 21px;
  background: #00FFFF;
  border-radius: 50%;
}

.features-carousel {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.carousel-container {
  position: relative;
  height: 400px;
  perspective: 1000px;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 60%;
  height: 320px;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* 默认隐藏所有卡片 */
.carousel-slide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 0;
}

/* 激活状态的幻灯片 - 中心位置 */
.carousel-slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 5;
}

/* 左侧第一张卡片 */
.carousel-slide.left-1 {
  opacity: 0.8;
  transform: translate(-50%, -50%) translateX(-180px) scale(0.9);
  z-index: 3;
}

/* 左侧第二张卡片 */
.carousel-slide.left-2 {
  opacity: 0.6;
  transform: translate(-50%, -50%) translateX(-280px) scale(0.8);
  z-index: 2;
}

/* 右侧第一张卡片 */
.carousel-slide.right-1 {
  opacity: 0.8;
  transform: translate(-50%, -50%) translateX(180px) scale(0.9);
  z-index: 3;
}

/* 右侧第二张卡片 */
.carousel-slide.right-2 {
  opacity: 0.6;
  transform: translate(-50%, -50%) translateX(280px) scale(0.8);
  z-index: 2;
}

.slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.slide-image {
  width: 60%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-text {
  width: 40%;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

.slide-text h3 {
  font-size: 24px;
  font-weight: bold;
  color: #00FFFF;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.slide-text p {
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 255, 0.9);
  border: none;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: #00FFFF;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -60px;
}

.carousel-next {
  right: -60px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #00FFFF;
  transform: scale(1.3);
}

.dot:hover {
  background: rgba(0, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .features-carousel {
    max-width: 90%;
  }

  .carousel-container {
    height: 300px;
  }

  .carousel-slide {
    width: 85%;
    height: 220px;
  }

  .carousel-slide:nth-child(1),
  .carousel-slide:nth-child(5) {
    display: none;
  }

  .carousel-slide:nth-child(2) {
    transform: translate(-50%, -50%) translateX(-60px) scale(0.9);
  }

  .carousel-slide:nth-child(4) {
    transform: translate(-50%, -50%) translateX(60px) scale(0.9);
  }

  .slide-text h3 {
    font-size: 18px;
  }

  .slide-text p {
    font-size: 12px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .carousel-prev {
    left: -45px;
  }

  .carousel-next {
    right: -45px;
  }

  .features-title {
    font-size: 36px;
  }
}

/* Legacy Group 4 styles (kept for compatibility) */
.group4-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.group4-list-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}

.group4-list-item-video {
  position: relative;
}

.group4-list-item-img {
  width: 100%;
  height: 200px;
  background-color: #ff6600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.group4-list-item-img::after {
  content: "ACTIVITY VIDEO";
}

.group4-list-item-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.group4-list-item-btn::after {
  content: "▶";
  color: #333;
  font-size: 20px;
}

.title {
  padding: 20px;
  color: #ccc;
  line-height: 1.5;
}

.group4-line {
  text-align: center;
}

.group4-line-img {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #00aaff, transparent);
}

.health-game-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #00aaff;
}

.health-game-desc {
  text-align: center;
  color: #999;
  margin-bottom: 40px;
  line-height: 1.6;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  gap: 30px;
}

.footer-left-img1, .footer-left-img2 {
  width: 120px;
  height: 60px;
  background-color: #333;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.footer-left-img1::after {
  content: "COMPANY";
}

.footer-left-img2::after {
  content: "GAME";
}

.footer-center {
  flex: 1;
}

.footer-right {
  text-align: right;
}

.footer-right-text {
  color: #999;
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-right-text-link {
  color: #00aaff;
  text-decoration: none;
}

.footer-right-text-link:hover {
  text-decoration: underline;
}

.margin-top-10 {
  margin-top: 10px;
}

/* Video Modal */
.container-video-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 1000;
}

.container-video-box-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
}

.video-dom {
  width: 100%;
  height: auto;
  background-color: #333;
}

.video-dom-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
}

/* Floating Sidebar */
.floating-box {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  padding: 15px 10px;
  background: url(../img/leftFloat/floatBg.png) no-repeat center;
  background-size: cover;
}

.floating-qr-code {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
  font-size: 12px;
}
.floating-qr-code img{
  height: 112px;
  width: 112px;
}

.floating-text {
  width: 120px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #0ED3F2;
}

.floating-btn img {
  width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-box-header {
    flex-direction: column;
    gap: 20px;
  }

  .banner-box-header-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}
