/* 资质证书页面优化样式 */

/* 证书展示页面容器 */
.certificate-gallery-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 15px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* 页面头部区域 */
.certificate-gallery-header {
  flex-shrink: 0;
  margin-bottom: 15px;
}

/* 介绍区域 */
.certificate-intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
}

.certificate-intro-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-image {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.certificate-intro-text {
  display: flex;
  align-items: center;
}

.intro-text-content {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.intro-text-content p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  text-align: justify;
}

/* 证书展示内容区域 */
.certificate-gallery-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

/* 标题 */
.certificate-gallery-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px 0;
  flex-shrink: 0;
}

/* 证书网格 - 固定每行2列 */
.certificate-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  justify-items: center;
  gap: 10px;
  height: 100%;
  flex: 1;
  overflow: hidden;
  grid-area: content;
  padding: 10px 20px;
}

/* 证书项目 */
.certificate-gallery-item {
  width: 100%;
  height: auto;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 证书图片 */
.certificate-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certificate-gallery-image:hover {
  transform: scale(1.05);
}

/* 证书模态框样式 */
.certificate-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.certificate-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.certificate-modal-image {
  width: 100%;
  height: 100%;
  display: block;
}

.certificate-modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.certificate-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}
/* 响应式设计 - 固定2列布局 */

/* 小屏幕设备 */
@media (max-width: 768px) {
  .certificate-gallery-container {
    padding: 10px 15px;
  }

  .certificate-intro-section {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }

  .achievement-image {
    max-height: 120px;
  }

  .intro-text-content {
    padding: 12px;
  }

  .intro-text-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .certificate-gallery-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .certificate-gallery-grid {
    gap: 10px;
  }
}

/* 中等屏幕设备 */
@media (min-width: 769px) and (max-width: 1024px) {
  .certificate-gallery-container {
    padding: 15px 20px;
  }

  .certificate-intro-section {
    gap: 20px;
  }

  .achievement-image {
    max-height: 160px;
  }

  .intro-text-content p {
    font-size: 0.8rem;
  }

  .certificate-gallery-title {
    font-size: 1.4rem;
  }

  .certificate-gallery-grid {
    gap: 15px;
  }
}

/* 大屏幕设备 */
@media (min-width: 1025px) {
  .certificate-gallery-container {
    padding: 20px 30px;
  }

  .certificate-intro-section {
    gap: 30px;
  }

  .achievement-image {
    max-height: 200px;
  }

  .certificate-gallery-title {
    font-size: 1.6rem;
  }

  .certificate-gallery-grid {
    gap: 20px;
  }
}
@media (min-width: 1500px) and (max-width: 1699px) and (orientation: landscape) {
  .intro-text-content p {
    font-size: 0.75rem;
  }
}
