.custom-gutter {
  --bs-gutter-x: 5rem;
  --bs-gutter-y: 3.13rem;
}

.about-section {
  padding: 5rem 0;
}

.about-item {
  text-align: center;
}

.about-main {
  font-weight: 600;
  font-size: 2.5rem;
  color: #19AD5E;
  line-height: 2.5rem;
}

.about-num {
  font-weight: bold;
  font-size: 3.75rem;
  color: #19AD5E;
  line-height: 3.75rem;
}

.about-text {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
  color: #333333;
  line-height: 1.63rem;
  margin-top: 0.87rem;
}

.introduce-section {
  width: 100vw;
  background-image: url("../images/other/introduce.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 6.25rem 0 1.25rem 0;
  position: relative;
  margin-bottom: -1px;
}

.introduce-section h2 {
  margin: 0;
  font-weight: 600;
  font-size: 3.13rem;
  color: #FFFFFF;
  line-height: 3.5rem;
  margin-bottom: 5rem;
}

.introduce-section p {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
  color: #FFFFFF;
  line-height: 2.5rem;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

/* 滚动容器样式 */
.certificate-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 5rem 0;
}

/* 滚动轨道 - 使用更大的容器确保无缝滚动 */
.certificate-track {
  display: flex;
  gap: 1.5rem;
  /* 使用CSS变量控制动画方向和速度 */
  --scroll-direction: -1;
  --scroll-speed: 60s;
  animation: certificateScroll var(--scroll-speed) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-font-smoothing: subpixel-antialiased;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-perspective: 1000;
  -webkit-backface-visibility: hidden;
  /* 确保初始位置正确 */
  width: max-content;
  /* 添加柔和的过渡效果 */
  transition: animation-duration 0.8s ease-in-out;
}

/* 当鼠标悬停时柔和暂停动画 */
.certificate-container:hover .certificate-track {
  animation-duration: calc(var(--scroll-speed) * 10);
  /* 极慢速度模拟暂停效果 */
}

/* 证书卡片样式 */
.certificate-card {
  flex: 0 0 auto;
  width: auto;
  height: 19.88rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-font-smoothing: subpixel-antialiased;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-perspective: 1000;
  -webkit-backface-visibility: hidden;
}

/* 定义滚动动画 - 无缝循环 */
@keyframes certificateScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    /* 移动距离为原始卡片组的宽度，确保无缝循环 */
    transform: translateX(calc(-100% / 2));
  }
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.certificate-card:hover {
  transform: translateY(-5px) scale(1.02);
}

/* 滚动控制提示 */
.scroll-hint {
  text-align: center;
  margin-top: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .about-section {
    padding: 30px 10px;
  }

  .custom-gutter {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 30px;
  }

  .about-text {
    font-size: 12px;
    line-height: 20px;
    margin-top: 6px;
  }

  .about-num {
    font-size: 50px;
    line-height: 50px;
  }

  .about-main {
    font-size: 20px;
    line-height: 20px;
  }

  .introduce-section {
    width: 100vw;
    background-image: url(../images/other/introduce.png);
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    padding: 30px 0 0;
    position: relative;
    margin-bottom: -1px;
  }

  .container {
    padding: 0;
  }

  .introduce-section h2 {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 15px;
    padding: 0 15px;
  }

  .introduce-section p {
    margin: 0;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding: 0 15px;
    font-weight: normal;
  }

  .certificate-container {
    padding: 30px 0;
  }

  .certificate-card {
    height: 200px;
  }

  .protected-img {
    width: 100%;
    height: auto;
  }
}