/* 恳大证书组件样式 */
.kenda_cert {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* 头部区域 */
.kenda_cert_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
}

.kenda_cert_content {
  max-width: 719px;
}

.kenda_cert_title {
  font-family: var(--second-font-family);
  color: var(--text-color);
  font-size: 64px;
  font-style: italic;
  font-weight: 900;
  line-height: normal;
  text-transform: capitalize;
  margin: 0 0 38px 0;
}

.kenda_cert_subtitle {
  font-family: var(--font-family);
  color:#475569;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px; /* 160% */
  text-transform: capitalize;
  margin: 0;
}



/* 切换按钮：与标题首行视觉对齐 */
.kenda_cert-arrows {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  margin-top: 14px;
  margin-right: 94px;
}

.kenda_cert-arrow {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  border: 1px solid #F1F5F9;
}

.kenda_cert-arrow svg {
  width: 18px;
  height: 18px;
}

.kenda_cert-arrow:hover {
  background: #2D8EB8;
  color: #FFF;
}

.kenda_cert-arrow:active {
  background: #247293;
  color: #333;

}

.kenda_cert_prev.swiper-button-disabled,
.kenda_cert_next.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 轮播区域 */
.kenda_cert_slider_wrapper {
  position: relative;
  padding-bottom: 100px;
  max-width: 1382px;
  margin: 0 auto;
}

/* 倾斜由 index.js 的 setTranslate 逐张写入 inline transform，
   这里不再声明 perspective / transform-style，避免与之冲突 */
.kenda_cert_swiper {
  overflow: visible;
  padding: 60px 0 100px;
  max-width: 1190px;
  margin: 0 auto;
}

/* 中间那张始终正面朝向（loop 下兜底，防止 progress 计算抖动） */
.kenda_cert_swiper .swiper-slide-active {
  transform: perspective(500px) rotateY(0deg) !important;
  transform-origin: center center !important;
}

/* 证书项 */
.kenda_cert_item {
  transform-style: preserve-3d;
}

.kenda_cert_image_wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 140%;
  transition: transform 0.3s ease;
}


.kenda_cert_image,
.kenda_cert_border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kenda_cert_image {
  width: 100%;
  height: 100%;
  padding: 8%;
  z-index: 1;
}

.kenda_cert_image_wrapper .kenda_cert_border {
  z-index: 2;
  width: 100%;
  width: 100%;
  pointer-events: none;
}

/* 证书台 */
.kenda_cert_desk {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1382px;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.kenda_cert_desk img {
  width: 100%;
  height: auto;
  display: block;
}

/* 响应式 */
@media screen and (max-width: 1200px) {
  .kenda_cert_title {
    font-size: 40px;
  }

  .kenda_cert_swiper {
    max-width: 860px;
  }
}

@media screen and (max-width: 768px) {
  .kenda_cert {
    padding: 60px 0;
  }

  .kenda_cert_header {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
  }

  .kenda_cert_content {
    max-width: 100%;
  }

  .kenda_cert_title {
    font-size: 32px;
  }

  .kenda_cert_subtitle {
    font-size: 14px;
  }

  .kenda_cert_nav {
    align-self: flex-end;
  }

  .kenda_cert_prev,
  .kenda_cert_next {
    width: 40px;
    height: 40px;
  }

  .kenda_cert_prev svg,
  .kenda_cert_next svg {
    width: 20px;
    height: 20px;
  }

  .kenda_cert_swiper {
    padding: 30px 0 60px;
    max-width: 100%;
  }

  .kenda_cert_slider_wrapper {
    padding-bottom: 80px;
  }

  .kenda_cert_desk {
    width: 90%;
  }
}
