page { width: 100vw; display: flex; flex-direction: column; background: #F8F9FA; padding-bottom: 120px; } .container { display: flex; padding-right: 30rpx; flex-direction: row; flex-wrap: wrap; } .card-item { width: 327rpx; margin-left: 30rpx; height: 336rpx; margin-top: 40rpx; position: relative; } .card-bg { display: block; width: 327rpx; height: 336rpx; } .card-content { position: absolute; top: 0; left: 0; width: 327rpx; height: 336rpx; display: flex; flex-direction: column; justify-content: center; align-items: center; } .card-icon { display: block; width: 56rpx; height: 56rpx; } .card-content text { width: 260rpx; text-align: center; white-space: wrap; margin-top: 30rpx; font-size: 32rpx; line-height: 40rpx; color: #FFFFFF; }