/* ========== CERTIFICATE DISPLAY 证书展示样式 ========== */
.certificate-display-section {
  width: 100%;
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* 深色遮罩层 */
.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(40, 40, 40, 0.85) 100%);
  z-index: 1;
}

.certificate-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* 标题区域 */
.certificate-header {
  text-align: center;
  margin-bottom: 60px;
}

.certificate-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.certificate-title::before,
.certificate-title::after {
  content: '|||';
  color: #e74c3c;
  font-size: 36px;
  font-weight: 700;
}

.certificate-subtitle {
  font-size: 16px;
  color: #ccc;
  font-weight: 400;
  letter-spacing: 1px;
}

/* 证书滚动容器 */
.certificate-scroll-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.certificate-track {
  display: flex;
  gap: 30px;
  animation: scroll-certificates 40s linear infinite;
  width: max-content;
}

/* 暂停滚动 */
.certificate-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-certificates {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 证书卡片 */
.certificate-item {
  flex-shrink: 0;
  width: 350px;
  height: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.certificate-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 60px rgba(231, 76, 60, 0.5);
  z-index: 10;
}

.certificate-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 证书编号标签 */
.certificate-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(231, 76, 60, 0.95);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 渐变边缘效果 */
.certificate-scroll-wrapper::before,
.certificate-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 3;
  pointer-events: none;
}

.certificate-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.certificate-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

/* 底部提示文字 */
.certificate-hint {
  text-align: center;
  margin-top: 40px;
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
  .certificate-container {
    padding: 0 30px;
  }

  .certificate-title {
    font-size: 40px;
  }

  .certificate-item {
    width: 320px;
    height: 440px;
  }
}

@media screen and (max-width: 768px) {
  .certificate-display-section {
    padding: 60px 0;
  }

  .certificate-container {
    padding: 0 20px;
  }

  .certificate-header {
    margin-bottom: 40px;
  }

  .certificate-title {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .certificate-title::before,
  .certificate-title::after {
    font-size: 28px;
  }

  .certificate-subtitle {
    font-size: 14px;
  }

  .certificate-item {
    width: 280px;
    height: 400px;
  }

  .certificate-track {
    gap: 20px;
    animation-duration: 30s;
  }

  .certificate-scroll-wrapper::before,
  .certificate-scroll-wrapper::after {
    width: 80px;
  }
}

@media screen and (max-width: 480px) {
  .certificate-display-section {
    padding: 40px 0;
  }

  .certificate-title {
    font-size: 24px;
    flex-direction: column;
    gap: 10px;
  }

  .certificate-item {
    width: 240px;
    height: 360px;
  }

  .certificate-hint {
    font-size: 12px;
  }
}
