@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;
}

/* 核心样式：图片下划线 */
.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;
  /* 调整图片大小（宽度 高度） */
}


a {
  text-decoration: none;
  color: inherit;
}


/* 汉堡菜单样式 */
.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;
}

/* 背景图动画 */
@keyframes bgAnimation {
  0% {
    background-position: center center;
    background-size: 100% cover;
  }

  50% {
    background-position: center 10%;
    background-size: 105% cover;
  }

  100% {
    background-position: center center;
    background-size: 100% cover;
  }
}

/* 顶部导航 */
.banner-top {
  background-image: 
    url('../image/demo/banner-bg.png'),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.03) 50%,
      transparent 100%
    );
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  height: auto;
  min-height: 910px;
  /* 让背景图和颜色叠加 */
  background-blend-mode: multiply;
  /* 应用动画 */
  /* animation: bgAnimation 20s ease-in-out infinite; */
}

@media (max-width: 768px) {
  .banner-top {
    height: auto;
    min-height: 700px;
  }
}

.top {

  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px 20px 0px 20px;
  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;
  padding: 10px 20px 0px 20px;
  gap: 62px;
}

.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%;

  /* 替换成实际 banner 图地址 */
  color: #fff;
  /* padding: 60px 20px; */
  margin-top: 138px;
  text-align: center;
}


/* 移动端适配 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .top-nav {
    display: none;
  }

  /* 平板及大屏手机适配 */
  section.banner>h1 {
    font-size: 45px !important;
  }

  section.banner>p {
    font-size: 24px !important;
  }

  section.banner>.banner_p {
    font-size: 21px !important;
  }

}

.banner h1 {
  font-family: MiSans;
  font-size: 60px;
  font-weight: 900;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  /* 九四玩游戏平台完美 */
  color: #333333;
}

/* 375px以下屏幕适配 */
@media (max-width: 375px) {
  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;
  }

  .data-statistics .data-item {
    margin: 0 15px;
  }

  .data-statistics .data-item h2 {
    font-size: 32px;
  }

  .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;
  }

  .top-nav a {
    font-size: 16px;
    margin-left: 10px;
  }

  .banner h1 {
    font-size: 35px;
  }

  .banner p {
    font-size: 19px;
  }

  .banner_p {
    font-size: 16px;
  }

  .data-statistics .data-item {
    margin: 0 15px;
  }

  .data-statistics .data-item h2 {
    font-size: 32px;
  }

  .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: 34px;
  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: 26px;
  font-weight: 900;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: 0em;
  font-variation-settings: "opsz" auto;
  color: #FF9D1F;
}

.banner img {
  display: inline-block;
  /* 保持原有尺寸的同时支持居中 */
  height: 6px;
  margin-top: 23px;
  margin-bottom: 16px;
  text-align: center;
  max-width: 100%;
  height: auto;
}

.banner .btn {
  display: block;
  /* 改为块级元素以便使用margin居中 */
  margin: 58px auto;
  /* 距离底部134px，水平居中 */
  width: 210px;
  height: 62px;
  border-radius: 12px;
  opacity: 1;
  border: 2px solid;
  background: #FF9D1F;
  border-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFF1E8 100%) 2;
  box-shadow: 0px 4px 10px 0px #FFE2BC, inset 0px 0px 20px 0px rgba(255, 112, 64, 0.81);
  padding: 12px 30px;
  background-color: #ffc107;
  color: #FFFFFF;
  font-family: PingFang SC;
  font-size: 30px;
  font-weight: normal;
  line-height: 100%;
  letter-spacing: 0em;
  text-align: center;
  /* 按钮内部文字居中 */
  transition: all 0.3s ease;
  text-shadow: 0px 1px 6px rgba(237, 129, 41, 0.84);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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 rgba(255, 193, 7, 0.4);
}

.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;
}




.title {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  margin-bottom: 60px;
}

.title h2 {
  opacity: 1;
  font-family: PingFang SC;
  font-size: 38px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.94px;
  text-align: center;
  margin-bottom: 30px;
}

.content {
    display: flex;
    justify-content: space-evenly;
    padding: 0 390px;
    align-items: center;
}

