.card { background: #fff; border-radius: 10rpx; box-shadow: 0 0 20rpx #eee; margin: 0rpx 0rpx 15rpx; padding: 15rpx; width: 100%; } .card:nth-child(1) { padding: 0rpx 0rpx 7.5rpx; } .card:last-child { padding: 7.5rpx 0rpx 15rpx; } .card-img { border-radius: 10rpx; height: 400rpx; margin-top: 15rpx; position: relative; width: 100%; } .card-name { font-size: 36rpx; padding: 15rpx 0rpx 0rpx 15rpx; } .price-box { left: 0rpx; position: absolute; top: 0rpx; z-index: 3; } .price-box,.price-box image { height: 128rpx; width: 128rpx; } .price-text { color: #fff; left: 45%; top: 25%; transform: rotate(45deg); } .price,.price-text { font-size: 32rpx; position: absolute; z-index: 3; } .price { color: #ff0; left: 65rpx; top: -20rpx; transform: rotate(-45deg) translate(-50%,-50%); width: 100%; } .number-box { bottom: 0rpx; height: 128rpx; position: absolute; right: 0rpx; width: 128rpx; } .number-box image { border-radius: 0rpx; height: 100%; margin-top: 0rpx; width: 100%; } .number-content { color: #fff; font-size: 18rpx; position: absolute; right: -70rpx; text-align: center; top: 30rpx; transform: rotate(-45deg) translate(-50%,-50%); width: 100%; } .code-box { display: flex; flex-direction: column; height: 100%; justify-content: space-between; width: 100%; } .code-box input { background-color: #f2f2f2; border: 1rpx solid #f2f2f2; border-radius: 10rpx; font-size: 28rpx; height: 80rpx; line-height: 80rpx; text-align: center; width: 95%; } .code-box .code-title { color: var(--yellowLight); font-size: 38rpx; margin-top: 15rpx; padding-bottom: 15rpx; text-align: center; } .code-box .btns { align-items: center; display: flex; flex-direction: row; justify-content: space-between; }