- Change VITE_API_URL in .env from localhost:3000 to localhost:3001 for backend access. - Update index.html to replace favicon with logo.png and ensure proper HTML structure. - Add new dependencies for WangEditor in package.json and package-lock.json to support rich text editing features.
410 lines
6.9 KiB
Plaintext
410 lines
6.9 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-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.meta-tag {
|
|
font-size: 22rpx;
|
|
line-height: 1;
|
|
padding: 8rpx 14rpx;
|
|
border-radius: 999rpx;
|
|
background: var(--bg-soft);
|
|
color: var(--text-secondary);
|
|
border: 2rpx solid var(--border-soft);
|
|
}
|
|
|
|
.meta-level {
|
|
background: rgba(93, 156, 236, 0.12);
|
|
color: rgba(45, 120, 210, 1);
|
|
border-color: rgba(93, 156, 236, 0.28);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.meta-power {
|
|
background: rgba(245, 154, 35, 0.12);
|
|
color: rgba(210, 115, 0, 1);
|
|
border-color: rgba(245, 154, 35, 0.28);
|
|
}
|
|
|
|
.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);
|
|
}
|