.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #DA251C;
    color: #DA251C;
}

.page-btn.active {
    background: #DA251C;
    border-color: #DA251C;
    color: #fff;
}

.page-btn:disabled {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #999;
    cursor: not-allowed;
}

.ellipsis {
    color: #999;
}

.prev, .next {
    padding: 0 15px;
}

/* 箭头样式 */
.arrow-left, .arrow-right {
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.arrow-left {
    transform: rotate(135deg);
}

.arrow-right {
    transform: rotate(-45deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }

    .page-item {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-item {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* 在移动端隐藏部分页码 */
    .page-item:nth-child(n+5):nth-child(-n+7) {
        display: none;
    }
} 