yingsa/miniprogram/pages/match/challenge-detail/index.wxss
ethanfly 74ed19eee1 feat: 新增选手资料页面并优化界面设计
- 新增选手资料页面,支持查看选手信息及比赛记录
- 添加多个SVG图标替换原有emoji,提升视觉一致性
- 扩展CSS变量系统,增加信息、成功、警告、危险等状态颜色
- 优化多个页面的样式,统一使用CSS变量和现代设计语言
- 修复可选链操作符兼容性问题,改用传统条件判断
- 改进数据加载逻辑,使用Object.assign替代展开运算符
- 调整开发环境配置,使用本地服务器地址
2026-01-30 02:24:03 +08:00

385 lines
6.4 KiB
Plaintext

.page-container {
min-height: 100vh;
background: linear-gradient(135deg, var(--bg-page) 0%, var(--primary-soft) 100%);
padding: 20rpx;
}
.loading-container {
display: flex;
justify-content: center;
align-items: center;
height: 60vh;
color: var(--text-secondary);
}
.match-info {
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 40rpx;
box-shadow: var(--shadow-card);
}
.match-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40rpx;
padding-bottom: 30rpx;
border-bottom: 2rpx solid var(--border-soft);
}
.match-title {
font-size: 36rpx;
font-weight: 600;
color: var(--text-primary);
}
.match-status {
padding: 8rpx 20rpx;
border-radius: 20rpx;
font-size: 24rpx;
}
.status-0 {
background: var(--warning-soft);
color: var(--warning-text);
}
.status-1 {
background: var(--info-soft);
color: var(--info-text);
}
.status-2 {
background: var(--success-soft);
color: var(--success-text);
}
.status-3 {
background: var(--danger-soft);
color: var(--danger-text);
}
.opponent-section {
margin-bottom: 40rpx;
}
.opponent-card {
margin-bottom: 30rpx;
}
.opponent-label {
font-size: 24rpx;
color: var(--text-muted);
margin-bottom: 20rpx;
}
.opponent-info {
display: flex;
align-items: center;
gap: 24rpx;
}
.opponent-avatar {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
border: 4rpx solid var(--border-light);
}
.opponent-details {
flex: 1;
display: flex;
flex-direction: column;
gap: 8rpx;
}
.opponent-name {
font-size: 32rpx;
font-weight: 600;
color: var(--text-primary);
}
.opponent-level {
font-size: 24rpx;
color: var(--text-secondary);
}
.vs-divider {
text-align: center;
margin: 30rpx 0;
font-size: 32rpx;
font-weight: 600;
color: var(--text-muted);
}
.match-progress {
margin-bottom: 40rpx;
padding-top: 30rpx;
border-top: 2rpx solid var(--border-soft);
}
.progress-title {
font-size: 28rpx;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 20rpx;
}
.game-item {
background: var(--bg-soft);
border-radius: var(--radius-md);
padding: 24rpx;
margin-bottom: 16rpx;
}
.game-score {
display: flex;
align-items: center;
margin-bottom: 12rpx;
}
.score-label {
font-size: 24rpx;
color: var(--text-secondary);
}
.score-value {
font-size: 32rpx;
font-weight: 600;
color: var(--text-primary);
margin-left: 12rpx;
}
.game-status {
font-size: 24rpx;
color: var(--text-muted);
}
.confirm-tip {
margin-top: 16rpx;
padding: 16rpx 20rpx;
background: var(--primary-gradient-soft);
border-radius: var(--radius-sm);
border-left: 4rpx solid var(--primary);
box-shadow: var(--shadow-sm);
}
.confirm-tip .tip-text {
font-size: 26rpx;
color: var(--primary-dark);
font-weight: 500;
}
.action-buttons {
display: flex;
gap: 20rpx;
margin-top: 40rpx;
}
.no-action-tip {
margin-top: 40rpx;
padding: 30rpx;
text-align: center;
background: var(--bg-soft);
border-radius: var(--radius-md);
}
.tip-text {
font-size: 28rpx;
color: var(--text-muted);
}
.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: var(--primary-gradient);
color: #fff;
box-shadow: var(--shadow-primary);
}
.accept-btn:active {
background: var(--primary-dark);
box-shadow: var(--shadow-md);
}
.reject-btn {
background: var(--bg-white);
color: var(--text-secondary);
border: 2rpx solid var(--border-light);
}
.submit-btn {
background: var(--primary-gradient);
color: #fff;
box-shadow: var(--shadow-primary);
}
.submit-btn:active {
background: var(--primary-dark);
box-shadow: var(--shadow-md);
}
.confirm-btn {
background: var(--primary-gradient);
color: #fff;
box-shadow: var(--shadow-primary);
}
.confirm-btn:active {
background: var(--primary-dark);
box-shadow: var(--shadow-md);
}
/* 填写比分弹框 */
.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: var(--bg-card);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-lg);
}
.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: var(--primary-gradient);
}
.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: var(--text-primary);
font-weight: 500;
margin-bottom: 12rpx;
}
.score-input {
width: 100%;
height: 88rpx;
background: var(--bg-white);
border-radius: var(--radius-sm);
padding: 0 24rpx;
font-size: 32rpx;
color: var(--text-primary);
border: 2rpx solid var(--border-light);
box-sizing: border-box;
transition: all 0.3s ease;
}
.score-input:focus {
border-color: var(--primary);
background: var(--primary-soft);
}
.modal-footer {
display: flex;
gap: 20rpx;
padding: 32rpx 40rpx;
border-top: 2rpx solid var(--border-soft);
background: var(--bg-card-hover);
}
.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: var(--shadow-sm);
}
.modal-btn:active {
transform: scale(0.98);
box-shadow: var(--shadow-md);
}
.cancel-btn {
background: var(--bg-white);
color: var(--text-secondary);
border: 2rpx solid var(--border-light);
}
.cancel-btn:active {
background: var(--bg-soft);
}
.modal-btn.submit-btn {
background: var(--primary-gradient);
color: #fff;
box-shadow: var(--shadow-primary);
}
.modal-btn.submit-btn:active {
background: var(--primary-dark);
box-shadow: var(--shadow-md);
}