/* ==================== Games 页面样式 ==================== */

.games-body {
    background: #ffffff;
    min-height: 100vh;
}

/* 页面标题区 */
.page-header {
    padding: 60px 0 40px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.page-header .page-title {
    font-family: Poppins, PingFang SC;
    font-size: 42px;
    background: linear-gradient(90deg, #181818 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-weight: 700;
}

.page-header .page-subtitle {
    font-family: PingFang SC;
    font-size: 16px;
    color: #666666;
    line-height: 24px;
}

/* 游戏分类导航 */
.games-nav-wrap {
    padding: 20px 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 64px;
    z-index: 90;
}

.games-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.games-nav-list li {
    margin: 0;
}

.games-nav-list li a {
    display: block;
    padding: 10px 24px;
    font-family: PingFang SC;
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #f5f5f5;
}

.games-nav-list li a:hover {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.08);
}

.games-nav-list li.active a {
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* 游戏列表区 */
.games-list-section {
    padding: 40px 0 80px;
}

.games-grid {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.game-card {
    width: calc(25% - 15px);
    min-width: 280px;
    max-width: 360px;
    background: linear-gradient(135deg, #ffffff 0%, #fafaff 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(234, 88, 12, 0.3);
    box-shadow: 0 12px 40px rgba(234, 88, 12, 0.15);
}

.game-card-image {
    width: 100%;
    height: 216px;
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f0ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-info {
    padding: 16px;
}

.game-card-name {
    font-family: Poppins, PingFang SC;
    font-size: 16px;
    color: #181818;
    line-height: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}

.game-card-type {
    font-family: PingFang SC;
    font-size: 13px;
    color: #999999;
    line-height: 20px;
}

.game-card-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    height: 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f0ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eeeeee;
}

.game-card-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    transform: translateY(-2px);
}

/* 响应式 */
@media screen and (max-width: 1200px) {
    .game-card {
        width: calc(33.3333% - 14px);
    }
}

@media screen and (max-width: 992px) {
    .game-card {
        width: calc(50% - 10px);
    }
}

@media screen and (max-width: 768px) {
    .page-header .page-title {
        font-size: 28px;
    }
    .game-card {
        width: 100%;
        max-width: none;
    }
}
