html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#section4 {
  position: relative;
  width: 100%;
  min-height: 13.5rem;
  background-image: url('/images/chengg背景@2x.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
  text-align: center;
}

.section4-content {
  width: 100%;
  max-width: 18.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.top-text {
  text-align: center;
  margin-bottom: 0.625rem;
}

.top-text .title {
  font-size: 0.525rem;
  font-weight: 900;
  color: black;
}

.top-text .subtitle {
  font-size: 0.3125rem;
  font-weight: 100;
  margin-bottom: 0.125rem;
  color: #909090;
}

.module4 {
  border-radius: 0.15rem;
  color: #333;
  min-height: 4.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.card-container {
  width: 100%;
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  padding-bottom: 0.125rem;
}

.card {
  width: 100%;
  height: 5rem;
  border-radius: 0.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: white;
}

.card-top {
  position: relative;
  flex: 3;
  width: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.card-top .overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.25rem;
  object-fit: contain;
  pointer-events: none;
}

.card-bottom {
  position: relative;
  top: -0.625rem; /* 向上移动，覆盖到 .card-top */
  background-color: white;
  padding: 0.25rem;
  font-size: 0.25rem;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.2rem; /* 圆角 */

  margin: 0 auto; /* 居中 */
  z-index: 2;
}


.card-title {
  font-size: 0.225rem !important;;
  font-weight: bold !important;;
  color: black !important;;
}

.card-subtitle {
  font-size: 0.1875rem;
  color: #5991ff;
  margin-top: 0.25rem;
}

.horizontal-scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -0.375rem;
}

.scroll-wrapper {
  width: 20rem;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0.25rem 0;
}

.scroll-grid {
  margin-bottom: 0.25rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.img-box {
  height: 1.375rem;
  background-color: white;
  border: 0.0125rem solid #d1ebfe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem;
  box-sizing: border-box;
}

.img-box img {
  height: 0.875rem;
  width: auto;
  object-fit: contain;
}


.view-more-wrapper {
  margin-top: -0.25rem;
  text-align: center;
  z-index: 10;
}

.view-more-link {
  font-size: 0.35rem;
  text-decoration: none;
  color: #5695ff;
  z-index: 10;
}





@media (max-width: 9.6rem) {
  .top-text .title {
    font-size: 0.3rem;
  }

  .top-text .subtitle {
    font-size: 0.2rem;
  }

  .card {
    flex: 0 0 80%;
  }

  .module4 {
    padding: 0.25rem;
    font-size: 0.2rem;
    min-height: 2.5rem;
  }

  .scroll-row img {
    width: 1.25rem;
    height: 0.625rem;
  }

  .scroll-row {
    gap: 0.075rem;
    margin-bottom: 0.075rem;
  }
}
