/* ========================================
   招聘信息页面样式
======================================== */

/* Hero区域 */
.zs-certifications-hero {
  position: relative;
  height: 36rem;
  overflow: hidden;
}

.zs-certifications-hero-bg {
  position: absolute;
  inset: 0;
}

.zs-certifications-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.zs-certifications-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-certifications-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 36rem;
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--zs-white);
}

.zs-certifications-hero-text h1 {
  font-size: 3.5rem;
  color: var(--zs-white);
  margin-bottom: 0.7rem;
}

.zs-certifications-hero-text p {
  margin: 0;
  font-size: 1.2rem;
  max-width: 700px;
  opacity: 0.95;
}

/* 招聘列表区域 */
.zs-certifications-section {
  padding: 5rem 2rem;
}

.zs-certifications-container {
  max-width: 1200px;
  margin: 0 auto;
}

.zs-certifications-header {
  text-align: center;
  margin-bottom: 3rem;
}

.zs-certifications-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.zs-certifications-header p {
  color: var(--zs-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* 证书列表 */
.zs-certifications-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.zs-certifications-card {
  background: var(--zs-white);
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zs-certifications-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.zs-certifications-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.zs-certifications-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.35;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

.zs-certifications-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.zs-certifications-lightbox[hidden] {
  display: none;
}

.zs-certifications-lightbox-dialog {
  position: relative;
  max-width: min(1000px, 92vw);
  max-height: 88vh;
}

.zs-certifications-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.zs-certifications-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* 响应式 */
@media (max-width: 768px) {
  .zs-certifications-hero {
    height: auto;
    min-height: 480px;
  }

  .zs-certifications-hero-content {
    min-height: 480px;
  }

  .zs-certifications-hero-text h1 {
    font-size: 2rem;
  }

  .zs-certifications-section {
    padding: 3rem 1rem;
  }

  .zs-certifications-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .zs-certifications-card {
    padding: 0.75rem;
  }

  .zs-certifications-lightbox {
    padding: 16px;
  }

  .zs-certifications-lightbox-close {
    top: 12px;
    right: 12px;
  }
}

