/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 - 黑色主题 */
:root {
    --primary-color: #ff2a55;
    --secondary-color: #8a2be2;
    --accent-color: #00bfff;
    --dark-color: #000000;
    --light-color: #121212;
    --text-color: #ffffff;
    --text-light: #e0e0e0;
    --font-main: 'Noto Sans SC', sans-serif;
    --font-game: 'Press Start 2P', cursive;
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--dark-color);
    background-image: radial-gradient(circle at 25% 25%, rgba(40, 40, 40, 0.1) 0%, rgba(0, 0, 0, 0) 70%),
                      radial-gradient(circle at 75% 75%, rgba(40, 40, 40, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #ff3355;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #5a189a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 9, 183, 0.3);
}

/* 禁用按钮样式 */
.btn-disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-disabled:hover {
    background-color: #ccc;
    color: #666;
    transform: none;
    box-shadow: none;
}

/* 导航栏样式 */
header {
    background-color: rgba(43, 45, 66, 0.95);
    color: var(--text-light);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.5);
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(10deg) scale(1.1);
}

.logo-container h1 {
    font-family: var(--font-game);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
    display: inline-block;
}

/* 移动端样式 - 调整为logo和标题右侧最下方 */
@media (max-width: 768px) {
    /* 修改header和导航结构，为语言切换器留出空间 */
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 10px;
    }
    
    /* 将logo和标题与语言切换器分开放置 */
    .logo-container {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 5px;
    }
    
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        align-self: flex-end;
        margin-top: 5px;
    }
    
    .language-switcher select {
        padding: 4px 8px;
        font-size: 10px;
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid #ddd;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* 调整移动端Logo大小 */
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-container h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* 桌面端样式 */
@media (min-width: 769px) {
    .language-switcher select {
        padding: 8px 12px;
        font-size: 14px;
        background-color: transparent;
        border: 1px solid var(--primary-color);
        border-radius: 4px;
        color: var(--text-color);
    }
}
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95)), url('https://picsum.photos/id/155/1950/1000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
}

/* 游戏展示区域样式 */
.games-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.games-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #ffffff;
    position: relative;
}

.games-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.game-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.game-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.game-info p {
    margin-bottom: 20px;
    color: #bbb;
}

/* 关于我们区域样式 */
.about-section {
    padding: 100px 0;
    background-color: #0a0a0a;
    color: var(--text-light);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 50px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-legal {
    width: 100%;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .games-section h2,
    .about-text h2 {
        font-size: 2rem;
    }
    
    .logo-container h1 {
        font-size: 1.4rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
}