/* 控制面板样式 */
.ce-left-panel {
display: flex;
align-items: flex-start;
justify-content: center;
}
/* 左右布局容器 */
.ce-layout-container {
    display: none;
    gap: 20px;
    margin: 20px 0;
}
.ce-layout-container.active {
    display: flex;
}
.ce-left-panel {
    flex: 1;
    min-width: 0;
}
.ce-right-panel {
    width: 320px;
    flex-shrink: 0;
}

/* 控制面板样式 */
.ce-control-panel {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}
.ce-control-panel.active {
    display: block;
}
.ce-control-group {
    margin-bottom: 20px;
}
.ce-control-group:last-child {
    margin-bottom: 0;
}
.ce-control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}
.ce-control-value {
    font-weight: 600;
    color: #2196F3;
}
.ce-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}
.ce-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #2196F3;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}
.ce-slider::-webkit-slider-thumb:hover {
    background: #1976D2;
    transform: scale(1.1);
}

/* 颜色卡片网格 - 固定一行5个 */
.ce-color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* 颜色卡片样式 */
.ce-color-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}
.ce-color-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ce-color-card.locked {
    border: 2px solid #FF9800;
}
.ce-color-preview {
    height: 100px;
    cursor: pointer;
    position: relative;
}
.ce-color-percentage {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
/* 锁定图标 */
.ce-lock-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ce-color-info {
    padding: 12px;
}
.ce-color-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.ce-color-values {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}
.ce-color-value-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}
.ce-color-value-label {
    color: #999;
}
.ce-color-value-text {
    font-family: 'Courier New', monospace;
    color: #333;
}
.ce-color-actions {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    border-top: 1px solid #eee;
}
.ce-color-action-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.ce-color-action-btn:hover {
    background: #e0e0e0;
}
.ce-color-action-btn.locked {
    background: #FF9800;
    color: white;
}
.ce-color-action-btn.delete:hover {
    background: #ff4444;
    color: white;
}

/* 导出按钮组 */
.ce-export-group {
    display: none;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.ce-export-group.active {
    display: flex;
}

/* 复制成功提示 */
.ce-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.ce-toast.show {
    opacity: 1;
    visibility: visible;
}

/* 空状态提示 */
.ce-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.ce-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}
.ce-empty-text {
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .ce-color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .ce-color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ce-layout-container {
        flex-direction: column;
    }
    .ce-right-panel {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .ce-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .ce-color-grid {
        grid-template-columns: 1fr;
    }
}