* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    user-select: none;
}

body {
    background: url('../images/bg1.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.5s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 毛玻璃效果 */
.header-section, .games-section {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
}

/* 头部部分 */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 20px 30px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.navigation {
    display: flex;
    gap: 15px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 游戏部分 */
.games-section {
    color: white;
    height: 65vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* 游戏块样式 */
.game-block {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
}

.game-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-block:visited {
    color: white;
}

.game-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.game-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.game-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    flex-grow: 1;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 滚动条样式 */
.games-container::-webkit-scrollbar {
    width: 8px;
}

.games-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.games-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.games-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .games-section {
        height: auto;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .games-container {
        grid-template-columns: 1fr;
    }
} 