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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

header {
    background: rgba(0,0,0,0.5);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav a:hover, nav a.active {
    color: #f39c12;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f39c12;
    transition: width 0.3s;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.hero {
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=esports%20gaming%20tournament%20neon%20lights%20stadium&image_size=landscape_16_9') no-repeat center center/cover;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243,156,18,0.3), rgba(231,76,60,0.3));
}

.hero-banner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-banner p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #f1c40f;
}

.hero-subtitle {
    font-size: 1rem !important;
    color: #ddd !important;
    font-weight: normal !important;
    margin-bottom: 2rem !important;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    color: white;
    text-decoration: none;
    border-radius: 35px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243,156,18,0.4);
}

.btn.secondary {
    background: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn.secondary:hover {
    background: white;
    color: #16213e;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    padding: 2rem 5%;
    background: rgba(0,0,0,0.3);
}

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

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f39c12;
}

.stat-item p {
    color: #999;
    margin-top: 0.25rem;
}

.daily-events {
    padding: 3rem 5%;
}

.daily-events h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #f39c12;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 1.2rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.event-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: #f39c12;
}

.event-item .time {
    font-size: 1.1rem;
    color: #f39c12;
    font-weight: 600;
    min-width: 80px;
}

.event-item .event-info {
    flex: 1;
    margin: 0 1rem;
}

.event-item .event-info .name {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.event-item .event-info p {
    color: #999;
    font-size: 0.9rem;
}

.event-item .prize {
    font-size: 1.1rem;
    color: #2ecc71;
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.mini-btn {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    border: none;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.featured-team {
    padding: 3rem 5%;
    background: rgba(0,0,0,0.3);
}

.featured-team h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #f39c12;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: #999;
    font-size: 0.9rem;
}

.page-title {
    padding: 2rem 5%;
    text-align: center;
}

.page-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #999;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 5%;
    background: rgba(0,0,0,0.3);
    flex-wrap: wrap;
}

.filter-tabs button {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.filter-tabs button.active, .filter-tabs button:hover {
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    border-color: transparent;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 5%;
}

.event-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.event-card .event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f39c12;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card h3 {
    padding: 1rem 1.5rem 0;
    margin-bottom: 0.5rem;
}

.event-card .schedule {
    padding: 0 1.5rem;
    color: #f39c12;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-card .description {
    padding: 0 1.5rem;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-card .event-info {
    padding: 0 1.5rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.event-card .event-info span {
    color: #999;
    font-size: 0.85rem;
}

.event-card .prize {
    padding: 0 1.5rem;
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-card .event-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
}

.event-card .event-footer .players {
    color: #999;
    font-size: 0.9rem;
}

.event-card .event-footer .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.ranking-table {
    padding: 3rem 5%;
    overflow-x: auto;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ranking-table th {
    background: rgba(243,156,18,0.2);
    color: #f39c12;
}

.ranking-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.ranking-table .rank {
    width: 50px;
}

.ranking-table .team {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.ranking-table .team img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ranking-table .points {
    color: #2ecc71;
    font-weight: 600;
}

.schedule-list {
    padding: 3rem 5%;
}

.schedule-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.schedule-item .time {
    width: 100px;
    text-align: center;
}

.schedule-item .time .date {
    color: #f39c12;
    font-weight: 600;
}

.schedule-item .time .hour {
    color: #999;
    font-size: 0.9rem;
}

.schedule-item .vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
}

.schedule-item .vs span {
    background: rgba(243,156,18,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #f39c12;
}

.schedule-item .team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.schedule-item .team img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.schedule-item .team-name {
    font-weight: 600;
}

.schedule-item .score {
    color: #f39c12;
    font-weight: 700;
    font-size: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3rem 5%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay p {
    color: #fff;
    font-size: 0.9rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 5%;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #999;
    font-size: 0.9rem;
}

.guide-content {
    padding: 3rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.guide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #f39c12;
}

.guide-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.guide-content p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.guide-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.guide-content li {
    padding: 0.5rem 0;
    color: #999;
    position: relative;
    padding-left: 1.5rem;
}

.guide-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f39c12;
}

footer {
    background: rgba(0,0,0,0.3);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-banner h2 {
        font-size: 1.8rem;
    }
    
    .event-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .event-item .prize {
        text-align: center;
    }
    
    .stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .teams-grid, .events-grid, .gallery-grid, .contact-info {
        grid-template-columns: 1fr;
    }
    
    .schedule-item {
        flex-wrap: wrap;
        text-align: center;
    }
    
    .schedule-item .team {
        justify-content: center;
    }
    
    .ranking-table {
        font-size: 0.9rem;
    }
}