/*
  game2030 多游戏主页样式表
  主题：未来科技感，深色背景，蓝色/绿色高光
  响应式设计，适配PC和移动端
*/

body {
    /* 设置深色背景和无衬线字体，突出科技感 */
    background: linear-gradient(135deg, #101522 0%, #1a233a 100%);
    color: #e0e6f0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    min-height: 100vh;
    /* 平滑字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-header {
    /* 顶部标题区，居中显示 */
    text-align: center;
    margin-top: 48px;
    margin-bottom: 32px;
}

.site-header h1 {
    font-size: 3rem;
    letter-spacing: 0.1em;
    color: #3ecfff;
    text-shadow: 0 2px 16px #1a8fff88;
    margin-bottom: 0.3em;
}

.site-header h2 {
    font-size: 1.5rem;
    color: #5fffb0;
    margin-bottom: 1em;
    text-shadow: 0 1px 8px #00ffb088;
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.6;
}

.game-list {
    /* 游戏卡片列表，使用Grid布局，响应式排列 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 48px auto;
    padding: 0 24px;
}

.game-card {
    /* 游戏卡片，带有高光和阴影，突出科技感 */
    background: rgba(24, 32, 56, 0.95);
    border-radius: 20px;
    box-shadow: 0 4px 32px #3ecfff22;
    border: 1.5px solid #3ecfff33;
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.18s, box-shadow 0.18s;
}

.game-card:hover, .game-card:focus-within {
    /* 鼠标悬停/聚焦时卡片放大和高光 */
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 48px #5fffb088;
    border-color: #5fffb0cc;
}

.game-info h3 {
    /* 游戏名称 */
    font-size: 1.4rem;
    color: #3ecfff;
    margin-bottom: 0.5em;
    letter-spacing: 0.05em;
}

.game-desc {
    /* 游戏简介 */
    font-size: 1.05rem;
    color: #e0e6f0;
    margin-bottom: 1.5em;
    text-align: center;
    min-height: 48px;
}

.game-btn {
    /* 游戏详情按钮，突出科技感交互 */
    display: inline-block;
    padding: 0.8em 2em;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(90deg, #3ecfff 0%, #5fffb0 100%);
    border: none;
    border-radius: 32px;
    box-shadow: 0 4px 24px #3ecfff44;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.08em;
    transition: transform 0.15s, box-shadow 0.15s;
}

.game-btn:hover, .game-btn:focus {
    /* 按钮悬停/聚焦效果 */
    transform: scale(1.06);
    box-shadow: 0 8px 32px #5fffb088;
}

/* 响应式设计：移动端适配 */
@media (max-width: 600px) {
    .site-header h1 {
        font-size: 2rem;
    }
    .site-header h2 {
        font-size: 1.1rem;
    }
    .intro {
        font-size: 1rem;
        max-width: 90vw;
    }
    .game-btn {
        font-size: 1rem;
        padding: 0.7em 1.5em;
    }
    .game-list {
        gap: 18px;
        padding: 0 6px;
    }
    .game-card {
        padding: 18px 8px 16px 8px;
    }
}

/* 独立游戏详情页样式 */
.game-detail {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 32px 0 48px 0;
}

.game-detail-content {
    background: rgba(24, 32, 56, 0.98);
    border-radius: 20px;
    box-shadow: 0 4px 32px #3ecfff22;
    border: 1.5px solid #3ecfff33;
    padding: 36px 32px 28px 32px;
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-detail-content .game-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    text-align: center;
}

.game-features {
    list-style: disc inside;
    color: #5fffb0;
    margin-bottom: 2em;
    padding-left: 0;
    text-align: left;
    width: 100%;
    max-width: 400px;
}

.game-features li {
    font-size: 1rem;
    margin-bottom: 0.5em;
    color: #e0e6f0;
    position: relative;
    padding-left: 1em;
}

.game-features li::before {
    content: "•";
    color: #3ecfff;
    position: absolute;
    left: 0;
}

.back-link {
    display: inline-block;
    margin-top: 2em;
    color: #3ecfff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.15s;
}

.back-link:hover, .back-link:focus {
    color: #5fffb0;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .game-detail-content {
        padding: 18px 8px 16px 8px;
    }
    .game-features {
        font-size: 0.95rem;
        max-width: 95vw;
    }
} 