/* resources/css/components/pagination.css
   全站通用分页组件。
   来源：wiki.css / wiki-search.css 的 .wiki-pagination 段落（两处相同，已去重）。
*/

.wiki-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 1.5rem 0 0.5rem;
    flex-wrap: wrap;
}

.wiki-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: var(--tblr-border-radius);
    border: 1px solid var(--tblr-border-color);
    font-size: 0.875rem;
    color: var(--tblr-body-color);
    text-decoration: none;
    background: var(--tblr-bg-surface);
    transition:
        background 0.12s,
        border-color 0.12s;
    user-select: none;
}

.wiki-page-btn:hover:not(.wiki-page-btn--active):not(.wiki-page-btn--disabled) {
    background: var(--tblr-bg-surface-secondary);
    border-color: var(--tblr-border-color-dark, #adb5bd);
    color: var(--tblr-body-color);
    text-decoration: none;
}

.wiki-page-btn--active {
    background: var(--tblr-primary);
    border-color: var(--tblr-primary);
    color: #fff;
    font-weight: 500;
    cursor: default;
    pointer-events: none;
}

.wiki-page-btn--disabled {
    color: var(--tblr-secondary);
    cursor: default;
    pointer-events: none;
    opacity: 0.5;
}

.wiki-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 34px;
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    user-select: none;
}
