Files
wxapp_escort_admin/pages/home/index.wxss
2026-06-14 11:46:10 +08:00

293 lines
4.5 KiB
Plaintext

/* pages/home/index.wxss */
.page {
min-height: 100vh;
background: #f7f8fc;
padding-bottom: 40rpx;
}
/* === 顶部问候 === */
.header {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
padding: 60rpx 40rpx 80rpx;
position: relative;
overflow: hidden;
}
.header::after {
content: '';
position: absolute;
top: -60rpx;
right: -40rpx;
width: 280rpx;
height: 280rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.03);
}
.header::before {
content: '';
position: absolute;
bottom: -100rpx;
right: 80rpx;
width: 200rpx;
height: 200rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.02);
}
.greeting {
position: relative;
z-index: 1;
}
.greeting-text {
display: block;
font-size: 44rpx;
font-weight: 700;
color: #ffffff;
letter-spacing: 2rpx;
margin-bottom: 12rpx;
}
.greeting-sub {
display: block;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.5);
font-weight: 300;
letter-spacing: 1rpx;
}
/* === 数据统计 === */
.stats-container {
margin: -40rpx 30rpx 0;
position: relative;
z-index: 2;
}
.stats-grid {
display: flex;
gap: 16rpx;
}
.stat-card {
flex: 1;
background: #ffffff;
border-radius: 20rpx;
padding: 28rpx 16rpx;
text-align: center;
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.06);
transition: transform 0.2s;
}
.stat-value {
display: block;
font-size: 48rpx;
font-weight: 700;
color: #1a1a2e;
line-height: 1.2;
margin-bottom: 8rpx;
font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
}
.stat-label {
display: block;
font-size: 22rpx;
color: #a0a3bd;
font-weight: 400;
letter-spacing: 1rpx;
}
/* === 通用 Section === */
.section {
margin: 32rpx 30rpx 0;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24rpx;
}
.section-title {
font-size: 32rpx;
font-weight: 700;
color: #1a1a2e;
letter-spacing: 1rpx;
}
.view-all {
display: flex;
align-items: center;
gap: 6rpx;
font-size: 24rpx;
color: #a0a3bd;
}
.view-all .arrow {
font-size: 28rpx;
color: #a0a3bd;
}
/* === 功能菜单 === */
.menu-grid {
display: flex;
gap: 16rpx;
}
.menu-card {
flex: 1;
background: #ffffff;
border-radius: 20rpx;
padding: 32rpx 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 16rpx;
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04);
}
.menu-icon-wrap {
width: 80rpx;
height: 80rpx;
border-radius: 20rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
}
.menu-icon-text {
font-size: 32rpx;
font-weight: 700;
color: #ffffff;
}
.menu-name {
font-size: 24rpx;
color: #5a5d7a;
font-weight: 500;
}
/* === 订单列表 === */
.order-list {
display: flex;
flex-direction: column;
gap: 20rpx;
}
.order-card {
background: #ffffff;
border-radius: 20rpx;
padding: 28rpx 32rpx;
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04);
}
.order-top {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 20rpx;
border-bottom: 1rpx solid #f0f1f5;
}
.order-no {
font-size: 24rpx;
color: #a0a3bd;
font-weight: 500;
font-family: 'DIN Alternate', 'Helvetica Neue', monospace;
}
.status-tag {
font-size: 22rpx;
padding: 6rpx 20rpx;
border-radius: 30rpx;
font-weight: 500;
}
.status-pending {
background: #fff8e6;
color: #e6a23c;
}
.status-confirmed {
background: #ecf5ff;
color: #409eff;
}
.status-in_progress {
background: #f0f9eb;
color: #67c23a;
}
.status-completed {
background: #f4f0ff;
color: #7c5cfc;
}
.status-cancelled {
background: #f5f5f5;
color: #b0b0b0;
}
.order-body {
padding: 20rpx 0;
display: flex;
flex-direction: column;
gap: 14rpx;
}
.order-row {
display: flex;
align-items: baseline;
}
.row-label {
font-size: 24rpx;
color: #a0a3bd;
width: 72rpx;
flex-shrink: 0;
}
.row-value {
font-size: 26rpx;
color: #3a3d5c;
flex: 1;
}
.order-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 20rpx;
border-top: 1rpx solid #f0f1f5;
}
.fee-label {
font-size: 24rpx;
color: #a0a3bd;
}
.fee-value {
font-size: 34rpx;
font-weight: 700;
color: #1a1a2e;
font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
}
/* === 空状态 === */
.empty-state {
background: #ffffff;
border-radius: 20rpx;
padding: 80rpx 0;
text-align: center;
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04);
}
.empty-text {
font-size: 28rpx;
color: #c0c3d4;
font-weight: 400;
}