/* DSGAMO Designer Styles */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.designer-workspace {
    background: linear-gradient(145deg, #1a1a1a, #2a2a3a);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    width: 680px;
    height: 680px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ===== 智能分层滚动侧边栏容器 ===== */
.left-sidebar-main-container,
.right-sidebar-main-container {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow-y: auto; /* 容器层滚动 */
}

/* 固定头部和底部 */
.sidebar-header,
.sidebar-footer {
    background: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(15px);
    position: sticky;
    position: -webkit-sticky;
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-header {
    top: 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.sidebar-footer {
    bottom: 0;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* 可滚动内容区域 */
.left-sidebar-main-container .tool-panel,
.right-sidebar-main-container .tool-panel {
    flex: 1;
    overflow-y: visible; /* 内容不单独滚动，由容器控制 */
    background: transparent;
    backdrop-filter: none;
    border: none;
    width: 100% !important; /* 确保宽度自适应 */
    max-width: 100% !important; /* 防止内容溢出 */
    box-sizing: border-box; /* 包含padding在宽度计算内 */
    overflow-x: hidden; /* 防止横向滚动条 */
}

/* 左侧栏特定样式 */
.left-sidebar-main-container {
    border-right: 1px solid rgba(0, 212, 255, 0.2);
}

.left-sidebar-main-container .sidebar-header {
    border-right: 1px solid rgba(0, 212, 255, 0.2);
}

.left-sidebar-main-container .sidebar-footer {
    border-right: 1px solid rgba(0, 212, 255, 0.2);
}

/* 右侧栏特定样式 */
.right-sidebar-main-container {
    border-left: 1px solid rgba(0, 212, 255, 0.2);
}

.right-sidebar-main-container .sidebar-header {
    border-left: 1px solid rgba(0, 212, 255, 0.2);
}

.right-sidebar-main-container .sidebar-footer {
    border-left: 1px solid rgba(0, 212, 255, 0.2);
}

/* 防止内容溢出的额外样式 */
.left-sidebar-main-container *,
.right-sidebar-main-container * {
    box-sizing: border-box;
}

/* 确保输入框和选择框不会超出容器 */
.left-sidebar-main-container input[type="text"],
.left-sidebar-main-container input[type="number"],
.left-sidebar-main-container input[type="color"],
.left-sidebar-main-container select,
.left-sidebar-main-container textarea,
.right-sidebar-main-container input[type="text"],
.right-sidebar-main-container input[type="number"],
.right-sidebar-main-container input[type="color"],
.right-sidebar-main-container select,
.right-sidebar-main-container textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* 防止按钮组溢出 */
.left-sidebar-main-container .flex,
.right-sidebar-main-container .flex {
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* 修复输入框宽度 */
.left-sidebar-main-container .w-12,
.right-sidebar-main-container .w-12,
.left-sidebar-main-container .w-14,
.right-sidebar-main-container .w-14,
.left-sidebar-main-container .w-15,
.right-sidebar-main-container .w-15,
.left-sidebar-main-container .w-16,
.right-sidebar-main-container .w-16,
.left-sidebar-main-container .w-20,
.right-sidebar-main-container .w-20,
.left-sidebar-main-container .w-24,
.right-sidebar-main-container .w-24 {
    width: auto !important;
    max-width: 100% !important;
    min-width: 50px;
    flex: 1;
}

/* 特殊处理属性输入框 */
.left-sidebar-main-container .property-input,
.right-sidebar-main-container .property-input {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Font Settings 最小化调整 - 确保颜色选择器和字体大小输入框并排显示 */
.text-tool-group .flex.items-center.justify-center.space-x-4 {
    flex-wrap: nowrap !important;
    gap: 0.5rem;
}

/* 特别处理字体大小输入框宽度 */
.text-tool-group .property-input.w-15 {
    width: 3.75rem !important;
    min-width: 3.75rem !important;
    max-width: 3.75rem !important;
}

/* 处理flex容器中的输入框 */
.left-sidebar-main-container .flex > input,
.right-sidebar-main-container .flex > input,
.left-sidebar-main-container .flex > select,
.right-sidebar-main-container .flex > select {
    min-width: 0; /* 允许flex项目收缩 */
    flex: 1;
}

/* 防止网格布局溢出 */
.left-sidebar-main-container .grid,
.right-sidebar-main-container .grid {
    gap: 0.5rem;
}

.left-sidebar-main-container .grid > *,
.right-sidebar-main-container .grid > * {
    min-width: 0;
}

/* 头部和底部内容样式 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 48px;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    min-height: 36px;
}

/* 状态指示器动画 */
.sidebar-header .w-2.h-2,
.sidebar-footer .w-2.h-2 {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 容器层滚动条样式 */
.left-sidebar-main-container::-webkit-scrollbar,
.right-sidebar-main-container::-webkit-scrollbar {
    width: 6px;
    height: 6px; /* 也控制横向滚动条 */
}

.left-sidebar-main-container::-webkit-scrollbar-track,
.right-sidebar-main-container::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 3px;
}

.left-sidebar-main-container::-webkit-scrollbar-thumb,
.right-sidebar-main-container::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.left-sidebar-main-container::-webkit-scrollbar-thumb:hover,
.right-sidebar-main-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .right-sidebar-main-container {
        display: none; /* 移动端隐藏右侧栏 */
    }
}

/* 暗色主题优化 */
.sidebar-header {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(26, 26, 26, 0.95));
}

.sidebar-footer {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.95));
}

/* ===== 原有工具面板样式 ===== */
.tool-panel {
    background: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.tool-btn {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    line-height: 1;
}

/* Multi-View Selector Styles - Modern Redesign */
.view-selector-sidebar {
    width: 120px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 0.75rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.view-selector-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.view-btn-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    color: rgba(0, 212, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    min-height: 70px;
    overflow: hidden;
}

.view-btn-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.view-btn-vertical:hover {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.view-btn-vertical:hover::before {
    left: 100%;
}

.view-btn-vertical.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
    border-color: #00d4ff;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: scale(1.05);
    color: #00d4ff;
}

.view-btn-vertical.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #00ff88, #00d4ff);
    border-radius: 14px;
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.view-icon {
    font-size: 18px;
    margin-bottom: 3px;
    font-weight: 600;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
    transition: all 0.3s ease;
}

.view-btn-vertical.active .view-icon {
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.6));
    transform: scale(1.1);
}

.view-label {
    font-size: 10px;
    text-align: center;
    margin-bottom: 3px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.view-preview {
    width: 48px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(0, 212, 255, 0.1) 100%);
}

.view-btn-vertical.active .view-preview {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.2);
}    <link rel="stylesheet" href="designer.css">
 
        /* Multi-View Selector Styles - Modern Redesign */
        .view-selector-sidebar {
            width: 120px;
            background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.9));
            backdrop-filter: blur(15px);
            border: 1px solid rgba(0, 212, 255, 0.15);
            border-radius: 16px;
            padding: 0.75rem;
            height: fit-content;
            position: sticky;
            top: 2rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }
 
        .view-selector-vertical {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
 
        .view-btn-vertical {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 8px;
            background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 12px;
            color: rgba(0, 212, 255, 0.8);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            min-height: 70px;
            overflow: hidden;
        }
 
        .view-btn-vertical::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
            transition: left 0.6s ease;
        }
 
        .view-btn-vertical:hover {
            background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
            border-color: rgba(0, 212, 255, 0.4);
            transform: translateY(-1px) scale(1.02);
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
        }
 
        .view-btn-vertical:hover::before {
            left: 100%;
        }
 
        .view-btn-vertical.active {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
            border-color: #00d4ff;
            box-shadow: 
                0 0 20px rgba(0, 212, 255, 0.3),
                inset 0 0 20px rgba(0, 212, 255, 0.1);
            transform: scale(1.05);
            color: #00d4ff;
        }
 
        .view-btn-vertical.active::after {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #00d4ff, #00ff88, #00d4ff);
            border-radius: 14px;
            z-index: -1;
            animation: borderGlow 2s ease-in-out infinite alternate;
        }
 
        @keyframes borderGlow {
            0% { opacity: 0.3; }
            100% { opacity: 0.7; }
        }
 
        .view-icon {
            font-size: 18px;
            margin-bottom: 3px;
            font-weight: 600;
            filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
            transition: all 0.3s ease;
        }
 
        .view-btn-vertical.active .view-icon {
            filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.6));
            transform: scale(1.1);
        }
 
        .view-label {
            font-size: 10px;
            text-align: center;
            margin-bottom: 3px;
            font-weight: 500;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
        }
 
        .view-preview {
            width: 48px;
            height: 32px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 6px;
            border: 1px solid rgba(0, 212, 255, 0.15);
            background-size: cover;
            background-position: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
 
        .view-preview::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, transparent 60%, rgba(0, 212, 255, 0.1) 100%);
        }
 
        .view-btn-vertical.active .view-preview {
            border-color: rgba(0, 212, 255, 0.4);
            box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.2);
        }
 
        /* Enhanced hover effects for view buttons */
        .view-btn-vertical {
            position: relative;
            isolation: isolate;
        }
 
        .view-btn-vertical::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }
 
        .view-btn-vertical:hover::before {
            opacity: 1;
        }
 
        /* Add subtle pulse animation for active state */
        .view-btn-vertical.active {
            animation: subtlePulse 2s ease-in-out infinite;
        }
 
        @keyframes subtlePulse {
            0%, 100% { 
                box-shadow: 
                    0 0 20px rgba(0, 212, 255, 0.3),
                    inset 0 0 20px rgba(0, 212, 255, 0.1);
            }
            50% { 
                box-shadow: 
                    0 0 30px rgba(0, 212, 255, 0.4),
                    inset 0 0 25px rgba(0, 212, 255, 0.15);
            }
        }
 
        .current-view-indicator {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
            border-radius: 10px;
            padding: 6px 10px;
            border: 1px solid rgba(0, 212, 255, 0.2);
            backdrop-filter: blur(10px);
            margin-top: 0.75rem;
        }
 
        .current-view-indicator .text-gray-400 {
            color: rgba(156, 163, 175, 0.7) !important;
            font-size: 9px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
 
        .current-view-indicator .text-tech-blue {
            color: #00d4ff !important;
            font-size: 9px;
            font-weight: 600;
            text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
        }
 
        /* View switching animation */
        @keyframes viewSwitchFade {
            0% { opacity: 0; transform: translateX(-20px); }
            100% { opacity: 1; transform: translateX(0); }
        }
 
        .view-switching {
            animation: viewSwitchFade 0.3s ease-out;
        }
 
        /* Mobile responsive */
        @media (max-width: 1024px) {
            .view-selector-sidebar {
                width: 90px;
                padding: 0.6rem;
                border-radius: 12px;
                margin: 4px;
            }
 
            .view-selector-vertical {
                gap: 0.4rem;
            }
 
            .view-btn-vertical {
                min-height: 60px;
                padding: 10px 6px;
                border-radius: 10px;
            }
 
            .view-icon {
                font-size: 16px;
                margin-bottom: 2px;
            }
 
            .view-label {
                font-size: 9px;
                margin-bottom: 2px;
            }
 
            .view-preview {
                width: 36px;
                height: 24px;
                border-radius: 4px;
            }
 
            .current-view-indicator {
                padding: 4px 6px;
                border-radius: 8px;
                margin-top: 0.5rem;
            }
 
            .current-view-indicator .text-gray-400,
            .current-view-indicator .text-tech-blue {
                font-size: 8px;
            }
 
            /* Mobile canvas full width */
            .max-w-4xl {
                max-width: 100% !important;
            }
        }
 
        /* Visual Product Gallery Styles */
        .product-gallery {
            scrollbar-width: thin;
            scrollbar-color: #00d4ff #1a1a1a;
        }
 
        .product-gallery::-webkit-scrollbar {
            width: 4px;
        }
 
        .product-gallery::-webkit-scrollbar-track {
            background: #1a1a1a;
        }
 
        .product-gallery::-webkit-scrollbar-thumb {
            background: #00d4ff;
            border-radius: 2px;
        }
 
        .product-card {
            background: rgba(42, 42, 42, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 8px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            min-height: 140px;
        }
 
        .product-card:hover {
            border-color: rgba(0, 212, 255, 0.5);
            background: rgba(42, 42, 42, 0.9);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
        }
 
        .product-card.selected {
            border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        }
 
        .product-card.selected::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00d4ff, transparent);
        }

        .priority-indicator {
            position: absolute;
            top: 8px;
            left: 8px;
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            color: #000;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
            animation: priorityPulse 2s ease-in-out infinite;
        }

        @keyframes priorityPulse {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
            }
            50% { 
                transform: scale(1.1);
                box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
            }
        }
 
        .product-image {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
 
        .product-name {
            color: #ffffff;
            font-size: 0.875rem;
            font-weight: 600;
            line-height: 1.2;
            text-align: center;
            word-break: break-word;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
 
        .product-indicator {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00ff88;
            box-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
        }
 
        .product-indicator.no-print {
            background: #ff6b35;
            box-shadow: 0 0 6px rgba(255, 107, 53, 0.6);
        }
 
        /* Loading state for product gallery */
        .product-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            color: #00d4ff;
        }
 
        /* Load more button enhancement */
        #load-more-products {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
 
        #load-more-products:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
        }
 
        #load-more-products:active {
            transform: translateY(0);
        }
 
        /* Product card animations */
        @keyframes productCardAppear {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(10px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
 
        .product-card {
            animation: productCardAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
 
        .product-card:nth-child(2n) {
            animation-delay: 0.05s;
        }
 
        .product-card:nth-child(3n) {
            animation-delay: 0.1s;
        }
 
        /* Hover effects for product images */
        .product-image {
            transition: transform 0.3s ease, filter 0.3s ease;
        }
 
        .product-card:hover .product-image {
            transform: scale(1.05);
            filter: brightness(1.1);
        }
 
        /* Selection animation */
        @keyframes selectionGlow {
            0% {
                box-shadow: 0 0 0 rgba(0, 212, 255, 0);
            }
            50% {
                box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
            }
            100% {
                box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
            }
        }
 
        .product-card.selected {
            animation: selectionGlow 0.5s ease-out;
        }
 
        /* Selected product info enhancement */
        #selected-product-info {
            border: 1px solid rgba(0, 212, 255, 0.2);
            background: rgba(0, 212, 255, 0.03);
        }
 
        /* Product color selection in selected product info */
        .color-option {
            width: 32px;
            height: 32px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
 
        .color-option:hover {
            border-color: #00d4ff;
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }
 
        .color-option.selected {
            border-color: #00ff88;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
            transform: scale(1.05);
        }
 
        .color-option.selected::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 14px;
            font-weight: bold;
            text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
        }
 
        /* Color image preview */
        #selected-color-image {
            border: 1px solid rgba(0, 212, 255, 0.3);
            transition: all 0.3s ease;
        }
 
        #selected-color-image:hover {
            border-color: rgba(0, 212, 255, 0.8);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
        }
 
        .tool-btn:hover, .tool-btn.active {
            background: rgba(0, 212, 255, 0.2);
            border-color: rgba(0, 212, 255, 0.6);
            color: #00d4ff;
        }
 
        .tool-btn span {
            font-size: 0.65rem;
            margin-top: 2px;
            white-space: nowrap;
        }
 
        #canvas-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }
 
        #design-canvas {
            display: block;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }
 
        /* 响应式布局系统 */
        .layout-container {
            display: grid;
            grid-template-areas: 
                "toolbar canvas properties";
            grid-template-columns: 
                minmax(280px, 320px) 
                1fr 
                minmax(280px, 320px);
            height: calc(100vh - 88px); /* 减去现代导航栏高度 */
        }
 
        /* 超宽屏优化 */
        @media (min-width: 1921px) {
            .layout-container {
                grid-template-columns: 360px 1fr 360px;
                max-width: 2400px;
                margin: 0 auto;
            }
        }
 
        /* 标准桌面优化 */
        @media (min-width: 1441px) and (max-width: 1920px) {
            .layout-container {
                grid-template-columns: 320px 1fr 320px;
            }
        }
 
        /* 小桌面优化 */
        @media (min-width: 1201px) and (max-width: 1440px) {
            .layout-container {
                grid-template-columns: 280px 1fr 280px;
            }
        }
 
        /* 平板横屏优化 */
        @media (min-width: 1025px) and (max-width: 1200px) {
            .layout-container {
                grid-template-columns: 250px 1fr 250px;
            }
        }
 
        /* 智能底部导航显示控制 */
        .mobile-bottom-nav {
            display: none; /* 默认隐藏 */
        }
 
        /* 移动端显示底部导航 */
        @media (max-width: 1024px) {
            .mobile-bottom-nav {
                display: flex;
            }
 
            /* 移动端布局调整 - 现代导航不需要底部空间 */
            .layout-container {
                padding-bottom: 0; /* 现代导航不需要底部空间 */
            }
 
            /* 现代导航移动端适配 */
            .modern-nav + .layout-container {
                padding-top: 72px; /* 现代导航高度 */
            }
        }
 
        /* 桌面端隐藏底部导航 */
        @media (min-width: 1025px) {
            .mobile-bottom-nav {
                display: none !important;
            }
 
            .layout-container {
                padding-bottom: 0;
            }
        }
 
        /* 底部导航样式优化 */
        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0, 212, 255, 0.3);
            padding: 12px 16px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 1000;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
 
        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px 12px;
            border: none;
            background: transparent;
            color: rgba(156, 163, 175, 0.8);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            min-width: 60px;
        }
 
        .mobile-nav-item:hover {
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
            transform: translateY(-2px);
        }
 
        .mobile-nav-item:active {
            transform: translateY(0);
            background: rgba(0, 212, 255, 0.2);
        }
 
        .mobile-nav-item.active {
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.2);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
        }
 
        .mobile-nav-icon {
            font-size: 20px;
            margin-bottom: 4px;
            transition: all 0.2s ease;
        }
 
        .mobile-nav-text {
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
 
        /* 手势支持优化 */
        .mobile-nav-item {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
 
        /* 横屏模式优化 */
        @media (max-width: 1024px) and (orientation: landscape) {
            .mobile-bottom-nav {
                padding: 8px 16px;
            }
 
            .mobile-nav-item {
                min-width: 50px;
                padding: 6px 8px;
            }
 
            .mobile-nav-icon {
                font-size: 18px;
                margin-bottom: 2px;
            }
 
            .mobile-nav-text {
                font-size: 9px;
            }
        }
 
        /* 小屏幕优化 */
        @media (max-width: 375px) {
            .mobile-nav-item {
                min-width: 50px;
                padding: 6px 6px;
            }
 
            .mobile-nav-icon {
                font-size: 18px;
            }
 
            .mobile-nav-text {
                font-size: 9px;
            }
        }
 
        /* 面板折叠状态 */
        .panel-collapsed {
            width: 60px !important;
            min-width: 60px !important;
        }
 
        .panel-collapsed .panel-content {
            display: none;
        }
 
        .panel-collapsed .panel-header {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            padding: 10px 5px;
        }
 
        /* 全屏模式优化 */
 
        .fullscreen-mode .layout-container {
            height: 100vh;
            padding-top: 0;
        }
 
        /* 设置面板样式 */
        .settings-panel {
            position: fixed;
            top: 88px; /* 调整为导航栏高度 */
            right: 20px;
            z-index: 99;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 12px;
            padding: 20px;
            min-width: 280px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            display: none;
        }
 
        /* 现代顶部导航栏设计 */
        .modern-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 212, 255, 0.2);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
 
        .nav-container {
            max-width: 1920px;
            margin: 0 auto;
            padding: 0 24px;
            height: 72px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
 
        .nav-brand {
            display: flex;
            align-items: center;
            gap: 16px;
        }
 
        .brand-logo {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #00d4ff, #00ff88);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            color: #000;
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
            transition: all 0.3s ease;
        }
 
        .brand-logo:hover {
            transform: rotate(180deg) scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
        }
 
        .brand-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
 
        .brand-title {
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(135deg, #00d4ff, #00ff88);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
        }
 
        .brand-subtitle {
            font-size: 11px;
            color: rgba(156, 163, 175, 0.8);
            font-weight: 500;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
 
        .nav-center {
            display: flex;
            align-items: center;
            gap: 8px;
        }
 
        .nav-item {
            position: relative;
            padding: 10px 16px;
            border: none;
            background: transparent;
            color: rgba(156, 163, 175, 0.9);
            font-size: 14px;
            font-weight: 500;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
 
        .nav-item:hover {
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
            transform: translateY(-1px);
        }
 
        .nav-item.active {
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.2);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
        }
 
        .nav-item::before {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #00d4ff, #00ff88);
            transition: all 0.3s ease;
            transform: translateX(-50%);
            border-radius: 1px;
        }
 
        .nav-item.active::before,
        .nav-item:hover::before {
            width: 80%;
        }
 
        .nav-icon {
            font-size: 16px;
            transition: all 0.2s ease;
        }
 
        .nav-item:hover .nav-icon {
            transform: scale(1.1);
        }
 
        .nav-text {
            position: relative;
        }
 
        .nav-badge {
            position: absolute;
            top: -6px;
            right: -8px;
            background: linear-gradient(135deg, #00ff88, #00d4ff);
            color: #000;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse 2s infinite;
        }
 
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }
 
        .nav-action-group {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            background: rgba(42, 42, 42, 0.5);
            border-radius: 12px;
            border: 1px solid rgba(0, 212, 255, 0.1);
        }
 
        .nav-action-btn {
            position: relative;
            padding: 10px 14px;
            border: none;
            background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
            font-size: 13px;
            font-weight: 500;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 6px;
            overflow: hidden;
        }
 
        .nav-action-btn:hover {
            background: rgba(0, 212, 255, 0.2);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
        }
 
        .nav-action-btn:active {
            transform: translateY(0);
        }
 
        .nav-action-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(0, 212, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }
 
        .nav-action-btn:active::after {
            width: 100%;
            height: 100%;
            opacity: 0;
        }
 
        .nav-action-icon {
            font-size: 14px;
            transition: all 0.2s ease;
        }
 
        .nav-action-text {
            font-size: 12px;
            font-weight: 500;
        }
 
        .nav-divider {
            width: 1px;
            height: 24px;
            background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.3), transparent);
            margin: 0 8px;
        }
 
        .nav-menu-toggle {
            display: none;
            padding: 10px;
            background: rgba(0, 212, 255, 0.1);
            border: 1px solid rgba(0, 212, 255, 0.3);
            color: #00d4ff;
            border-radius: 8px;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.2s ease;
        }
 
        .nav-menu-toggle:hover {
            background: rgba(0, 212, 255, 0.2);
            transform: scale(1.05);
        }
 
        /* 集成设置触发器样式 - 来自designer-1 */
        .integrated-settings-trigger {
            position: relative;
            padding: 10px;
            background: rgba(42, 42, 42, 0.5);
            border: 1px solid rgba(0, 212, 255, 0.2);
            color: #00d4ff;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }
 
        .integrated-settings-trigger:hover {
            background: rgba(0, 212, 255, 0.1);
            border-color: rgba(0, 212, 255, 0.4);
            color: #00d4ff;
            transform: scale(1.05);
        }
 
        .integrated-settings-trigger.active {
            background: rgba(0, 212, 255, 0.2);
            border-color: rgba(0, 212, 255, 0.6);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
        }
 
        /* 响应式导航 */
        @media (max-width: 1200px) {
            .nav-container {
                padding: 0 16px;
            }
 
            .nav-center {
                gap: 4px;
            }
 
            .nav-item {
                padding: 8px 12px;
                font-size: 13px;
            }
        }
 
        @media (max-width: 768px) {
            .nav-container {
                padding: 0 12px;
            }
 
            .nav-center {
                display: none;
            }
 
            .nav-menu-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }
 
            .brand-title {
                font-size: 18px;
            }
 
            .brand-subtitle {
                font-size: 10px;
            }
 
            .nav-actions {
                gap: 8px;
            }
 
            .nav-action-group {
                gap: 6px;
                padding: 6px;
            }
 
            .nav-action-btn {
                padding: 8px 12px;
                font-size: 12px;
            }
        }
 
        /* 导航动画 */
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
 
        /* 移动端菜单动画 */
        @keyframes slideUpMenu {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
 
        @keyframes slideDownMenu {
            from {
                transform: translateY(0);
                opacity: 1;
            }
            to {
                transform: translateY(100%);
                opacity: 0;
            }
        }
 
        /* 移动端菜单样式 */
        .mobile-nav-menu {
            position: fixed;
            top: 72px; /* 导航栏高度 */
            left: 0;
            right: 0;
            background: rgba(26, 26, 26, 0.98);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 212, 255, 0.2);
            z-index: 999;
            display: none;
            transform: translateY(-100%);
        }
 
        .mobile-nav-menu.show {
            display: block;
            transform: translateY(0);
        }
 
        .mobile-nav-content {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
 
        .mobile-nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: rgba(42, 42, 42, 0.5);
            border: 1px solid rgba(0, 212, 255, 0.1);
            border-radius: 10px;
            color: rgba(156, 163, 175, 0.9);
            text-decoration: none;
            transition: all 0.2s ease;
            font-size: 14px;
            font-weight: 500;
        }
 
        .mobile-nav-item:hover,
        .mobile-nav-item.active {
            background: rgba(0, 212, 255, 0.1);
            border-color: rgba(0, 212, 255, 0.3);
            color: #00d4ff;
            transform: translateX(4px);
        }
 
        .mobile-nav-item i {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }
 
        .mobile-nav-item span {
            flex: 1;
        }
 
        /* 响应式布局调整 */
        .modern-nav + .layout-container {
            padding-top: 88px; /* 调整为主要导航高度 */
        }
 
        /* 工作区切换器位置调整 - 现在集成到导航栏中，不需要独立定位 */
 
        /* 设置触发器位置调整 - 现在集成到导航栏中 */
 
        /* 布局调整 - 工作区切换器现在集成到导航栏中 */
        .integrated-workspace {
            margin-right: 16px; /* 与导航链接的间距 */
        }
 
        .integrated-settings-trigger {
            margin-left: 8px; /* 与操作按钮的间距 */
        }
 
        /* 新的布局容器样式 - 工作区切换器在导航栏内 */
        .layout-container {
            display: grid;
            grid-template-areas: 
                "toolbar canvas properties";
            grid-template-columns: 
                minmax(280px, 320px) 
                1fr 
                minmax(280px, 320px);
            height: calc(100vh - 88px); /* 调整为导航栏高度 */
        }
 
        /* 响应式布局调整 */
        @media (max-width: 1200px) {
            .layout-container {
                grid-template-columns: 250px 1fr 250px;
            }
        }
 
        @media (max-width: 768px) {
            .layout-container {
                grid-template-columns: 1fr;
                grid-template-areas: "canvas";
                height: calc(100vh - 88px); /* 保持导航栏高度 */
            }
 
            .tool-panel[style*="toolbar"],
            .tool-panel[style*="properties"] {
                display: none;
            }
        }
 
        /* 全屏模式下的导航调整 */
        .fullscreen-mode .modern-nav {
            transform: translateY(-100%);
            transition: transform 0.3s ease;
        }
        /* 集成式工作区切换器 - 现代设计 */
        .integrated-workspace {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(42, 42, 42, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 10px;
            padding: 6px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
 
        .integrated-workspace:hover {
            background: rgba(42, 42, 42, 0.9);
            border-color: rgba(0, 212, 255, 0.4);
        }
 
        .workspace-label {
            font-size: 12px;
            color: rgba(156, 163, 175, 0.8);
            font-weight: 500;
            margin-right: 4px;
            white-space: nowrap;
        }
 
        .integrated-workspace-switcher {
            display: flex;
            gap: 2px;
            background: transparent;
            border: none;
            padding: 0;
        }
 
        .integrated-workspace-btn {
            padding: 8px 12px;
            border: none;
            background: transparent;
            color: rgba(156, 163, 175, 0.9);
            font-size: 12px;
            font-weight: 500;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 4px;
            min-width: 60px;
            justify-content: center;
        }
 
        .integrated-workspace-btn:hover {
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
        }
 
        .integrated-workspace-btn.active {
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.2);
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        }
 
        .integrated-workspace-btn i {
            font-size: 12px;
            transition: all 0.2s ease;
        }
 
        .integrated-workspace-btn:hover i {
            transform: scale(1.1);
        }
 
        .integrated-workspace-btn .workspace-text {
            font-size: 11px;
            font-weight: 500;
        }
 
        /* 紧凑模式下的工作区切换器 */
        .compact-workspace {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(42, 42, 42, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.15);
            border-radius: 8px;
            padding: 4px;
        }
 
        .compact-workspace-btn {
            padding: 6px 8px;
            min-width: 40px;
            font-size: 11px;
        }
 
        /* 响应式调整 */
        @media (max-width: 1200px) {
            .workspace-label {
                display: none; /* 隐藏标签以节省空间 */
            }
 
            .integrated-workspace-btn {
                padding: 6px 8px;
                min-width: 40px;
            }
        }
 
        @media (max-width: 768px) {
            .integrated-workspace {
                flex-direction: column;
                gap: 6px;
                padding: 4px;
            }
 
            .integrated-workspace-switcher {
                flex-direction: row;
            }
 
            .integrated-workspace-btn {
                padding: 4px 6px;
                min-width: 35px;
                font-size: 10px;
            }
 
            .workspace-label {
                display: none;
            }
        }
 
        /* 工作区切换动画 */
        @keyframes workspaceSwitch {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }
 
        .integrated-workspace-btn.switching {
            animation: workspaceSwitch 0.2s ease;
        }
 
        /* 文本工具优化样式 */
        .text-tool-group {
            background: rgba(42, 42, 42, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 212, 255, 0.1);
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 12px;
            transition: all 0.3s ease;
        }
 
        .text-tool-group:hover {
            background: rgba(42, 42, 42, 0.4);
            border-color: rgba(0, 212, 255, 0.2);
        }
 
        .text-tool-label {
            color: rgba(156, 163, 175, 0.9);
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
 
        .text-style-btn {
            height: 42px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 6px;
            font-size: 14px;
            transition: all 0.2s ease;
            border-radius: 8px;
            line-height: 1;
        }
 
        .text-style-btn:hover {
            transform: translateY(-1px);
        }
 
        .text-style-btn.active {
            background: rgba(0, 212, 255, 0.2);
            border-color: rgba(0, 212, 255, 0.6);
            color: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        }
 
        .color-picker-small {
            width: 40px;
            height: 40px;
            border: 2px solid rgba(156, 163, 175, 0.3);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
 
        .color-picker-small:hover {
            border-color: rgba(0, 212, 255, 0.8);
            transform: scale(1.02);
            box-shadow: 0 4px 8px rgba(0, 212, 255, 0.2);
        }
 
        .color-picker-small::-webkit-color-swatch-wrapper {
            padding: 0;
            border-radius: 6px;
        }
 
        .color-picker-small::-webkit-color-swatch {
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        .color-picker-small::-moz-color-swatch {
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        .color-picker::-webkit-color-swatch-wrapper {
            padding: 0;
            border-radius: 6px;
        }

        .color-picker::-webkit-color-swatch {
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        .color-picker::-moz-color-swatch {
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }
 
        .add-text-btn {
            background: linear-gradient(135deg, #00d4ff, #00ff88);
            border: none;
            color: #000;
            font-weight: 600;
            height: 44px;
            padding: 0 24px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 6px;
            position: relative;
            overflow: hidden;
            min-width: 160px;
            font-size: 14px;
            text-align: center;
            line-height: 1;
            white-space: nowrap;
            vertical-align: middle;
            font-family: inherit;
        }
 
        .add-text-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
            background: linear-gradient(135deg, #00e4ff, #10ff98);
        }
 
        .add-text-btn:active {
            transform: translateY(0);
        }
 
        .add-text-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }
 
        .add-text-btn:active::after {
            width: 100%;
            height: 100%;
            opacity: 0;
        }
 
        /* 按钮容器居中 */
        .flex.justify-center {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }
 
        /* 增强的按钮居中效果 */
        .add-text-btn-container {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px 0;
            margin-top: 8px;
            width: 100%;
        }
 
        /* 按钮文本对齐 */
        .add-text-btn i {
            font-size: 14px;
            transition: transform 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            margin-right: 8px;
        }
 
        .add-text-btn:hover i {
            transform: scale(1.1);
        }
 
        /* 按钮文字完美居中 */
        .add-text-btn span {
            display: inline-block;
            vertical-align: middle;
            line-height: 1;
            position: relative;
            top: 0;
        }
 
        /* 强制完美居中对齐 */
        .add-text-btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
        }
 
        .add-text-btn i,
        .add-text-btn span {
            vertical-align: baseline !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            line-height: 1 !important;
        }
 
        /* 调试：确保容器也居中 */
        .add-text-btn-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            text-align: center;
        }
 
        /* Properties面板动画 */
        @keyframes propertySectionSlideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
 
        .property-section {
            animation: propertySectionSlideIn 0.4s ease-out;
        }
 
        .property-section:nth-child(2) {
            animation-delay: 0.1s;
        }
 
        .property-section:nth-child(3) {
            animation-delay: 0.2s;
        }
 
        .property-section:nth-child(4) {
            animation-delay: 0.3s;
        }
 
        /* 输入框焦点动画 */
        .property-input:focus {
            animation: inputFocus 0.2s ease;
        }
 
        @keyframes inputFocus {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }
 
        /* 滑块值更新动画 */
        @keyframes sliderValueUpdate {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
 
        .slider-value.updated {
            animation: sliderValueUpdate 0.2s ease;
        }
 
        /* Properties部分优化样式 */
        .property-section {
            background: rgba(42, 42, 42, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 212, 255, 0.1);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            transition: all 0.3s ease;
        }
 
        .property-section:hover {
            background: rgba(42, 42, 42, 0.4);
            border-color: rgba(0, 212, 255, 0.2);
        }
 
        .property-section-title {
            color: rgba(156, 163, 175, 0.9);
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
 
        .property-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
 
        .property-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
 
        .property-label {
            color: rgba(156, 163, 175, 0.8);
            font-size: 11px;
            font-weight: 500;
            text-transform: capitalize;
        }
 
        .input-with-unit {
            display: flex;
            align-items: center;
            gap: 6px;
            position: relative;
        }
 
        .input-with-unit .property-input {
            flex: 1;
            padding: 8px 10px;
            font-size: 12px;
        }
 
        .unit {
            color: rgba(156, 163, 175, 0.6);
            font-size: 10px;
            font-weight: 500;
            min-width: 16px;
            text-align: right;
        }
 
        /* 现代化滑块 */
        .slider-control {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
 
        .slider-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
 
        .slider-value {
            color: #00d4ff;
            font-size: 11px;
            font-weight: 600;
            background: rgba(0, 212, 255, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid rgba(0, 212, 255, 0.2);
        }
 
        .modern-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            background: rgba(156, 163, 175, 0.2);
            border-radius: 2px;
            outline: none;
            margin: 8px 0;
        }
 
        .modern-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            background: linear-gradient(135deg, #00d4ff, #00ff88);
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
            transition: all 0.2s ease;
        }
 
        .modern-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
        }
 
        .modern-slider::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: linear-gradient(135deg, #00d4ff, #00ff88);
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
            transition: all 0.2s ease;
        }
 
        .slider-labels {
            display: flex;
            justify-content: space-between;
            color: rgba(156, 163, 175, 0.6);
            font-size: 10px;
            margin-top: 4px;
        }
 
        /* 属性选择器 */
        .property-select {
            width: 100%;
            padding: 8px 10px;
            background: rgba(26, 26, 26, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 6px;
            color: #e5e7eb;
            font-size: 12px;
            transition: all 0.2s ease;
        }
 
        .property-select:focus {
            outline: none;
            border-color: #00d4ff;
            box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
        }
 
        /* 快速操作按钮 */
        .quick-actions-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }
 
        .quick-action-btn {
            background: rgba(26, 26, 26, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.2);
            color: rgba(156, 163, 175, 0.9);
            padding: 10px 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            text-align: center;
        }
 
        .quick-action-btn:hover {
            background: rgba(0, 212, 255, 0.1);
            border-color: rgba(0, 212, 255, 0.4);
            color: #00d4ff;
            transform: translateY(-1px);
        }
 
        .quick-action-btn i {
            font-size: 12px;
            transition: transform 0.2s ease;
        }
 
        .quick-action-btn:hover i {
            transform: scale(1.1);
        }
 
        .quick-action-btn span {
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
 
        .add-text-btn i {
            height: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
        }
 
        /* 文本工具动画 */
        @keyframes textToolSlideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
 
        .text-tool-group {
            animation: textToolSlideIn 0.4s ease-out;
        }
 
        .text-tool-group:nth-child(2) {
            animation-delay: 0.1s;
        }
 
        .text-tool-group:nth-child(3) {
            animation-delay: 0.2s;
        }
 
        .text-tool-group:nth-child(4) {
            animation-delay: 0.3s;
        }
 
        /* 输入框焦点效果 */
        .property-input:focus {
            box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3);
            border-color: #00d4ff;
        }
 
        /* 按钮悬停效果增强 */
        .tool-btn:hover {
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
        }
 
        .tool-btn.active:hover {
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
        }
 
        /* 移动端工作区部分 */
        .mobile-workspace-section {
            padding: 16px;
            border-bottom: 1px solid rgba(0, 212, 255, 0.1);
        }
 
        .mobile-workspace-title {
            font-size: 14px;
            color: #00d4ff;
            font-weight: 600;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
 
        .mobile-workspace-buttons {
            display: flex;
            gap: 8px;
        }
 
        .mobile-workspace-btn {
            flex: 1;
            padding: 10px 12px;
            border: none;
            background: rgba(42, 42, 42, 0.5);
            color: rgba(156, 163, 175, 0.9);
            font-size: 12px;
            font-weight: 500;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
 
        .mobile-workspace-btn:hover,
        .mobile-workspace-btn.active {
            background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
        }
 
        .settings-panel.show {
            display: block;
            animation: slideInRight 0.3s ease;
        }
 
        .settings-title {
            color: #00d4ff;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
 
        .settings-group {
            margin-bottom: 20px;
        }
 
        .settings-label {
            color: rgba(156, 163, 175, 0.9);
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
 
        .settings-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px;
            background: rgba(42, 42, 42, 0.5);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid rgba(0, 212, 255, 0.1);
        }
 
        .settings-toggle:hover {
            background: rgba(42, 42, 42, 0.8);
            border-color: rgba(0, 212, 255, 0.3);
        }
 
        .toggle-switch {
            position: relative;
            width: 44px;
            height: 24px;
            background: rgba(156, 163, 175, 0.3);
            border-radius: 12px;
            transition: all 0.3s ease;
            cursor: pointer;
        }
 
        .toggle-switch.active {
            background: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }
 
        .toggle-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
 
        .toggle-switch.active::after {
            transform: translateX(20px);
        }
 
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
 
        /* 视觉层次优化 */
        .tool-panel {
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(20px);
            border-color: rgba(0, 212, 255, 0.2);
        }
 
        .tool-btn {
            background: rgba(0, 212, 255, 0.1);
            border: 1px solid rgba(0, 212, 255, 0.3);
            color: #00d4ff;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
 
        .tool-btn:hover {
            background: rgba(0, 212, 255, 0.2);
            border-color: rgba(0, 212, 255, 0.6);
            color: #00d4ff;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
        }
 
        .tool-btn.active {
            background: rgba(0, 212, 255, 0.3);
            border-color: #00d4ff;
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        }
 
        /* 增强对比度 */
        .text-gray-400 {
            color: rgba(156, 163, 175, 0.8);
        }
 
        .property-input {
            background: rgba(42, 42, 42, 0.9);
            border-color: rgba(0, 212, 255, 0.3);
        }
 
        .property-input:focus {
            border-color: #00d4ff;
            box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
        }
 
        /* 微交互动画 */
        @keyframes subtle-glow {
            0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
            50% { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
        }
 
        .designer-workspace {
            animation: subtle-glow 3s ease-in-out infinite;
        }
 
        /* Preview Purchase Button Animation */
        @keyframes pulse-glow {
            0%, 100% { 
                box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 255, 136, 0.2); 
            }
            50% { 
                box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 255, 136, 0.3); 
            }
        }
 
        /* 加载状态优化 */
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(26, 26, 26, 0.8);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            border-radius: 8px;
        }
 
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(0, 212, 255, 0.3);
            border-top: 3px solid #00d4ff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
 
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
 
        .layer-item {
            background: rgba(42, 42, 42, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.1);
            transition: all 0.3s ease;
        }
 
        .layer-item:hover, .layer-item.selected {
            border-color: rgba(0, 212, 255, 0.4);
            background: rgba(0, 212, 255, 0.1);
        }

        /* 按钮点击效果 */
        .tool-btn:active {
            transform: scale(0.95);
            box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
        }

        /* Bring to front button special styles */
        #move-to-top.tool-btn {
            background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
        }

        #move-to-top.tool-btn:hover {
            background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.25));
        }

        /* 删除图层按钮特殊样式 */
        #delete-layer.tool-btn {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 107, 53, 0.15));
        }

        #delete-layer.tool-btn:hover {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(255, 107, 53, 0.25));
        }
        
        /* 空状态样式 */
        .empty-state button {
            transition: all 0.3s ease;
        }
        
        .empty-state button:hover {
            background: rgba(0, 212, 255, 0.9);
        }

        /* 右键菜单样式 */
        .context-menu {
            min-width: 120px;
            font-size: 0.875rem;
        }

        .context-menu-item {
            transition: all 0.2s ease;
            margin: 2px 0;
        }

        .context-menu-item:hover {
            transform: translateX(2px);
        }

        .context-menu-item:active {
            transform: translateX(0);
        }
 
        .property-input {
            background: rgba(42, 42, 42, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.2);
            color: white;
        }
 
        .property-input:focus {
            border-color: rgba(0, 212, 255, 0.6);
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
        }
 
        .color-picker {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            border: 2px solid rgba(0, 212, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
 
        .color-picker:hover {
            border-color: rgba(0, 212, 255, 0.6);
            transform: scale(1.1);
        }
 
        .upload-zone {
            border: 3px dashed rgba(0, 212, 255, 0.6);
            background: rgba(0, 212, 255, 0.05);
            transition: all 0.3s ease;
        }
 
        .upload-zone:hover, .upload-zone.dragover {
            border-color: rgba(0, 212, 255, 0.6);
            background: rgba(0, 212, 255, 0.1);
        }

        .add-text-zone {
            border: 3px dashed rgba(0, 212, 255, 0.6);
            background: rgba(0, 212, 255, 0.05);
            transition: all 0.3s ease;
        }

        .add-text-zone:hover {
            border-color: rgba(0, 212, 255, 0.6);
            background: rgba(0, 212, 255, 0.1);
        }
 
        .template-card {
            background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
            border: 1px solid rgba(0, 212, 255, 0.2);
            transition: all 0.3s ease;
            cursor: pointer;
        }
 
        .template-card:hover {
            border-color: rgba(0, 212, 255, 0.6);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
        }
 
        .history-item {
            background: rgba(42, 42, 42, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }
 
        .history-item:hover {
            border-color: rgba(0, 212, 255, 0.4);
            background: rgba(0, 212, 255, 0.1);
        }
 
        .ai-suggestion {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
            border: 1px solid rgba(0, 212, 255, 0.3);
        }
 
        @keyframes pulse {
            0%, 100% { opacity: 0.9; }
            50% { opacity: 1; }
        }
 
        .collaboration-cursor {
            position: absolute;
            pointer-events: none;
            z-index: 1000;
        }
 
        .voice-control-btn {
            background: linear-gradient(135deg, #ff6b35, #f7931e);
        }
 
        .mobile-optimized {
            display: none;
        }
 
        @media (max-width: 768px) {
            .desktop-only {
                display: none !important;
            }
            .mobile-optimized {
                display: block;
            }
        }
 
        /* 内容区域显示控制 - 修复菜单切换 */
        .content-section {
            display: none;
        }
 
        .content-section.active {
            display: block !important;
        }
 
        /* 确保隐藏的内容区域不会意外显示 */
        .content-section:not(.active) {
            display: none !important;
            visibility: hidden !important;
        }

        /* 适配新容器结构的内容区域样式 */
        .left-sidebar-main-container .content-section,
        .right-sidebar-main-container .content-section {
            width: 100%;
            box-sizing: border-box;
        }

        /* 确保工具面板内的内容区域正确显示 */
        .left-sidebar-main-container .tool-panel .content-section.active,
        .right-sidebar-main-container .tool-panel .content-section.active {
            display: block !important;
        }
 
        /* ===== 滚动条美化 - 现代化暗黑风格 ===== */
 
        /* 基础滚动条样式 - Webkit浏览器 (Chrome, Safari, Edge) */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
 
        ::-webkit-scrollbar-track {
            background: rgba(26, 26, 26, 0.8);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
 
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #00d4ff, #00ff88);
            border-radius: 4px;
            border: 1px solid rgba(0, 212, 255, 0.3);
            transition: all 0.3s ease;
        }
 
        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #00b4df, #00df77);
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
            transform: scaleY(1.1);
        }
 
        ::-webkit-scrollbar-thumb:active {
            background: linear-gradient(135deg, #0099cc, #00cc66);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
        }
 
        ::-webkit-scrollbar-corner {
            background: rgba(26, 26, 26, 0.8);
        }
 
        /* 特定区域的自定义滚动条 */
        .product-gallery::-webkit-scrollbar {
            width: 6px;
        }
 
        .product-gallery::-webkit-scrollbar-track {
            background: rgba(42, 42, 42, 0.5);
            border-radius: 3px;
        }
 
        .product-gallery::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #00d4ff, #00ff88);
            border-radius: 3px;
            border: none;
        }
 
        .product-gallery::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #00b4df, #00df77);
            box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
        }
 
        /* 图层列表滚动条美化 */
        #layers-list::-webkit-scrollbar {
            width: 4px;
        }
 
        #layers-list::-webkit-scrollbar-track {
            background: rgba(26, 26, 26, 0.6);
            border-radius: 2px;
        }
 
        #layers-list::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #00d4ff, #0088cc);
            border-radius: 2px;
        }

        /* 增强图层排序样式 */
        .layer-item {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            border: 1px solid transparent;
            margin: 2px 0;
        }

        .layer-item:hover {
            background: rgba(0, 212, 255, 0.08);
            border-color: rgba(0, 212, 255, 0.2);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
        }

        .layer-item.selected {
            background: rgba(0, 212, 255, 0.15);
            border-color: rgba(0, 212, 255, 0.4);
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
        }

        .layer-item.dragging {
            opacity: 0.6;
            transform: rotate(2deg) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
            z-index: 1000;
        }

        .layer-item.drag-over {
            background: rgba(0, 212, 255, 0.2);
            border-color: #00d4ff;
            transform: scale(1.02);
        }

        /* 拖拽手柄样式 */
        .drag-handle {
            transition: all 0.2s ease;
            padding: 2px 4px;
            border-radius: 3px;
            font-size: 12px;
        }

        .drag-handle:hover {
            background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
            transform: scale(1.1);
        }

        .layer-item[draggable="true"] {
            cursor: grab;
        }

        .layer-item[draggable="true"]:active {
            cursor: grabbing;
        }

        /* 图层位置指示器 */
        .layer-position-indicator {
            margin-top: 8px;
        }

        .layer-position-indicator .bg-gray-700 {
            background: rgba(55, 65, 81, 0.3);
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        .layer-position-indicator .bg-gradient-to-r {
            background: linear-gradient(90deg, #00d4ff, #00ff88);
            transition: width 0.3s ease;
            box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
        }

        .layer-position-indicator .text-tech-blue {
            color: #00d4ff;
            font-weight: 600;
        }

        /* 排序按钮增强 */
        .layer-item button {
            transition: all 0.2s ease;
            padding: 2px 4px;
            border-radius: 3px;
        }

        .layer-item button:hover:not(:disabled) {
            background: rgba(0, 212, 255, 0.2);
            transform: scale(1.1);
        }

        .layer-item button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none !important;
        }

        /* 图层编号标签 */
        .layer-item .text-xs.text-gray-400.bg-gray-700 {
            background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(65, 75, 90, 0.9));
            color: #a0aec0;
            font-weight: 600;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            min-width: 24px;
            text-align: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            transition: all 0.2s ease;
        }

        .layer-item:hover .text-xs.text-gray-400.bg-gray-700 {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(65, 75, 90, 0.9));
            box-shadow: 0 2px 6px rgba(0, 212, 255, 0.2);
            transform: scale(1.02);
        }

        .layer-item.selected .text-xs.text-gray-400.bg-gray-700 {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 136, 0.2));
            color: #ffffff;
            box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
        }

        /* 拖拽时的视觉反馈 */
        @keyframes drag-pulse {
            0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
        }

        .layer-item.dragging {
            animation: drag-pulse 1s infinite;
        }

        /* 空状态增强 */
        .empty-state {
            background: rgba(26, 26, 26, 0.5);
            border: 2px dashed rgba(0, 212, 255, 0.3);
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        /* 图层操作按钮组样式 */
        .layer-actions-group {
            opacity: 0.8;
            transition: opacity 0.2s ease;
        }

        .layer-item:hover .layer-actions-group {
            opacity: 1;
        }



        /* 极简眼睛图标样式 */
        .layer-visibility-icon {
            cursor: pointer;
            font-size: 18px;
            transition: all 0.2s ease;
            padding: 6px;
            margin: -6px;
            display: inline-block;
            min-width: 32px;
            min-height: 32px;
            text-align: center;
            vertical-align: middle;
            line-height: 1;
        }

        .layer-visibility-icon:hover {
            transform: scale(1.15);
        }

        .layer-visibility-icon:active {
            transform: scale(1.05);
        }

        /* 可见状态 - 更明亮的蓝色 */
        .layer-visibility-icon.visible {
            color: #00d4ff;
            opacity: 1;
            text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
            position: relative;
        }

        /* 可见状态的特殊光效 */
        .layer-visibility-icon.visible::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .layer-visibility-icon.visible:hover::after {
            opacity: 1;
        }

        .layer-visibility-icon.visible:hover {
            color: #ffffff;
            transform: scale(1.25);
            text-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
        }

        /* 隐藏状态 - 更明显的灰色 */
        .layer-visibility-icon.hidden {
            color: #cbd5e0;
            opacity: 0.9;
            text-shadow: 0 0 6px rgba(203, 213, 224, 0.4);
            /* 调试用：确保显示 */
            display: inline-block !important;
            visibility: visible !important;
            min-width: 32px !important;
            min-height: 32px !important;
            text-align: center !important;
            line-height: 32px !important;
            border: 1px solid rgba(203, 213, 224, 0.5) !important;
            background: rgba(203, 213, 224, 0.1) !important;
        }

        .layer-visibility-icon.hidden:hover {
            color: #ffffff;
            opacity: 1;
            transform: scale(1.2);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
        }

        .layer-action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
            border-color: rgba(0, 212, 255, 0.3);
        }

        .layer-action-btn:active {
            transform: translateY(0);
        }

        /* 重命名按钮 */
        .layer-action-btn.rename-btn:hover {
            background: rgba(0, 212, 255, 0.25);
            border-color: rgba(0, 212, 255, 0.5);
            color: #00d4ff;
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
        }

        /* 可见性按钮 */
        .layer-action-btn.visibility-btn.visible {
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.15);
            border-color: rgba(0, 212, 255, 0.3);
        }

        .layer-action-btn.visibility-btn.visible:hover {
            background: rgba(0, 212, 255, 0.35);
            border-color: rgba(0, 212, 255, 0.6);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
        }

        .layer-action-btn.visibility-btn.hidden {
            color: #fc8181;
            background: rgba(252, 129, 129, 0.15);
            border-color: rgba(252, 129, 129, 0.3);
        }

        .layer-action-btn.visibility-btn.hidden:hover {
            background: rgba(252, 129, 129, 0.35);
            border-color: rgba(252, 129, 129, 0.6);
            box-shadow: 0 0 15px rgba(252, 129, 129, 0.4);
        }

        /* 按钮点击动画 */
        .layer-visibility-btn:active {
            transform: scale(1.02);
        }

        /* 图标动画效果 */
        .layer-visibility-icon {
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .layer-visibility-icon:hover {
            transform: scale(1.2);
        }

        /* 状态切换时的特殊效果 */
        .layer-visibility-icon:active {
            transform: scale(0.95);
            transition: all 0.1s ease;
        }

        /* 特殊状态切换动画 */
        .layer-visibility-btn i {
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .layer-visibility-btn.visible:hover i {
            animation: pulse 0.6s ease-in-out;
        }

        .layer-visibility-btn.hidden:hover i {
            animation: fadeInOut 0.8s ease-in-out;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        @keyframes fadeInOut {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.3; transform: scale(0.8); }
        }

        /* 可见性切换特殊动画 */
        .layer-action-btn.visibility-btn i {
            transition: all 0.3s ease;
        }

        .layer-action-btn.visibility-btn:hover i {
            transform: scale(1.2);
        }

        /* 工具提示增强 */
        .layer-action-btn, .sort-btn, .jump-btn {
            position: relative;
        }

        /* 按钮组容器悬停效果 */
        .layer-actions-group {
            background: transparent;
            border-radius: 50%;
            padding: 4px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 图层名称双击编辑样式 */
        .layer-name {
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 6px;
            padding: 4px 8px;
            margin: -4px -8px;
            position: relative;
            color: #e2e8f0;
        }

        .layer-name:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #00d4ff;
        }

        .layer-name:active {
            background: rgba(0, 212, 255, 0.15);
            color: #ffffff;
        }

        /* 双击编辑提示 */
        .layer-name::after {
            content: "双击编辑";
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #00d4ff;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
            z-index: 1000;
        }

        .layer-name:hover::after {
            opacity: 1;
        }

        /* 编辑模式下的输入框样式 */
        .layer-name-input {
            background: rgba(26, 26, 26, 0.9);
            border: 2px solid #00d4ff;
            border-radius: 6px;
            color: #ffffff;
            font-size: 14px;
            padding: 4px 8px;
            width: 100%;
            outline: none;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        }

        .layer-name-input:focus {
            border-color: #00ff88;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
        }

        .layer-item:hover .layer-actions-group {
            background: rgba(42, 42, 42, 0.4);
            border-color: rgba(255, 255, 255, 0.12);
        }

        .layer-item.selected .layer-actions-group {
            background: transparent;
        }

        /* 选中图层时的眼睛图标特殊效果 */
        .layer-item.selected .layer-visibility-icon.visible {
            color: #00ff88;
            text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
        }

        .layer-item.selected .layer-visibility-icon.hidden {
            color: #e2e8f0;
            opacity: 1;
            text-shadow: 0 0 12px rgba(226, 232, 240, 0.6);
        }

        .layer-item.selected .layer-visibility-btn {
            border-color: rgba(255, 255, 255, 0.2);
        }

        .layer-item.selected .layer-visibility-btn.visible {
            border-color: rgba(0, 212, 255, 0.4);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
        }

        .layer-item.selected .layer-visibility-btn.hidden {
            border-color: rgba(128, 90, 213, 0.4);
            box-shadow: 0 0 15px rgba(128, 90, 213, 0.3);
        }



        .layer-rename-btn:hover {
            opacity: 1;
            color: #00d4ff !important; /* 科技蓝色，更明显 */
            background: rgba(0, 212, 255, 0.3);
            transform: scale(1.15);
            box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
        }



        .empty-state:hover {
            border-color: rgba(0, 212, 255, 0.5);
            background: rgba(26, 26, 26, 0.7);
        }

        /* 多选图层样式 */
        .layer-item.multi-selected {
            background: rgba(0, 255, 136, 0.1);
            border-color: rgba(0, 255, 136, 0.4);
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
        }

        .layer-item.multi-selected::before {
            content: '';
            position: absolute;
            left: 4px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 70%;
            background: #00ff88;
            border-radius: 2px;
        }

        /* 多选时的控制提示 */
        .multi-selection-hint {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 12px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        .multi-selection-hint.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* 多选状态显示 */
        .multi-selection-status {
            margin-bottom: 16px;
            animation: slideDown 0.3s ease;
        }

        /* 图层图标颜色系统 */
        .text-electric-green {
            color: #00ff88;
        }

        .text-tech-blue {
            color: #00d4ff;
        }

        .text-neon-orange {
            color: #ff6b35;
        }

        .text-purple-400 {
            color: #a855f7;
        }

        /* 图层项目悬停效果 */
        .layer-item:hover .text-electric-green {
            filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.6));
        }

        .layer-item:hover .text-tech-blue {
            filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.6));
        }

        .layer-item:hover .text-neon-orange {
            filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.6));
        }

        .layer-item:hover .text-purple-400 {
            filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
        }

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

        .multi-selection-status .bg-electric-green\/20 {
            background: rgba(0, 255, 136, 0.15);
            border: 1px solid rgba(0, 255, 136, 0.4);
            box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
        }

        .multi-selection-status button:hover {
            background: rgba(0, 255, 136, 0.2);
            transform: scale(1.1);
        }

        /* 拖拽排序样式 */
        .layer-item {
            transition: all 0.2s ease;
            position: relative;
        }

        .layer-item:hover {
            background: rgba(0, 212, 255, 0.05);
        }

        .layer-item[draggable="true"] {
            cursor: grab;
        }

        .layer-item[draggable="true"]:active {
            cursor: grabbing;
        }

        .layer-item.drag-over {
            background: rgba(0, 212, 255, 0.1);
        }

        .layer-item.drag-over-top::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #00d4ff;
            box-shadow: 0 0 4px rgba(0, 212, 255, 0.6);
        }

        .layer-item.drag-over-bottom::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #00d4ff;
            box-shadow: 0 0 4px rgba(0, 212, 255, 0.6);
        }

        .layer-item.dragging {
            opacity: 0.5;
            transform: rotate(2deg);
        }

        .drag-handle {
            cursor: grab;
            opacity: 0.6;
            transition: opacity 0.2s ease;
        }

        .drag-handle:hover {
            opacity: 1;
            color: #00d4ff !important;
        }

        .drag-handle:active {
            cursor: grabbing;
        }

        /* 让图层操作按钮始终显示且可点 */
        .layer-item button {
            opacity: 1 !important;
            pointer-events: auto !important;
            min-width: 20px;   /* 保证点击区域 */
            text-align: center;
        }
 
        /* 工具面板滚动条 */
        .tool-panel::-webkit-scrollbar {
            width: 6px;
        }
 
        .tool-panel::-webkit-scrollbar-track {
            background: rgba(26, 26, 26, 0.7);
            border-left: 1px solid rgba(0, 212, 255, 0.1);
        }
 
        .tool-panel::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #00d4ff, #006699);
            border-radius: 3px;
            border-left: 1px solid rgba(0, 212, 255, 0.3);
        }
 
        /* 主画布区域滚动条 */
        .canvas-container::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }
 
        .canvas-container::-webkit-scrollbar-track {
            background: rgba(26, 26, 26, 0.9);
            border-radius: 5px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
 
        .canvas-container::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #00d4ff, #00ff88, #00d4ff);
            border-radius: 5px;
            border: 1px solid rgba(0, 212, 255, 0.4);
            box-shadow: inset 0 0 5px rgba(0, 212, 255, 0.3);
        }
 
        .canvas-container::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #00b4df, #00df77, #00b4df);
            box-shadow: inset 0 0 8px rgba(0, 212, 255, 0.5), 0 0 10px rgba(0, 212, 255, 0.3);
        }
 
        /* 移动端适配的滚动条 */
        @media (max-width: 768px) {
            ::-webkit-scrollbar {
                width: 4px;
                height: 4px;
            }
 
            ::-webkit-scrollbar-thumb {
                border-radius: 2px;
            }
        }
 
        /* Firefox滚动条支持 */
        * {
            scrollbar-width: thin;
            scrollbar-color: #00d4ff #1a1a1a;
}
 
        /* 特定元素的自定义滚动条 */
        .custom-scrollbar {
            scrollbar-width: thin;
            scrollbar-color: #00d4ff rgba(26, 26, 26, 0.8);
        }
 
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }
 
        .custom-scrollbar::-webkit-scrollbar-track {
            background: rgba(26, 26, 26, 0.8);
            border-radius: 3px;
        }
 
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #00d4ff, #0088cc);
            border-radius: 3px;
            border: 1px solid rgba(0, 212, 255, 0.3);
        }
 
        /* 滚动条悬停动画 */
        ::-webkit-scrollbar-thumb {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
 
        /* 滚动条发光效果 */
        .glow-scrollbar::-webkit-scrollbar-thumb {
            box-shadow: inset 0 0 5px rgba(0, 212, 255, 0.3);
            position: relative;
        }
 
        .glow-scrollbar::-webkit-scrollbar-thumb::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.2), transparent);
            border-radius: inherit;
            animation: scrollbarGlow 2s ease-in-out infinite;
        }
 
        @keyframes scrollbarGlow {
            0%, 100% {
                opacity: 0.3;
            }
            50% {
                opacity: 0.8;
            }
        }
 
        /* 透明滚动条样式 */
        .transparent-scrollbar::-webkit-scrollbar {
            background: transparent;
        }
 
        .transparent-scrollbar::-webkit-scrollbar-track {
            background: transparent;
        }
 
        .transparent-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(0, 212, 255, 0.4);
            border: 1px solid rgba(0, 212, 255, 0.2);
        }
 
        .transparent-scrollbar::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 212, 255, 0.6);
        }
 
        /* 暗色主题滚动条 */
        .dark-scrollbar::-webkit-scrollbar {
            width: 8px;
        }
 
        .dark-scrollbar::-webkit-scrollbar-track {
            background: #1a1a1a;
            border-left: 1px solid #2a2a2a;
        }
 
        .dark-scrollbar::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #333, #444, #333);
            border: 1px solid #555;
            border-radius: 4px;
        }
 
        .dark-scrollbar::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #444, #555, #444);
            border-color: #666;
        }
 
        /* 霓虹风格滚动条 */
        .neon-scrollbar::-webkit-scrollbar {
            width: 10px;
        }
 
        .neon-scrollbar::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.8);
            border-radius: 5px;
            box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
        }
 
        .neon-scrollbar::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #00d4ff, #00ff88, #00d4ff);
            border-radius: 5px;
            border: 1px solid #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5), inset 0 0 5px rgba(0, 212, 255, 0.3);
            animation: neonPulse 2s ease-in-out infinite;
        }
 
        @keyframes neonPulse {
            0%, 100% {
                box-shadow: 0 0 10px rgba(0, 212, 255, 0.5), inset 0 0 5px rgba(0, 212, 255, 0.3);
            }
            50% {
                box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), inset 0 0 8px rgba(0, 212, 255, 0.5);
            }
        }
 
        /* 响应式滚动条 */
        @media (max-width: 768px) {
            .responsive-scrollbar::-webkit-scrollbar {
                width: 4px;
            }
 
            .responsive-scrollbar::-webkit-scrollbar-thumb {
                border-radius: 2px;
            }
        }
 
        /* 渐变滚动条 */
        .gradient-scrollbar::-webkit-scrollbar {
            width: 12px;
        }
 
        .gradient-scrollbar::-webkit-scrollbar-track {
            background: linear-gradient(180deg, #1a1a1a, #2a2a2a, #1a1a1a);
            border-radius: 6px;
        }
 
        .gradient-scrollbar::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #00d4ff, #00ff88, #0088cc, #00d4ff);
            border-radius: 6px;
            border: 1px solid rgba(0, 212, 255, 0.5);
            box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.3);
        }
 
        /* 金属质感滚动条 */
        .metallic-scrollbar::-webkit-scrollbar {
            width: 10px;
        }
 
        .metallic-scrollbar::-webkit-scrollbar-track {
            background: linear-gradient(180deg, #2a2a2a, #1a1a1a, #2a2a2a);
            border-radius: 5px;
            border: 1px solid #444;
        }
 
        .metallic-scrollbar::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #666, #888, #666);
            border-radius: 5px;
            border: 1px solid #999;
            box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2), 0 0 5px rgba(0, 0, 0, 0.5);
        }
 
        .metallic-scrollbar::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #777, #999, #777);
            box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.3), 0 0 8px rgba(0, 0, 0, 0.7);
        }
 
        /* 应用于主要滚动区域的样式 */
        .main-scrollbar {
            scrollbar-width: thin;
            scrollbar-color: #00d4ff #1a1a1a;
        }
 
        .main-scrollbar::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
 
        .main-scrollbar::-webkit-scrollbar-track {
            background: rgba(26, 26, 26, 0.9);
            border-radius: 4px;
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
        }
 
        .main-scrollbar::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #00d4ff, #00ff88);
            border-radius: 4px;
            border: 1px solid rgba(0, 212, 255, 0.4);
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
            transition: all 0.3s ease;
        }
 
        .main-scrollbar::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #00b4df, #00df77);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
            transform: scale(1.05);
        }
 
        /* 辅助功能：高对比度模式 */
        @media (prefers-contrast: high) {
            ::-webkit-scrollbar-thumb {
                border: 2px solid #ffffff;
            }
        }
 
        /* 减少动画偏好 */
        @media (prefers-reduced-motion: reduce) {
            ::-webkit-scrollbar-thumb {
                transition: none;
            }
 
            .neon-scrollbar::-webkit-scrollbar-thumb {
                animation: none;
            }
 
            .glow-scrollbar::-webkit-scrollbar-thumb::before {
                animation: none;
            }
        }
 
        /* Canvas Main Container - 独立布局容器 */
        .canvas-main-container {
            position: relative;
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            background: rgba(26, 26, 26, 0.3);
            border-radius: 12px;
            margin: 8px;
            overflow: hidden;
            border: 1px solid rgba(0, 212, 255, 0.1);
            backdrop-filter: blur(10px);
        }
 
        /* 确保画布容器内的元素正常显示 */
        .canvas-main-container > .tool-panel {
            margin: 0;
            border-radius: 0;
            border-left: none;
            border-right: none;
            border-top: none;
        }
 
        .canvas-main-container > .tool-panel:last-child {
            border-bottom: none;
        }
 
        /* 画布工作区样式调整 */
        .canvas-main-container .flex-1.p-6 {
            margin: 0;
            padding: 1rem;
            background: transparent;
        }
 
        /* 响应式调整 */
        @media (max-width: 1024px) {
            .canvas-main-container {
                margin: 4px;
                border-radius: 8px;
            }
        }
    </style>

    /* ===== 画布右侧缩略图面板样式 ===== */
    .canvas-thumbnail-sidebar {
        width: 120px;  /* 匹配多面视图切换器的宽度 */
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.9));
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 212, 255, 0.15);
        border-radius: 16px;
        padding: 16px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        height: fit-content;
        max-height: 600px;
        overflow-y: auto;
        margin-left: 16px;  /* 匹配多面视图切换器的间距 */
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
    }
    
    .canvas-thumbnail-sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .canvas-thumbnail-sidebar::-webkit-scrollbar-track {
        background: rgba(0, 212, 255, 0.05);
        border-radius: 3px;
    }
    
    .canvas-thumbnail-sidebar::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 136, 0.3));
        border-radius: 3px;
        border: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .canvas-thumbnail-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;  /* 增加间距 */
        align-items: center;
        width: 100%;
    }
    
    .canvas-thumbnail-square {
        width: 80px;  /* 增大缩略图 */
        height: 80px;  /* 增大缩略图 */
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
        border: 1px solid rgba(0, 212, 255, 0.2);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .canvas-thumbnail-square:hover {
        border-color: rgba(0, 212, 255, 0.4);
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
        background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    }
    
    .canvas-thumbnail-square.active {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
        border-color: #00d4ff;
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.3),
            inset 0 0 20px rgba(0, 212, 255, 0.1);
        transform: scale(1.05);
        animation: subtleThumbPulse 2s ease-in-out infinite;
    }
    
    .canvas-thumbnail-square-placeholder {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;  /* 增大字体 */
        font-weight: 600;
        text-align: center;
        line-height: 1;
        filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
        transition: all 0.3s ease;
    }
    
    .canvas-thumbnail-view-label {
        position: absolute;
        bottom: 4px;
        right: 4px;
        background: rgba(0, 0, 0, 0.9);
        color: #00d4ff;
        font-size: 0.7rem;  /* 稍大字体 */
        padding: 2px 4px;
        border-radius: 4px;
        font-weight: 600;
        border: 1px solid rgba(0, 212, 255, 0.3);
    }
    
    .canvas-thumbnail-square.has-thumbnail {
        background-size: cover;
        background-position: center;
        border-color: rgba(0, 212, 255, 0.4);
    }
    
    /* 缩略图悬停效果增强 */
    .canvas-thumbnail-square::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }
    
    .canvas-thumbnail-square:hover::before {
        opacity: 1;
    }
    
    .canvas-thumbnail-square:hover .canvas-thumbnail-square-placeholder {
        filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.6));
        transform: scale(1.1);
    }
    
    /* 缩略图面板标题 */
    .thumbnail-header {
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .thumbnail-header h4 {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    
    /* 保存按钮样式 */
    .save-view-btn {
        margin-top: 8px;
        width: 100%;
        font-size: 0.7rem;
        padding: 6px 8px;
        background: linear-gradient(135deg, #00d4ff, #00ff88);
        color: #000;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .save-view-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    }
    
    .save-view-btn:active {
        transform: translateY(0);
    }
    
    .save-view-btn.save-success {
        animation: saveSuccessPulse 0.6s ease-out;
    }
    
    @keyframes saveSuccessPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); background: linear-gradient(135deg, #00ff88, #00d4ff); }
        100% { transform: scale(1); }
    }
    
    @keyframes subtleThumbPulse {
        0%, 100% { 
            box-shadow: 
                0 0 20px rgba(0, 212, 255, 0.3),
                inset 0 0 20px rgba(0, 212, 255, 0.1);
        }
        50% { 
            box-shadow: 
                0 0 30px rgba(0, 212, 255, 0.5),
                inset 0 0 25px rgba(0, 212, 255, 0.2);
        }
    }

    /* ===== 保存通知样式 ===== */
    .save-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 12px;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 300px;
        max-width: 400px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: auto;
    }
    
    .save-notification-success {
        border-color: rgba(0, 255, 136, 0.5);
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(26, 26, 26, 0.95));
    }
    
    .save-notification-error {
        border-color: rgba(255, 107, 53, 0.5);
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(26, 26, 26, 0.95));
    }
    
    .save-notification-info {
        border-color: rgba(0, 212, 255, 0.5);
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 26, 26, 0.95));
    }
    
    .save-notification-warning {
        border-color: rgba(255, 193, 7, 0.5);
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(26, 26, 26, 0.95));
    }
    
    .save-notification-icon {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .save-notification-message {
        flex: 1;
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.4;
    }
    
    .save-notification-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, #00d4ff, #00ff88);
        border-radius: 0 0 12px 12px;
        animation: notificationProgress 3s linear;
    }
    
    .save-notification-error .save-notification-progress {
        background: linear-gradient(90deg, #ff6b35, #ff8c42);
    }
    
    .save-notification-info .save-notification-progress {
        background: linear-gradient(90deg, #00d4ff, #0099cc);
    }
    
    .save-notification-warning .save-notification-progress {
        background: linear-gradient(90deg, #ffc107, #ffb300);
    }
    
    @keyframes notificationProgress {
        0% { width: 100%; }
        100% { width: 0%; }
    }
    
    /* 点击通知时的关闭效果 */
    .save-notification:hover {
        cursor: pointer;
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }

    /* ===== 响应式调整 ===== */
    @media (max-width: 1280px) {
        .canvas-thumbnail-sidebar {
            width: 100px;  /* 保持较大尺寸 */
            padding: 14px 10px;
            margin-left: 14px;
        }
        
        .canvas-thumbnail-square {
            width: 70px;
            height: 70px;
        }
        
        .canvas-thumbnail-square-placeholder {
            font-size: 1rem;
        }
        
        .canvas-thumbnail-view-label {
            font-size: 0.65rem;
            padding: 1px 3px;
        }
    }
    
    @media (max-width: 1024px) {
        .canvas-thumbnail-sidebar {
            width: 90px;
            padding: 12px 8px;
            gap: 12px;
            margin-left: 12px;
        }
        
        .canvas-thumbnail-square {
            width: 65px;
            height: 65px;
        }
        
        .canvas-thumbnail-square-placeholder {
            font-size: 0.9rem;
        }
    }
    
    @media (max-width: 768px) {
        /* 移动设备上隐藏画布缩略图面板 */
        .canvas-thumbnail-sidebar {
            display: none;
        }
    }
