/* 移除全局重置，只限定在 .hero 范围内，避免影响主站点如 gywm 部分的样式错位 */
.hero * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.hero {
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

.hero h1 {
  text-align: center;
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.hero p {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 24px;
}

.certificates {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1800px;
  margin: 0 auto;
  flex: 1;
}

.cert-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-8px);
}

.cert-card img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.cert-card h3 {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #1a365d;
  text-align: center;
}

@media (max-width: 1200px) {
  .certificates {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero {
    height: auto;
    min-height: 600px;
  }
}

@media (max-width: 768px) {
  .certificates {
    grid-template-columns: repeat(2, 1fr);
  }
}
