* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 动画关键帧定义 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(-5deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes count-up {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

:root {
    --primary-blue: #1e3a8a;
    --dark-blue: #0f172a;
    --accent-blue: #3b82f6;
    --gold: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.1);
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header Styles */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a,
.nav-links span {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-block;
}

.nav-links a:hover {
    background: var(--bg-card);
    color: var(--gold);
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    color: var(--gold);
}

.user-name {
    color: var(--gold);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
}

/* 漂浮国旗容器 */
.flags-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-flag {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-flag:nth-child(odd) {
    animation: float-slow 8s ease-in-out infinite;
}

.floating-flag:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.floating-flag:nth-child(2) { top: 60%; left: 3%; animation-delay: 1s; }
.floating-flag:nth-child(3) { top: 30%; right: 5%; animation-delay: 2s; }
.floating-flag:nth-child(4) { top: 70%; right: 3%; animation-delay: 3s; }
.floating-flag:nth-child(5) { top: 20%; left: 15%; animation-delay: 4s; }
.floating-flag:nth-child(6) { top: 80%; right: 15%; animation-delay: 5s; }
.floating-flag:nth-child(7) { top: 45%; left: 8%; animation-delay: 1.5s; }
.floating-flag:nth-child(8) { top: 15%; right: 12%; animation-delay: 2.5s; }
.floating-flag:nth-child(9) { top: 55%; left: 12%; animation-delay: 3.5s; }
.floating-flag:nth-child(10) { top: 85%; left: 7%; animation-delay: 4.5s; }

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    animation: fade-in-up 1s ease-out;
}

.countdown-timer {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: inline-block;
    animation: pulse-glow 3s ease-in-out infinite;
}

.countdown-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-display {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce-in 0.6s ease-out backwards;
}

.countdown-item:nth-child(1) { animation-delay: 0s; }
.countdown-item:nth-child(2) { animation-delay: 0.1s; }
.countdown-item:nth-child(3) { animation-delay: 0.2s; }
.countdown-item:nth-child(4) { animation-delay: 0.3s; }

.countdown-number {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    animation: count-up 0.5s ease-out;
}

.countdown-number:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.countdown-unit {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-primary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary-hero:hover::before {
    left: 100%;
}

.btn-primary-hero:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5);
}

.btn-secondary-hero {
    background: var(--bg-card);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.btn-secondary-hero:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-flag {
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.7;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.floating-flag:nth-child(odd) {
    animation: float-slow 8s ease-in-out infinite;
}

.floating-flag:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.floating-flag:nth-child(2) { top: 60%; left: 3%; animation-delay: 1s; }
.floating-flag:nth-child(3) { top: 30%; right: 5%; animation-delay: 2s; }
.floating-flag:nth-child(4) { top: 70%; right: 3%; animation-delay: 3s; }
.floating-flag:nth-child(5) { top: 20%; left: 15%; animation-delay: 4s; }
.floating-flag:nth-child(6) { top: 80%; right: 15%; animation-delay: 5s; }
.floating-flag:nth-child(7) { top: 45%; left: 8%; animation-delay: 1.5s; }
.floating-flag:nth-child(8) { top: 15%; right: 12%; animation-delay: 2.5s; }
.floating-flag:nth-child(9) { top: 55%; left: 12%; animation-delay: 3.5s; }
.floating-flag:nth-child(10) { top: 85%; left: 7%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.match-card-modern {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    animation: slide-in 0.6s ease-out backwards;
}

.match-card-modern:nth-child(1) { animation-delay: 0.05s; }
.match-card-modern:nth-child(2) { animation-delay: 0.1s; }
.match-card-modern:nth-child(3) { animation-delay: 0.15s; }
.match-card-modern:nth-child(4) { animation-delay: 0.2s; }
.match-card-modern:nth-child(5) { animation-delay: 0.25s; }
.match-card-modern:nth-child(6) { animation-delay: 0.3s; }

.match-card-modern:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(245, 158, 11, 0.1);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.status-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.live {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: pulse 2s infinite;
}

.status-badge.finished {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.match-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.team-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.match-card-modern:hover .team-flag {
    transform: scale(1.15);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    color: #000000;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.score-placeholder {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.group-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.view-detail {
    color: var(--gold);
    font-weight: 500;
    font-size: 0.9rem;
}

/* View All Section */
.view-all-section {
    text-align: center;
    margin-top: 2rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: 2px solid rgba(245, 158, 11, 0.5);
    color: var(--gold);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gold);
    color: white;
}

/* 积分榜样式 */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.group-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fade-in-up 0.8s ease-out backwards;
}

.group-card:nth-child(1) { animation-delay: 0.05s; }
.group-card:nth-child(2) { animation-delay: 0.1s; }
.group-card:nth-child(3) { animation-delay: 0.15s; }
.group-card:nth-child(4) { animation-delay: 0.2s; }
.group-card:nth-child(5) { animation-delay: 0.25s; }
.group-card:nth-child(6) { animation-delay: 0.3s; }

.group-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.group-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.group-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.group-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.group-stats {
    display: flex;
    gap: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.group-card-body {
    padding: 0.5rem 0;
}

.team-row {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: slide-in 0.5s ease-out backwards;
}

.team-row:nth-child(1) { animation-delay: 0.1s; }
.team-row:nth-child(2) { animation-delay: 0.2s; }
.team-row:nth-child(3) { animation-delay: 0.3s; }
.team-row:nth-child(4) { animation-delay: 0.4s; }

.team-row:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(5px);
    border-left: 3px solid #3b82f6;
}

.team-row.qualified {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid #10b981;
}

.team-row.qualified:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateX(5px);
}

.team-row:last-child {
    border-bottom: none;
}

.rank-number {
    width: 30px;
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.team-row:hover .rank-number {
    transform: scale(1.2);
    color: #3b82f6;
}

.team-info-cell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.team-flag-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.team-flag-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    margin-bottom: 1rem;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.team-info h2 {
    margin: 0;
    color: #000000;
    font-size: 1.5rem;
    text-align: center;
}

.team-row:hover .team-flag-small {
    transform: scale(1.3) rotate(5deg);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.team-name {
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
}

.team-stats {
    display: flex;
    gap: 1.2rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.team-stats .points {
    color: #f59e0b;
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 35px;
    text-align: center;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-content p {
    color: var(--text-secondary);
}

/* Schedule Page Styles */
.schedule-filters {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border-color: transparent;
}

.date-divider {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
    position: relative;
}

.date-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border-light);
}

.date-divider span {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Match Detail Page */
.match-detail-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.match-detail-header {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.match-date-badge,
.match-info-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

.match-detail-teams {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.team-info {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.team-info h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.match-score-display {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
}

.live-indicator {
    color: var(--danger);
    font-weight: 600;
    animation: pulse 2s infinite;
    font-size: 1.1rem;
}

.finished-indicator {
    color: var(--success);
    font-weight: 600;
    font-size: 1.1rem;
}

.upcoming-indicator {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--gold);
}



.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

/* AI Prediction Section */
.ai-prediction-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: left;
}

.section-header h3 {
    color: var(--gold);
    font-size: 1.5rem;
}

.btn-small {
    width: auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.ai-prediction-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    line-height: 1.8;
    color: #ccc;
}

.ai-prediction-placeholder {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(245, 158, 11, 0.95);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    z-index: 2000;
    animation: slideDown 0.3s ease;
}

.flash-message.success {
    background: rgba(16, 185, 129, 0.95);
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.95);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Auth Pages */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

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

.back-home {
    text-align: center;
    margin-top: 1.5rem;
}

.back-home a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-home a:hover {
    color: var(--gold);
}



/* About Page */
.about-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
}

.about-content h2 {
    color: var(--gold);
    margin: 2rem 0 1rem;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: #ccc;
    margin-bottom: 1rem;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.host-countries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.host-country {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.host-country img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.host-country h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.host-country p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* AI Predict Page */
.ai-predict-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
}

.match-preview {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

.teams-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.teams-display .team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.match-preview .match-info {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.predict-section {
    text-align: center;
    padding: 2rem;
}

.predict-hint {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1.1rem 3rem;
    font-size: 1.2rem;
}

.prediction-result {
    margin-top: 2rem;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.result-header h3 {
    color: var(--gold);
    font-size: 1.5rem;
}

.prediction-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    line-height: 1.8;
    color: #ccc;
    white-space: pre-wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown-number {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    nav {
        justify-content: center;
        flex-direction: column;
    }
    
    .nav-links {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .nav-links a,
    .nav-links span {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    .match-detail-teams {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .team-info h2 {
        font-size: 1.4rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .countdown-display {
        gap: 0.5rem;
    }
    
    .countdown-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .countdown-unit {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .match-teams {
        gap: 0.5rem;
    }
    
    .team-flag {
        width: 45px;
        height: 45px;
    }
    
    .team-name {
        font-size: 0.85rem;
    }
    
    .match-detail-card,
    .ai-prediction-section {
        padding: 1.25rem;
    }
}

/* ==================== AD SLOT STYLES ==================== */
/* 广告位占位符样式 - 预留广告位置 */

/* 首页顶部横幅广告 */
.ad-slot-top-banner {
    width: 100%;
    min-height: 100px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.ad-slot-top-banner::before {
    content: '广告位 - 顶部横幅';
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 首页侧边栏广告 */
.ad-slot-sidebar {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    position: relative;
}

.ad-slot-sidebar::before {
    content: '广告位 - 侧边栏';
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* 赛程页面中间广告 */
.ad-slot-mid-banner {
    width: 100%;
    min-height: 120px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(245, 158, 11, 0.1) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.ad-slot-mid-banner::before {
    content: '广告位 - 赛程中部';
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 比赛详情页广告 */
.ad-slot-detail-sidebar {
    width: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    position: relative;
}

.ad-slot-detail-sidebar::before {
    content: '广告位 - 比赛详情';
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 页脚广告 */
.ad-slot-footer {
    width: 100%;
    min-height: 80px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.ad-slot-footer::before {
    content: '广告位 - 页脚';
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 内容流广告 */
.ad-slot-inline {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
}

.ad-slot-inline::before {
    content: '广告位 - 内容流';
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* 浮动侧边广告 */
.ad-slot-floating {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    min-height: 240px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.ad-slot-floating::before {
    content: '广告位 - 浮动侧边';
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* 响应式广告位 */
@media (max-width: 1024px) {
    .ad-slot-floating {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-slot-top-banner {
        min-height: 80px;
    }
    
    .ad-slot-sidebar,
    .ad-slot-detail-sidebar {
        min-height: 200px;
    }
    
    .ad-slot-mid-banner {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .ad-slot-top-banner,
    .ad-slot-mid-banner,
    .ad-slot-footer,
    .ad-slot-inline {
        min-height: 60px;
    }
    
    .ad-slot-top-banner::before,
    .ad-slot-mid-banner::before,
    .ad-slot-footer::before,
    .ad-slot-inline::before {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

/* ==================== MOBILE NAVIGATION STYLES ==================== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2000;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Navigation Panel */
.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
    z-index: 1999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    border-left: 1px solid var(--border-light);
    overflow-y: auto;
}

.mobile-nav-panel.active {
    right: 0;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-links li {
    width: 100%;
}

.mobile-nav-links a,
.mobile-nav-links span {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1rem 0;
}

.mobile-user-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-user-info .user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    display: block;
}

/* Bottom Navigation Bar (Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding: 0.5rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
    z-index: 1500;
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
}

.bottom-nav-item .nav-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.nav-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.bottom-nav-item.active .nav-icon-img,
.bottom-nav-item:hover .nav-icon-img {
    opacity: 1;
}

.bottom-nav-item .nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Quick Action Grid (Mobile Home Page) */
.mobile-quick-actions {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-action-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Page Padding for Bottom Nav */
body.has-bottom-nav {
    padding-bottom: 80px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .bottom-nav {
        display: block;
    }

    .mobile-quick-actions {
        display: grid;
    }

    /* Hide floating ads on mobile */
    .ad-slot-floating {
        display: none;
    }

    /* Optimize hero section for mobile */
    .hero-section {
        min-height: 70vh;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
    }

    /* Adjust flags container for mobile */
    .flags-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-flag {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-panel {
        width: 100%;
        max-width: 100%;
    }

    .quick-action-card {
        padding: 1.25rem;
    }

    .quick-action-icon {
        font-size: 2rem;
    }

    .bottom-nav-item .nav-icon {
        font-size: 1.3rem;
    }

    .bottom-nav-item .nav-label {
        font-size: 0.7rem;
    }
}
