@font-face {
  font-family: "快看世界体";
  src: url("../font/kuaikanshijieti20231213.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}



/* 核心样式：图片下划线 */
.custom-underline {
  margin-top: 34px;
  text-decoration: none;
  padding-bottom: 34px;
  background-image: url('../image/index/xhx.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 40px 6px;
}

/* 汉堡菜单样式 */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 100;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #242222;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0px;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
  }

  /* 汉堡菜单动画类 */
  .transform-rotate-45 {
    transform: rotate(45deg) !important;
    top: 10px !important;
  }

  .opacity-0 {
    opacity: 0 !important;
  }

  .transform-rotate--45 {
    transform: rotate(-45deg) !important;
    top: 10px !important;
  }

  /* 移动端导航样式 */
.mobile-nav {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  z-index: 99;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  width: 100%;
  text-align: center;
  font-size: 18px;
  color: #f8f6f6;
}

/* 顶部导航 */
.banner-top {
  height: auto;
  /* 让背景图和颜色叠加 */
  background-blend-mode: multiply;
}

@media (max-width: 768px) {
  .banner-top {
    height: auto;
  }
}

.top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  z-index: 1000;
  transition: all 0.3s ease;
  /* 添加过渡动画，使样式变化更平滑 */
}

/* 滚动超过50px时添加的类 */
.top.scrolled {
  position: fixed;
  background-color: #fff;
  /* 设置白色背景 */
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}

.top-nav a {
  font-family: PingFang SC;
  font-size: 20px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0px;
  font-variation-settings: "opsz" auto;
  color: #333333;
}

/* 横幅 */
.banner {
  width: 100%;
  height: 836px;
  min-height: 500px;
  background: url('../image/agent/banner-bg.png') no-repeat center/cover;
  /* background-size: 100% 100%; */
  /* 替换成实际 banner 图地址 */
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  padding: 190px 320px;
}


/* 移动端适配 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .top-nav {
    display: none;
  }
  section.banner {
        height: auto;
        min-height: 450px;
        padding: 0 15px;
        background: url('../image/index/wap-banner-bg.png') no-repeat center/cover;
        background-size: cover;
  }
  /* 平板及大屏手机适配 */
  section.banner>h1 {
    font-size: 32px !important;
    margin-top: 110px;
  }

  section.banner>p {
    font-size: 16px !important;
  }

  section.banner>.banner_p {
    font-size: 16px !important;
  }

}

.banner h1 {
  font-family: MiSans;
  font-size: 60px;
  font-weight: 900;
  line-height: 150%;
  text-transform: uppercase;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  /* 九四玩游戏平台完美 */
  color: #fff;
}

/* 375px以下屏幕适配 */
@media (max-width: 375px) {
  section.banner {
        height: auto;
        min-height: 450px;
        padding: 0 15px;
        background-size: cover;
  }
  section.banner>h1 {
    font-size: 35px !important;
  }

  .banner p {
    font-size: 19px !important;
  }

  .banner_p {
    font-size: 16px !important;
  }

  .top-nav a {
    font-size: 16px;
    margin-left: 10px;
  }

  .tabs .tab-btn {
    width: 170px;
    margin: 5px 0;
    padding: 8px 16px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .solution-item {
    padding: 20px 10px;
  }

  .solution-item p {
    font-size: 20px;
  }
}

.banner p {
  font-family: MiSans;
  font-size: 24px;
  font-weight: normal;
  line-height: 100%;
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: 30px;
  font-variation-settings: "opsz" auto;
  color: #333333;
}

.banner_p {
  font-family: MiSans;
  font-size: 24px;
  font-weight: normal;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: 0em;
  font-variation-settings: "opsz" auto;
  color: #fff;
  margin-top: 40px;

}

.banner img {
  display: inline-block;
  margin-top: 23px;
  margin-bottom: 16px;
  text-align: center;
  max-width: 100%;
  height: auto;
}

.banner .btn {
  display: block;
  margin-top: 110px;
  width: 210px;
  height: 62px;
  border-radius: 31px;
  opacity: 1;
  background: #2DBE41;
  padding: 12px 30px;
  background-color: #52B25F;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  
  font-family: PingFang SC;
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  color: #FFFFFF;
  text-shadow: 0px 1px 4px #52B25F;
}

.banner .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.banner .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px #52B25F;
}

.banner .btn:hover::before {
  left: 100%;
}

/* 滚动渐入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  font-family: Alimama FangYuanTi VF;
  font-size: 64px;
  font-weight: bold;
  line-height: 100%;
  letter-spacing: 0em;
  font-variation-settings: "opsz" auto;
  color: #FAFDFC;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

/* 游戏列表样式 */
.games-container {
  width: 1280px;
  margin: 80px auto;
}

.game-tabs {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
  gap: 20px;
  width: 540px;
  height: 82px;
  border-radius: 83px;
  opacity: 1;
  align-items: center;
  background: #FAFAFA;
}

.game-tab {
  padding: 8px 20px;
  font-size: 24px;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 78px;
  opacity: 1;
}

.game-tab.active {
  font-size: 24px;
  color: #fff;
  background: #242B25;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.game-card {
  display: flex;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: flex-start;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.game-card-top {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.game-info {
  margin-left: 16px;
  text-align: left;
}
.game-image {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.game-name {
  font-family: PingFang SC;
  font-size: 26px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0px;

  font-variation-settings: "opsz" auto;
  color: #333333;
  margin-bottom: 4px;
}

.game-type {
  font-family: PingFang SC;
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  color: #40CD53;
  margin-bottom: 12px;
}

.game-description {
  font-family: PingFang SC;
  font-size: 14px;
  font-weight: normal;
  line-height: 120%;
  text-align: justify; /* 浏览器可能不支持 */
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  color: #333333;
  margin-bottom: 12px;
}

.recommend-btn {
  display: flex;
  width: 114px;
  height: 40px;
  padding: 6px 20px;
  background-color: #E9EEEA;
  color: #25A337;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: left;
  align-items: center;
  justify-content: space-between;
}

.recommend-btn:hover {
  color: #FFFFFF;
  background-color: #25A337;
  transform: scale(1.05);
}

/* 分页按钮样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 10px;
}

.page-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: #F5F5F5;
  color: #333333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background-color: #E8E8E8;
}

.page-btn.active {
  background-color: #2DBE41;
  color: #FFFFFF;
}

.prev-page, .next-page {
  width: auto;
  border-radius: 16px;
  padding: 0 16px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .games-container {
    width: 100%;
    padding: 0 15px;
  }
  
  .game-tabs {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .game-card {
    padding: 12px;
  }
  
  .game-image {
    height: 100px;
  }
  
  .pagination {
    gap: 5px;
  }
  
  .page-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}