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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.glass-header {
    /* 1. 定位和尺寸 */
    /*position: fixed;*/
    /* 或者 sticky，根据需求 */
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;

    /* 2. 视觉样式 */
    background-color: rgba(0, 0, 0, 0.1);
    /* 半透明黑色背景 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* 底部细边框增强质感 */

    /* 3. 毛玻璃效果核心 */
    backdrop-filter: blur(12px);
    /* 模糊背景，数值越大越模糊 */
    -webkit-backdrop-filter: blur(12px);
    /* Safari 支持 */

    /* 4. 其他美化 */
    /*color: #333;*/
    /* 文字颜色，根据你的背景调整以确保可读性 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 轻微阴影增加层次感 */
}

.glass-footer {
    /* 1. 定位和尺寸 */
    /*position: fixed;*/
    /* 或者 sticky，根据需求 */
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;

    /* 2. 视觉样式 */
    background-color: rgba(0, 0, 0, 0.1);
    /* 半透明黑色背景 */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* 底部细边框增强质感 */

    /* 3. 毛玻璃效果核心 */
    backdrop-filter: blur(24px);
    /* 模糊背景，数值越大越模糊 */
    -webkit-backdrop-filter: blur(24px);
    /* Safari 支持 */

    /* 4. 其他美化 */
    /*color: #333;*/
    /* 文字颜色，根据你的背景调整以确保可读性 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 轻微阴影增加层次感 */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    font-weight: 500;
}

.nav-links a:hover {
    color: #3498db;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 游戏展示区样式 */
.games-section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

.games-grid-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: auto;
    max-width: 100%;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 300px;
    max-width: 400px;
}

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

.game-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.game-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-size: 1.4rem;
}


.game-info p {
    margin-bottom: 1.5rem;
    color: #666;
    flex-grow: 1;
}

.game-link {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s;
    text-decoration: none;
}

.game-link:hover {
    background-color: #c0392b;
}




/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    gap: 1.5rem;
}

.social-links li {
    margin: 0 0.5rem;
}

.social-links a {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

/* SVG图标样式 */
.social-icon {
    /*width: 24px;*/
    height: 32px; /* 原24px */
    fill: currentColor; /* 使SVG图标继承父元素的颜色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}