/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 头部样式 */
header {
    background-color: #333;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.logo-number {
    color: #ff6b01;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.language-selector {
    position: relative;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lang-btn i {
    margin-left: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
}

.language-selector:hover .language-dropdown {
    display: block;
}

/* 主容器样式 */
.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #f0f0f0;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #0e566c;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    background-color: #e0e0e0;
}

.nav-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 内容区域样式 */
.content {
    flex: 1;
    padding: 20px;
}

/* 英雄区域样式 */
.hero {
    background-color: #0e566c;
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.best-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #0e566c;
    color: white;
    padding: 15px 30px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.best-badge i {
    margin-right: 10px;
    color: #ff6b01;
}

/* 游戏网格样式 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.game-card h3 {
    padding: 15px;
    font-size: 18px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: none;
    }
    
    .sidebar.active {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .game-card img {
        height: 120px;
    }
    
    .game-card h3 {
        font-size: 16px;
        padding: 10px;
    }
}