Files
wxapp_escort_admin/components/order-stats/index.wxss
T
2026-09-03 13:29:39 +08:00

122 lines
2.1 KiB
Plaintext

/* components/order-stats/index.wxss */
.os-section {
margin-top: 30rpx;
}
.os-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16rpx;
}
.os-title {
position: relative;
font-size: 30rpx;
font-weight: 600;
color: #1a1a1a;
margin-left: 20rpx;
letter-spacing: 1rpx;
}
.os-title::before {
content: '';
position: absolute;
left: -20rpx;
top: 50%;
transform: translateY(-50%);
width: 8rpx;
height: 28rpx;
border-radius: 4rpx;
background: linear-gradient(180deg, #2dd36f, #17c3a5);
}
.os-card {
background: linear-gradient(135deg, #ffffff 0%, #f3fbf8 100%);
border-radius: 24rpx;
box-shadow: 0 4rpx 20rpx rgba(23, 195, 165, 0.10);
padding: 36rpx 0 32rpx;
display: flex;
align-items: stretch;
position: relative;
overflow: hidden;
}
/* 左上角装饰色块,呼应首页头部渐变 */
.os-card::before {
content: '';
position: absolute;
top: -40rpx;
left: -40rpx;
width: 160rpx;
height: 160rpx;
border-radius: 50%;
background: linear-gradient(135deg, rgba(45, 211, 111, 0.10), rgba(23, 195, 165, 0.10));
}
.os-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 1;
}
.os-num {
font-size: 48rpx;
font-weight: 700;
line-height: 1;
font-family: 'DIN Alternate', -apple-system, sans-serif;
}
.os-num.green {
color: #2dd36f;
}
.os-num.blue {
color: #17c3a5;
}
.os-num.orange {
color: #f5a623;
}
.os-label {
margin-top: 12rpx;
font-size: 24rpx;
color: #888888;
}
.os-fee {
margin-top: 10rpx;
font-size: 22rpx;
font-weight: 600;
color: #1a1a1a;
padding: 4rpx 16rpx;
border-radius: 20rpx;
background: rgba(26, 26, 46, 0.05);
}
.os-item:nth-child(1) .os-fee {
color: #1ea55c;
background: rgba(45, 211, 111, 0.12);
}
.os-item:nth-child(3) .os-fee {
color: #14a08a;
background: rgba(23, 195, 165, 0.12);
}
.os-item:nth-child(5) .os-fee {
color: #d99a2b;
background: rgba(245, 166, 35, 0.14);
}
.os-divider {
width: 1rpx;
margin: 8rpx 0;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #e8e8e8 30%, #e8e8e8 70%, rgba(0, 0, 0, 0) 100%);
flex-shrink: 0;
}