* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4a6bff;
    --secondary: #ff5d8f;
    --dark: #151a30;
    --darker: #0d111c;
    --light: #f0f4ff;
    --card-bg: #1e253b;
}

body {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    min-height: 100vh;
    padding-bottom: 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3%; 
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    margin-right: 8px;
    font-size: 26px;
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 分类筛选样式 */
.categories {
    padding: 15px 3%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 12px;
    color: var(--primary);
}

.category-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.category-list::-webkit-scrollbar {
    height: 5px;
}

.category-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.category {
    min-width: 120px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.category h3 {
    font-size: 0.9rem;
}

/* 游戏网格布局 */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 3%;
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(74, 107, 255, 0.25);
    border-color: rgba(74, 107, 255, 0.3);
}

.game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.game-thumbnail {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 15px 15px;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-title a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.game-title a:hover {
    text-decoration: none;
}

.game-description {
    color: #a0aec0;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    line-height: 1.4;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #718096;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 底部区域 */
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 3% 15px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 15px;
    }
    
    .game-thumbnail {
        height: 120px;
    }
    
    .category {
        min-width: 100px;
        padding: 10px;
    }
    
    .category i {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
    
    .games-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* 页脚 */
.footer {
    max-width: 1400px;
    margin: 40px auto 20px;
    padding: 0 3%;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}


