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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #003366;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.reset-btn {
    background-color: #e02127;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background-color: #c01117;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 主内容样式 */
main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.conference-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.conference {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.conference h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #003366;
    font-size: 1.5rem;
}

/* Bracket样式 */
.bracket {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.round {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.matchup {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.team {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team:hover {
    border-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team.winner {
    background-color: #003366;
    color: white;
    border-color: #003366;
    animation: pulse 1s ease-in-out;
}

.team::before {
    content: attr(data-seed);
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
}

.team.winner::before {
    color: rgba(255, 255, 255, 0.7);
}

/* 总决赛样式 */
.finals {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.finals h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #003366;
    font-size: 1.5rem;
}

.finals-bracket {
    justify-content: center;
}

.round-5 .matchup {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.round-6 {
    margin-top: 20px;
}

.round-6 .team {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .conference-container {
        flex-direction: column;
    }
    
    .bracket {
        flex-direction: column;
        align-items: center;
    }
    
    .round {
        width: 100%;
        max-width: 300px;
    }
    
    .round-5 .matchup {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .conference {
        padding: 15px;
    }
    
    .team {
        padding: 8px;
        font-size: 0.9rem;
    }
}