@media (max-width: 1200px) {
  .content {
    padding: 0 0px;
  }
}

.content-left {
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFF8EF -1%, #FFFFFF 99%);
  border: 2px solid #FFFFFF;
  box-shadow: 0px 10px 30px 0px #F7F0EB;
}

.content-left h3 {
  font-family: PingFang SC;
  font-size: 24px;
  font-weight: 600;
  line-height: 29px;
  text-align: center;
  letter-spacing: 0px;
  margin: 53px 169px;
  font-variation-settings: "opsz" auto;
  color: #333333;
}


.content-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.content-right-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFF8EF -1%, #FFFFFF 99%);
  border: 2px solid #FFFFFF;
  box-shadow: 0px 10px 30px 0px #F7F0EB;
}

.content-right-card h3 {
  font-family: PingFang SC;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  text-align: center;
  letter-spacing: 0px;
  margin: 14px 40px 0 40px;
  font-variation-settings: "opsz" auto;
  color: #333333;
}

@media (max-width: 992px) {
  .content-right {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
    align-items: center;
  }
  .content-left {
    margin-bottom: 30px;
  }
  .content-right {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

@media (max-width: 480px) {
  .content-right-card img {
    width: 160px;
  }
  .content-right {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .content-left h3 {
    margin: 16px 20px; /* 减小左右margin防止溢出 */
    font-size: 20px; /* 适配小屏幕字体大小 */
  }
  .content-left img {
    max-width: 100%;
    padding: 0 20px; /* 添加内边距避免边缘紧贴 */
  }
}

/* content-demo 容器样式 */
.content-demo {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  gap: 20px;
}

/* H5游戏系统样式 */
.content-h5 {
  margin: 60px auto 100px auto;
  padding: 50px 20px;
  background-color: #f9f9f9;
  border-radius: 20px;
  width: 100%;
  max-width: 100%;
}

.h5-title {
  text-align: center;
  margin-bottom: 50px;
}

.h5-title h2 {
  font-family: PingFang SC;
  font-size: 38px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.94px;

  font-variation-settings: "opsz" auto;
  color: #1D1B1B;
}

.h5-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
}

.h5-item {
  background-color: white;
  border-radius: 15px;
  padding: 20px 0px 0px 0px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.h5-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.h5-item-header {
  text-align: center;
  margin-bottom: 15px;
}

.h5-item-header h3 {
  font-family: PingFang SC;
  font-size: 24px;
  font-weight: 600;
  line-height: 29px;
  text-align: center;
  letter-spacing: 0px;
  margin: 53px auto;
  font-variation-settings: "opsz" auto;
  color: #333333;
}
.h5-mobile-item-header {
  text-align: center;
}
.h5-mobile-item-header h3 {
  font-family: PingFang SC;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  text-align: center;
  letter-spacing: 0px;

  font-variation-settings: "opsz" auto;
  color: #333333;
}

.h5-item-image {
  text-align: center;
}

.h5-item-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.h5-web, .h5-game {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.h5-mobile-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 200px;
}

.h5-mobile-1, .h5-mobile-2 {
  width: 100%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .content-h5 {
    margin: 40px auto;
    padding: 40px 20px;
  }
  
  .h5-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 992px) {
  .h5-content {
    flex-direction: column;
    align-items: center;
  }
  
  .h5-web, .h5-game {
    max-width: 100%;
    width: 100%;
    max-width: 600px;
  }
  
  .h5-mobile-items {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 600px;
  }
  
  .h5-mobile-1, .h5-mobile-2 {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .content-h5 {
    margin: 30px 15px;
    padding: 30px 15px;
  }
  
  .h5-title h2 {
    font-size: 24px;
  }
  
  .h5-mobile-items {
    flex-direction: column;
  }
  
  .h5-mobile-1, .h5-mobile-2 {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .content-h5 {
    margin: 20px 10px;
    padding: 20px 10px;
  }
  
  .h5-title h2 {
    font-size: 20px;
  }
  
  .h5-item-header h3 {
    font-size: 18px;
    margin: 5px 0;
  }
  
  .h5-item {
    padding: 15px;
  }
}
