/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.page-link {
    margin: 50px 5px 0 0;
    font-family: 'Courier New', Courier, monospace;
    color: #e6e6e6;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(20, 25, 30, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
    /* 默认隐藏短文本 */
    .short-text {
        display: none;
    }
}

.page-link:hover {
    color: #00ffff;
    border-color: #00ffff;
    background-color: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px #00ffff;
}

.page-link.active {
    color: #000;
    background-color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 20px #00ffff;
    font-weight: bold;
    transform: scale(1.05);
}

.page-link.active:hover {
    cursor: default;
    transform: scale(1.05);
}

.ellipsis {
    margin: 50px 5px 0 0;
    font-family: 'Courier New', Courier, monospace;
    color: #e6e6e6;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(20, 25, 30, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}

/* --- 响应式设计：移动兼容样式 --- */
@media (max-width: 600px) {
    .pagination {
        /* 在小屏幕上允许换行以避免拥挤 */
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-link {
        padding: 8px 12px; /* 减小内边距 */
        font-size: 0.9em;
    }

    .prev-next {
        /* 在小屏幕上隐藏长文本，显示短文本 */
        .long-text {
            display: none;
        }
        .short-text {
            display: inline-block;
        }
    }
}

.games-page{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}