/* ============================================
   certifications.css - 资质荣誉页面样式
   ============================================ */

.cert-section {
  padding: 90px 0;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.cert-item {
  background: #f8f9fa;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.cert-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cert-title {
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.cert-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 24px;
}

.cert-image-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-image-box:hover {
  border-color: var(--primary, #165DFF);
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.15);
}

.cert-image-box img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-image-box:hover img {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ============================================
   图片点击放大 Lightbox 效果
   ============================================ */
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
  padding: 40px;
}

.cert-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.cert-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  cursor: zoom-out;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.cert-lightbox.active img {
  transform: scale(1);
}

.cert-lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  user-select: none;
}

.cert-lightbox .lightbox-close:hover {
  opacity: 1;
}

.cert-lightbox .lightbox-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  pointer-events: none;
}

/* 响应式：移动端单列 */
@media (max-width: 768px) {
  .cert-section {
    padding: 60px 0;
  }

  .cert-images {
    grid-template-columns: 1fr;
  }
}
