.editor-layout {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    

    

    

    

    .preview-card {
        background: #ffffff;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
    }

    .preview-header {
        padding: 12px 15px;
        font-size: 15px;
        font-weight: 600;
        color: #1f2937;
        border-bottom: 2px solid #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-count {
        font-size: 12px;
        font-weight: 500;
        color: #8b5cf6;
    }

    /* ---- 卡片头部中间统计 ---- */
    .card-header-center {
        flex: 1;
        text-align: center;
        font-size: 13px;
        color: #6b7280;
    }

    .card-header-center .header-count {
        margin: 0 4px;
    }

    .header-clear {
        padding: 4px 10px;
        background: #f5f3ff;
        color: #7c3aed;
        border: 1px solid #e9d5ff;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .header-clear:hover {
        background: #ede9fe;
        border-color: #8b5cf6;
    }

    .preview-area {
        padding: 15px;
        min-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ---- 上传区（参考 tupianpinjie） ---- */
    .upload-area {
        width: 100%;
        border: 2px dashed #d1d5db;
        border-radius: 10px;
        padding: 16px 16px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        background: #fafafa;
    }

    .upload-area:hover,
    .upload-area.drag-over {
        border-color: #8b5cf6;
        background: #f5f3ff;
    }

    .upload-icon { font-size: 26px; margin-bottom: 6px; }
    .upload-text { font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 4px; }
    .upload-hint { font-size: 11px; color: #9ca3af; }

    /* ---- 右栏空状态提示 ---- */
    .preview-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        height: 100%;
        min-height: 200px;
        color: #9ca3af;
        text-align: center;
    }

    .preview-empty-icon { font-size: 40px; }
    .preview-empty-text { font-size: 14px; }

    .setting-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    

    .mini-label {
        font-size: 11px;
        color: #9ca3af;
        margin-bottom: 2px;
        display: block;
    }

    .checkbox-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        margin-top: 8px;
        font-size: 13px;
        color: #374151;
        cursor: pointer;
    }

    .checkbox-row input[type="checkbox"] { accent-color: #8b5cf6; }

    .mode-selector { display: flex; gap: 6px; }

    /* ---- 下拉选择器（输出格式） ---- */
    .format-select {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        background: #f8fafc;
        color: #374151;
        font-size: 14px;
        cursor: pointer;
        outline: none;
        transition: all 0.2s;
    }

    .format-select:focus {
        border-color: #8b5cf6;
        background: #fff;
    }

    .mode-btn {
        flex: 1;
        padding: 8px 6px;
        border: 2px solid #e5e7eb;
        border-radius: 6px;
        background: #ffffff;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        color: #374151;
        transition: all 0.2s;
    }

    .mode-btn:hover { border-color: #c4b5fd; }

    .mode-btn.active {
        border-color: #8b5cf6;
        background: #f5f3ff;
        color: #6d28d9;
    }

    .range-with-value {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .range-slider {
        flex: 1;
        height: 6px;
        background: #e5e7eb;
        border-radius: 3px;
        outline: none;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    .range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        background: #8b5cf6;
        border-radius: 50%;
        cursor: pointer;
    }

    .range-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        background: #8b5cf6;
        border: none;
        border-radius: 50%;
        cursor: pointer;
    }

    .range-value {
        font-size: 13px;
        font-weight: 600;
        color: #6d28d9;
        min-width: 42px;
        text-align: right;
    }

    .quick-rotate {
        display: flex;
        gap: 4px;
        margin-top: 4px;
    }

    .mini-btn {
        flex: 1;
        padding: 5px 4px;
        border: 1px solid #e5e7eb;
        border-radius: 5px;
        background: #ffffff;
        cursor: pointer;
        font-size: 11px;
        color: #6b7280;
        transition: all 0.2s;
    }

    .mini-btn:hover {
        background: #f5f3ff;
        border-color: #c4b5fd;
        color: #6d28d9;
    }

    .input-row { display: flex; gap: 8px; }
    .input-col { flex: 1; }

    .num-input {
        width: 100%;
        padding: 7px 10px;
        border: 2px solid #e5e7eb;
        border-radius: 6px;
        font-size: 13px;
        color: #1f2937;
        box-sizing: border-box;
    }

    .num-input:focus {
        outline: none;
        border-color: #8b5cf6;
    }

    

    .btn {
        padding: 10px 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s;
    }

    

    .btn-purple:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
    }

    

    .btn-primary:hover:not(:disabled) {
        background: #ddd6fe;
    }

    .btn-download {
        background: #f3f4f6;
        color: #374151;
    }

    .btn-download:hover:not(:disabled) {
        background: #e5e7eb;
    }

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

    .image-grid {
        padding: 15px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .image-card {
        background: #ffffff;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        transition: all 0.2s;
        cursor: grab;
    }

    .image-card:hover {
        border-color: #c4b5fd;
        box-shadow: 0 2px 10px rgba(139, 92, 246, 0.12);
    }

    .image-card.dragging {
        opacity: 0.4;
        cursor: grabbing;
    }

    .image-card.drop-target {
        border-color: #8b5cf6;
        transform: scale(1.02);
        box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
    }

    .card-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .card-index {
        font-size: 11px;
        font-weight: 600;
        color: #8b5cf6;
        background: #f5f3ff;
        padding: 2px 8px;
        border-radius: 10px;
    }

    .card-head-right {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .processed-badge {
        font-size: 10px;
        font-weight: 500;
        color: #065f46;
        background: #d1fae5;
        padding: 2px 7px;
        border-radius: 10px;
    }

    .card-remove {
        width: 22px;
        height: 22px;
        border: none;
        background: transparent;
        color: #9ca3af;
        cursor: pointer;
        border-radius: 4px;
        font-size: 12px;
        transition: all 0.2s;
    }

    .card-remove:hover {
        background: #fee2e2;
        color: #dc2626;
    }

    .card-preview {
        width: 100%;
        aspect-ratio: 1 / 1;
        background: repeating-conic-gradient(#ccc 0% 25%, transparent 0% 50%) 50% / 14px 14px;
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .preview-tip {
        font-size: 12px;
        color: #6d28d9;
        background: #f5f3ff;
        border: 1px solid #e9e1ff;
        border-radius: 8px;
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .card-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    .card-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .card-name {
        font-size: 12px;
        font-weight: 500;
        color: #1f2937;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .card-meta {
        font-size: 11px;
        color: #9ca3af;
        display: flex;
        gap: 4px;
    }

    .card-actions {
        display: flex;
        gap: 6px;
    }

    .btn-mini {
        flex: 1;
        padding: 6px 4px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 11px;
        font-weight: 500;
        transition: all 0.2s;
    }

    .btn-mini-primary {
        background: #ede9fe;
        color: #6d28d9;
    }

    .btn-mini-primary:hover:not(:disabled) {
        background: #ddd6fe;
    }

    .btn-mini-download {
        background: #f3f4f6;
        color: #374151;
    }

    .btn-mini-download:hover:not(:disabled) {
        background: #e5e7eb;
    }

    .btn-mini:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

@media (max-width: 768px) {
    
}

/* ============ 工具页面通用布局样式 ============ */
.section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.settings-card, .result-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    min-height: 44px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.input-textarea:focus {
    border-color: #8b5cf6;
}

.input-textarea::placeholder {
    color: #9ca3af;
}

/* ============ 工具页面通用按钮样式 ============ */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group .btn {
    flex: 1;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background: #e8e8e8 !important;
    color: #999 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-purple {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-purple:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

/* ============ 工具页面空状态样式 ============ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 14px;
    color: #888;
}

/* ============ 工具页面响应式布局 ============ */
@media (max-width: 768px) {
    .section-row {
        grid-template-columns: 1fr;
    }
}

/* ============ 左右 1:3 布局使用 common.css 的 grid（.section-row-1-3） ============ */
