/* ==================== 模板工具栏按钮 ==================== */
.template-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.template-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.template-btn:active {
    transform: translateY(0);
}

/* ==================== 模板对话框 - 重新设计的布局 ==================== */
.template-dialog {
    z-index: 10000;
}

.template-dialog .template-dialog-content {
    display: flex;
    width: 900px;
    max-width: calc(100vw - 60px);
    height: 650px;
    max-height: calc(100vh - 60px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* 侧边栏 */
.template-dialog .template-sidebar {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.template-dialog .template-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.template-dialog .template-sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.template-dialog .template-sidebar-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.template-dialog .template-sidebar-header .close-btn:hover {
    background: #e2e8f0;
    color: #64748b;
}

.template-dialog .sidebar-section {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.template-dialog .sidebar-section:last-of-type {
    border-bottom: none;
}

.template-dialog .section-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* 分类按钮 */
.template-dialog .template-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.template-dialog .category-btn {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.template-dialog .category-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.template-dialog .category-btn.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 主题选择器 */
.template-dialog .theme-selector select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.template-dialog .theme-selector select:hover {
    border-color: #cbd5e1;
}

.template-dialog .theme-selector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 布局模式按钮 */
.template-dialog .layout-mode-buttons {
    display: flex;
    gap: 8px;
}

.template-dialog .layout-mode-btn {
    flex: 1;
    padding: 10px 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.template-dialog .layout-mode-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.template-dialog .layout-mode-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.template-dialog .layout-icon {
    font-size: 16px;
}

.template-dialog .layout-text {
    font-size: 12px;
    font-weight: 500;
}

/* 侧边栏底部按钮 */
.template-dialog .sidebar-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 10;
}

.template-dialog .sidebar-footer .btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.template-dialog .sidebar-footer .btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.template-dialog .sidebar-footer .btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.template-dialog .sidebar-footer .btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.template-dialog .sidebar-footer .btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

/* 主内容区 */
.template-dialog .template-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.template-dialog .template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 24px 24px 100px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    align-content: start;
}

.template-dialog .template-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 240px;
}

.template-dialog .template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.template-dialog .template-card.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.template-dialog .template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-dialog .template-card:hover::before,
.template-dialog .template-card.selected::before {
    opacity: 1;
}

.template-dialog .template-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 48px;
    color: #667eea;
}

.template-dialog .template-type {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.template-dialog .template-name {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.template-dialog .template-description {
    text-align: center;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-dialog .delete-template-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    border: none;
    color: #ef4444;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.template-dialog .template-card:hover .delete-template-btn {
    opacity: 1;
}

.template-dialog .delete-template-btn:hover {
    background: #fecaca;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .template-dialog .template-dialog-content {
        flex-direction: column;
        width: calc(100% - 40px);
        height: calc(100vh - 80px);
    }

    .template-dialog .template-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 300px;
        overflow-y: auto;
    }

    .template-dialog .template-main {
        height: 300px;
        padding: 16px;
    }

    .template-dialog .template-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 智能模板推荐Toast样式 ==================== */
.template-recommendation-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 320px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.template-recommendation-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast头部 */
.template-recommendation-toast .toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.template-recommendation-toast .toast-icon {
    font-size: 20px;
}

.template-recommendation-toast .toast-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.template-recommendation-toast .toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.template-recommendation-toast .toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Toast主体 */
.template-recommendation-toast .toast-body {
    padding: 16px;
}

.template-recommendation-toast .toast-reasoning {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.template-recommendation-toast .toast-recommendation {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

.template-recommendation-toast .primary-template {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.template-recommendation-toast .template-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.template-recommendation-toast .template-name {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

/* Toast按钮 */
.template-recommendation-toast .template-actions {
    display: flex;
    gap: 8px;
}

.template-recommendation-toast .toast-apply-btn {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.template-recommendation-toast .toast-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.template-recommendation-toast .toast-more-btn {
    padding: 8px 12px;
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-recommendation-toast .toast-more-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* 响应式适配 */
@media (max-width: 1400px) {
    .template-recommendation-toast {
        width: 280px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .template-recommendation-toast {
        width: calc(100% - 40px);
        top: auto;
        bottom: 80px;
        right: 20px;
        left: 20px;
    }
}

/* ==================== 一键美化对话框样式 ==================== */
.beautification-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.beautification-dialog .dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beautification-dialog.show .dialog-overlay {
    opacity: 1;
}

.beautification-dialog .dialog-content {
    position: relative;
    width: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.beautification-dialog.show .dialog-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 对话框头部 */
.beautification-dialog .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    color: white;
}

.beautification-dialog .dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.beautification-dialog .dialog-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.beautification-dialog .dialog-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 对话框主体 */
.beautification-dialog .dialog-body {
    padding: 24px;
}

.beautification-dialog .issues-summary {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.beautification-dialog .issue-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.beautification-dialog .beautify-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.beautification-dialog .option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.beautification-dialog .option-item:hover {
    background: #f0f0f0;
    border-color: #667eea;
}

.beautification-dialog .option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.beautification-dialog .option-item span:first-of-type {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.beautification-dialog .issue-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.beautification-dialog .issue-badge:empty {
    display: none;
}

/* 对话框底部 */
.beautification-dialog .dialog-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
}

.beautification-dialog .dialog-footer .btn-secondary {
    flex: 1;
    padding: 12px 24px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.beautification-dialog .dialog-footer .btn-secondary:hover {
    background: #d0d0d0;
}

.beautification-dialog .dialog-footer .btn-primary {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.beautification-dialog .dialog-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ==================== 批量操作样式 ==================== */
/* Marquee 框选样式 */
.marquee-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
}

.marquee-rectangle {
    position: absolute;
    border: 2px dashed #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    width: 0px;
    height: 0px;
    display: none;
}

.marquee-count {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateX(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    display: none;
}

/* 多选样式 */
.editable-element.multi-selected {
    border: 2px solid #667eea;
    background-color: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

/* 多选指示器 */
.editable-element.multi-selected::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.editable-element.multi-selected::after {
    content: '✓';
    position: absolute;
    top: -6px;
    left: -2px;
    font-size: 10px;
    color: white;
    font-weight: bold;
    z-index: 1002;
}

/* 批量操作工具栏 */
.batch-operations-toolbar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 280px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 工具栏头部 */
.batch-toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 14px;
}

.batch-toolbar-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.batch-toolbar-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 工具栏分区 */
.batch-toolbar-section {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.batch-toolbar-section:last-of-type {
    border-bottom: none;
}

.batch-toolbar-section .section-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 按钮组 */
.batch-toolbar-section .button-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.batch-toolbar-section button {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.batch-toolbar-section button:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.batch-toolbar-section button:active:not(:disabled) {
    transform: translateY(0);
}

.batch-toolbar-section button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.batch-toolbar-section button.delete-btn {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.batch-toolbar-section button.delete-btn:hover:not(:disabled) {
    background: #ff2e44;
    border-color: #ff2e44;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* 工具栏底部 */
.batch-toolbar-footer {
    padding: 10px 16px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
}

.batch-toolbar-footer .selected-count {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

/* 多选模式按钮 */
.multi-select-mode-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.multi-select-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.multi-select-mode-btn.active {
    background: linear-gradient(135deg, #ff4757 0%, #ff2e44 100%);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    animation: pulse 2s infinite;
}

/* 响应式适配 */
@media (max-width: 1400px) {
    .batch-operations-toolbar {
        right: 280px;
        width: 240px;
    }
}

@media (max-width: 768px) {
    .batch-operations-toolbar {
        right: 20px;
        top: auto;
        bottom: 80px;
        width: 200px;
    }
}

/* ==================== 翻页动画效果 ==================== */
.page-transition {
    position: relative;
    overflow: hidden;
}

/* 淡入淡出效果 */
.transition-type-fade {
    animation: fadeTransition 0.5s ease-in-out;
}

@keyframes fadeTransition {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

/* 滑动效果 */
.transition-type-slide.transition-left {
    animation: slideLeft 0.5s ease-in-out;
}

.transition-type-slide.transition-right {
    animation: slideRight 0.5s ease-in-out;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 缩放效果 */
.transition-type-zoom {
    animation: zoomTransition 0.5s ease-in-out;
}

@keyframes zoomTransition {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 翻转效果 */
.transition-type-flip {
    animation: flipTransition 0.6s ease-in-out;
}

@keyframes flipTransition {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    50% {
        transform: rotateY(90deg);
        opacity: 0.5;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* 百叶窗效果 */
.transition-type-blind {
    animation: blindTransition 0.6s ease-in-out;
}

@keyframes blindTransition {
    0% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 100% 0 0);
    }
}

/* 棋盘格效果 */
.transition-type-checkerboard {
    animation: checkerboardTransition 0.6s ease-in-out;
}

@keyframes checkerboardTransition {
    0% {
        background-image: linear-gradient(45deg, transparent 25%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.1) 50%, transparent 50%, transparent 75%, rgba(0,0,0,0.1) 75%);
        background-size: 20px 20px;
        opacity: 1;
    }
    100% {
        background-image: linear-gradient(45deg, transparent 25%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.1) 50%, transparent 50%, transparent 75%, rgba(0,0,0,0.1) 75%);
        background-size: 20px 20px;
        opacity: 0;
        transform: scale(1.2);
    }
}
