/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0066ff;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.login-btn, .register-btn {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.login-btn {
    color: #0066ff;
    border: 1px solid #0066ff;
}

.register-btn {
    background-color: #0066ff;
    color: #fff;
}

.login-btn:hover {
    background-color: #f0f7ff;
}

.register-btn:hover {
    background-color: #0052cc;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-content {
    color: #fff;
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.download-btn, .explore-btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.download-btn {
    background-color: #0066ff;
    color: #fff;
}

.explore-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid #fff;
}

.download-btn:hover {
    background-color: #0052cc;
}

.explore-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Featured Games section */
.featured-games {
    padding: 60px 0;
    background-color: #fff;
}

.featured-games h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

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

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.game-info p {
    color: #666;
    margin-bottom: 15px;
}

.play-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0066ff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.play-btn:hover {
    background-color: #0052cc;
}

/* News and Events section */
.news-events {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.news-section, .events-section {
    margin-bottom: 40px;
}

.news-section h2, .events-section h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.news-grid, .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card, .event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content p {
    color: #666;
    margin-bottom: 10px;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.event-card h3 {
    padding: 15px;
    font-size: 18px;
}

.event-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* Footer styles */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .main-nav {
        margin: 20px 0;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .game-grid,
    .news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
} 