/* 书签小工具样式 */

.dunling-shuqian {
    background: var(--main-bg-color);
    padding: 12px !important;
    border-radius: var(--main-radius);
    transition: background-color 0.3s;
    min-height: 100px;
    position: relative;
    overflow: visible;
  }

.bookmark-item .sites-body {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 85% !important;
}
.dunling-shuqian .posts-item {
    box-shadow:inset 0 0 25px 0 var(--muted-shadow),0 0 0 0 var(--main-shadow);
  }
.posts-item:hover {
    box-shadow:inset 0 0 2px 0 var(--muted-shadow),0 20px 25px -10px var(--main-shadow)
  }


.slider-tab .add-category-btn.active {
    color: #fff;background: transparent;

  }
.slider-tab .add-bookmark-btn.active {
    color: #fff;background: transparent;

  }
/* 添加分类按钮样式 */
.shuqian-widget .add-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.shuqian-widget .add-category-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* 添加书签按钮样式（标签栏中的） - 与分类按钮保持一致 */
.shuqian-widget .add-bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.shuqian-denglu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.shuqian-denglu i {
    display: block;
    font-size: 18px !important;
    color: #dee2e6;
    margin-bottom: 0px !important;
}

.shuqian-widget .add-bookmark-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* 删除分类按钮样式 */
.shuqian-widget .delete-category {
    position: absolute;
    top: -4px;
    right: -5px;
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 16px;
    color: #fff;
    background: rgba(220, 53, 69, 0.8);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

/* 标签项相对定位，用于删除按钮的绝对定位 */
.shuqian-widget .slider-li.tab-item {
    position: relative;
}

/* 只有选中的分类才显示删除按钮 */
.shuqian-widget .slider-li.tab-item.active .delete-category {
    opacity: 1;
}

.shuqian-widget .delete-category:hover {
    background: #dc3545;
    color: white;
}

/* 移除圆形添加书签按钮样式（已废弃） */

/* 书签操作按钮样式 */
.shuqian-widget .sites-tags .edit-bookmark,
.shuqian-widget .sites-tags .delete-bookmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.shuqian-widget .bookmark-item:hover .sites-tags .edit-bookmark,
.shuqian-widget .bookmark-item:hover .sites-tags .delete-bookmark {
    opacity: 1;
}

.shuqian-widget .sites-tags .edit-bookmark {
    color: #28a745;
}

.shuqian-widget .sites-tags .edit-bookmark:hover {
    background: #28a745;
    color: white;
}

.shuqian-widget .sites-tags .delete-bookmark {
    color: #dc3545;
}

.shuqian-widget .sites-tags .delete-bookmark:hover {
    background: #dc3545;
    color: white;
}

/* 下拉菜单样式 */
.shuqian-widget .dropdown {
    position: relative;
}

.shuqian-widget .dropdown-toggle::after {
    display: none;
}

.shuqian-widget .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    max-width: 200px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

/* 确保下拉菜单不超出容器 */
.dunling-shuqian .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 1000;
    min-width: 160px;
    max-width: calc(100vw - 40px);
    margin: 2px 0 0;
    transform: translateX(0);
}

/* 当下拉菜单可能超出右边界时，调整位置 */
.dunling-shuqian .dropdown:last-child .dropdown-menu,
.dunling-shuqian .tab-more .dropdown-menu {
    right: 0;
    left: auto;
    transform: translateX(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dunling-shuqian .dropdown-menu {
        position: fixed;
        top: auto !important;
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100vw - 20px);
        transform: none;
    }
}

.shuqian-widget .dropdown-menu.show {
    display: block;
}

.shuqian-widget .dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
}

.shuqian-widget .dropdown-item:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

.shuqian-widget .dropdown-item i {
    margin-right: 8px;
    width: 14px;
    text-align: center;
}

/* 抓取网站按钮样式 */
.shuqian-widget .fetch-website-info {
    border-left: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, #4facfe 0%, #35a0fe 100%);
    color: white !important;
    font-size: 12px!important;
    padding: 0.75rem 0.75rem !important;
}

.shuqian-widget .fetch-website-info:hover {
    background: linear-gradient(135deg, #4facfe 0%, #0a87f5 100%);
    color: white;
}

.shuqian-widget .fetch-website-info:focus,
.shuqian-widget .fetch-website-info:active {
    background: linear-gradient(135deg, #4facfe 0%, #0a87f5 100%);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.shuqian-widget .fetch-website-info i {
    margin-right: 4px;
    font-size: 11px;
}

/* 输入组样式调整 */
.shuqian-widget .input-group .form-control {
    border-right: 0;
}

.shuqian-widget .input-group .form-control:focus {
    border-right: 0;
    box-shadow: none;
}

.shuqian-widget .input-group .input-group-append .btn {
    border-left: 1px solid #ced4da;
}

/* 书签小工具专用模态框样式 */
.shuqian-modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 60px);
    margin: 30px auto;
    max-width: 500px;
}

