/* 视频转换器页面样式 */

/* 上传区域样式 */
.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 {
    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 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-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%);
}

/* 转换列表区域 */
.convert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

/* 转换列表 */
.convert-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.convert-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.convert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 20px;
}

.convert-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.convert-preview {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.convert-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-all;
    max-width: 280px;
}

.convert-meta {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* 内联格式选择器 */
.format-selector-inline {
    flex: 0 0 auto;
    max-width: 200px;
    margin: 0 15px;
}

.format-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.format-select-wrapper {
    position: relative;
}

.format-select {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
}

.format-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.format-select:hover:not(:disabled) {
    border-color: #9ca3af;
}

.format-select:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.format-select:disabled + .format-select-icon {
    color: #9ca3af;
}

.format-selector-inline.disabled {
    opacity: 0.6;
}

.format-selector-inline.disabled .format-label {
    color: #9ca3af;
}

.format-select-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

.convert-status {
    flex: 0 0 auto;
    text-align: right;
    min-width: 120px;
}

.convert-status.status-error {
    color: #dc2626;
}

.convert-status.has-error-message {
    min-width: 200px;
}

.convert-status .status-text {
    font-size: 14px;
    font-weight: 500;
}

.status-waiting {
    color: #f59e0b;
}

.status-converting {
    color: #3b82f6;
}

.status-completed {
    color: #10b981;
}

.status-error {
    color: #dc2626;
}

.error-message {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    padding: 4px 8px;
    background: #fef2f2;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

.convert-progress {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

/* 转换操作按钮 */
.convert-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.btn-convert,
.btn-download,
.btn-remove {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-convert {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-convert:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-convert:disabled,
.btn-convert.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-download {
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    background: #059669;
}

.btn-link {
    background: #f59e0b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-link:hover {
    background: #d97706;
    text-decoration: none;
}

.btn-remove {
    background: #ef4444;
    color: white;
}

.btn-remove:hover {
    background: #dc2626;
}

.btn-remove:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-retry {
    background: #f59e0b;
    color: white;
}

.btn-retry:hover {
    background: #d97706;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #374151;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.img-dropzone.dragover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.img-dropzone.dragover .img-dropzone-content {
    transform: scale(1.02);
}

/* 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;
}

/* 响应式设计 */
@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;
    }

    .convert-list {
        padding: 20px;
    }

    .convert-item {
        padding: 16px;
    }

    .convert-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .convert-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .convert-details h4 {
        font-size: 15px;
        max-width: 200px;
    }

    .format-selector-inline {
        max-width: none;
        margin: 0;
    }

    .convert-status {
        text-align: left;
        min-width: auto;
    }

    .convert-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .convert-actions button,
    .convert-actions a {
        font-size: 13px;
        padding: 7px 14px;
    }

    .convert-status.has-error-message {
        min-width: auto;
    }

    .error-message {
        font-size: 11px;
    }

    /* SEO内容响应式 */
    .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;
    }

    .upload-section .section-header h2 {
        font-size: 1.5rem;
    }
    
    .upload-section .section-header p {
        font-size: 0.875rem;
    }
}

@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;
    }

    .convert-list {
        padding: 16px;
    }

    .format-selector-inline .format-select {
        font-size: 13px;
        padding: 7px 25px 7px 10px;
    }

    .format-selector-inline .format-select-icon {
        right: 6px;
    }

    .format-label {
        font-size: 11px;
    }

    .convert-info {
        gap: 10px;
    }

    .convert-preview {
        width: 40px;
        height: 40px;
    }

    .convert-details h4 {
        font-size: 14px;
        max-width: 150px;
    }

    .convert-meta {
        font-size: 12px;
    }

    .convert-actions button,
    .convert-actions a {
        font-size: 12px;
        padding: 6px 12px;
    }

    .convert-status {
        font-size: 12px;
    }

    .convert-status.has-error-message {
        min-width: auto;
    }

    .error-message {
        font-size: 10px;
    }

    .convert-actions {
        gap: 8px;
    }

    /* SEO内容响应式 */
    .seo-content {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }

    .format-card {
        padding: 1rem 0.75rem;
    }

    .features-list li {
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
        font-size: 0.9rem;
    }

    .upload-section .section-header h2 {
        font-size: 1.25rem;
    }
    
    .upload-section .section-header p {
        font-size: 0.8rem;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .seo-content {
        background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
        color: var(--gray-100);
        border-color: var(--gray-700);
    }

    .seo-content h1 {
        color: var(--gray-100);
    }

    .seo-content h2 {
        color: var(--primary-light);
    }

    .seo-content h3 {
        color: var(--gray-300);
    }

    .seo-description {
        color: var(--gray-400);
    }

    .format-card {
        background: var(--gray-800);
        border-color: var(--gray-700);
        color: var(--gray-100);
    }

    .format-card h4 {
        color: var(--gray-100);
    }

    .format-card p {
        color: var(--gray-400);
    }

    .features-list li {
        background: var(--gray-800);
        border-color: var(--gray-700);
        color: var(--gray-300);
    }

    .features-list li:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
        border-color: var(--primary);
    }

    .step-item {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }

    .step-content h4 {
        color: var(--gray-100);
    }

    .step-content p {
        color: var(--gray-400);
    }
} 