
        .photo-frame {
            position: absolute;
            border: 2px dashed #3b82f6;
            background: rgba(59, 130, 246, 0.1);
            cursor: move;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .photo-frame:hover {
            border-color: #2563eb;
            background: rgba(37, 99, 235, 0.2);
        }
        .photo-frame.selected {
            border-color: #dc2626;
            border-style: solid;
        }
        .photo-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .canvas-container {
            position: relative;
            background: white;
            box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
            margin: 0 auto;
        }
        .delete-btn {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 24px;
            height: 24px;
            background: #dc2626;
            color: white;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            z-index: 10;
        }
        .photo-frame:hover .delete-btn {
            display: flex;
        }
        .upload-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            display: none;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 12px;
            cursor: pointer;
            padding: 5px;
            line-height: 1.4;
        }
        .photo-frame:hover .upload-overlay {
            display: flex;
        }
        .photo-frame.has-image:hover .upload-overlay {
            background: rgba(0, 0, 0, 0.5);
        }
        .bg-color-btn {
            width: 36px;
            height: 36px;
            border: 2px solid #d1d5db;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .bg-color-btn:hover {
            border-color: #3b82f6;
            transform: scale(1.1);
        }
        .bg-color-btn.active {
            border-color: #3b82f6;
            border-width: 3px;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        }
        .custom-size-inputs {
            display: none;
        }
        .custom-size-inputs.active {
            display: flex;
        }

        /* 手机端画布固定样式 */
        @media (max-width: 1023px) {
            .canvas-section {
                position: sticky;
                top: 0;
                z-index: 40;
                background: white;
                box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            }
            
            .canvas-section.scrolled {
                box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
            }
            
            .canvas-wrapper-mobile {
                max-height: 50vh;
                overflow: auto;
            }
        }