@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: 75px 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: 18px;
  font-weight: normal;
  line-height: 100%;
  letter-spacing: 0px;

  font-variation-settings: "opsz" auto;
  color: #777777;
}

/* 横幅 */
.banner {
  width: 100%;
  min-height: 436px;
  /* background-color: #f9fafb; */
  background: url('../image/xue/banner-bg.png') no-repeat center/cover #f9fafb;
  /* background-size: 100% 100%; */
  /* 替换成实际 banner 图地址 */
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 320px;
}

/* 科技感背景动画 */
@keyframes techGlow {
  0% {
    background-position: center center;
    transform: scale(1);
  }

  25% {
    background-position: center 48%;
    transform: scale(1.02);
  }

  50% {
    background-position: center 52%;
    transform: scale(1.03);
  }

  75% {
    background-position: center 49%;
    transform: scale(1.01);
  }

  100% {
    background-position: center center;
    transform: scale(1);
  }
}

/* 科技感光晕效果 */
.banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  /* width: 120%; */
  /* height: 120%; */
  background: radial-gradient(circle, rgba(66, 133, 244, 0.2) 0%, rgba(66, 133, 244, 0) 70%);
  transform: translate(-50%, -50%);
  animation: techPulse 8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes techPulse {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }

  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 科技感线条动画 */
.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: techScan 6s infinite linear;
  pointer-events: none;
}

@keyframes techScan {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@media (min-width: 2000px) {
  .banner {
    background-size: 100% 120%;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .top-nav {
    display: none;
  }

  section.banner {
    height: 200px;
    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;
  }

  section.banner>p {
    font-size: 16px !important;
  }

  section.banner>.banner_p {
    font-size: 16px !important;
  }

}

.banner h1 {
    font-family: 快看世界体;
    font-size: 62px;
    font-weight: normal;
    line-height: 100%;
    text-align: center;
    letter-spacing: 0em;
    margin-top: 85px;
    font-variation-settings: "opsz" auto;
    color: #3568FF;
  animation-delay: 0.1s;
}

/* 375px以下屏幕适配 */
@media (max-width: 375px) {
  section.banner {
    height: 200px !important;
    min-height: 200px !important;
    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;
  }

  .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: 24px;
  font-weight: normal;
  line-height: 100%;
  text-align: center;
  letter-spacing: 0.04em;

  font-variation-settings: "opsz" auto;
  color: #333333;
  animation-delay: 0.2s;
}

.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: #333333;
  animation-delay: 0.3s;
}

.banner img {
  display: inline-block;
  margin-top: 49px;
  margin-bottom: 16px;
  text-align: center;
  max-width: 100%;
  height: auto;
}

.banner .btn {
  display: block;
  margin-top: 20px;
  width: 154px;
  height: 62px;
  border-radius: 31px;
  opacity: 1;
  background: #3568FF;
  background-color: #3568FF;
  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 #3568FF;
}

.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 #3568FF;
}

.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;
}
/* 数字增长动画样式 */
.data-statistics .data-item h2 {
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
}

.data-statistics .data-item:hover h2 {
  color: #60E773;
  transform: scale(1.05);
}

/* 确保动画元素初始状态 */
.section {
  transition: all 0.8s ease;
}

/* 添加反转动画效果 */
.title {
  text-align: center;
  margin-top: 90px;
  margin-bottom: 50px;
  animation: titleReveal 0.8s forwards ease-out 0.2s;
}

.title h2 {
  font-family: PingFang SC;
  font-size: 40px;
  font-weight: 600;
  line-height: 100%;
  text-align: center;
  letter-spacing: 0.94px;
  font-variation-settings: "opsz" auto;
  color: #1D1B1B;
  animation: fadeIn 0.6s forwards ease-out 0.5s;
}

.title p {
  margin: 30px auto;
  font-family: PingFang SC;
  font-size: 20px;
  font-weight: normal;
  line-height: 120%;
  text-align: center;
  letter-spacing: 0.94px;
  font-variation-settings: "opsz" auto;
  color: #5B5959;
  opacity: 0;
  animation: fadeIn 0.6s forwards ease-out 0.8s;
}
@media (max-width: 768px) {
  .title h2 {
    font-size: 32px !important;
  }

  .title p {
    font-size: 16px !important;
  }
}

.contact {
  width: 100%;
  height: 544px;
  margin: 90px auto 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../image/index/contact-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.contact .title {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
}

.contact .title h2 {
  font-family: 'PingFang SC';
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact .title p {
  font-family: 'PingFang SC';
  font-size: 16px;
  color: #666;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
  margin-top: 166px;
}

.contact-img {
  flex: 0 0 auto;
}

.contact-img img {
  max-width: 100%;
  height: auto;
}

.contact-form {
  flex: 0 0 420px;
  text-align: left;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: none;
}

.contact-form input[type="text"],
.contact-form input[type="tel"] {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'PingFang SC';
  background-color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus {
  outline: none;
  border-color: #3568FF;
  box-shadow: 0 0 0 2px rgba(53, 104, 255, 0.1);
}

.contact-form button[type="submit"] {
  width: 100%;
  height: 50px;
  background-color: #3568FF;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-family: 'PingFang SC';
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button[type="submit"]:hover {
  background-color: #2857e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(53, 104, 255, 0.3);
}

.contact-form button[type="submit"]:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .contact {
    height: auto;
    padding: 60px 20px 40px;
  }
  
  .contact .title {
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
  
  .contact .title h2 {
    font-size: 24px;
  }
  
  .contact-content {
    flex-direction: column;
    gap: 30px;
    margin-top: 0;
  }
  
  .contact-form {
    flex: 0 0 100%;
    max-width: 400px;
  }
}