/* match.css - 比赛页面公共样式 */

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #0a0a0f;
    color: #f0f0f0;
    min-height: 100vh;
    line-height: 1.5;
}

/* 加载动画 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* ========== 初始加载界面样式 ========== */

.initial-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.initial-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    animation: fadeIn 0.8s ease;
}

.welcome-logo {
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.welcome-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #00d4ff, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #a0a0b0;
    margin-bottom: 2rem;
    font-weight: 300;
}

.loading-container {
    margin: 2rem 0;
}

.initial-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.1);
    border-top-color: #00d4ff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1.2s linear infinite;
}

.loading-text {
    color: #00d4ff;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.system-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0b0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.feature-item i {
    font-size: 1.5rem;
    color: #00d4ff;
}

.feature-item:hover {
    color: #fff;
}

.feature-item:hover i {
    color: #ff6b6b;
}

/* ==================== 背景效果 ==================== */
/* 网格背景 */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.3;
}

/* 动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* ==================== 容器样式 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* ==================== 头部样式 ==================== */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo img {
    object-fit: contain;
    transition: all 0.3s ease;
}
.logo img:hover {
    transform: translateY(-5px) scale(1.05);
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    color: #a0a0b0;
}

/* ==================== 比赛信息卡片 ==================== */
.match-info {
    background: rgba(18, 18, 26, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.match-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.match-detail {
    text-align: center;
    padding: 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.detail-label {
    font-size: 0.9rem;
    color: #a0a0b0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f0f0;
}

/* ==================== 按钮和滚动条样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

.btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #0a0a0f;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

/* ==================== 页脚样式 ==================== */
footer {
    text-align: center;
    padding: 2rem;
    color: #a0a0b0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    margin-top: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    color: #a0a0b0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #00d4ff;
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 加载状态 ==================== */
.loading {
    text-align: center;
    padding: 40px;
    color: #a0a0b0;
    font-size: 1.1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.success {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .match-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .match-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .match-detail {
        padding: 12px;
    }
    
    .detail-label {
        font-size: 0.8rem;
    }
    
    .detail-value {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* 小手机设备 (小于480px) */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 5px;
    }
}