        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: #F5F7FA;
            color: #1F2937;
            min-height: 100vh;
        }
        
        .header {
            background: #FFFFFF;
            padding: 15px 0;
            border-bottom: 1px solid #E5E7EB;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .header-content {
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 20px;
            font-weight: bold;
            color: #008d94;
            text-decoration: none;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #4B5563;
        }
        
        .credits-badge {
            background: #008d94;
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 13px;
        }
        
        .container {
            max-width: 1600px;
            margin: 20px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 400px 1fr;
            gap: 20px;
            height: calc(100vh - 100px);
        }
        
        .sidebar {
            background: #FFFFFF;
            border-radius: 12px;
            padding: 20px;
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }
        
        .main-content {
            background: #FFFFFF;
            border-radius: 12px;
            padding: 20px;
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }
        
        .page-title {
            font-size: 24px;
            font-weight: 600;
            color: #1F2937;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .page-desc {
            color: #6B7280;
            font-size: 14px;
            margin-bottom: 25px;
        }
        
        /* 模块卡片 */
        .module-card {
            background: #F9FAFB;
            border-radius: 10px;
            margin-bottom: 15px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .module-card:hover {
            box-shadow: 0 4px 15px rgba(0, 141, 148, 0.15);
            transform: translateY(-2px);
        }
        
        .module-header {
            padding: 15px 18px;
            background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .module-header:hover {
            background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
        }
        
        .module-header:active {
            transform: scale(0.98);
        }
        
        .module-title {
            font-size: 16px;
            font-weight: 600;
            color: #1F2937;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: color 0.3s;
        }
        
        .module-card:hover .module-title {
            color: #008d94;
        }
        
        .module-icon {
            font-size: 20px;
        }
        
        .module-arrow {
            color: #008d94;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
            font-size: 14px;
        }
        
        .module-card:hover .module-arrow {
            color: #006b70;
        }
        
        .module-card.collapsed .module-arrow {
            transform: rotate(-90deg);
        }
        
        .module-content {
            padding: 18px;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                        opacity 0.3s ease-out, 
                        padding 0.3s ease-out;
            opacity: 1;
        }
        
        .module-card.collapsed .module-content {
            max-height: 0 !important;
            padding-top: 0;
            padding-bottom: 0;
            opacity: 0;
        }
        
        /* 标签云 */
        .tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }
        
        .tag {
            padding: 8px 14px;
            background: #FFFFFF;
            border-radius: 20px;
            font-size: 13px;
            color: #6B7280;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
            position: relative;
            overflow: hidden;
        }
        
        .tag::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(0, 141, 148, 0.1);
            transform: translate(-50%, -50%);
            transition: width 0.4s, height 0.4s;
        }
        
        .tag:hover::before {
            width: 200px;
            height: 200px;
        }
        
        .tag:hover {
            color: #008d94;
            transform: translateY(-2px);
            box-shadow: 0 2px 8px rgba(0, 141, 148, 0.15);
        }
        
        .tag:active {
            transform: translateY(0) scale(0.95);
        }
        
        .tag.active {
            background: linear-gradient(135deg, #008d94 0%, #006b70 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(0, 141, 148, 0.3);
            transform: translateY(-2px);
        }
        
        .tag.multi-select.active {
            background: linear-gradient(135deg, #008d94 0%, #006b70 100%);
            animation: tagPulse 0.3s ease-out;
        }
        
        @keyframes tagPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* 表单元素 */
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: #6B7280;
            margin-bottom: 8px;
        }
        
        .form-select {
            width: 100%;
            padding: 10px 14px;
            background: #FFFFFF;
            border-radius: 8px;
            color: #1F2937;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .form-select:hover {
            box-shadow: 0 2px 8px rgba(0, 141, 148, 0.1);
        }
        
        .form-select:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 141, 148, 0.1);
            transform: translateY(-1px);
        }
        
        /* 滑块 */
        .slider-group {
            margin-top: 15px;
        }
        
        .slider {
            width: 100%;
            height: 6px;
            background: #E5E7EB;
            border-radius: 3px;
            outline: none;
            -webkit-appearance: none;
        }
        
        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            background: #008d94;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0, 141, 148, 0.4);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 4px 12px rgba(0, 141, 148, 0.6);
        }
        
        .slider::-webkit-slider-thumb:active {
            transform: scale(1.1);
        }
        
        .slider-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
            font-size: 12px;
            color: #6B7280;
        }
        
        /* 复选框 */
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px;
            background: rgba(0, 141, 148, 0.05);
            border-radius: 8px;
            margin-top: 12px;
        }
        
        .checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        
        .checkbox-group label {
            font-size: 14px;
            color: #1F2937;
            cursor: pointer;
            user-select: none;
        }
        
        /* 上传区域 */
        .upload-area {
            border: 2px dashed rgba(0, 141, 148, 0.3);
            border-radius: 10px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: #F9FAFB;
            position: relative;
            overflow: hidden;
        }
        
        .upload-area::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 141, 148, 0.1), transparent);
            transition: left 0.5s;
        }
        
        .upload-area:hover::before {
            left: 100%;
        }
        
        .upload-area:hover {
            border-color: #008d94;
            background: rgba(0, 141, 148, 0.05);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 141, 148, 0.15);
        }
        
        .upload-area.dragover {
            border-color: #008d94;
            background: rgba(0, 141, 148, 0.1);
            transform: scale(1.02);
        }
        
        .upload-icon {
            font-size: 48px;
            margin-bottom: 10px;
            transition: transform 0.3s;
        }
        
        .upload-area:hover .upload-icon {
            transform: scale(1.1) rotate(5deg);
        }
        
        .upload-text {
            color: #6B7280;
            font-size: 14px;
        }
        
        /* 预览区域 */
        .preview-area {
            min-height: 400px;
            background: #F9FAFB;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .preview-image {
            max-width: 100%;
            max-height: 600px;
            border-radius: 8px;
        }
        
        /* 按钮 */
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }
        
        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .btn:active::before {
            width: 300px;
            height: 300px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #008d94 0%, #006b70 100%);
            color: white;
            width: 100%;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 141, 148, 0.3);
        }
        
        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 141, 148, 0.4);
        }
        
        .btn-primary:active:not(:disabled) {
            transform: translateY(0);
        }
        
        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }
        
        /* 提示信息 */
        .info-box {
            background: rgba(0, 141, 148, 0.08);
            padding: 12px 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            font-size: 13px;
            line-height: 1.6;
            color: #4B5563;
        }
        
        /* 滚动条 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: #F9FAFB;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #D1D5DB;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: #008d94;
        }
        
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-spinner {
            border: 4px solid #E5E7EB;
            border-top: 4px solid #008d94;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        
        /* 页面加载动画 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .sidebar {
            animation: fadeInUp 0.5s ease-out;
        }
        
        .main-content {
            animation: fadeInUp 0.5s ease-out 0.1s both;
        }
        
        /* 提示框动画 */
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }
        
        /* 脉冲动画 */
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }
        
        /* 闪烁动画 */
        @keyframes shimmer {
            0% {
                background-position: -1000px 0;
            }
            100% {
                background-position: 1000px 0;
            }
        }

