/* Why Choose Us板块 */
.why-choose-us-container {
  width: 100%;
  height: 75.4rem; /* 设置一个固定高度以演示效果 */
  margin: 0 auto;
  position: relative; /* 关键：相对定位 */
  overflow: hidden;
}

.why-choose-us-container .why-choose-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 确保图片覆盖整个容器 */
  display: block;
}

.why-choose-us-container .foreground-text-container {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2; /* 确保在覆盖层之上 */
  box-sizing: border-box;
}

.why-choose-us-container .spacer {
  /* 占位符初始高度为 0，等待 JS 填充 */
  height: 0;
  clear: both; /* 确保清除浮动影响 */
}

.why-choose-us-container .foreground-text-container .foreground-text-body {
  max-width: 120rem;
  margin: 5.9rem auto 4.5rem;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3.1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-header
  .foreground-title {
  color: var(--scc-color-primary);
  font-family: Exo, sans-serif;
  flex: 1;
  font-weight: 600;
  font-size: 4.8rem !important;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-header
  .foreground-title
  > span {
  position: relative;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-header
  .foreground-title
  > span::after {
  content: '';
  position: absolute;
  bottom: -2.2rem;
  left: 0;
  width: 100%;
  height: 0.3rem;
  background-color: var(--scc-color-primary);
  border-radius: 0.5rem;
  transition: width 0.3s ease;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-header
  .foreground-spec {
  font-weight: 600;
  font-size: 2rem;
  width: 74rem;
  color: var(--scc-color-text-primary);
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content {
  display: grid;
  margin-bottom: 3.1rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-columns: repeat(auto-fill, minmax(37.6rem, 1fr));
  gap: 2.4rem;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .foreground-text-item {
  height: 33.2rem;
  background-color: var(--scc-color-white);
  border-radius: 0.8rem;
  padding: 5rem 2.4rem 4rem;
  cursor: pointer;
  color: var(--scc-color-text-primary);
  display: flex;
  transition: all 0.3s ease;
  flex-direction: column;
  gap: 1.5rem;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .foreground-text-item:hover {
  box-shadow: 0 0.4rem 1.2rem rgb(0 0 0 / 10%);
  background-color: var(--scc-color-primary);
  color: var(--scc-color-white) !important;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .foreground-text-item:hover
  .oc-icon {
  color: var(--scc-color-white) !important;
}

/* .why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .foreground-text-item
  .oc-icon:hover {
  color: var(--scc-color-white);
} */

/* .why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .why-choose-us-active {
  color: var(--scc-color-white) !important;
} */

/* .why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .why-choose-us-active
  > .oc-icon {
  color: var(--scc-color-white) !important;
} */

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .foreground-text-item
  .oc-icon {
  font-size: 4rem;
  color: var(--scc-color-primary);
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .foreground-text-item
  .foreground-text-item-title {
  font-weight: 600;
  font-size: 2rem;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-content
  .foreground-text-item
  .foreground-text-item-spec {
  margin: 0;
  font-weight: 400;
  font-size: var(--scc-font-body-size);
  line-height: 2.4rem;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  justify-content: space-between;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-footer
  .foreground-text-footer-link {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 19.7rem;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-footer
  .foreground-text-footer-link
  .oc-icon {
  font-size: 10rem;
  color: var(--scc-color-primary);
  margin-bottom: 1.2rem;
}

.why-choose-us-container
  .foreground-text-container
  .foreground-text-body
  .foreground-text-footer
  .foreground-text-footer-link
  .foreground-text-footer-link-title {
  font-weight: 600;
  font-size: 2rem;
  color: var(--scc-color-text-primary);
}

@media screen and (width <= 768px) {
  .why-choose-us-container
    .foreground-text-container
    .foreground-text-body
    .foreground-text-header
    .foreground-title {
    font-size: 3.2rem !important;
  }
  .why-choose-us-container
    .foreground-text-container
    .foreground-text-body
    .foreground-text-content {
    grid-template-columns: repeat(auto-fill, minmax(34.3rem, 1fr));
    margin-bottom: 1.1rem;
  }
  .why-choose-us-container
    .foreground-text-container
    .foreground-text-body
    .foreground-text-footer
    .foreground-text-footer-link {
    width: 14.7rem;
    gap: 2.2rem;
  }
  /* <!-- ➢ Why Choose Us板块 --> */
  .why-choose-us-container {
    min-height: 160rem;
  }

  .why-choose-us-container
    .foreground-text-container
    .foreground-text-body
    .foreground-text-header
    .foreground-spec {
    font-weight: 400;
    font-size: 1.7rem;
  }

  .why-choose-us-container
    .foreground-text-container
    .foreground-text-body
    .foreground-text-footer
    .foreground-text-footer-link
    .foreground-text-footer-link-title {
    font-weight: 400;
    font-size: 1.7rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 2.3rem;
  }

  .why-choose-us-container
    .foreground-text-container
    .foreground-text-body
    .foreground-text-footer
    .foreground-text-footer-link
    .oc-icon {
    margin-bottom: 0rem;
  }

  .why-choose-us-container .foreground-text-container .foreground-text-body {
    padding: 0 1.4rem;
    margin: 1rem auto 4.5rem;
  }

  .why-choose-us-container
    .foreground-text-container
    .foreground-text-body
    .foreground-text-header {
    gap: 4rem;
    margin-bottom: 3.1rem;
    margin-top: 1.6rem;
  }
}
