/* 首页样式 */

.hero {
    background: linear-gradient(rgba(15, 25, 35, 0.8), rgba(15, 25, 35, 0.9)), url('https://picsum.photos/1200/600?random=1');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #e0e0e0;
}

.hero .btn {
    display: inline-block;
    padding: 14px 32px;
    background: #4ecca3;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.hero .btn:hover {
    background: #3da58a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #4ecca3;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #4ecca3;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.game-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(78, 204, 163, 0.2);
    color: #4ecca3;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.game-rating {
    color: #f39c12;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.game-rating i {
    margin-right: 0.2rem;
}

.game-actions {
    display: flex;
    gap: 1rem;
}

.game-actions .btn-primary,
.game-actions .btn-secondary {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4ecca3;
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: #4ecca3;
    border: 1px solid #4ecca3;
}

.game-actions .btn-primary:hover,
.game-actions .btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

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

    nav ul li {
        margin: 5px 10px;
    }

    .search-box {
        width: 100%;
        max-width: 400px;
    }

    .hero {
        padding: 60px 20px;
    }

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

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

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

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

    .search-box input {
        width: 180px;
    }
}