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

p {
  padding: 0;
}

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

/* 轮播容器 */
.carousel-container {
  position: relative;
  width: 100%;
  /* height: 3.16rem; */
  overflow: hidden;
}

/* 轮播包装器 - 现在有5张图片（3张原图+2张克隆） */
.carousel-wrapper {
  display: flex;
  width: 500%;
  /* 5张图片，每张20% */
  height: 100%;
  transition: transform 0.5s ease-in-out;
  transform: translateX(-20%);
  /* 初始位置显示第一张真实图片 */
}

/* 轮播幻灯片 */
.carousel-slide {
  width: 20%;
  /* 100% / 5 */
  height: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 轮播指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.1rem;
  z-index: 10;
}

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

.indicator.active {
  /*background-color: #4075f6;*/
  width: 24px;
  height: 12px;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transform: scale(1.2);
}

/* 轮播按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 0.2rem;
}

.next-btn {
  right: 0.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .carousel-btn {
    opacity: 1;
    width: 0.4rem;
    height: 0.4rem;
  }

  .prev-btn {
    left: 0.1rem;
  }

  .next-btn {
    right: 0.1rem;
  }
}

section {
  width: 100%;
  box-sizing: border-box;
}

.matrix {
  background: #f6fbfc;
  /* margin-top: 0.8rem; */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 1.5rem;



  .introduceBox {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;


  }

  .introduce {
    font-family: Source Han Sans CN;
    font-weight: 300;
    font-size: 14px;
    color: #989898;
    text-align: center;
    /* line-height: 0.31rem; */
  }

  .introduceCards {
    display: flex;
    align-items: center;
    margin-top: 0.27rem;
    flex-wrap: wrap;
    /* 允许换行 */
    justify-content: center;
    /* 居中对齐 */
    gap: 0.27rem;
    /* 使用gap替代margin-right */
  }
}

.matrix .firstPic {
  margin-top: 0.8rem;
  width: 322px;
  height: 30px;
}

.commonCard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 3.6rem;
  height: 3.6rem;
  background: #ffffff;
  border-radius: 0.24rem;
  padding: 0.6rem;
  box-sizing: border-box;
  /* margin-right: 0.27rem; */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;

  /* 添加过渡动画 */
  transition: all 0.3s ease;
  cursor: pointer;





  .cardBottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    img {
      width: 0.43rem;
      height: 0.63rem;
    }
  }
}

.commonCard .inTitle {
  font-family: Source Han Sans CN;
  font-weight: 500;
  font-size: 22px;
  color: #2f2f2f;
}

.commonCard img {
  width: 70px;
  height: 59px;
}

