/* 分页样式 */

 .paging {
     margin: 25px auto;
     padding: 0;
     /*max-width: 1120px; !* 限制最大宽度，让布局更紧凑 *!*/
     display: flex;
     justify-content: center;
 }

.paging .row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 改为space-between让左右按钮靠近页码 */
    gap: 10px; /* 添加间距控制 */
}

.paging .col {
    padding: 0 5px; /* 减少列的内边距 */
}

.page-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-current-info {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: none;
}

.page-info-mobile {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.page-jump-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.quick-pages {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    font-size: 1rem;
    margin: 2px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.current-page {
    opacity: 0.8;
    cursor: default;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.page-ellipsis {
    color: #9e9e9e;
    padding: 0 4px;
    font-size: 0.9rem;
}

.jump-to-page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.input-container:focus-within {
    border-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.3);
    transform: translateY(-1px);
}

.jump-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    margin: 0 !important;
    height: 40px !important;
    width: 60px;
    font-size: 1rem !important;
    text-align: center;
    color: #333;
    font-weight: 500;
    box-shadow: none !important;
}

.jump-input:focus {
    border: none !important;
    box-shadow: none !important;
}

.input-label {
    font-size: 0.9rem;
    color: #666;
    margin-left: 5px;
    font-weight: 500;
}

.jump-btn {
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.jump-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.jump-btn i {
    font-size: 0.8rem;
}

/* 响应式设计 */
@media only screen and (max-width: 600px) {
    .paging {
        margin: 15px auto;
        padding: 0 5px;
    }

    .page-info {
        min-height: 50px;
    }

    .page-jump-container {
        gap: 6px;
    }

    .input-container {
        padding: 0 12px;
        border-radius: 20px;
    }

    .jump-input {
        width: 50px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .input-label {
        font-size: 0.8rem;
    }

    .jump-btn {
        height: 36px;
        line-height: 36px;
        padding: 0 16px;
        font-size: 0.8rem;
        border-radius: 18px;
    }

    .jump-text {
        display: none;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 0.9rem;
        border-radius: 18px;
        padding: 0 10px;
    }

    .page-info-mobile {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    /* 调整左右按钮在小屏幕上的大小 */
    .btn-floating.btn-large {
        width: 48px;
        height: 48px;
    }

    .btn-floating.btn-large i {
        line-height: 48px;
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 992px) and (min-width: 601px) {
    .quick-pages {
        gap: 3px;
    }

    .page-btn {
        min-width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 0.95rem;
        border-radius: 19px;
    }

    .jump-input {
        width: 55px;
        height: 38px !important;
    }

    .jump-btn {
        height: 38px;
        line-height: 38px;
        padding: 0 18px;
        border-radius: 19px;
    }
}

/* 特殊处理超小屏幕 */
@media only screen and (max-width: 360px) {
    .jump-to-page {
        flex-direction: column;
        gap: 8px;
    }

    .input-container {
        margin-bottom: 5px;
    }
}

/* 手动暗色模式切换支持 */
#dark-mode .input-container {
    background: #424242;
    border-color: #616161;
}

#dark-mode .input-container:focus-within{
    border-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.4);
}

#dark-mode .jump-input,
#dark-mode .jump-input::placeholder {
    color: #fff;
}


/* 确保禁用状态样式 */
.paging .disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
}

.paging .disabled i {
    color: #999 !important;
}

/* 增强当前页样式 */
.current-page {
    background: linear-gradient(135deg,  #42a5f5 0%, #1976d2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4) !important;
    transform: translateY(-2px);
}

/* 悬停效果优化 */
.page-btn:hover:not(.current-page) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}