/* ===== 资质荣誉证书图框 ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.cert-frame {
  position: relative;
  margin: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #b98a2e, #e6c877 30%, #f7ead0 50%, #e6c877 70%, #b98a2e);
  padding: 10px;
  box-shadow: 0 14px 34px rgba(20, 12, 4, 0.18), 0 3px 8px rgba(20, 12, 4, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.cert-frame::after {
  /* 内层金色细线，模拟画框压边 */
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(122, 84, 14, 0.55);
  border-radius: 9px;
  pointer-events: none;
  z-index: 2;
}

.cert-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.cert-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(20, 12, 4, 0.24), 0 4px 10px rgba(20, 12, 4, 0.14);
}

.cert-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 26px 16px 12px;
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  background: linear-gradient(to top, rgba(15, 10, 4, 0.72), rgba(15, 10, 4, 0));
  border-radius: 0 0 12px 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-frame,
  .cert-frame:hover {
    transition: none;
    transform: none;
  }
}