/* ========== 高级渲染动画 ========== */
.advanced-render-animation {
    position: relative;
    text-align: center;
    padding: 60px 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 发光效果背景 */
.render-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 141, 148, 0.15) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* 粒子效果 */
.render-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.render-particles::before,
.render-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #008d94;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

.render-particles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.render-particles::after {
    top: 60%;
    right: 25%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 0.6; }
    50% { transform: translateY(-100px) scale(1); opacity: 0.8; }
    100% { transform: translateY(-200px) scale(0); opacity: 0; }
}

/* 内容容器 */
.render-content {
    position: relative;
    z-index: 10;
}

/* 图标容器 */
.render-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.render-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 141, 148, 0.3));
}

@keyframes iconBounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* 旋转光环 */
.render-ring,
.render-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
}

.render-ring {
    width: 100px;
    height: 100px;
    border-top-color: #008d94;
    border-right-color: #008d94;
    animation: ringRotate 2s linear infinite;
}

.render-ring-2 {
    width: 120px;
    height: 120px;
    border-bottom-color: rgba(0, 141, 148, 0.4);
    border-left-color: rgba(0, 141, 148, 0.4);
    animation: ringRotate 3s linear infinite reverse;
}

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 文字样式 */
.render-text-primary {
    font-size: 24px;
    font-weight: 600;
    color: #008d94;
    margin-bottom: 12px;
    animation: textFade 2s ease-in-out infinite;
}

