/* home.css - 首页专用样式 */

/* 自定义变量 */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #1565c0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #00bcd4;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --purple-color: #9c27b0;
}

/* 通用样式 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
}

/* 卡片样式 */
.card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.card-header {
    border-bottom: none;
    padding: 1rem 1.25rem;
}

/* 赛事卡片 */
.tournament-card {
    background: white;
    border-radius: 8px;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 比赛项目 */
.match-item {
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.match-item:hover {
    background-color: #f8f9fa;
}

.live-match {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.score-display .live-score {
    font-family: 'Arial Black', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 排名样式 */
.rank-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rank-top {
    color: white;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
}

.rank-circle span.rank-top {
    color: white !important;
}

.rank-circle span:nth-child(1) { background: #ffd700; }
.rank-circle span:nth-child(2) { background: #c0c0c0; }
.rank-circle span:nth-child(3) { background: #cd7f32; }

/* 选手卡片 */
.player-card {
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.player-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 新闻卡片 */
.news-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--info-color);
}

/* 状态颜色 */
.bg-purple {
    background-color: var(--purple-color) !important;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card-header h5, .card-header h6 {
        font-size: 1rem;
    }
    
    .match-item .row > div {
        padding: 0 5px;
    }
    
    .player-card {
        padding: 10px;
    }
}

/* 打印样式 */
@media print {
    .navbar, .card-footer, #backToTop {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}