@charset "utf-8";

/* ============================================================
   honor.css — 资质荣誉 / 证书展示
   ============================================================ */

.page-honor .site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

.page-honor .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
}

.honor-page {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px);
  background: #fff;
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.honor-card {
  min-width: 0;
}

.honor-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border: 1px solid #eee;
  background: #fafafa;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.honor-card__link:hover {
  border-color: rgba(200, 16, 46, .28);
  box-shadow: 0 12px 28px rgba(20, 10, 12, .08);
  transform: translateY(-3px);
}

.honor-card__pic {
  margin: 0;
  padding: clamp(16px, 1.8vw, 24px);
  aspect-ratio: 3 / 4;
  background: #fff;
  overflow: hidden;
}

.honor-card__pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .55s var(--ease);
}

.honor-card__link:hover .honor-card__pic img {
  transform: scale(1.04);
}

.honor-card__body {
  padding: 16px 18px 20px;
  border-top: 1px solid #eee;
  background: #fff;
}

.honor-card__title {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color .25s var(--ease);
}

.honor-card__link:hover .honor-card__title {
  color: var(--c-accent, #c8102e);
}

.honor-card__desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-sub);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.honor-empty {
  margin: 0;
  padding: 64px 0;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 15px;
}

.honor-load {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 0 8px;
  color: var(--c-text-muted);
  font-size: 14px;
}

.honor-load[hidden],
.honor-end[hidden] {
  display: none !important;
}

.honor-load__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e5e5;
  border-top-color: var(--c-accent, #c8102e);
  border-radius: 50%;
  animation: honor-spin .8s linear infinite;
}

@keyframes honor-spin {
  to { transform: rotate(360deg); }
}

.honor-end {
  margin: 0;
  padding: 32px 0 8px;
  text-align: center;
  font-size: 14px;
  color: var(--c-text-muted);
}

.honor-sentinel {
  width: 100%;
  height: 1px;
}

/* ---------- Lightbox ---------- */
.honor-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: rgba(12, 8, 10, .88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.honor-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

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

.honor-lightbox.is-open[hidden] {
  display: flex;
}

.honor-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.honor-lightbox__close:hover {
  background: var(--c-accent, #c8102e);
}

.honor-lightbox__figure {
  margin: 0;
  max-width: min(880px, 100%);
  max-height: 100%;
  text-align: center;
}

.honor-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.honor-lightbox__caption {
  margin-top: 16px;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .honor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .honor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .honor-card__pic {
    padding: 12px;
  }

  .honor-card__body {
    padding: 12px 14px 16px;
  }
}

@media (max-width: 480px) {
  .honor-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .honor-card__link,
  .honor-card__pic img,
  .honor-lightbox {
    transition: none;
  }

  .honor-card__link:hover {
    transform: none;
  }
}