/* 确保模态框在不同屏幕尺寸下都能居中 */
@media (max-width: 576px) {
    .shuqian-modal-dialog {
        margin: 10px auto;
        min-height: calc(100vh - 20px);
        max-width: calc(100vw - 20px);
    }
}

/* 小尺寸模态框调整 */
.shuqian-modal-dialog.modal-sm {
    max-width: 400px;
}

@media (max-width: 576px) {
    .shuqian-modal-dialog.modal-sm {
        max-width: calc(100vw - 20px);
    }
}

/* 模态框样式增强 */
.shuqian-widget .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

.shuqian-widget .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

.shuqian-widget .modal-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.shuqian-widget .form-group {
    margin-bottom: 1rem;
}

.shuqian-widget .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.shuqian-widget .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.shuqian-widget .form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.shuqian-widget .btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0;
    font-size: 1rem;
    line-height: 0;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
}

.shuqian-widget .btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.shuqian-widget .btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.shuqian-widget .btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.shuqian-widget .btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

/* 文件上传样式 */
.shuqian-widget .form-control-file {
    display: block;
    width: 100%;
    padding: 0.375rem 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 3;
    color: #495057;
    background-color: transparent;
    border: 0;
}

/* 警告信息样式 */
.shuqian-widget .alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.shuqian-widget .alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.shuqian-widget .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 加载动画 */
.shuqian-widget .fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .shuqian-widget .dropdown-menu {
        position: fixed;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        width: auto;
    }
    
    .shuqian-widget .add-category-btn {
        font-size: 0;
        min-width: 32px;
    }
    
    .shuqian-widget .add-category-btn i {
        font-size: 12px;
    }
    
    /* 移动端也只有选中的分类才显示删除按钮 */
    .shuqian-widget .slider-li.tab-item.active .delete-category {
        opacity: 1;
    }
    
    .shuqian-widget .sites-tags .edit-bookmark,
    .shuqian-widget .sites-tags .delete-bookmark {
        opacity: 1;
    }
}

/* 空状态样式 */
.shuqian-widget .empty-state {
    padding: 40px 20px;
    text-align: center;
}

.shuqian-widget .empty-state i {
    display: block;
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
}
.shuqian-jiaico1  {
    margin-bottom: 8px;
}

.shuqian-jiaico1 .shuqian-jiaico {
    font-size: 24px !important;
    margin-bottom: 0px !important;
}

.shuqian-widget .empty-state h5 {
    color: #bdc2c7;
    margin-bottom: 8px;
    font-weight: 500;
}

.shuqian-widget .empty-state p {
    color: #bdc2c7;
    margin-bottom: 0;
    font-size: 14px;
}

/* 工具提示样式 */
.shuqian-widget .tooltip {
    position: absolute;
    z-index: 1070;
    display: block;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: 0.875rem;
    word-wrap: break-word;
    opacity: 0;
}

.shuqian-widget .tooltip.show {
    opacity: 0.9;
}

.shuqian-widget .tooltip-inner {
    max-width: 200px;
    padding: 0.25rem 0.5rem;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: 0.25rem;
}

/* 导入书签弹出框优化样式 */
.shuqian-widget .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.shuqian-widget .modal-header {
    background: linear-gradient(135deg, #4facfe 0%, #369ef9 100%);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
    position: relative;
}

.shuqian-widget .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.15"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.15"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.15"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.15"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.shuqian-widget .modal-title {
    font-weight: 600;
    font-size: 18px;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}


.shuqian-widget .modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.shuqian-widget .modal-header .close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.shuqian-widget .modal-body {
    padding: 30px 25px;
    background: #fafbfc;
}

.shuqian-widget .modal-body .form-group {
    margin-bottom: 25px;
}

.shuqian-widget .modal-body label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    display: block;
    font-size: 14px;
}

/* 文件选择框优化样式 */
.shuqian-widget .modal-body .form-group {
    position: relative;
    min-height: 60px;
}

.shuqian-widget .modal-body .form-control-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 3;
    font-size: 0;
    color: transparent;
}

.shuqian-widget .modal-body .form-control-file::-webkit-file-upload-button {
    display: none;
}

.shuqian-widget .modal-body .form-control-file::-ms-browse {
    display: none;
}

