yingsa/miniprogram/pages/match/history/index.wxss

167 lines
2.8 KiB
Plaintext

/* ==========================================
比赛记录页面 - 橙色主题优化
========================================== */
.container {
min-height: 100vh;
background: #f5f5f5;
padding: 20rpx;
}
.history-list {
display: flex;
flex-direction: column;
gap: 20rpx;
}
.match-item {
background: #fff;
border-radius: 20rpx;
overflow: hidden;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}
.match-item:active {
transform: scale(0.98);
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.12);
}
.match-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24rpx 28rpx;
background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
border-bottom: 2rpx solid rgba(255, 255, 255, 0.2);
}
.match-name {
font-size: 32rpx;
font-weight: 600;
color: #fff;
flex: 1;
}
.match-type {
padding: 6rpx 16rpx;
background: rgba(255, 255, 255, 0.25);
border-radius: 20rpx;
font-size: 22rpx;
color: #fff;
font-weight: 500;
}
.match-content {
padding: 28rpx;
}
.content-row {
display: flex;
align-items: center;
gap: 24rpx;
}
.result {
display: inline-block;
width: 60rpx;
height: 60rpx;
line-height: 60rpx;
text-align: center;
border-radius: 50%;
font-size: 28rpx;
font-weight: 600;
}
.result.win {
background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
color: #fff;
box-shadow: 0 4rpx 12rpx rgba(76, 175, 80, 0.3);
}
.result.lose {
background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
color: #fff;
box-shadow: 0 4rpx 12rpx rgba(244, 67, 54, 0.3);
}
.score-info {
display: flex;
flex-direction: column;
gap: 8rpx;
flex: 1;
}
.opponent {
font-size: 28rpx;
color: #666;
font-weight: 500;
}
.score {
font-size: 40rpx;
font-weight: 700;
color: #333;
letter-spacing: 4rpx;
}
.power-change {
font-size: 32rpx;
font-weight: 600;
padding: 8rpx 16rpx;
border-radius: 12rpx;
text-align: center;
min-width: 100rpx;
}
.power-change.positive {
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
color: #2e7d32;
}
.power-change.negative {
background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
color: #c62828;
}
.match-footer {
padding: 20rpx 28rpx;
background: #fafafa;
border-top: 1rpx solid #f0f0f0;
}
.match-time {
font-size: 24rpx;
color: #999;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120rpx 40rpx;
min-height: 60vh;
}
.empty-state image {
width: 200rpx;
height: 200rpx;
opacity: 0.6;
margin-bottom: 32rpx;
}
.empty-state text {
font-size: 28rpx;
color: #999;
}
.loading-state {
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx;
color: #999;
font-size: 28rpx;
}