/* 创作中心专用样式 */

/* 时长选择器样式 */
.duration-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.duration-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.duration-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
}

.duration-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.duration-btn.active:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.duration-btn i {
    font-size: 12px;
}

/* 视频处理状态样式 */
.video-processing {
    display: flex;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    margin-bottom: 15px;
    text-align: center;
}

.processing-icon {
    font-size: 48px;
    margin-right: 20px;
    animation: pulse 2s infinite;
}

.processing-text {
    flex: 1;
}

.processing-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.processing-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    font-family: monospace;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.processing-note {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.creation-main {
    padding: 40px 0;
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 创作进度条 */
.creation-progress {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-header {
    text-align: center;
    margin-bottom: 40px;
}

.progress-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.progress-header p {
    font-size: 16px;
    color: #64748b;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: #4f46e5;
    color: #fff;
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background: #10b981;
    color: #fff;
}

.step-item.completed .step-number::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-info {
    text-align: center;
    min-width: 100px;
}

.step-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.step-info p {
    font-size: 12px;
    color: #64748b;
}

.step-item.active .step-info h4 {
    color: #4f46e5;
}

/* 创作内容区域 */
.creation-content {
    position: relative;
}

.step-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.card-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.card-header p {
    font-size: 16px;
    opacity: 0.9;
}

.card-body {
    padding: 40px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* 图片生成选项样式 */
.image-options {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.image-options h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-options h4::before {
    content: '⚙️';
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 滑块样式 */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    padding: 0;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 数字输入框样式 */
.number-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #ffffff;
    color: #374151;
    outline: none;
    transition: all 0.2s ease;
}

.number-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.number-input:hover {
    border-color: #a5b4fc;
}

.input-suffix {
    display: inline-block;
    background: #4f46e5;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 10px;
}

/* 警告文本样式 */
.warning-text {
    color: #f59e0b;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.warning-text i {
    color: #f59e0b;
}

.range-value {
        display: inline-block;
        background: #4f46e5;
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        margin-left: 10px;
    }
    
    /* 视频生成选项样式 */
    .video-options {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 24px;
        margin-bottom: 30px;
    }
    
    .video-options h4 {
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .video-options h4::before {
        content: '🎬';
        font-size: 16px;
    }
    
    /* 图片选择器样式 */
    .image-selector {
        border: 2px dashed #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        background: #fafbfc;
    }
    
    .selector-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .selector-info {
        font-size: 14px;
        color: #6b7280;
        flex: 1;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .image-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .selectable-image {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s;
        border: 2px solid transparent;
    }
    
    .selectable-image:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .selectable-image.selected {
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }
    
    .selectable-image img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        display: block;
    }
    
    .image-checkbox {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #4f46e5;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .selectable-image:hover .image-checkbox,
    .selectable-image.selected .image-checkbox {
        opacity: 1;
    }
    
    .selectable-image.selected .image-checkbox {
        background: #4f46e5;
        color: white;
    }
    
    .selected-images {
        border-top: 1px solid #e2e8f0;
        padding-top: 16px;
    }
    
    .selected-images h5 {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 12px;
    }
    
    .selected-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .selected-image-item {
        position: relative;
        border-radius: 6px;
        overflow: hidden;
    }
    
    .selected-image-item img {
        width: 100%;
        height: 60px;
        object-fit: cover;
    }
    
    .remove-image {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 16px;
        height: 16px;
        background: #ef4444;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .selected-image-item:hover .remove-image {
        opacity: 1;
    }
    
    /* 视频参数显示 */
    .aspect-ratio-display,
    .duration-display {
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        padding: 12px 16px;
        text-align: center;
    }
    
    .ratio-text,
    .duration-text {
        font-size: 14px;
        font-weight: 500;
        color: #374151;
    }
    
    /* 语音合成选项样式 */
    .audio-options {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 24px;
        margin-bottom: 30px;
    }
    
    .audio-options h4 {
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .audio-options h4::before {
        content: '🎤';
        font-size: 16px;
    }
    
    /* 创作模式选择样式 */
    .creation-modes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .mode-card {
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 15px;
        padding: 30px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mode-card:hover {
        border-color: #4f46e5;
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
    }
    
    .mode-card.selected {
        border-color: #4f46e5;
        background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
    }
    
    .mode-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #4f46e5, #7c3aed);
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .mode-card.selected::before,
    .mode-card:hover::before {
        opacity: 1;
    }
    
    .mode-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        color: white;
        transition: transform 0.3s;
    }
    
    .mode-card:hover .mode-icon {
        transform: scale(1.1);
    }
    
    .mode-card h4 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 12px;
    }
    
    .mode-card p {
        color: #6b7280;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .mode-features {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .feature-tag {
        background: #f3f4f6;
        color: #374151;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .mode-card.selected .feature-tag {
        background: #e0e7ff;
        color: #4f46e5;
    }
    
    /* 创作表单样式 */
    .creation-form {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 2px solid #e2e8f0;
    }
    
    .script-tips {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .script-tips h4 {
        color: #374151;
        font-size: 1.1rem;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .script-tips h4::before {
        content: '💡';
        font-size: 16px;
    }
    
    .script-tips ul {
        margin: 0;
        padding-left: 20px;
        color: #6b7280;
    }
    
    .script-tips li {
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    /* 表单动作按钮样式 */
    .form-actions {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-actions .btn {
        min-width: 180px;
    }

.help-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

.cost-info {
    color: #4f46e5;
    font-weight: 500;
}

/* 主题示例 */
.theme-examples {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.theme-examples h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.example-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.example-item:hover {
    border-color: #4f46e5;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.example-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.example-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 表单操作按钮 */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

/* 生成状态 */
.generation-status {
    text-align: center;
    padding: 60px 20px;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-animation p {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
}

/* 结果展示 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.result-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.result-actions {
    display: flex;
    gap: 12px;
}

/* 脚本内容 */
.script-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
    white-space: pre-wrap;
}

/* 角色画廊 */
.character-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.character-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.character-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.character-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.character-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 场景画廊 */
.scene-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.scene-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.scene-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scene-info {
    padding: 16px;
}

.scene-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.scene-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 视频画廊 */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 200px;
}

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.video-duration {
    font-size: 14px;
    color: #6b7280;
}

/* 音频画廊 */
.audio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.audio-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.audio-player {
    width: 100%;
    margin-bottom: 12px;
}

.audio-info {
    text-align: center;
}

.audio-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.audio-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    font-style: italic;
}

/* 最终视频 */
.final-video {
    text-align: center;
    margin-bottom: 30px;
}

.final-video video {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.final-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .creation-main {
        padding: 20px 0;
    }
    
    .creation-progress {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step-item {
        flex-direction: row;
        width: 100%;
        text-align: left;
    }
    
    .step-number {
        margin-right: 16px;
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .step-info {
        text-align: left;
        min-width: auto;
    }
    
    /* 移动端表单行布局 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .image-options {
        padding: 16px;
    }
    
    .image-options h4 {
        font-size: 16px;
    }
    
    /* 视频选项移动端适配 */
    .video-options {
        padding: 16px;
    }
    
    .video-options h4 {
        font-size: 16px;
    }
    
    .selector-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .selected-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }
    
    .selectable-image img {
        height: 80px;
    }
    
    .selected-image-item img {
        height: 50px;
    }
    
    /* 语音选项移动端适配 */
    .audio-options {
        padding: 16px;
    }
    
    .audio-options h4 {
        font-size: 16px;
    }
    
    /* 创作模式移动端适配 */
    .creation-modes {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mode-card {
        padding: 25px 20px;
    }
    
    .mode-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .mode-card h4 {
        font-size: 1.2rem;
    }
    
    .creation-form {
        margin-top: 25px;
        padding-top: 25px;
    }
    
    .script-tips {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-header h3 {
        font-size: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .character-gallery,
    .scene-gallery,
    .video-gallery,
    .audio-gallery {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .result-actions {
        justify-content: center;
    }
    
    .final-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .creation-progress {
        padding: 16px;
    }
    
    .progress-header h2 {
        font-size: 24px;
    }
    
    .card-header {
        padding: 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* 图片风格选择器 */
.style-selector {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.style-selector h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.style-description {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.style-option {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.style-option:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.style-option.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.style-preview {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.style-option[data-style="anime"] .style-preview {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}

.style-option[data-style="realistic"] .style-preview {
    background: linear-gradient(135deg, #5f27cd, #341f97);
}

.style-option[data-style="2d"] .style-preview {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.style-option[data-style="chinese"] .style-preview {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.style-info h5 {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.style-info p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.selected-style {
    background: #e0f2fe;
    border: 1px solid #0891b2;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.style-label {
    color: #0891b2;
    font-weight: 600;
    font-size: 14px;
}

.style-name {
    color: #164e63;
    font-weight: 500;
    font-size: 14px;
}

/* 缩略图预览框样式 */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.thumbnail-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.thumbnail-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.thumbnail-info {
    padding: 12px;
    text-align: center;
}

.thumbnail-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.thumbnail-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.thumbnail-loading {
    width: 100%;
    height: 150px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 768px) {
    .style-options {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .thumbnail-gallery {
        grid-template-columns: 1fr;
    }
    
    .style-option {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    border-color: #4f46e5;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.help-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

/* 顶部提示横幅（草稿恢复/继续引导） */
.creation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 16px auto 0;
    max-width: 900px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.12);
}
.creation-banner .banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.creation-banner .banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 18px;
}
.creation-banner .banner-text {
    font-size: 14px;
}
.creation-banner .banner-text .strong {
    font-weight: 700;
}
.creation-banner .badge-step {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #0284c7;
    color: #fff;
    font-size: 12px;
    margin-left: 6px;
}
.creation-banner .banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.creation-banner .banner-close {
    background: transparent;
    border: none;
    color: #0369a1;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}
.creation-banner .banner-close:hover {
    background: rgba(3, 105, 161, 0.08);
}

/* 突出显示的继续按钮（用于横幅） */
.btn-continue {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
    font-weight: 700;
}

.help-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

.cost-info {
    color: #4f46e5;
    font-weight: 500;
}

/* 主题示例 */
.theme-examples {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.theme-examples h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.example-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.example-item:hover {
    border-color: #4f46e5;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.example-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.example-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 表单操作按钮 */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

/* 生成状态 */
.generation-status {
    text-align: center;
    padding: 60px 20px;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-animation p {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
}

/* 结果展示 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.result-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.result-actions {
    display: flex;
    gap: 12px;
}

/* 脚本内容 */
.script-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
    white-space: pre-wrap;
}

/* 角色画廊 */
.character-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.character-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.character-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.character-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.character-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 场景画廊 */
.scene-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.scene-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.scene-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scene-info {
    padding: 16px;
}

.scene-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.scene-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 视频画廊 */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 200px;
}

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.video-duration {
    font-size: 14px;
    color: #6b7280;
}

/* 音频画廊 */
.audio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.audio-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.audio-player {
    width: 100%;
    margin-bottom: 12px;
}

.audio-info {
    text-align: center;
}

.audio-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.audio-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    font-style: italic;
}

/* 最终视频 */
.final-video {
    text-align: center;
    margin-bottom: 30px;
}

.final-video video {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.final-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .creation-main {
        padding: 20px 0;
    }
    
    .creation-progress {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step-item {
        flex-direction: row;
        width: 100%;
        text-align: left;
    }
    
    .step-number {
        margin-right: 16px;
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .step-info {
        text-align: left;
        min-width: auto;
    }
    
    /* 移动端表单行布局 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .image-options {
        padding: 16px;
    }
    
    .image-options h4 {
        font-size: 16px;
    }
    
    /* 视频选项移动端适配 */
    .video-options {
        padding: 16px;
    }
    
    .video-options h4 {
        font-size: 16px;
    }
    
    .selector-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .selected-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }
    
    .selectable-image img {
        height: 80px;
    }
    
    .selected-image-item img {
        height: 50px;
    }
    
    /* 语音选项移动端适配 */
    .audio-options {
        padding: 16px;
    }
    
    .audio-options h4 {
        font-size: 16px;
    }
    
    /* 创作模式移动端适配 */
    .creation-modes {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mode-card {
        padding: 25px 20px;
    }
    
    .mode-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .mode-card h4 {
        font-size: 1.2rem;
    }
    
    .creation-form {
        margin-top: 25px;
        padding-top: 25px;
    }
    
    .script-tips {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-header h3 {
        font-size: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .character-gallery,
    .scene-gallery,
    .video-gallery,
    .audio-gallery {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .result-actions {
        justify-content: center;
    }
    
    .final-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .creation-progress {
        padding: 16px;
    }
    
    .progress-header h2 {
        font-size: 24px;
    }
    
    .card-header {
        padding: 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* 图片风格选择器 */
.style-selector {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.style-selector h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.style-description {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.style-option {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.style-option:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.style-option.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.style-preview {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.style-option[data-style="anime"] .style-preview {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}

.style-option[data-style="realistic"] .style-preview {
    background: linear-gradient(135deg, #5f27cd, #341f97);
}

.style-option[data-style="2d"] .style-preview {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.style-option[data-style="chinese"] .style-preview {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.style-info h5 {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.style-info p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.selected-style {
    background: #e0f2fe;
    border: 1px solid #0891b2;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.style-label {
    color: #0891b2;
    font-weight: 600;
    font-size: 14px;
}

.style-name {
    color: #164e63;
    font-weight: 500;
    font-size: 14px;
}

/* 缩略图预览框样式 */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.thumbnail-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.thumbnail-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.thumbnail-info {
    padding: 12px;
    text-align: center;
}

.thumbnail-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.thumbnail-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.thumbnail-loading {
    width: 100%;
    height: 150px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 768px) {
    .style-options {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .thumbnail-gallery {
        grid-template-columns: 1fr;
    }
    
    .style-option {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    border-color: #4f46e5;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.help-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}