Files
miniprogram-1/miniprogram/pages/coupon/coupon.wxss
2025-12-21 16:17:36 +08:00

194 lines
3.2 KiB
Plaintext

/* coupon.less */
.coupon-container {
display: flex;
justify-content: flex-start;
align-items: flex-start;
align-content: start;
flex-wrap: wrap;
height: 100%;
padding: 0 32rpx;
background-color: #f5f5f5;
}
.tips_box {
margin: 32rpx 2%;
padding: 28rpx;
background: #ffffff;
border-radius: 28rpx;
box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.06);
position: relative;
width: 100%;
}
.tips-header {
display: flex;
align-items: center;
gap: 12rpx;
margin-bottom: 18rpx;
}
.tips-icon {
width: 40rpx;
height: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.tips-title {
font-size: 30rpx;
font-weight: 700;
color: #333c4f;
}
.tips-list {
display: flex;
flex-direction: column;
gap: 16rpx;
}
.tips-item {
position: relative;
padding-left: 24rpx;
font-size: 26rpx;
color: #4b5565;
line-height: 38rpx;
}
.coupon_title {
width: 100%;
padding: 24rpx 2% 0 24rpx;
font-weight: 700;
}
.card-box {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 24rpx;
padding: 24rpx 0 8rpx 0;
}
.card {
width: 26%;
background: #ffffff;
border-radius: 24rpx;
box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.06);
display: flex;
flex-direction: column;
align-items: center;
padding: 28rpx 2% 24rpx 2%;
}
.card-title {
font-size: 26rpx;
font-weight: 600;
color: #4b5565;
margin-bottom: 12rpx;
text-align: center;
}
.card-points {
font-size: 48rpx;
font-weight: 800;
color: #111827;
line-height: 60rpx;
}
.card-credits {
margin-top: 4rpx;
font-size: 22rpx;
letter-spacing: 2rpx;
color: #6b7280;
min-height: 32rpx;
}
.card-price {
margin-top: 18rpx;
background: #eef2f7;
color: #111827;
font-size: 26rpx;
font-weight: 700;
padding: 12rpx 24rpx;
border-radius: 9999rpx;
}
.coupon_box{
background: linear-gradient(to right, #5da0f9, #3071ee);
width: 46%;
border-radius: 32rpx;
text-align: center;
font-weight: 700;
color: #fff;
position: relative;
margin: 4% 2% 0 2%;
}
.coupon_box.one_time{
background: linear-gradient(to right, #f96b81, #e62f54);
}
.btn{
font-size: 36rpx;
height: 80rpx;
line-height: 80rpx;
border-radius: 0 0 32rpx 32rpx;
background: linear-gradient(to right, #3c79da, #245dd4);
}
.one_time .btn{
background: linear-gradient(to right, #d74660, #cb1e44);
}
.coupon_box::before{
content: '';
position: absolute;
top: 200rpx;
background: #f5f5f5;
width: 20rpx;
height: 30rpx;
z-index: 1;
left: -1rpx;
border-radius: 0 30rpx 30rpx 0
}
.coupon_box::after{
content: '';
position: absolute;
top: 200rpx;
background: #f5f5f5;
width: 20rpx;
height: 30rpx;
z-index: 1;
right: -1rpx;
border-radius: 30rpx 0 0 30rpx
}
.title{
color: rgba(255,255,255,0.75);
font-weight: 600;
font-size: 32rpx
}
.how_much{
font-size: 88rpx;
text-shadow: 0 0 20rpx rgba(0,0,0,0.3); text-align: center
}
.content{
padding: 8rpx 0 20rpx 0;
border-bottom: 4rpx dashed rgba(255, 255, 255, 0.25);
position: relative;
}
.content::before{
content: attr(data-points);
position: absolute;
color: rgba(255,255,255,0.15);
top: -7%;
transform: rotate(-15deg);
left: 2%;
font-size: 160rpx;
font-weight: bold;
}