.baosidun_home_certificate {
  position: relative;
  padding-top: 8.75rem;
  padding-bottom: 7.5rem;
  padding-left: 3.125%;
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.56) 0%, rgba(245, 245, 245, 1) 100%);
  display: flex;
  align-items: center;
  gap: 80px;
}

.baosidun_home_certificate .bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 46.46%;
  height: 100%;
  opacity: 0.7;
  object-fit: cover;
  object-position: left bottom;
  z-index: -1;
}

.baosidun_home_certificate .content-box {
  width: 27%;
  flex-shrink: 0;
}

.baosidun_home_certificate .certificate-desc {
  margin-top: 1rem;
}

.baosidun_home_certificate .certificate-wrapper {
  flex: 1;
  overflow: hidden;
}

.baosidun_home_certificate .swiper-btn-box {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.baosidun_home_certificate .certificate-item {
  width: 100%;
  aspect-ratio: 350/446;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.baosidun_home_certificate .certificate-img {
  position: absolute;
  width: 84%;
  aspect-ratio: 292/396.8;
  top: 5.3%;
  left: 8.1%;
  object-fit: cover;
  object-position: center;
}

.baosidun_home_certificate .certificate-bg {
  position: absolute;
  width: 84%;
  aspect-ratio: 292/396.8;
  top: 5.3%;
  left: 8.1%;
  background: rgba(35, 58, 64, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.baosidun_home_certificate .certificate-item:hover .certificate-bg {
  visibility: visible;
  opacity: 1;
}

.baosidun-cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.baosidun-cert-lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cert-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.baosidun-cert-lightbox.is-open .cert-lightbox-backdrop {
  opacity: 1;
}

.cert-lightbox-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.baosidun-cert-lightbox.is-open .cert-lightbox-container {
  transform: scale(1);
  opacity: 1;
}

.cert-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}

.cert-lightbox-close {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cert-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .baosidun_home_certificate {
    flex-direction: column;
    gap: 2rem;
    padding-right: 3.125%;
  }

  .baosidun_home_certificate .content-box {
    width: 100%;
  }

  .baosidun_home_certificate .certificate-wrapper {
    width: 100%;
  }

  .cert-lightbox-close {
    right: -1rem;
  }
}