/* 删除确认弹窗样式 - 现代商务版 */

/* 遮罩层 */
.custom-delete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.2s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes overlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 对话框容器 */
.custom-delete-dialog {
    background: #fff;
    border-radius: 8px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    animation: dialogSlideIn 0.25s ease;
    overflow: hidden;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dialogSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* 对话框头部 */
.custom-delete-header {
    padding: 12px 20px 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.custom-delete-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff1f0 0%, #ffe8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-delete-icon i {
    font-size: 20px;
    color: #ff4d4f;
}

.custom-delete-header-content {
    flex: 1;
    padding-right: 40px;
}

.custom-delete-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.custom-delete-subtitle {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* 关闭按钮 */
.custom-delete-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-delete-close:hover {
    background: var(--primary-50);
    color: var(--primary);
    transform: rotate(90deg);
}

.custom-delete-close:active {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg) scale(0.9);
}

/* 对话框内容 */
.custom-delete-body {
    padding: 20px 24px;
}

.custom-delete-message {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #ff4d4f;
}

.custom-delete-message strong {
    color: #1f2937;
    font-weight: 600;
}

/* 警告提示 */
.custom-delete-warning {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fffbe6;
    border-radius: 6px;
    font-size: 13px;
    color: #d48806;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-delete-warning i {
    font-size: 16px;
    flex-shrink: 0;
}

/* 对话框底部 */
.custom-delete-footer {
    padding: 14px 24px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.custom-delete-btn {
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.custom-delete-btn-cancel {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.custom-delete-btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.custom-delete-btn-cancel:active {
    transform: scale(0.98);
}

.custom-delete-btn-confirm {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.custom-delete-btn-confirm:hover {
    background: #ff7875;
    border-color: #ff7875;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.custom-delete-btn-confirm:active {
    background: #d9363e;
    border-color: #d9363e;
    transform: scale(0.98);
}

/* 键盘焦点样式 */
.custom-delete-btn:focus-visible {
    outline: 2px solid #1890ff;
    outline-offset: 2px;
}

.custom-delete-close:focus-visible {
    outline: 2px solid #1890ff;
    outline-offset: 1px;
}

/* 按钮加载状态 */
.custom-delete-btn-confirm.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.custom-delete-btn-confirm.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* 对话框焦点效果 */
.custom-delete-dialog:focus {
    outline: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .custom-delete-dialog {
        width: 90vw;
        max-width: 420px;
    }
    
    .custom-delete-header {
        padding: 14px 16px 12px;
        gap: 12px;
    }
    
    .custom-delete-icon {
        width: 42px;
        height: 42px;
    }
    
    .custom-delete-icon i {
        font-size: 20px;
    }
    
    .custom-delete-body {
        padding: 16px 20px;
    }
    
    .custom-delete-footer {
        padding: 14px 20px 16px;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .custom-delete-btn {
        width: 100%;
        height: 40px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .custom-delete-dialog {
        border: 2px solid #1f2937;
    }
    
    .custom-delete-btn-confirm {
        border: 2px solid #ff4d4f;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .custom-delete-overlay,
    .custom-delete-dialog,
    .custom-delete-btn,
    .custom-delete-close {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   批量删除确认对话框样式
========================================= */

.custom-batch-delete-dialog {
    background: #fff;
    border-radius: 12px;
    width: 460px;
    max-width: 90vw;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    animation: dialogSlideIn 0.25s ease;
    overflow: hidden;
}

.custom-batch-delete-header {
    padding: 20px 24px 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-batch-delete-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff1f0 0%, #ffe8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-batch-delete-icon i {
    font-size: 24px;
    color: #ff4d4f;
    animation: iconShake 0.5s ease;
}

@keyframes iconShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.custom-batch-delete-header-content {
    flex: 1;
}

.custom-batch-delete-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.custom-batch-delete-subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.custom-batch-delete-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-batch-delete-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.custom-batch-delete-body {
    padding: 20px 24px;
}

.custom-batch-delete-message {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.custom-batch-delete-message strong {
    color: #ff4d4f;
    font-weight: 600;
}

.custom-batch-delete-warning {
    padding: 10px 14px;
    background: #fffbe6;
    border-radius: 6px;
    font-size: 13px;
    color: #d48806;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.custom-batch-delete-warning i {
    font-size: 16px;
    flex-shrink: 0;
}

/* 验证输入框 */
.custom-batch-verify {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 14px 16px;
}

.custom-batch-verify-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.4;
}

.custom-batch-verify-keyword {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 14px;
}

.custom-batch-verify-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.custom-batch-verify-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.custom-batch-verify-input.error {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}

.custom-batch-verify-error {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    color: #ff4d4f;
    line-height: 1.4;
}

.custom-batch-delete-footer {
    padding: 16px 24px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.custom-batch-delete-btn {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.custom-batch-delete-btn-cancel {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.custom-batch-delete-btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.custom-batch-delete-btn-confirm {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.custom-batch-delete-btn-confirm:hover:not(:disabled) {
    background: #ff7875;
    border-color: #ff7875;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.custom-batch-delete-btn-confirm:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.custom-batch-delete-btn-confirm:active:not(:disabled) {
    background: #d9363e;
    border-color: #d9363e;
    transform: scale(0.98);
}

/* 批量删除按钮加载状态 */
.custom-batch-delete-btn-confirm.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.custom-batch-delete-btn-confirm.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

/* 批量删除对话框焦点效果 */
.custom-batch-delete-dialog:focus {
    outline: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 设备列表样式 */
.custom-batch-device-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.custom-batch-device-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: #4b5563;
    border-left: 3px solid #ff4d4f;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.custom-batch-device-item:last-child {
    margin-bottom: 0;
}

.custom-batch-device-item:hover {
    background: #f9fafb;
    transform: translateX(4px);
}

.custom-batch-device-item i {
    color: #ff4d4f;
    font-size: 14px;
    flex-shrink: 0;
}

/* 滚动条美化 */
.custom-batch-device-list::-webkit-scrollbar {
    width: 6px;
}

.custom-batch-device-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.custom-batch-device-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.custom-batch-device-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .custom-batch-delete-dialog {
        width: 90vw;
        max-width: 460px;
    }
    
    .custom-batch-delete-header {
        padding: 16px 20px 14px;
        gap: 12px;
    }
    
    .custom-batch-delete-icon {
        width: 42px;
        height: 42px;
    }
    
    .custom-batch-delete-icon i {
        font-size: 20px;
    }
    
    .custom-batch-delete-body {
        padding: 16px 20px;
    }
    
    .custom-batch-delete-footer {
        padding: 14px 20px 16px;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .custom-batch-delete-btn {
        width: 100%;
        height: 40px;
    }
    
    .custom-batch-device-list {
        max-height: 150px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .custom-batch-delete-dialog {
        border: 2px solid #1f2937;
    }
    
    .custom-batch-delete-btn-confirm {
        border: 2px solid #ff4d4f;
    }
    
    .custom-batch-device-item {
        border-left-width: 4px;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .custom-delete-overlay,
    .custom-batch-delete-dialog,
    .custom-batch-delete-btn,
    .custom-batch-delete-close,
    .custom-batch-device-item {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   layui layer 删除确认对话框样式
========================================= */

/* layui layer 容器圆角 */
.layui-layer.delete-dialog-skin {
    border-radius: 8px !important;
    overflow: hidden;
}

.layui-layer.delete-dialog-skin .layui-layer-content {
    border-radius: 8px !important;
}

/* 对话框内容 */
.delete-confirm-dialog {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.delete-confirm-dialog .delete-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    cursor: move;
}

.delete-confirm-dialog .delete-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff1f0 0%, #ffe8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delete-confirm-dialog .delete-icon i {
    font-size: 20px;
    color: #ff4d4f;
}

.delete-confirm-dialog .delete-header-content {
    flex: 1;
}

.delete-confirm-dialog .delete-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.delete-confirm-dialog .delete-subtitle {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* 关闭按钮 */
.delete-confirm-dialog .delete-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #ff4d4f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.delete-confirm-dialog .delete-close:hover {
    background: #fff1f0;
    color: #ff4d4f;
}

.delete-confirm-dialog .delete-close:active {
    background: #ff4d4f;
    color: #fff;
}

/* 对话框内容 */
.delete-confirm-dialog .delete-body {
    padding: 20px 24px;
}

.delete-confirm-dialog .delete-message {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #ff4d4f;
}

.delete-confirm-dialog .delete-warning {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fffbe6;
    border-radius: 6px;
    font-size: 13px;
    color: #d48806;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-confirm-dialog .delete-warning i {
    font-size: 16px;
    flex-shrink: 0;
}

/* 对话框底部 */
.delete-confirm-dialog .delete-footer {
    padding: 14px 24px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.delete-confirm-dialog .delete-btn {
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.delete-confirm-dialog .delete-btn-cancel {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.delete-confirm-dialog .delete-btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.delete-confirm-dialog .delete-btn-confirm {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.delete-confirm-dialog .delete-btn-confirm:hover {
    background: #ff7875;
    border-color: #ff7875;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 77, 79, 0.25);
}

/* =========================================
   layui layer 批量删除对话框样式
========================================= */

.layui-layer.batch-delete-layer {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.layui-layer.batch-delete-layer .layui-layer-content {
    border-radius: 8px !important;
    overflow: visible !important;
}

/* 对话框容器 */
.batch-delete-dialog {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* 对话框头部 */
.batch-delete-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.batch-delete-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff1f0 0%, #ffe8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.batch-delete-icon i {
    font-size: 20px;
    color: #ff4d4f;
}

.batch-delete-header-content {
    flex: 1;
}

.batch-delete-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.batch-delete-subtitle {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* 关闭按钮 */
.batch-delete-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #ff4d4f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
}

.batch-delete-close:hover {
    background: #fff1f0;
    color: #ff4d4f;
}

.batch-delete-close:active {
    background: #ff4d4f;
    color: #fff;
}

.batch-delete-close i {
    font-size: 14px;
}

/* 对话框内容 */
.batch-delete-body {
    padding: 20px 24px;
}

.batch-delete-message {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #ff4d4f;
    margin-bottom: 12px;
}

.batch-delete-message strong {
    color: #ff4d4f;
    font-weight: 600;
}

.batch-delete-warning {
    padding: 10px 14px;
    background: #fffbe6;
    border-radius: 6px;
    font-size: 13px;
    color: #d48806;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.batch-delete-warning i {
    font-size: 16px;
    flex-shrink: 0;
}

/* 验证输入框 */
.batch-delete-verify {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 14px 16px;
}

.batch-delete-verify .verify-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.4;
}

.batch-delete-verify .verify-keyword {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 14px;
}

.batch-delete-verify .verify-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.batch-delete-verify .verify-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.batch-delete-verify .verify-input.error {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}

.batch-delete-verify .verify-error {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    color: #ff4d4f;
    line-height: 1.4;
}

/* 对话框底部 */
.batch-delete-footer {
    padding: 14px 24px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.batch-delete-footer .btn {
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.batch-delete-footer .btn-cancel {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.batch-delete-footer .btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.batch-delete-footer .btn-cancel:active {
    transform: scale(0.98);
}

.batch-delete-footer .btn-confirm {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.batch-delete-footer .btn-confirm:hover:not(:disabled) {
    background: #ff7875;
    border-color: #ff7875;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.batch-delete-footer .btn-confirm:disabled {
    background: #ffccd1;
    border-color: #ffccd1;
    cursor: not-allowed;
    opacity: 0.6;
}

.batch-delete-footer .btn-confirm:active:not(:disabled) {
    background: #d9363e;
    border-color: #d9363e;
    transform: scale(0.98);
}

/* 按钮加载状态 */
.batch-delete-footer .btn-confirm.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.batch-delete-footer .btn-confirm.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* 键盘焦点样式 */
.batch-delete-footer .btn:focus-visible {
    outline: 2px solid #1890ff;
    outline-offset: 2px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .batch-delete-dialog {
        width: 90vw;
        max-width: 460px;
    }
    
    .batch-delete-header {
        padding: 14px 16px 12px;
        gap: 12px;
    }
    
    .batch-delete-icon {
        width: 42px;
        height: 42px;
    }
    
    .batch-delete-icon i {
        font-size: 20px;
    }
    
    .batch-delete-body {
        padding: 16px 20px;
    }
    
    .batch-delete-footer {
        padding: 14px 20px 16px;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .batch-delete-footer .btn {
        width: 100%;
        height: 40px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .batch-delete-dialog {
        border: 2px solid #1f2937;
    }
    
    .batch-delete-footer .btn-confirm {
        border: 2px solid #ff4d4f;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .batch-delete-dialog,
    .batch-delete-footer .btn {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}