/* 分页组件样式 */
.pagination-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-info {
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

/* 分页按钮容器 */
.pagination-container > a,
.pagination-container > .currentpages {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

/* 普通页码按钮 */
.pagenum {
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.pagenum:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 当前页码按钮 */
.currentpages {
    color: #fff !important;
    background-color: #f16129;
    border: 1px solid #f16129;
    font-weight: 600;
}

.currentpages:hover {
    background-color: #d54a1a;
    border-color: #d54a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(241, 97, 41, 0.3);
}

/* 上一页/下一页按钮 */
.pagination-container > a:first-of-type,
.pagination-container > a:last-of-type {
    background-color: #fff;
    border: 1px solid #f16129;
    color: #f16129;
    font-weight: 500;
    padding: 10px 20px;
}

.pagination-container > a:first-of-type:hover,
.pagination-container > a:last-of-type:hover {
    background-color: #f16129;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(241, 97, 41, 0.3);
}

/* 省略号样式 */
.pagenum[href*="..."] {
    background-color: transparent;
    border: none;
    color: #666;
    cursor: default;
    pointer-events: none;
}

.pagenum[href*="..."]:hover {
    background-color: transparent;
    border: none;
    color: #666;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        margin: 30px 0;
    }
    
    .pagination-container > a,
    .pagination-container > .currentpages {
        padding: 8px 12px;
        margin: 0 2px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .pagination-container > a:first-of-type,
    .pagination-container > a:last-of-type {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .pagination-container > a,
    .pagination-container > .currentpages {
        padding: 6px 10px;
        margin: 0 1px;
        font-size: 12px;
        min-width: 32px;
    }
    
    .pagination-container > a:first-of-type,
    .pagination-container > a:last-of-type {
        padding: 6px 12px;
    }
}

/* 禁用状态样式 */
.pagenum.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagenum.disabled:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #333;
    transform: none;
    box-shadow: none;
}

/* 加载状态样式 */
.pagination-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pagination-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #f16129;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
