/* 现代化科技感样式改造 */
:root {
    --primary-blue: #00f2fe;
    --secondary-blue: #4facfe;
    --accent-purple: #9d50bb;
    --danger-red: #ff416c;
    --success-green: #00ff88;
    --warning-orange: #ff8c00;
    --dark-bg: #0a0f1a;
    --darker-bg: #050811;
    --card-bg: rgba(16, 18, 27, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #00f2fe;
}

/* 基础样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f2e 50%, #2d3746 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px;
    line-height: 1.6;
    position: relative;
}

/* 动态背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(157, 80, 187, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 65, 108, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 容器样式 - 现代化改造 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏现代化设计 */
.nav-command-center {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-command-center.scrolled {
    background: rgba(10, 15, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 900;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    animation: hologram 3s ease-in-out infinite;
}

@keyframes hologram {
    0%, 100% {
        opacity: 1;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.8;
        filter: hue-rotate(45deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.2), transparent);
    transition: left 0.6s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--glass-bg);
    box-shadow:
        0 8px 32px rgba(0, 242, 254, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(157, 80, 187, 0.1));
    border: 1px solid rgba(0, 242, 254, 0.3);
}

/* 游戏网格现代化设计 - 修改为5列 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem; /* 增加间距以适应加宽的卡片 */
    position: relative;
    z-index: 1;
}

/* 游戏卡片现代化设计 - 调整尺寸适应5列 */
.game-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    min-height: 380px;
    /* 加宽游戏卡片 */
    transform: scale(1.05);
    /* 添加下边距 */
    margin-bottom: 1.5rem;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple), var(--danger-red));
    z-index: 2;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.3);
    border-color: rgba(0, 242, 254, 0.5);
    z-index: 10;
}

.game-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-thumbnail {
    transform: scale(1.1);
    filter: brightness(1.2) contrast(1.1);
}

.game-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 242, 254, 0.1) 0%,
            rgba(157, 80, 187, 0.1) 50%,
            rgba(255, 65, 108, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.game-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: linear-gradient(135deg, var(--danger-red), var(--warning-orange));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
}

.game-content {
    padding: 1.2rem;
}

.game-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.game-category {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--warning-orange);
    font-size: 0.8rem;
    font-weight: 600;
}

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

.btn {
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* 响应式设计 - 保持5列布局 */
@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .game-card {
        min-height: 350px;
    }
    
    .game-image {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .game-card {
        min-height: 320px;
        margin: 0;
        max-width: none;
    }
    
    .game-image {
        height: 130px;
    }
    
    .game-content {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 0.9rem;
    }
    
    .game-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .game-card {
        min-height: 280px;
        margin: 0;
        max-width: none;
    }
    
    .game-image {
        height: 120px;
    }
}

/* 其他样式保持不变... */