.header { position: relative; .headerBg { position: absolute; z-index: -2; width: 100%; height: 100%; background-color: white; } .swiper { margin: 0 auto; width: 710rpx; height: 216rpx; border-radius: 20rpx; overflow: hidden; box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px; .swiper-item { width: 100%; height: 100%; border-radius: 20rpx; overflow: hidden; object-fit: cover; } } }