/* 主容器 */
.certs-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* 头部 */
.hero-section {
  text-align: center;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(31, 80, 193, 0.1);
  backdrop-filter: blur(2px);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1f50c1;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(31, 80, 193, 0.2);
}
h1 {
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #1f50c1 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.3rem;
}
.sub {
  color: #475569;
  font-size: 0.9rem;
}

/* 统计卡片 */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
}
.stat-card {
  background: white;
  border-radius: 2rem;
  padding: 0.6rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid #e9edf2;
  transition: 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
}
.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1f50c1, #3b82f6);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
}
.stat-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}
.stat-info p {
  font-size: 0.75rem;
  color: #4b6589;
  font-weight: 500;
}

/* 分类区块标题 */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1.2rem 0;
  padding-left: 0.5rem;
  border-left: 5px solid #1f50c1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-title i {
  color: #1f50c1;
  font-size: 1.4rem;
}

/* 证书网格布局 */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2rem;
}

/* 卡片样式：图片在上，信息在下 */
.cert-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 28px -10px rgba(0, 0, 0, 0.12);
  border-color: #cbdffc;
}

/* 图片区域 - 证书图片占位 (真实图片地址可替换) */
.cert-image {
  background: #f4f8fe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  min-height: 180px;
  border-bottom: 1px solid #ecf3f8;
}
.cert-image img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  padding: 6px;
}
/* 如果图片加载失败，显示占位样式 */
.cert-image img.error-img {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5' fill='%239ca3af'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
  background: #f1f5f9;
  object-fit: contain;
}

/* 卡片内容区域 (标题、类型、日期、编号) */
.card-info {
  padding: 1rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cert-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.cert-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eef2ff;
  padding: 0.2rem 0.7rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1f50c1;
  width: fit-content;
}
.cert-date {
  font-size: 0.75rem;
  color: #4b6589;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cert-number {
  font-size: 0.7rem;
  color: #62748c;
  background: #f8fafc;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  word-break: break-all;
  font-family: monospace;
  border: 1px solid #eef2f8;
  margin-top: 0.2rem;
}

/* 响应式 */
@media (max-width: 650px) {
  body {
    padding: 1rem 0.8rem 1.8rem;
  }
  h1 { font-size: 1.8rem; }
  .stat-card { padding: 0.4rem 1rem; gap: 0.6rem; }
  .stat-icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .stat-info h3 { font-size: 1.3rem; }
  .certs-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.2rem; }
}