.build {
  width: 3.6rem;
  height: 3.6rem;
  background: #ffffff;
  border-radius: 0.24rem;
  box-sizing: border-box;
  overflow: hidden;
  background: #4075f6;
  color: white;
  padding: 0.27rem;

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
    color: #ffffff;
    /* background:red; */

    .inSubTitle {
      font-weight: 500;
      font-size: 0.27rem;
    }

    .corner-arrow {
      width: 0.43rem;
      height: 0.63rem;
      /* opacity: 0.8; */
    }
  }

  .card-content {
    .desc-line {
      width: 0.24rem;
      height: 0.05rem;
      background: #ededed;
      border-radius: 0.03rem;
      margin-bottom: 0.1rem;
    }

    .desc-text {
      p {
        font-size: 0.17rem;
        font-weight: 400;
        color: #ffffff;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }

  .cardBottom {
    display: none;
    /* 隐藏默认的底部结构 */
  }
}

/* 在文件末尾添加以下CSS */
.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* cardDouble 容器样式 */
.cardDouble {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
}

.cardDouble .commonCard,
.cardDouble .build {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

/* 初始状态：显示 commonCard，隐藏 build */
.cardDouble .build {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.cardDouble .commonCard {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 悬停状态：隐藏 commonCard，显示 build */
.cardDouble:hover .commonCard {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

.cardDouble:hover .build {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.newsBox {
  background: url('../assets/index/图层 68.png') no-repeat center center;
  background-size: cover;
  /* background: #f6fbfc; */
  margin-top: 0.2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  .secondPic {
    margin-top: 0.8rem;
    width: 178;
    height: 32px;
  }

  .news-list {
    width: 100%;

    .list-wrapper {
      width: 62%;
      margin: 0 auto;
      margin-top: 0.67rem;
      display: flex;
      align-items: center;
      justify-content: center;

      .list-left {
        /* width: 50%; */

        .list-item {
          background: #fff;
          cursor: pointer;

          width: 8.17rem;
          /* height: 3.29rem; */
          border: 0.04rem solid rgba(183, 183, 183, 0.16);
          padding: 0.27rem;
          display: flex;
          align-items: center;

          .newsPic {
            width: 4rem;
            height: 2.8rem;
          }

          .arrowNews {
            width: 0.43rem;
            height: 0.27rem;
          }

          img {
            height: 100%;
            /* border: .01rem dashed #9d9d9d; */
          }

          .content {
            margin-left: 0.43rem;

            .title {
              /* margin: 0.13rem 0 0.13rem 0; */
              /* width: 4.04rem; */
              /* height: 0.6rem; */
              font-family: PingFangSC;
              font-weight: 600;
              font-size: 18px;
              color: #494747;
              display: -webkit-box;
              -webkit-line-clamp: 2;
              -webkit-box-orient: vertical;
              overflow: hidden;
              text-overflow: ellipsis;
              word-wrap: break-word;
              /* line-height: 0.37rem; */
              /* text-align: justifyLeft; */
              /* font-style: normal; */
              /* text-transform: none; */
            }

            .desc {
              /* margin-top: 0.48rem; */
              /* width: 4.16rem; */
              /* height: 0.56rem; */
              font-family: PingFangSC, PingFang SC;
              font-weight: 400;
              font-size: 16px;
              color: #707070;
              line-height: 0.33rem;
              margin-top: 0.16rem;
              text-align: justifyLeft;
              display: -webkit-box;
              -webkit-line-clamp: 2;
              -webkit-box-orient: vertical;
              overflow: hidden;
              text-overflow: ellipsis;
              word-wrap: break-word;
              font-style: normal;
              text-transform: none;
            }

            .operation {
              margin-top: 0.53rem;
              display: flex;
              align-items: center;
              justify-content: space-between;

              .date {
                /* width: 1.25rem; */
                height: 0.17rem;
                font-family: PingFangSC, PingFang SC;
                font-weight: 400;
                font-size: 16px;
                color: #7a7a7a;
                line-height: 0.33rem;
                text-align: justifyLeft;
                font-style: normal;
                text-transform: none;
              }
            }
          }
        }

        .list-item:hover {
          border: 0.04rem solid rgba(71, 96, 240, 0.16);
        }
      }

      .list-right {
        margin-left: 0.33rem;
        display: grid;
        grid-template-rows: repeat(3, 1fr);
        gap: 0.47rem;

        .list-item {
          background: #fff;
          cursor: pointer;
          padding-right: 0.12rem;

          /* background:green; */
          /* padding:0rem; */
          width: 7.47rem;
          height: 1.96rem;
          border: 0.04rem solid rgba(183, 183, 183, 0.16);
          /*box-sizing: border-box;*/
          display: flex;
          align-items: center;

          .date {
            padding: 0.27rem;
            width: 1.63rem;
            box-sizing: border-box;
            flex: 0 0 1.63rem;
            height: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            border-right: 0.03rem solid #e1e1e1;

            .day {
              height: 0.35rem;
              font-family: PingFangSC;
              font-weight: 600;
              font-size: 34px;
              color: #2C6DEC;
              line-height: 0.36rem;
              text-align: justifyLeft;
              font-style: normal;
              text-transform: none;
            }

            .y-m {
              margin-top: 0.13rem;
              /* height: .35rem; */
              /* width: 1rem; */
              height: 0.33rem;
              font-family: PingFangSC, PingFang SC;
              font-weight: 400;
              font-size: 16px;
              color: #7A7A7A;
              line-height: 0.33rem;
              text-align: center;
              font-style: normal;
              white-space: nowrap;
            }
          }

          .content {
            margin-left: 0.43rem;

            .title {
              /* width: 14rem; */
              /*height: 55px;*/
              font-family: PingFangSC;
              font-weight: 600;
              font-size: 18px;
              line-height: 0.36rem;
              text-align: justifyLeft;
              display: -webkit-box;
              -webkit-line-clamp: 2;
              -webkit-box-orient: vertical;
              overflow: hidden;
              text-overflow: ellipsis;
              word-wrap: break-word;
              font-style: normal;
              text-transform: none;
              color: #494747;
            }

            .desc {
              /* margin-top: 0.27rem; */
              /* width: 4.16rem; */
              /*height: 60px;*/
              font-family: PingFangSC;
              font-weight: 400;
              font-size: 16px;
              color: #707070;
              line-height: 0.33rem;
              text-align: justifyLeft;
              display: -webkit-box;
              -webkit-line-clamp: 2;
              -webkit-box-orient: vertical;
              overflow: hidden;
              text-overflow: ellipsis;
              word-wrap: break-word;
              font-style: normal;
              text-transform: none;
            }
          }
        }

        .list-item:hover {
          border: 0.04rem solid rgba(71, 96, 240, 0.16);
        }
      }
    }
  }

  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.53rem 0 0.8rem 0;
    font-family: PingFangSC, PingFang SC;
    font-size: 0.21rem;
    color: #484848;
  }

  .arrow,
  .page,
  .ellipsis {
    display: inline-block;
    width: 0.43rem;
    height: 0.43rem;
    line-height: 0.43rem;
    text-align: center;
    margin: 0 0.03rem;
    border-radius: 0.05rem;
    cursor: pointer;
  }

  .arrow {
    border: 0.01rem solid #ddd;
    background-color: #f8f8f8;
  }

  .arrow.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f8f8f8;
    border-color: #eee;
  }

  .page {
    border: 0.01rem solid #ddd;
    background-color: #fff;
  }

  .page.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
  }

  .page:hover:not(.active) {
    background-color: #f5f5f5;
  }

  .ellipsis {
    cursor: default;
    border: none;
  }

  .jump-text,
  .jump-page,
  .total {
    margin: 0 0.07rem;
    color: #666;
  }

  .jump-input {
    width: 0.53rem;
    height: 0.43rem;
    line-height: 0.43rem;
    text-align: center;
    border: 0.01rem solid #ddd;
    border-radius: 0.05rem;
    margin: 0 0.07rem;
    font-size: 0.21rem;
  }

  .total {
    margin-left: 0.2rem;
  }
}

.advantage {
  background: url('../assets/index/图层 41.png') no-repeat center center;
  background-size: cover;
  /* background: red; */
  /* margin-top: 0.2rem; */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  .firstPic {
    margin-top: 1rem;
    width: 287px;
    height: 33px;
  }

  .card-content {
    width: 72%;
    margin: 0 auto;
    margin-top: 1.33rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.27rem;
    margin-bottom: 0.87rem;

    /*.services {
      display: flex;
      align-items: center;
      justify-content: center;*/
    /* flex-direction: row; */

    .service-item {
      /*margin-bottom: 0.87rem;
      margin-left: 0.3rem;*/
      width: 7.0rem;
      height: 2.77rem;
      background: linear-gradient(to right, #e2edfc 0%, #fbfcff 100%);
      border-radius: 0.2rem 0.2rem 0.2rem 0.2rem;
      padding: 0.43rem;
      box-sizing: border-box;
      position: relative;
      /* 添加过渡动画 */
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      cursor: pointer;
      overflow: hidden;

      &:hover {
        transform: scale(1.05) translateY(-0.1rem);
        width: 7.1rem;
        /* 增加宽度 */
        box-shadow: 0 0.2rem 0.4rem rgba(36, 102, 234, 0.2);
        background: linear-gradient(135deg,
            #e2edfc 0%,
            #f0f7ff 50%,
            #fbfcff 100%);
      }

      .service-title {
        display: flex;
        align-items: center;

        img {
          margin-right: 0.27rem;
          width: 49px;
          height: 49px;
          transition: transform 0.3s ease;
        }

        .title-cn {
          /* width: 1.27rem; */
          height: 0.37rem;
          font-family: PingFangSC, PingFang SC;
          font-weight: 600;
          font-size: 24px;
          color: #2466ea;
          line-height: 0.37rem;
          text-align: justifyLeft;
          font-style: normal;
          text-transform: none;
          transition: all 0.3s ease;
        }

        .title-en {
          /* width: 3.49rem; */
          height: 0.37rem;
          font-family: DINAlternate, DINAlternate;
          /* font-weight: bold; */
          font-size: 16px;
          color: #b6c8ed;
          line-height: 0.37rem;
          text-align: justifyLeft;
          font-style: normal;
          text-transform: none;
          transition: all 0.3s ease;
        }
      }

      .service-desc {
        margin-top: 0.27rem;
        /* width: 6.97rem; */
        height: 0.6rem;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 18px;
        color: #3b3a3a;
        line-height: 0.37rem;
        text-align: justifyLeft;
        font-style: normal;
        text-transform: none;
        transition: all 0.3s ease;
      }

      .service-index {
        bottom: 0.83rem;
        right: 0.8rem;
        position: absolute;
        width: 0.77rem;
        height: 0.79rem;
        font-family: DINAlternate, DINAlternate;
        font-weight: bold;
        font-size: 1.07rem;
        color: rgba(199, 215, 255, 0.25);
        line-height: 2.19rem;
        text-align: justifyLeft;
        font-style: normal;
        text-transform: none;
        transition: all 0.4s ease;
      }
    }

    .service-item:hover {
      background: linear-gradient(to right, #2b6dec 0%, #578efa 100%);

      .service-title {
        .title-cn {
          color: #ffffff;
        }

        .title-en {
          color: rgba(255, 255, 255, 0.25);
        }
      }

      .service-desc {
        color: #ffffff;
      }
    }

    /*}*/
  }
}

.service-item:hover .service-title img {
  transform: scale(1.15) rotate(10deg);
}

.service-item:hover .service-title .title-cn {
  transform: translateX(0.1rem);
  text-shadow: 0 0.02rem 0.08rem rgba(36, 102, 234, 0.3);
}

.service-item:hover .service-title .title-cn {
  transform: translateX(0.1rem);
  text-shadow: 0 0.02rem 0.08rem rgba(36, 102, 234, 0.3);
}

.service-item:hover .service-title .title-en {
  transform: translateX(0.05rem);
  color: #8fa8e8;
}

.service-item:hover .service-desc {
  transform: translateX(0.05rem);
  color: #2a2929;
}

.service-item:hover .service-index {
  transform: scale(1.2) rotate(-5deg);
  color: rgba(36, 102, 234, 0.4);
  right: 0.6rem;
}

.service-item.blueItem:hover {
  transform: scale(1.08) translateY(-0.15rem);
  width: 8.2rem;
  /* 蓝色卡片宽度增加更多 */
  box-shadow: 0 0.25rem 0.8rem rgba(43, 109, 236, 0.4);
  background: linear-gradient(135deg, #2b6dec 0%, #578efa 50%, #6b9aff 100%);
}

.service-item.blueItem:hover .service-title img {
  transform: scale(1.2) rotate(15deg);
  filter: brightness(1.2);
}

.service-item.blueItem:hover .service-index {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1.3) rotate(-8deg);
}

/* 添加微妙的发光效果 */
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.service-item:hover::before {
  transform: translateX(100%);
}

.schoolsBox {
  /* margin-top: 0.2rem; */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f8f9fa;
  padding-bottom: 1.33rem;

  .fourthPic {
    margin-top: 1rem;

    width: 174px;
    height: 33px;
  }

  .picContainer {
    /* width:13.33rem; */
    width: 100%;
    height: 7.33rem;
    overflow: hidden;
    position: relative;

    /* background:red; */
    img {
      width: 4897px;
      height: 593px;
      position: absolute;
      top: 0;
      left: 0;
      animation: scrollLeft 50s linear infinite;
    }
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-70%);
  }
}