.nav-li { padding: 23rpx; border-radius: 12rpx; width: 49%; margin-top: 20rpx; background-size: cover; background-position: center; position: relative; z-index: 1; } .nav-li::after { content: ""; position: absolute; z-index: -1; background-color: inherit; width: 100%; height: 100%; left: 0; bottom: -10%; border-radius: 10rpx; opacity: 0.2; transform: scale(0.9, 0.9); } .nav-li.cur { color: #fff; background: rgb(94, 185, 94); box-shadow: 4rpx 4rpx 6rpx rgba(94, 185, 94, 0.4); } .nav-list { margin-top: 0rpx; display: flex; flex-wrap: wrap; padding: 0px 10rpx 0px; justify-content: space-between; }