.sub-main {
  background: url("../img/yhsl_bg.png") no-repeat center center;
  background-size: cover;
}

body.page-about-sub {
  --about-h5-bg-image: url("../img/h5/yhsl_bg.png");
}

.sub-main .page-wrap {
  padding: 71px 32px 0;
}

@media (min-width: 993px) {
  body.page-about-sub .sub-main .page-wrap {
    padding: 56px 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
  }

  body.page-about-sub .sub-main .page-content.sub-body {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 136px;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.page-about-sub .sub-main .page-content.sub-body::-webkit-scrollbar {
    display: none;
  }

  body.page-about-sub .sub-panel {
    padding-left: 24px;
    align-items: flex-start;
    min-height: 0;
    overflow: hidden;
  }

  body.page-about-sub .sub-desc {
    width: 100%;
    max-width: 860px;
    flex-shrink: 0;
  }

  /* 证书图：随视口适度缩放，避免压住底部五块导航（136 = 88 导航 + 24 底距 + 24 间距） */
  body.page-about-sub .cert-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(442px, calc(100vh - var(--pc-header-height) - var(--pc-footer-height) - 56px - 200px - 136px));
    overflow: hidden;
    align-items: flex-end;
  }

  body.page-about-sub .cert-col1,
  body.page-about-sub .cert-col2,
  body.page-about-sub .cert-col3 {
    width: auto;
    max-width: 31%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  body.page-about-sub .cert-img.cert-pc-only {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(442px, calc(100vh - var(--pc-header-height) - var(--pc-footer-height) - 56px - 200px - 136px));
    overflow: hidden;
    align-items: flex-end;
  }

  body.page-about-sub .cert-img.cert-pc-only img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
}

.sub-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sub-tab-input {
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.sub-side {
  width: 300px;
  flex-shrink: 0;
}

.sub-side li {
  list-style: none;
}

.sub-side label {
  display: flex;
  align-items: center;
  line-height: 48px;
  font-size: 14px;
  padding-left: 45px;
  cursor: pointer;
}

.sub-side label .side-icon {
  display: none;
  width: 35px;
  height: 24px;
  margin-right: 10px;
}

.sub-tab-input:nth-of-type(1):checked ~ .sub-side li:nth-child(1) label,
.sub-tab-input:nth-of-type(2):checked ~ .sub-side li:nth-child(2) label,
.sub-tab-input:nth-of-type(3):checked ~ .sub-side li:nth-child(3) label,
.sub-tab-input:nth-of-type(4):checked ~ .sub-side li:nth-child(4) label {
  padding-left: 0;
  font-size: 20px;
  font-weight: 700;
}

.sub-tab-input:nth-of-type(1):checked ~ .sub-side li:nth-child(1) label .side-icon,
.sub-tab-input:nth-of-type(2):checked ~ .sub-side li:nth-child(2) label .side-icon,
.sub-tab-input:nth-of-type(3):checked ~ .sub-side li:nth-child(3) label .side-icon,
.sub-tab-input:nth-of-type(4):checked ~ .sub-side li:nth-child(4) label .side-icon {
  display: block;
}

.sub-panels {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sub-panel {
  display: none;
  flex: 1;
  min-height: 0;
  padding-left: 40px;
  overflow: hidden;
  flex-direction: column;
}

.sub-tab-input:nth-of-type(1):checked ~ .sub-panels .sub-panel:nth-child(1),
.sub-tab-input:nth-of-type(2):checked ~ .sub-panels .sub-panel:nth-child(2),
.sub-tab-input:nth-of-type(3):checked ~ .sub-panels .sub-panel:nth-child(3),
.sub-tab-input:nth-of-type(4):checked ~ .sub-panels .sub-panel:nth-child(4) {
  display: flex;
}

.sub-desc {
  width: 860px;
  max-width: 100%;
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.cert-list {
  width: 767px;
  max-width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 10px auto 0;
  overflow: hidden;
}

.cert-col1 { width: 179px; max-width: 31%; height: auto; max-height: 100%; object-fit: contain; }
.cert-col2 { width: 187px; max-width: 32%; height: auto; max-height: 100%; object-fit: contain; }
.cert-col3 { width: 195px; max-width: 33%; height: auto; max-height: 100%; object-fit: contain; }

.cert-img {
  width: 720px;
  max-width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  margin: 10px auto 0;
}

.cert-img img {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.cert-h5-only {
  display: none;
}

@media (min-width: 993px) {
  body.page-about-sub .cert-h5-only,
  body.page-about-sub .cert-img.cert-h5-only {
    display: none;
  }

  body.page-about-sub .cert-pc-only {
    display: flex;
  }
}

body.page-about-sub .sub-main .page-wrap {
  height: 100%;
}

body.page-about-sub .sub-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
}

body.page-about-sub .sub-panels {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.page-about-sub .sub-side {
  display: block;
  width: 300px;
  flex-shrink: 0;
}

body.page-about-sub .sub-panel {
  display: none;
  flex: 1;
  min-height: 0;
  padding-left: 24px;
  overflow: hidden;
  flex-direction: column;
}

body.page-about-sub .sub-tab-input:nth-of-type(1):checked ~ .sub-panels .sub-panel:nth-child(1),
body.page-about-sub .sub-tab-input:nth-of-type(2):checked ~ .sub-panels .sub-panel:nth-child(2),
body.page-about-sub .sub-tab-input:nth-of-type(3):checked ~ .sub-panels .sub-panel:nth-child(3),
body.page-about-sub .sub-tab-input:nth-of-type(4):checked ~ .sub-panels .sub-panel:nth-child(4) {
  display: flex;
}

body.page-about-sub .sub-desc {
  text-indent: 0;
}

body.page-about-sub .cert-list {
  width: min(767px, 100%);
  margin-left: auto;
  margin-right: auto;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}

body.page-about-sub .cert-col1 {
  width: auto;
  max-width: 31%;
  height: auto;
  max-height: 100%;
  flex: none;
  object-fit: contain;
}

body.page-about-sub .cert-col2 {
  width: auto;
  max-width: 32%;
  height: auto;
  max-height: 100%;
  flex: none;
  object-fit: contain;
}

body.page-about-sub .cert-col3 {
  width: auto;
  max-width: 33%;
  height: auto;
  max-height: 100%;
  flex: none;
  object-fit: contain;
}

@media (min-width: 993px) {
  body.page-about-sub .about-features {
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

body.page-about-sub .cert-img.cert-pc-only {
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 993px) and (max-width: 1200px) {
  body.page-about-sub .sub-main .page-wrap {
    padding: 40px 32px 0;
  }

  body.page-about-sub .sub-side {
    width: 220px;
  }

  body.page-about-sub .sub-panel {
    padding-left: 24px;
  }

  body.page-about-sub .cert-list,
  body.page-about-sub .cert-img.cert-pc-only {
    width: min(767px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 993px) and (max-height: 900px) {
  body.page-about-sub .sub-main .page-wrap {
    padding-top: 36px;
  }

  body.page-about-sub .sub-desc {
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 8px;
  }

  body.page-about-sub .cert-list,
  body.page-about-sub .cert-img.cert-pc-only {
    max-height: min(320px, calc(100vh - var(--pc-header-height) - var(--pc-footer-height) - 36px - 180px - 136px));
  }
}