.shuqian-widget .modal-body .form-control-file::-ms-value {
    display: none;
}

.shuqian-widget .modal-body .form-control-file::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border: 2px dashed #d1d9e0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.shuqian-widget .modal-body .form-control-file::after {
    content: '📁 点击选择HTML书签文件';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease;
}

.shuqian-widget .modal-body .form-control-file:hover::before {
    border-color: #4facfe;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.15);
}

.shuqian-widget .modal-body .form-control-file:hover::after {
    color: #4facfe;
}

.shuqian-widget .modal-body .form-control-file:focus::before {
    border-color: #4facfe;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.shuqian-widget .modal-body .form-control-file:focus::after {
    color: #4facfe;
}

/* 文件选择后的状态 */
.shuqian-widget .modal-body .form-control-file:valid::before {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #f0fff4 100%);
}

.shuqian-widget .modal-body .form-control-file:valid::after {
    content: '✅ 已选择文件，点击导入';
    color: #28a745;
}

/* 文件选择框容器 */
.shuqian-widget .file-upload-container {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px dashed #d1d9e0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.shuqian-widget .file-upload-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(79, 172, 254, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.shuqian-widget .file-upload-container:hover::before {
    transform: translateX(100%);
}

.shuqian-widget .file-upload-container:hover {
    border-color: #4facfe;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.15);
}

.shuqian-widget .file-upload-container.dragover {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #f0fff4 100%);
    transform: scale(1.02);
}

.shuqian-widget .file-upload-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.shuqian-widget .file-upload-icon {
    font-size: 48px;
    color: #d1d9e0;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.shuqian-widget .file-upload-container:hover .file-upload-icon {
    color: #4facfe;
    transform: scale(1.1);
}

.shuqian-widget .file-upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.shuqian-widget .file-upload-container:hover .file-upload-text {
    color: #4facfe;
}

.shuqian-widget .file-upload-hint {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    transition: all 0.3s ease;
}

.shuqian-widget .file-upload-container:hover .file-upload-hint {
    color: #6b7280;
}

/* 文件信息显示 */
.shuqian-widget .file-info {
    display: none;
    padding: 16px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    margin-top: 12px;
}

.shuqian-widget .file-info.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.shuqian-widget .file-info-icon {
    color: #28a745;
    margin-right: 8px;
}

.shuqian-widget .file-info-name {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 4px;
}

.shuqian-widget .file-info-size {
    font-size: 12px;
    color: #6c757d;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shuqian-widget .modal-body .alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border-left: 4px solid #4facfe;
    margin: 0;
}

.shuqian-widget .modal-body .alert small {
    color: #5a6c7d;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.shuqian-widget .modal-body .alert small::before {
    content: '💡';
    margin-right: 8px;
    font-size: 16px;
}

.shuqian-widget .modal-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.shuqian-widget .modal-footer .btn {
    padding: 20px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    min-width: 80px;
}

.shuqian-widget .modal-footer .btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.shuqian-widget .modal-footer .btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.shuqian-widget .modal-footer .btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #35a0fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.shuqian-widget .modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.shuqian-widget .modal-footer .btn-primary:active {
    transform: translateY(0);
}

/* 文件选择器自定义样式 */
.shuqian-widget .file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.shuqian-widget .file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.shuqian-widget .file-input-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border: 2px dashed #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 80px;
}

.shuqian-widget .file-input-display:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.shuqian-widget .file-input-display.has-file {
    border-color: #28a745;
    background: #f8fff9;
    color: #28a745;
}

.shuqian-widget .file-input-display .file-icon {
    font-size: 24px;
    margin-right: 12px;
}

.shuqian-widget .file-input-display .file-text {
    font-size: 14px;
    font-weight: 500;
}

