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

:root {
    --primary-color: #FF9800;
    --primary-dark: #F57C00;
    --secondary-color: #E65100;
    --accent-color: #FFD54F;
    --bg-gradient: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
    --card-bg: #fff;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a7a;
    --border-color: #e8e8e8;
    --hover-bg: #fff8f0;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fafafa;
    min-height: 100vh;
}

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

.header {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 26px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.register-btn {
    padding: 10px 24px;
    background: var(--bg-gradient);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.hero {
    background: var(--bg-gradient);
    padding: 70px 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 28px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.trophy-icon {
    font-size: 80px;
    animation: bounce 2s infinite;
}

.medal-icon {
    font-size: 60px;
    animation: bounce 2s infinite 0.5s;
}

.award-icon {
    font-size: 50px;
    animation: bounce 2s infinite 1s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.featured-events {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.event-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    z-index: 1;
}

.event-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-info {
    padding: 16px;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.event-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.event-date,
.event-prize {
    font-size: 12px;
    color: var(--text-secondary);
}

.event-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-btn:hover {
    transform: translateY(-2px);
}

.event-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-categories {
    padding: 50px 0;
    background: var(--card-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.category-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.ranking-preview {
    padding: 50px 0;
}

.ranking-list {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.ranking-item:hover {
    background: var(--hover-bg);
}

.ranking-item.top {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.1), transparent);
}

.ranking-item .rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 16px;
}

.ranking-item.top .rank {
    background: var(--primary-color);
    color: #fff;
}

.player-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.points {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.cta-section {
    padding: 50px 0;
    background: var(--bg-gradient);
    text-align: center;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.page-header {
    background: var(--bg-gradient);
    padding: 50px 0;
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.events-section {
    padding: 50px 0;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 4px;
}

.filter-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary-color);
    color: #fff;
}

.status-filter {
    display: flex;
    gap: 8px;
}

.status-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.status-btn.active,
.status-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-item .event-image {
    width: 300px;
    flex-shrink: 0;
}

.event-content {
    flex: 1;
    padding: 20px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-content .event-title {
    font-size: 18px;
    margin-bottom: 0;
}

.event-tag {
    padding: 4px 12px;
    background: var(--hover-bg);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.event-content .event-desc {
    font-size: 14px;
    margin-bottom: 16px;
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.meta-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.event-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: #4CAF50;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.event-status.ended {
    background: #9E9E9E;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.ranking-section {
    padding: 50px 0;
}

.ranking-section .filter-tabs {
    justify-content: center;
    margin-bottom: 30px;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
    padding: 40px 0;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-item .medal {
    font-size: 48px;
    margin-bottom: 12px;
}

.podium-stand {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: var(--text-secondary);
    font-size: 24px;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
}

.podium-item.first .podium-stand {
    height: 100px;
    background: var(--primary-color);
    color: #fff;
}

.podium-item.second .podium-stand {
    height: 80px;
    background: #9E9E9E;
    color: #fff;
}

.podium-item.third .podium-stand {
    height: 60px;
    background: #FFA726;
    color: #fff;
}

.podium-item .player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
}

.podium-item .player-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.podium-item .points {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.ranking-table {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table-header {
    display: flex;
    padding: 16px 20px;
    background: #f8fafc;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.table-row {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.table-row:hover {
    background: var(--hover-bg);
}

.col-rank {
    width: 60px;
    text-align: center;
}

.col-rank.top1 { color: #FF9800; font-weight: 700; }
.col-rank.top2 { color: #9E9E9E; font-weight: 700; }
.col-rank.top3 { color: #FFA726; font-weight: 700; }

.col-name { flex: 1; }
.col-events { width: 100px; text-align: center; }
.col-wins { width: 80px; text-align: center; }
.col-points { width: 100px; text-align: right; font-weight: 600; color: var(--primary-color); }
.col-trend { width: 40px; text-align: center; }

.col-trend.up { color: #4CAF50; font-weight: 700; }
.col-trend.down { color: #F44336; font-weight: 700; }

.rules-section {
    padding: 50px 0;
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.rule-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rule-section .section-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-item {
    display: flex;
    gap: 16px;
}

.rule-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.rule-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.rule-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-section {
    padding: 50px 0;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vision-section {
    margin-bottom: 40px;
}

.vision-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vision-item {
    padding: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vision-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.vision-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vision-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-section {
    margin-bottom: 40px;
}

.stats-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 24px;
    background: var(--bg-gradient);
    border-radius: 12px;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.stat-card .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    flex: 1;
}

.contact-icon {
    font-size: 24px;
}

.contact-details h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-details p {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer {
    background: var(--text-primary);
    padding: 35px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-item .event-image {
        width: 100%;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}