/* ============================================
   荣誉资质页面样式
   ============================================ */

/* ============================================
   Hero Banner 模块
   ============================================ */
.honors-hero {
  position: relative;
  width: 100%;
  height: 267px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.honors-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #D0021B 0%, #8B0000 100%);
}

.honors-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.honors-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.honors-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.honors-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.1em;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
  background: #f8f8f8;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb__link {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: #D0021B;
}

.breadcrumb__separator {
  color: #999999;
}

.breadcrumb__current {
  color: #333333;
  font-weight: 500;
}

/* ============================================
   资质概述 - 左右分栏布局
   ============================================ */
.honors-overview {
  padding: 60px 0;
  background: #fff;
}

.honors-overview__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* 左侧文字区 */
.honors-overview__left {
  flex: 1;
  min-width: 0;
}

.honors-overview__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(208, 2, 27, 0.1);
  color: #D0021B;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.honors-overview__badge i {
  font-size: 16px;
}

.honors-overview__title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.honors-overview__desc {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  margin: 0 0 32px 0;
}

/* 资质标签 */
.honors-overview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.honors-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
}

.honors-tag i {
  color: #D0021B;
  font-size: 14px;
}

/* 右侧数据统计 */
.honors-overview__right {
  width: 400px;
  flex-shrink: 0;
}

.honors-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.honors-stats__item {
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.honors-stats__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(208, 2, 27, 0.1);
  border-color: #D0021B;
}

.honors-stats__number {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: #D0021B;
  line-height: 1.2;
  margin-bottom: 4px;
}

.honors-stats__label {
  font-size: 14px;
  color: #6b7280;
}

/* ============================================
   专利证书展示
   ============================================ */
.honors-certificates {
  padding: 60px 0 80px;
  background: #f8f9fa;
}

.honors-certificates__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.honors-certificates__header {
  text-align: center;
  margin-bottom: 48px;
}

.honors-certificates__title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.honors-certificates__line {
  width: 60px;
  height: 3px;
  background: #D0021B;
  margin: 0 auto;
}

.honors-certificates__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 证书卡片 */
.certificate-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.certificate-card__image {
  position: relative;
  width: 100%;
  padding-top: 140%;
  overflow: hidden;
}

.certificate-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-card__image img {
  transform: scale(1.05);
}

.certificate-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(208, 2, 27, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-card__overlay {
  opacity: 1;
}

.certificate-card__overlay i {
  font-size: 48px;
  color: #fff;
}

.certificate-card__info {
  padding: 16px;
  text-align: center;
}

.certificate-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.certificate-card__type {
  font-size: 12px;
  color: #D0021B;
  background: rgba(208, 2, 27, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============================================
   质量管理体系
   ============================================ */
.honors-quality {
  padding: 60px 0 80px;
  background: #fff;
}

.honors-quality__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.honors-quality__header {
  text-align: center;
  margin-bottom: 48px;
}

.honors-quality__title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.honors-quality__line {
  width: 60px;
  height: 3px;
  background: #D0021B;
  margin: 0 auto;
}

.honors-quality__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.honors-quality__card {
  padding: 40px 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 16px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.honors-quality__card:hover {
  border-color: #D0021B;
  box-shadow: 0 12px 32px rgba(208, 2, 27, 0.1);
}

.honors-quality__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D0021B 0%, #e63950 100%);
  border-radius: 50%;
  margin: 0 auto 24px;
}

.honors-quality__icon i {
  font-size: 36px;
  color: #fff;
}

.honors-quality__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.honors-quality__card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}

/* ============================================
   Lightbox 弹窗
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.lightbox__close:hover {
  transform: rotate(90deg);
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lightbox__caption {
  margin-top: 16px;
  font-size: 16px;
  color: #fff;
  text-align: center;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
  .honors-hero__title {
    font-size: 32px;
  }

  .honors-overview__container {
    flex-direction: column;
    gap: 40px;
  }

  .honors-overview__right {
    width: 100%;
  }

  .honors-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .honors-certificates__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .honors-quality__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .honors-hero {
    height: 200px;
  }

  .honors-hero__title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .honors-hero__subtitle {
    font-size: 14px;
  }

  .honors-overview,
  .honors-certificates,
  .honors-quality {
    padding: 40px 0;
  }

  .honors-overview__title {
    font-size: 24px;
  }

  .honors-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .honors-stats__item {
    padding: 16px;
  }

  .honors-stats__number {
    font-size: 32px;
  }

  .honors-certificates__title,
  .honors-quality__title {
    font-size: 24px;
  }

  .honors-certificates__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .honors-quality__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .honors-hero__title {
    font-size: 20px;
  }

  .honors-overview__tags {
    gap: 8px;
  }

  .honors-tag {
    font-size: 12px;
    padding: 6px 12px;
  }

  .honors-certificates__grid {
    grid-template-columns: 1fr;
  }

  .lightbox__close {
    top: -40px;
    right: 10px;
  }
}
