/* 资质中心 · 证书墙 */

.cred-group { margin-top: 2.5rem; }

.cred-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.cred-group-head h2 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cred-group-head p { margin: 0; font-size: 0.9rem; }

.cred-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(55, 121, 247, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.cred-grid > .cred-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cred-grid > .cred-card:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 121, 247, 0.35);
  box-shadow: 0 18px 42px rgba(43, 90, 237, 0.14);
}

.cred-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 1.1rem;
  background: linear-gradient(160deg, #eef4ff 0%, #f7f9ff 60%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}

.cred-thumb img {
  position: absolute;
  inset: 1.1rem;
  width: calc(100% - 2.2rem);
  height: calc(100% - 2.2rem);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(26, 39, 68, 0.16));
}

.cred-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(26, 39, 68, 0.72);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cred-thumb:hover .cred-zoom-hint,
.cred-thumb:focus-visible .cred-zoom-hint { opacity: 1; }

.cred-thumb-text {
  flex-direction: column;
  gap: 0.6rem;
  cursor: default;
  text-align: center;
}

.cred-thumb-mark {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.cred-thumb-num {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}

.cred-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cred-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.5;
}

.cred-body p { margin: 0.2rem 0; font-size: 0.88rem; }

.cred-verify { margin-top: auto !important; padding-top: 0.6rem; }

.cred-lightbox {
  border: 0;
  padding: 1rem 1rem 0.75rem;
  border-radius: 14px;
  max-width: min(92vw, 1000px);
  max-height: 94vh;
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 20, 40, 0.35);
}

.cred-lightbox::backdrop { background: rgba(10, 18, 36, 0.72); }

.cred-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 5rem);
  margin: 0 auto;
  object-fit: contain;
}

.cred-lightbox-caption {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cred-lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 39, 68, 0.08);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.cred-lightbox-close:hover { background: rgba(26, 39, 68, 0.16); }

@media (max-width: 900px) and (min-width: 601px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
}
