* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f4f6f9;
    color: #1a1a2e;
    line-height: 1.6;
}

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

/* 导航 */
.navbar {
    background: linear-gradient(135deg, #0a3d62, #1e3799);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    color: #dfe6e9;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-menu li a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: #0a3d62;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .nav-menu.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}

/* 倒计时 */
.countdown-section {
    background: linear-gradient(135deg, #0a3d62, #2c3e50);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.countdown-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-box div {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    min-width: 100px;
}

.countdown-box span {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.countdown-box small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.next-match-info {
    margin-top: 20px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 通用标题 */
.section {
    padding: 60px 0;
}

.bg-light {
    background: #fff;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #0a3d62;
    text-align: center;
}

/* 比赛卡片 */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.match-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid #1e3799;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.match-card.live {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5, #fff);
}

.match-card.completed {
    border-left-color: #27ae60;
    opacity: 0.85;
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666;
}

.match-status {
    font-weight: 600;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.team {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag {
    font-size: 1.3rem;
}

.score {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3799;
    min-width: 70px;
    text-align: center;
}

.match-time {
    text-align: center;
    margin-top: 12px;
    color: #888;
    font-size: 0.9rem;
}

/* 分组 */
.group-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.group-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.group-card h3 {
    margin-bottom: 15px;
    color: #1e3799;
}

.group-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.group-card th, .group-card td {
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.group-card th {
    background: #f8f9fa;
    font-weight: 600;
}

/* 淘汰赛 */
.bracket-placeholder {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.bracket-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.bracket-node {
    background: #f0f4ff;
    padding: 15px 20px;
    border-radius: 12px;
    min-width: 180px;
    border: 1px solid #d4e0ff;
}

.bracket-node small {
    display: block;
    color: #888;
    margin-top: 5px;
}

/* 球队球星 */
.team-player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .team-player-grid {
        grid-template-columns: 1fr;
    }
}

.team-list, .player-list {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.team-list h3, .player-list h3 {
    margin-bottom: 15px;
    color: #1e3799;
}

.team-list ul, .player-list ul {
    list-style: none;
    margin-bottom: 20px;
}

.team-list li, .player-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* 统计 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-card h3 {
    margin-bottom: 15px;
    color: #1e3799;
}

.stat-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.stat-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* 按钮 */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e3799, #0a3d62);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,55,153,0.4);
}

/* 登录 */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #0a3d62;
}

.login-box input {
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: border 0.3s;
}

.login-box input:focus {
    border-color: #1e3799;
    outline: none;
}

/* 管理后台表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #0a3d62;
    color: #fff;
}

.admin-table input, .admin-table select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.error {
    color: #e74c3c;
    background: #fde8e8;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.success {
    color: #27ae60;
    background: #e8f8e8;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 页脚 */
footer {
    background: #0a3d62;
    color: #dfe6e9;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer a {
    color: #74b9ff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}