.pd-t-b {
  padding-top: 40px;
  padding-bottom: 60px;
}

.ytht-mb-30 {
  margin-bottom: 0 !important;
}

.cert-list {
  text-align: left;
}

/* 标题样式 */
.factory-display-header {
  text-align: center;
  margin-bottom: 30px;
}
.factory-display-header h2 {
  font-size: clamp(24px, 2.9vw, 56px);
  font-weight: 700;
  color: #000;
  margin: 0 0 10px;
}

/* 核心网格：4列基础，3行结构，第三行合并列占满 */
.cert-list ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 全局4列，保证前两行比例 */
  grid-template-rows: auto auto auto;     /* 3行结构 */
  gap: 15px;                              /* 统一间距 */
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

/* 第1张图：占左2列、前2行 */
.cert-list ul li:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  width: 100% !important;
  margin: 0 !important;
}

/* 第2张图：占右2列、第1行 */
.cert-list ul li:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
  width: 100% !important;
  margin: 0 !important;
}

/* 第3张图：占右2列的第1列、第2行 */
.cert-list ul li:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  width: 100% !important;
  margin: 0 !important;
}

/* 第4张图：占右2列的第2列、第2行 */
.cert-list ul li:nth-child(4) {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
  width: 100% !important;
  margin: 0 !important;
}

/* 第5-7张图：占满第三行（合并4列），3图均分 */
.cert-list ul li:nth-child(5) {
  grid-column: 1 / 2;  /* 第三行第1列 */
  grid-row: 3 / 4;
  width: 100% !important;
  margin: 0 !important;
}
.cert-list ul li:nth-child(6) {
  grid-column: 2 / 4;  /* 第三行第2-3列（合并2列，补足宽度） */
  grid-row: 3 / 4;
  width: 100% !important;
  margin: 0 !important;
}
.cert-list ul li:nth-child(7) {
  grid-column: 4 / 5;  /* 第三行第4列 */
  grid-row: 3 / 4;
  width: 100% !important;
  margin: 0 !important;
}

/* 图片样式 */
.cert-list ul li a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.cert-list ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none !important;
}

/* 图片底部文字 */
.cert-list ul li a::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

/* 响应式：手机端1列 */
@media screen and (max-width: 768px) {
  .cert-list ul {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .cert-list ul li {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
