/* 基础布局样式 */


/* 上传和转换区域样式 */
.upload-section,
.convert-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upload-section:hover,
.convert-section:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.section-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.section-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.upload-section {
    position: relative;
    overflow: hidden;
}

.upload-section:hover {
    transform: translateY(-2px);
}

.upload-content {
    padding: 24px;
}

.upload-left {
    flex: 1;
}

.upload-right {
    flex: 0 0 320px;
}

/* 上传区域优化 */
.img-dropzone {
    margin: 24px auto;
    padding: 48px 24px;
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    max-width: 600px;
}

.img-dropzone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.img-dropzone:hover::before {
    transform: translateX(100%);
}

.img-dropzone:hover,
.img-dropzone.dragover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.upload-icon {
    margin-bottom: 16px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.img-dropzone:hover .upload-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.img-dropzone-content {
    text-align: center;
    padding: 0;
    position: relative;
    z-index: 1;
}

.img-dropzone-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.img-dropzone-content p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 16px;
}

.upload-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.upload-link:hover {
    color: #2563eb;
}

.upload-tips {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tip-item {
    font-size: 14px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

/* 转换区域 */
.convert-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.img-dropzone.dragover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.img-dropzone.dragover .img-dropzone-content {
    color: #3b82f6;
}

/* 视频编辑布局 */
.video-edit-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.video-main-area {
    /* 左侧主要区域 */
}

.video-sidebar {
    /* 右侧边栏区域 */
    position: sticky;
    top: 20px;
}

.video-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    height: 400px; /* 调整高度适应新布局 */
}

#videoPlayer {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* 保持视频比例，自适应容器 */
}

.timeline-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

.timeline {
    position: relative;
    height: 45px;
    background: #e5e7eb;
    border-radius: 6px;
    margin: 15px 0;
    overflow: hidden;
}

.timeline-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ddd6fe 0%, #c084fc 50%, #ddd6fe 100%);
}

.timeline-selection {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(59, 130, 246, 0.3);
    border: 2px solid #3b82f6;
    border-radius: 4px;
    pointer-events: none;
}