.shuqian-widget .file-input-display .file-name {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* ===============================
   分页样式优化
   =============================== */

.shuqian-pagination {
    background: linear-gradient(135deg, #4facfe 0%, #369ef9 100%);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    margin: 0;
    position: relative;
    overflow: hidden;
}

.shuqian-pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.shuqian-pagination .pagination-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.shuqian-pagination .pagination-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    opacity: 1;
}

.shuqian-pagination .pagination-buttons.updating {
    opacity: 0.7;
    transform: scale(0.98);
}

.shuqian-pagination .pagination-btn {
    min-width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.shuqian-pagination .pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.shuqian-pagination .pagination-btn:hover::before {
    left: 100%;
}

.shuqian-pagination .pagination-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.shuqian-pagination .pagination-btn:active {
    transform: translateY(0);
}

/* 当前页按钮样式 */
.shuqian-pagination .pagination-btn.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.shuqian-pagination .pagination-btn.btn-primary:hover {
    background: white;
    color: #5a6fd8;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}
.pagination-buttons .btn:hover {
    color: #787676 !important;
}
/* 上一页/下一页按钮特殊样式 */
.shuqian-pagination .pagination-prev,
.shuqian-pagination .pagination-next {
    padding: 0 10px;
    min-width: auto;
    font-size: 12px;
    position: relative;
}

.shuqian-pagination .pagination-prev::before {
    content: '‹';
    margin-right: 4px;
    font-size: 16px;
    font-weight: bold;
}

.shuqian-pagination .pagination-next::after {
    content: '›';
    margin-left: 4px;
    font-size: 16px;
    font-weight: bold;
}

/* 省略号样式 */
.shuqian-pagination .pagination-ellipsis {
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    padding: 0 8px;
    font-size: 16px;
}

/* 书签总数样式 */
.shuqian-pagination .pagination-total {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    line-height: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .shuqian-pagination {
        padding: 15px;
        border-radius: 8px;
    }
    
    .shuqian-pagination .pagination-buttons {
        gap: 4px;
    }
    
    .shuqian-pagination .pagination-btn {
        min-width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .shuqian-pagination .pagination-total {
        font-size: 10px;
        padding: 0 8px;
        height: 18px;
        line-height: 18px;
    }
}

/* 深色主题兼容 */
@media (prefers-color-scheme: dark) {
    .shuqian-pagination {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .shuqian-pagination .pagination-btn.btn-primary {
        background: rgba(102, 126, 234, 0.9);
        color: white;
        border-color: rgba(102, 126, 234, 0.9);
    }
    
    .shuqian-pagination .pagination-btn.btn-primary:hover {
        background: #667eea;
        color: white;
    }
    
    .shuqian-pagination .pagination-total {
        color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* ===============================
   分页切换平滑过渡
   =============================== */

.shuqian-widget .tab-pane {
    transition: height 0.3s ease;
}

.shuqian-widget .tab-pane.transitioning {
    overflow: hidden;
}

/* ===============================
   自定义确认对话框
   =============================== */

.shuqian-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.shuqian-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.shuqian-confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.shuqian-confirm-overlay.show .shuqian-confirm-dialog {
    transform: scale(1) translateY(0);
}

.shuqian-confirm-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4facfe 0%, #369ef9 100%);
}

.shuqian-confirm-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shuqian-confirm-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.shuqian-confirm-icon.warning {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.shuqian-confirm-icon.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shuqian-confirm-message {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
}

.shuqian-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.shuqian-confirm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.shuqian-confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.shuqian-confirm-btn:hover::before {
    left: 100%;
}

.shuqian-confirm-btn-cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.shuqian-confirm-btn-cancel:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.shuqian-confirm-btn-confirm {
    background: linear-gradient(135deg, #4facfe 0%, #35a0fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.shuqian-confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.shuqian-confirm-btn-confirm.danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.shuqian-confirm-btn-confirm.danger:hover {
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

/* 深色主题兼容 */
@media (prefers-color-scheme: dark) {
    .shuqian-confirm-dialog {
        background: #2d3748;
        color: white;
    }
    
    .shuqian-confirm-title {
        color: white;
    }
    
    .shuqian-confirm-message {
        color: #e2e8f0;
    }
    
    .shuqian-confirm-btn-cancel {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .shuqian-confirm-btn-cancel:hover {
        background: #718096;
    }
}

/* 自定义登录弹窗样式 */
.shuqian-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.shuqian-login-overlay.show {
    opacity: 1;
    visibility: visible;
}

.shuqian-login-dialog {
    border-radius: 12px;
    padding: 30px !important;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    color: white;
    text-align: center;
}

.shuqian-login-overlay.show .shuqian-login-dialog {
    transform: scale(1) translateY(0);
}

.shuqian-login-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.shuqian-login-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.shuqian-login-message {
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.shuqian-login-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.shuqian-login-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.shuqian-login-btn-cancel {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shuqian-login-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.shuqian-login-btn-confirm {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.shuqian-login-btn-confirm:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .shuqian-login-dialog {
        padding: 25px 20px;
        margin: 20px;
    }
    
    .shuqian-login-title {
        font-size: 18px;
    }
    
    .shuqian-login-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 10px;
    }
    
    .shuqian-login-message {
        font-size: 15px;
    }
    
    .shuqian-login-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .shuqian-login-btn {
        width: 100%;
    }
}

/* 登录弹窗暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .shuqian-login-dialog {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
}
