/* ============================================================
   certificates.css - 证书展示页面专用样式
   适用于 Umbottle 网站证书/检测报告展示页
   ============================================================ */

/* ---------- 页面标题区域 ---------- */
.cert-page-header {
   padding: 40px 0 20px 0;
   background: #f8f9fa;
   border-bottom: 1px solid #e9ecef;
   margin-top: 95px;  /* 调整为新网站 header 高度 */
}
.cert-page-header h1 {
   font-size: 32px;
   font-weight: 700;
   color: #182853;
   margin-bottom: 8px;
   text-align: center;
}
.cert-page-header p {
   color: #6c757d;
   font-size: 20px;
   text-align: center;
   margin: 0;
}

/* ---------- 证书网格区域 ---------- */
.certificates-grid {
   padding: 50px 0 70px 0;
}

/* ---------- 单个证书卡片 ---------- */
.cert-card {
   background: #ffffff;
   border-radius: 12px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
   overflow: hidden;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   margin-bottom: 30px;
   border: 1px solid #f0f0f0;
}
.cert-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ---------- 证书图片容器 ---------- */
.cert-card .cert-image-wrap {
   padding: 30px 20px 10px 20px;
   background: #fafbfc;
   text-align: center;
   min-height: 260px;
   display: flex;
   align-items: center;
   justify-content: center;
}
.cert-card .cert-image-wrap img {
   max-width: 100%;
   max-height: 100%;
   width: auto;
   height: auto;
   object-fit: contain;
   border-radius: 4px;
   transition: transform 0.3s ease;
}
.cert-card:hover .cert-image-wrap img {
   transform: scale(1.02);
}

/* ---------- 证书名称 ---------- */
.cert-card .cert-name {
   padding: 16px 20px 20px 20px;
   height: 85px;
   text-align: center;
   border-top: 1px solid #f0f0f0;
   background: #ffffff;
}
.cert-card .cert-name h5 {
   font-size: 16px;
   font-weight: 600;
   color: #1a1a2e;
   margin: 0;
   line-height: 1.5;
}
.cert-card .cert-name h5 i {
   color: #e6a800;
   margin-right: 6px;
}

/* ---------- 分割线 + PPWR 标题 ---------- */
.cert-divider-wrap {
   margin: 10px 0 30px 0;
}
.cert-divider {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 20px;
}
.cert-divider .divider-line {
   flex: 1;
   max-width: 200px;
   height: 2px;
   background: linear-gradient(to right, transparent, #182853, transparent);
}
.cert-divider .divider-title {
   font-size: 28px;
   font-weight: 700;
   color: #182853;
   margin: 0;
   letter-spacing: 4px;
   text-transform: uppercase;
}
.cert-divider-wrap {
    margin: 50px 0 80px 0;
}

/* ============================================================
   响应式适配
   ============================================================ */

/* 平板及以下 */
@media (max-width: 991px) {
   .cert-page-header {
      margin-top: 80px;
      padding: 30px 0 16px 0;
   }
   .cert-page-header h1 {
      font-size: 28px;
   }
   .cert-card .cert-image-wrap {
      min-height: 220px;
   }
}

/* 手机 */
@media (max-width: 767px) {
   .cert-page-header {
      margin-top: 50px;
      padding: 20px 0 12px 0;
   }
   .cert-page-header h1 {
      font-size: 22px;
   }
   .cert-page-header p {
      font-size: 14px;
   }

   .certificates-grid {
      padding: 30px 0 50px 0;
   }

   .cert-card .cert-image-wrap {
      min-height: 180px;
      padding: 20px 15px 8px 15px;
   }
   .cert-card .cert-image-wrap img {
      max-height: 100%;
   }
   .cert-card .cert-name {
      padding: 12px 16px 16px 16px;
   }
   .cert-card .cert-name h5 {
      font-size: 14px;
   }
   .cert-divider .divider-title {
      font-size: 22px;
      letter-spacing: 2px;
   }
   .cert-divider .divider-line {
      max-width: 60px;
   }
}

/* 小屏手机 */
@media (max-width: 480px) {
   .cert-page-header {
      margin-top: 50px;
      padding: 16px 0 10px 0;
   }
   .cert-page-header h1 {
      font-size: 19px;
   }

   .cert-card .cert-image-wrap {
      min-height: 150px;
      padding: 15px 10px 6px 10px;
   }
   .cert-card .cert-image-wrap img {
      max-height: 100%;
   }
   .cert-card .cert-name h5 {
      font-size: 13px;
   }
}
/* 仅证书页面容器加宽到 1400px */
@media (min-width: 1200px) {
    .certificates-grid .container {
        width: 1400px;
    }
    .cert-page-header .container {
        width: 1400px;
    }
}