/* ========================================
   Pagination Component - 优雅分页组件
   用于配乐、歌曲、摄影部分
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-sm);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    border-color: var(--color-accent-gold);
    background: rgba(201, 169, 97, 0.1);
    color: var(--color-text-primary);
}


.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn.active {
    border-color: var(--color-accent-gold);
    background: rgba(201, 169, 97, 0.15);
    color: var(--color-accent-gold);
    font-weight: 500;
    cursor: default;
}

/* 上一页/下一页按钮 */
.pagination-btn.prev,
.pagination-btn.next {
    padding: 0 var(--spacing-md);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* 页码按钮 */
.pagination-btn.page {
    min-width: 40px;
    padding: 0;
}

/* 省略号 */
.pagination-ellipsis {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    user-select: none;
}

/* 亮色主题 */
.theme-light .pagination-btn {
    background: var(--color-bg-elevated);
    border-color: var(--color-line);
    color: var(--color-text-secondary);
}

.theme-light .pagination-btn:hover:not(:disabled):not(.active) {
    border-color: var(--color-accent-gold);
    background: rgba(166, 124, 61, 0.15);
    color: var(--color-text-primary);
}

.theme-light .pagination-btn.active {
    border-color: var(--color-accent-gold);
    background: rgba(166, 124, 61, 0.25);
    color: var(--color-accent-gold);
}

.theme-light .pagination-ellipsis {
    color: var(--color-text-muted);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .pagination {
        gap: var(--spacing-xs);
        padding: var(--spacing-md) 0;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 0 var(--spacing-xs);
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0 var(--spacing-sm);
        font-size: 0.8rem;
    }

    .pagination-btn.page {
        min-width: 36px;
    }

    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    /* 移动端隐藏部分页码，只显示关键页码 */
    .pagination-btn.page.hidden-mobile {
        display: none;
    }
}

/* 小屏幕手机 (≤480px) */
@media (max-width: 480px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0 var(--spacing-xs);
        font-size: 0.75rem;
    }

    .pagination-btn.page {
        min-width: 32px;
    }

    .pagination-ellipsis {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

