        /* 基础样式重置 */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: #f0f2f5;
            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .main-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 16px;
            margin-top: 0px;
        }

        .sub-title {
            text-align: center;
            margin-bottom: 40px;
            line-height: 1.6;
        }

        .breadcrumb {
            margin-top: 60px;
        }

        /* 主容器 */
        .image-container {
            width: 100%;
            max-width: 1100px;
            background: #fff;
            border-radius: 24px;
            display: flex;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
            min-height: 700px;
        }

        /* 左侧面板 */
        .panel-left {
            width: 50%;
            padding: 40px;
            border-right: 1px solid #f0f0f0;
            display: flex;
            flex-direction: column;
            max-width: 490px;
            min-width: 460px;
        }

        /* 右侧面板 */
        .panel-right {
            width: 100%;
            background-color: #fafbfc;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        /* 标题与步骤标识 */
        .image_header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .image_header h2 {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a1a;
        }

        .step-tag {
            background: #eef2ff;
            color: #4f46e5;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
        }

        /* 上传与下拉框并排区 */
        .config-row {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
        }

        .upload-box {
            width: 100%;
            min-height: 150px;
            border: 2px dashed #e5e7eb;
            border-radius: 16px;
            background: #f9fafb;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
            position: relative;
            transition: all 0.3s;
        }

        .upload-box:hover {
            border-color: #4f46e5;
            background: #f5f7ff;
        }

        .upload-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .upload-box .placeholder {
            text-align: center;
            color: #9ca3af;
            font-size: 12px;
            padding: 10px;
        }

        .upload-box .placeholder i {
            font-size: 24px;
            display: block;
            margin-bottom: 8px;
        }

        .select-group {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        /* 区域标题样式 */
        .section-title {
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e5e7eb;
        }

        /* 上传图片区域 */
        .upload-section {
            margin-bottom: 24px;
        }

        /* 商品信息区域 */
        .product-section {
            margin-bottom: 24px;
        }

        .product-section .input-item {
            margin-bottom: 16px;
        }

        .product-section .input-item:last-child {
            margin-bottom: 0;
        }

        /* 视频参数配置区域 */
        .video-config-section {
            margin-bottom: 24px;
        }

        .video-config-section .select-item {
            padding: 10px 0;
        }

        .video-config-section .select-item select {
            width: 140px;
        }

        /* 商品信息区域的下拉框样式 - 与投放地区一致 */
        .product-section .select-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f3f4f6;
        }

        .product-section .select-item label {
            font-size: 14px;
            font-weight: 500;
            color: #4b5563;
        }

        .product-section .select-item select {
            border: none;
            background: #f3f4f6;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            outline: none;
            width: 140px;
            cursor: pointer;
        }

        .select-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f3f4f6;
        }

        .select-item label {
            font-size: 14px;
            font-weight: 500;
            color: #4b5563;
        }

        .select-item select {
            border: none;
            background: #f3f4f6;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            outline: none;
            width: 120px;
            cursor: pointer;
        }

        /* 输入框样式 */
        .input-item {
            position: relative;
            margin-bottom: 25px;
        }

        .input-item label {
            display: block;
            font-size: 12px;
            font-weight: 700;
            color: #9ca3af;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .input-item input,
        .input-item textarea {
            width: 100%;
            border: none;
            border-bottom: 2px solid #f3f4f6;
            padding: 8px 0;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }

        .input-item input:focus,
        .input-item textarea:focus {
            border-color: #4f46e5;
        }

        .char-count {
            position: absolute;
            right: 0;
            bottom: -18px;
            font-size: 10px;
            color: #9ca3af;
        }

        /* 按钮样式 */
        .btn {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: #4f46e5;
            color: white;
            margin-top: 10px;
        }

        .btn-primary:hover {
            background: #4338ca;
        }

        .btn-primary:disabled {
            background: #a5b4fc;
            cursor: not-allowed;
        }

        .btn-secondary {
            background: #f3f4f6;
            color: #4b5563;
            border: 1px solid #e5e7eb;
        }

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

        .btn-dark {
            background: #1f2937;
            color: white;
            flex: 2;
        }

        .btn-dark:hover {
            background: #111827;
        }

        /* 步骤2样式 */
        .step-container {
            display: none;
            flex-direction: column;
            height: 100%;
        }

        .image-active {
            display: flex;
        }

        .script-area {
            flex: 1;
            background: #f9fafb;
            border-radius: 16px;
            padding: 20px;
            font-size: 14px;
            line-height: 1.6;
            color: #374151;
            border: 1px solid #f0f0f0;
            resize: none;
            outline: none;
            margin-bottom: 20px;
            min-height: 300px;
        }

        .option-grid {
            display: grid;
            grid-template-cols: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        .option-card {
            background: #f9fafb;
            padding: 12px;
            border-radius: 12px;
        }

        .option-card label {
            display: block;
            font-size: 10px;
            font-weight: 800;
            color: #9ca3af;
            margin-bottom: 4px;
        }

        .option-card select {
            width: 100%;
            border: none;
            background: transparent;
            font-weight: 600;
            font-size: 13px;
            outline: none;
        }

        /* 右侧状态展示 */
        .empty-state {
            text-align: center;
            color: #9ca3af;
        }

        .empty-state .icon {
            font-size: 60px;
            color: #e5e7eb;
            margin-bottom: 20px;
        }

        /* 进度条 */
        .progress-list {
            width: 100%;
            max-width: 320px;
        }

        .progress-item {
            background: white;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        }

        .progress-info {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            font-weight: bold;
            color: #9ca3af;
            margin-bottom: 8px;
        }

        .progress-bg {
            height: 6px;
            background: #f3f4f6;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: #4f46e5;
            width: 0%;
            transition: width 0.3s;
        }

        /* 视频结果 */
        .result-grid {
            width: 100%;
            display: grid;
            grid-template-cols: 1fr;
            gap: 20px;
            overflow-y: auto;
            padding: 10px;
        }

        .video-card {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background: #000;
            cursor: pointer;
            aspect-ratio: 9/16;
            width: 220px;
            margin: 0 auto;
            transition: transform 0.3s;
        }

        .video-card:hover {
            transform: scale(1.03);
        }

        .video-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.8;
        }

        .play-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        /* 旋转动画 */
        .spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* 播放器弹窗 */
        .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            display: none;
            justify-content: center;
            align-items: center;
        }

        .overlay video {
            max-width: 90%;
            max-height: 80%;
            border-radius: 12px;
        }

        .close-btn {
            position: absolute;
            top: 30px;
            right: 30px;
            color: white;
            font-size: 30px;
            cursor: pointer;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .image-container {
                flex-direction: column;
            }

            .breadcrumb {
                margin-top: 30px;
            }

            .panel-left,
            .panel-right {
                width: 100%;
                border-right: none;
            }

            .panel-right {
                min-height: 400px;
                border-top: 1px solid #f0f0f0;
            }
        }


        /* 多图上传区域样式 */
.upload-box {
    padding: 10px;
    align-items: flex-start; /* 改为顶端对齐 */
    overflow-y: auto;
}

.image-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.img-thumb-container {
    position: relative;
    width: calc(50% - 4px); /* 一行两个 */
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.img-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.upload-btn {
    width: calc(50% - 4px);
    aspect-ratio: 1;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f9fafb;
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
    padding: 5px;
}

.upload-btn:hover {
    border-color: #4f46e5;
    background: #f5f7ff;
}

.upload-btn i {
    font-size: 20px;
    margin-bottom: 4px;
    font-style: normal;
}

.upload-btn.full-width {
    width: 100%;
    aspect-ratio: auto;
    height: 100%;
    min-height: 180px;
    border: none; /* 外层已有border */
    background: transparent;
}