yingsa/miniprogram/pages/match/challenge-detail/index.wxss

384 lines
6.3 KiB
Plaintext

.page-container {
min-height: 100vh;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
padding: 20rpx;
}
.loading-container {
display: flex;
justify-content: center;
align-items: center;
height: 60vh;
color: #666;
}
.match-info {
background: #fff;
border-radius: 24rpx;
padding: 40rpx;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
}
.match-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40rpx;
padding-bottom: 30rpx;
border-bottom: 2rpx solid #f0f0f0;
}
.match-title {
font-size: 36rpx;
font-weight: 600;
color: #333;
}
.match-status {
padding: 8rpx 20rpx;
border-radius: 20rpx;
font-size: 24rpx;
}
.status-0 {
background: #fff3cd;
color: #856404;
}
.status-1 {
background: #d1ecf1;
color: #0c5460;
}
.status-2 {
background: #d4edda;
color: #155724;
}
.status-3 {
background: #f8d7da;
color: #721c24;
}
.opponent-section {
margin-bottom: 40rpx;
}
.opponent-card {
margin-bottom: 30rpx;
}
.opponent-label {
font-size: 24rpx;
color: #999;
margin-bottom: 20rpx;
}
.opponent-info {
display: flex;
align-items: center;
gap: 24rpx;
}
.opponent-avatar {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
border: 4rpx solid #e0e0e0;
}
.opponent-details {
flex: 1;
display: flex;
flex-direction: column;
gap: 8rpx;
}
.opponent-name {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
.opponent-level {
font-size: 24rpx;
color: #666;
}
.vs-divider {
text-align: center;
margin: 30rpx 0;
font-size: 32rpx;
font-weight: 600;
color: #999;
}
.match-progress {
margin-bottom: 40rpx;
padding-top: 30rpx;
border-top: 2rpx solid #f0f0f0;
}
.progress-title {
font-size: 28rpx;
font-weight: 600;
color: #333;
margin-bottom: 20rpx;
}
.game-item {
background: #f8f9fa;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 16rpx;
}
.game-score {
display: flex;
align-items: center;
margin-bottom: 12rpx;
}
.score-label {
font-size: 24rpx;
color: #666;
}
.score-value {
font-size: 32rpx;
font-weight: 600;
color: #333;
margin-left: 12rpx;
}
.game-status {
font-size: 24rpx;
color: #999;
}
.confirm-tip {
margin-top: 16rpx;
padding: 16rpx 20rpx;
background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
border-radius: 12rpx;
border-left: 4rpx solid #ff6b35;
box-shadow: 0 2rpx 8rpx rgba(255, 107, 53, 0.1);
}
.confirm-tip .tip-text {
font-size: 26rpx;
color: #d84315;
font-weight: 500;
}
.action-buttons {
display: flex;
gap: 20rpx;
margin-top: 40rpx;
}
.no-action-tip {
margin-top: 40rpx;
padding: 30rpx;
text-align: center;
background: #f8f9fa;
border-radius: 16rpx;
}
.tip-text {
font-size: 28rpx;
color: #999;
}
.action-btn {
flex: 1;
height: 88rpx;
border-radius: 44rpx;
font-size: 32rpx;
font-weight: 600;
border: none;
display: flex;
align-items: center;
justify-content: center;
}
.accept-btn {
background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
color: #fff;
box-shadow: 0 4rpx 16rpx rgba(255, 107, 53, 0.3);
}
.accept-btn:active {
background: linear-gradient(135deg, #e55a2b 0%, #e67e2f 100%);
box-shadow: 0 2rpx 8rpx rgba(255, 107, 53, 0.4);
}
.reject-btn {
background: #f5f5f5;
color: #666;
}
.submit-btn {
background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
color: #fff;
box-shadow: 0 4rpx 16rpx rgba(255, 107, 53, 0.3);
}
.submit-btn:active {
background: linear-gradient(135deg, #e55a2b 0%, #e67e2f 100%);
box-shadow: 0 2rpx 8rpx rgba(255, 107, 53, 0.4);
}
.confirm-btn {
background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
color: #fff;
box-shadow: 0 4rpx 16rpx rgba(255, 107, 53, 0.3);
}
.confirm-btn:active {
background: linear-gradient(135deg, #e55a2b 0%, #e67e2f 100%);
box-shadow: 0 2rpx 8rpx rgba(255, 107, 53, 0.4);
}
/* 填写比分弹框 */
.score-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.score-modal-content {
width: 600rpx;
max-width: 90%;
background: #fff;
border-radius: 24rpx;
overflow: hidden;
box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.15);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 32rpx 40rpx;
border-bottom: 2rpx solid rgba(255, 255, 255, 0.2);
background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}
.modal-header .modal-title {
color: #fff;
}
.modal-header .modal-close {
color: #fff;
opacity: 0.9;
font-size: 40rpx;
width: 48rpx;
height: 48rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}
.modal-header .modal-close:active {
background: rgba(255, 255, 255, 0.3);
transform: scale(0.95);
}
.modal-body {
padding: 40rpx;
}
.score-input-group {
margin-bottom: 32rpx;
}
.score-input-group:last-child {
margin-bottom: 0;
}
.input-label {
display: block;
font-size: 28rpx;
color: #333;
font-weight: 500;
margin-bottom: 12rpx;
}
.score-input {
width: 100%;
height: 88rpx;
background: #fff;
border-radius: 12rpx;
padding: 0 24rpx;
font-size: 32rpx;
color: #333;
border: 2rpx solid #e0e0e0;
box-sizing: border-box;
transition: all 0.3s ease;
}
.score-input:focus {
border-color: #ff6b35;
background: #fff5f0;
}
.modal-footer {
display: flex;
gap: 20rpx;
padding: 32rpx 40rpx;
border-top: 2rpx solid #f0f0f0;
background: #fafafa;
}
.modal-btn {
flex: 1;
height: 88rpx;
border-radius: 44rpx;
font-size: 32rpx;
font-weight: 600;
border: none;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}
.modal-btn:active {
transform: scale(0.98);
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15);
}
.cancel-btn {
background: #fff;
color: #666;
border: 2rpx solid #e0e0e0;
}
.cancel-btn:active {
background: #f5f5f5;
}
.modal-btn.submit-btn {
background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
color: #fff;
box-shadow: 0 4rpx 16rpx rgba(255, 107, 53, 0.3);
}
.modal-btn.submit-btn:active {
background: linear-gradient(135deg, #e55a2b 0%, #e67e2f 100%);
box-shadow: 0 2rpx 8rpx rgba(255, 107, 53, 0.4);
}