.timeline-handle {
    position: absolute;
    top: 50%;
    width: 18px; /* 减少宽度从20px到18px */
    height: 35px; /* 减少高度从40px到35px */
    background: #3b82f6;
    border-radius: 9px; /* 相应调整圆角 */
    transform: translateY(-50%) translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.timeline-handle:hover {
    background: #2563eb;
}

.timeline-handle.left {
    left: 0;
}

.timeline-handle.right {
    left: 100%;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #ef4444;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
    transition: left 0.1s ease;
}

.timeline-times {
    display: flex;
    justify-content: space-between;
    margin-top: 8px; /* 减少margin从10px到8px */
    font-size: 0.85rem; /* 减少字体大小从0.9rem到0.85rem */
    color: #6b7280;
}

.time-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.time-box {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 8px;
}

.time-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.time-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn.disabled,
.btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.btn.secondary {
    background: #6b7280;
}

.btn.secondary:hover {
    background: #4b5563;
}

.btn.secondary.disabled,
.btn.secondary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* 下载按钮状态样式 */
.btn-download {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-download:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-download:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-download.processing {
    background: #f59e0b;
    cursor: wait;
    animation: pulse 2s infinite;
}

.btn-download.processing:hover {
    background: #f59e0b;
    transform: none;
}

.btn-download.completed {
    background: #10b981;
    color: white;
}

.btn-download.completed:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-download.error {
    background: #ef4444;
    color: white;
}

.btn-download.error:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress {
    margin-top: 20px;
    text-align: center;
}

.progress-text {
    margin-bottom: 10px;
    color: #6b7280;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    transition: width 0.3s ease;
}

/* 播放速度控制样式 */
.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    flex-wrap: wrap;
}

.speed-label {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.speed-select {
    padding: 6px 10px; /* 减少padding从8px 12px到6px 10px */
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: white;
    font-size: 0.85rem; /* 减少字体大小从0.9rem到0.85rem */
    color: #374151;
    cursor: pointer;
    min-width: 85px; /* 减少最小宽度从100px到85px */
}

.speed-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 音频控制样式 */
.audio-control {
    margin-left: auto;
}

.audio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
}

.audio-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 保存配置区域样式 */
.save-config {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.save-config-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.save-config-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.config-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.config-value {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
}

.format-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: white;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    min-width: 120px;
}

.format-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.save-summary {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.save-summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.save-summary-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.save-config .controls {
    flex-direction: column;
    align-items: stretch;
}

.save-config .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

/* 格式帮助样式 */
.format-help {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.format-help h3 {
    color: #0369a1;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.format-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0f2fe;
}

.format-item:last-child {
    border-bottom: none;
}

.format-item.supported {
    color: #065f46;
}

.format-name {
    font-weight: 500;
}

.format-status {
    font-size: 0.8rem;
}

.help-text {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.help-text p {
    margin: 0 0 10px 0;
    color: #92400e;
}

.help-text a {
    color: #d97706;
    text-decoration: underline;
}

.help-text a:hover {
    color: #b45309;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-content {
        padding: 0 16px;
    }

    .section-header {
        padding: 20px 20px 12px 20px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-header p {
        font-size: 13px;
    }

    .upload-section {
        margin-bottom: 20px;
    }

    .img-dropzone {
        padding: 32px 20px;
        margin: 20px auto;
    }

    .video-edit-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-sidebar {
        position: static;
        order: -1; /* 移动端时保存配置区域移到顶部 */
    }

    .video-container {
        height: 280px;
    }

    .timeline-container {
        padding: 12px; /* 移动端进一步减少padding */
        margin-bottom: 12px;
    }

    .timeline {
        height: 40px; /* 移动端进一步减少时间轴高度 */
        margin: 12px 0;
    }

    .timeline-handle {
        width: 16px; /* 移动端进一步减少手柄大小 */
        height: 30px;
        border-radius: 8px;
    }

    .speed-control {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .speed-select {
        width: 100%;
        min-width: auto; /* 移动端取消最小宽度限制 */
        padding: 8px 12px; /* 移动端稍微增加padding提升触摸体验 */
    }

    .audio-control {
        margin-left: 0;
    }

    .time-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .save-config-grid {
        gap: 10px;
    }

    .save-summary-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .upload-section {
        margin-bottom: 16px;
    }

    .section-header {
        padding: 16px 16px 8px 16px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .section-header p {
        font-size: 12px;
    }

    .img-dropzone {
        padding: 24px 16px;
        margin: 16px auto;
    }

    .upload-icon svg {
        width: 32px;
        height: 32px;
    }

    .img-dropzone h3 {
        font-size: 16px;
    }

    .img-dropzone p {
        font-size: 14px;
    }

    .upload-tips {
        gap: 12px;
    }

    .tip-item {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ================================= */
/* SEO内容区域样式 */
/* ================================= */

.seo-content {
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    border-radius: 24px;
    color: var(--gray-800);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%236b7280" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%236b7280" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%236b7280" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%236b7280" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%236b7280" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.seo-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.seo-content h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.seo-description {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* 格式卡片网格 */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.format-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
}

.format-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.format-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.format-card h4::before {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.format-card p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.format-card .format-ext {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 功能特点列表 */
.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.features-list li {
    position: relative;
    padding: 1rem 1.5rem 1rem 3rem;
    color: var(--gray-700);
    line-height: 1.6;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.features-list li:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.features-list li:hover::before {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 使用指南步骤 */
.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.step-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
}

.step-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0.5rem 0 1rem 0;
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* SEO内容响应式 */
@media (max-width: 768px) {
    .seo-content {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .seo-content h1 {
        font-size: 1.75rem;
    }

    .seo-content h2 {
        font-size: 1.25rem;
    }

    .seo-content h3 {
        font-size: 1rem;
    }

    .seo-description {
        font-size: 0.9rem;
        padding: 0;
    }

    .format-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .format-card {
        padding: 1rem;
    }

    .format-card h4 {
        font-size: 1.1rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .features-list li {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .seo-content {
        padding: 1.5rem 0.75rem;
        margin-top: 1.5rem;
    }

    .seo-content h1 {
        font-size: 1.5rem;
    }

    .seo-content h2 {
        font-size: 1.125rem;
    }

    .seo-content h3 {
        font-size: 0.9rem;
    }

    .format-card {
        padding: 0.75rem;
    }

    .features-list li {
        padding: 0.5rem 0.75rem 0.5rem 2rem;
        font-size: 0.9rem;
    }

    .step-item {
        padding: 1.5rem 1rem;
    }

    .step-content h4 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* 预览结果区域样式 */
.result-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.result-content {
    margin-top: 20px;
}

.result-video-area {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.result-video-area .video-container {
    flex: 1;
    max-width: 600px;
    height: 400px; /* 设置固定高度 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.result-video-area #resultVideoPlayer {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain; /* 保持纵横比，完整显示 */
    background: #000;
}

/* GIF预览样式 */
.result-video-area #resultGifPreview {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
    object-fit: contain; /* 保持纵横比，完整显示 */
    background: #000;
}

.result-info {
    flex: 0 0 300px;
    min-width: 300px;
}

.info-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.info-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    word-break: break-all;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-section {
        padding: 20px;
    }
    
    .result-video-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .result-video-area .video-container {
        height: 300px; /* 移动端调整高度 */
        max-width: 100%;
    }
    
    .result-info {
        flex: none;
        min-width: auto;
    }
    
    .result-actions {
        flex-direction: row;
    }
    
    .result-actions .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .result-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .result-video-area .video-container {
        height: 250px; /* 小屏幕进一步调整高度 */
    }
    
    .info-item {
        padding: 12px;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* 错误信息样式 */
.error-message {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    animation: slideInDown 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.error-text {
    color: #dc2626;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端错误信息样式优化 */
@media (max-width: 768px) {
    .error-message {
        margin-top: 10px;
        padding: 10px 12px;
    }
    
    .error-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .error-message {
        margin-top: 8px;
        padding: 8px 10px;
    }
    
    .error-text {
        font-size: 0.8rem;
    }
}