.render-text-secondary {
    font-size: 15px;
    color: #6B7280;
    margin-bottom: 30px;
    opacity: 0.8;
}

@keyframes textFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 进度条容器 */
.render-progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.render-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 141, 148, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.render-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #008d94, #00b4c0, #008d94);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressFlow 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 141, 148, 0.5);
}

@keyframes progressFlow {
    0% { width: 20%; background-position: 0% 50%; }
    50% { width: 70%; background-position: 100% 50%; }
    100% { width: 20%; background-position: 0% 50%; }
}

.render-progress-text {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
    animation: textPulse 1.5s ease-in-out infinite;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .advanced-render-animation {
        padding: 40px 20px;
        min-height: 350px;
    }
    
    .render-icon-container {
        width: 100px;
        height: 100px;
    }
    
    .render-icon {
        font-size: 52px;
    }
    
    .render-ring {
        width: 80px;
        height: 80px;
    }
    
    .render-ring-2 {
        width: 100px;
        height: 100px;
    }
    
    .render-text-primary {
        font-size: 20px;
    }
    
    .render-text-secondary {
        font-size: 14px;
    }
}

/* ========================================
   CANVAS AREA STYLES (Task 6)
   Adobe-Style UI Optimization
   ======================================== */

/* 主内容区域重构 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

/* 视图控制栏 - 32px高度 */
.canvas-view-controls {
    height: 32px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
}

.view-mode-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.view-mode-btn {
    height: 24px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    color: #6B7280;
}

.view-mode-btn:hover {
    background: #F3F4F6;
    border-color: #E5E7EB;
}

.view-mode-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 141, 148, 0.2);
}

.view-mode-btn.active {
    background: #008d94;
    color: white;
    border-color: #008d94;
}

.view-icon {
    font-size: 14px;
    line-height: 1;
}

.view-label {
    font-size: 12px;
    font-weight: 500;
}

.view-info {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* 画布容器 - 中性深色背景 */
.canvas-container {
    flex: 1;
    background: #2D3748;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 网格纹理背景 */
.canvas-grid-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* 画布内容区域 */
.canvas-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* 空状态占位符 */
.canvas-empty-state {
    text-align: center;
    color: #94A3B8;
    animation: fadeIn 0.3s ease-out;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: #94A3B8;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 画布预览区域 - 内容居中 */
.canvas-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.canvas-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

/* 操作按钮组 */
.canvas-operations {
    height: auto;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.operations-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.operations-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 辅助操作按钮 */
.operation-btn {
    height: 36px;
    padding: 0 16px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.operation-btn:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.operation-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.operation-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 141, 148, 0.1);
}

.operation-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F9FAFB;
}

.operation-btn .btn-icon {
    font-size: 16px;
    line-height: 1;
}

.operation-btn .btn-text {
    font-size: 14px;
}

/* 主要操作按钮 "开始生成" - 44px高度, 160px最小宽度 */
.btn-primary-action {
    height: 44px;
    min-width: 160px;
    padding: 0 24px;
    background: linear-gradient(135deg, #008d94 0%, #006b70 100%);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 141, 148, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary-action:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 141, 148, 0.4);
}

.btn-primary-action:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary-action:active:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-primary-action:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 141, 148, 0.2), 0 4px 12px rgba(0, 141, 148, 0.3);
}

.btn-primary-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary-action .btn-icon {
    font-size: 18px;
    line-height: 1;
}

.btn-primary-action .btn-text {
    font-size: 15px;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .canvas-view-controls {
        padding: 0 12px;
    }
    
    .view-mode-btn .view-label {
        display: none;
    }
    
    .canvas-operations {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .operations-left,
    .operations-right {
        width: 100%;
        justify-content: center;
    }
    
    .btn-primary-action {
        width: 100%;
    }
    
    .operation-btn .btn-text {
        display: none;
    }
}

/* 确保画布区域填充100% */
.canvas-container,
.canvas-content {
    min-height: 0;
}

/* 快捷提示词模板按钮 */
.prompt-tpl {
    padding: 5px 12px;
    background: #f0f9f9;
    border: 1px solid #d0e8e9;
    border-radius: 14px;
    font-size: 12px;
    color: #008d94;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}
.prompt-tpl:hover {
    background: #008d94;
    color: white;
    border-color: #008d94;
}
.prompt-tpl:active {
    transform: scale(0.95);
}
