/* Give every homepage section label the same dimensions as the existing case pill. */
.home .section:has(.section-bg img[src*="index_market_bg.jpg"]) > .section-content > .row:first-child .col-inner > .text:first-child > p,
.home .section:has(.section-bg img[src*="index_market_bg.jpg"]) .section-content a.button[style*="border-radius:99px"],
.home .section:has(.row.row-small.app-imagebox) > .section-content > .row:first-child .col-inner > .text:first-child > p,
.home .section:has(.row.row-large.app-imagebox) > .section-content > .row:first-child .col-inner > .text:first-child > p,
.home .section:has(.row-slider .product-small) > .section-content > .row:first-child .col-inner > .text:first-child > p,
.home .section:has(.row-slider .post-item) > .section-content > .row:first-child .col-inner > .text:first-child > p {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 24px);
  min-height: 46px !important;
  margin: 0 0 0.75em;
  padding: 6px 40px !important;
  border: 0;
  border-radius: 99px !important;
  background-color: var(--primary-color, #1d59b8) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0;
  text-align: center;
  text-transform: none !important;
  vertical-align: middle;
  box-sizing: border-box;
}

/* Add the missing title to the homepage company introduction section. */
.home .sst-homepage-company-label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 24px);
  min-height: 46px !important;
  margin: 0 auto 24px !important;
  padding: 6px 40px !important;
  border: 0;
  border-radius: 99px !important;
  background-color: var(--primary-color, #1d59b8) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0;
  text-align: center;
  text-transform: none !important;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Match the About page buttons directly; this avoids hiding them in browsers without :has(). */
body.page-id-11 a.button[href="#company"],
body.page-id-11 a.button[href="#Culture"],
body.page-id-11 a.button[href="#history"],
body.page-id-11 a.button[href="#Certificate"],
body.page-id-11 a.button[href="#Honor"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 24px);
  min-height: 46px !important;
  padding: 6px 40px !important;
  border-radius: 99px !important;
  background-color: var(--primary-color, #1d59b8) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0;
  text-align: center;
  text-transform: none !important;
  box-sizing: border-box;
  opacity: 1 !important;
  visibility: visible !important;
}

body.page-id-11 a.button[href="#company"] span,
body.page-id-11 a.button[href="#Culture"] span,
body.page-id-11 a.button[href="#history"] span,
body.page-id-11 a.button[href="#Certificate"] span,
body.page-id-11 a.button[href="#Honor"] span {
  color: #fff !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

@media screen and (max-width: 549px) {
  .home .sst-homepage-company-label {
    max-width: calc(100% - 16px);
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  .home .section:has(.section-bg img[src*="index_market_bg.jpg"]) > .section-content > .row:first-child .col-inner > .text:first-child > p,
  .home .section:has(.section-bg img[src*="index_market_bg.jpg"]) .section-content a.button[style*="border-radius:99px"],
  .home .section:has(.row.row-small.app-imagebox) > .section-content > .row:first-child .col-inner > .text:first-child > p,
  .home .section:has(.row.row-large.app-imagebox) > .section-content > .row:first-child .col-inner > .text:first-child > p,
  .home .section:has(.row-slider .product-small) > .section-content > .row:first-child .col-inner > .text:first-child > p,
  .home .section:has(.row-slider .post-item) > .section-content > .row:first-child .col-inner > .text:first-child > p {
    max-width: calc(100% - 16px);
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  body.page-id-11 a.button[href="#company"],
  body.page-id-11 a.button[href="#Culture"],
  body.page-id-11 a.button[href="#history"],
  body.page-id-11 a.button[href="#Certificate"],
  body.page-id-11 a.button[href="#Honor"] {
    max-width: calc(100% - 16px);
    padding-right: 24px !important;
    padding-left: 24px !important;
  }
}
