/* 游戏页面样式 */

.games-main {
    min-height: calc(100vh - 70px - 60px);
    background-color: #f5f5f5;
    padding: 40px 0;
}

.games-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
    align-items: start;
}

.game-button {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    padding: 0;
    text-align: left;
    aspect-ratio: 213.25 / 320;
    width: 100%;
    height: auto;
    position: relative;
}

.game-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.game-button:active {
    transform: translateY(-2px);
}

.game-button-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-button-name {
    display: none;
}

/* 底部版权信息 */
.page-footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    font-size: 14px;
    color: #ccc;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

