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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #6366f1;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 导航栏认证区域 */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.user-email {
    font-size: 14px;
    color: #64748b;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #6366f1;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* 认证模态框 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal .modal-content {
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease;
}

.auth-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.auth-modal .modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.auth-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.auth-modal .modal-close:hover {
    background: #f1f5f9;
}

.auth-modal .modal-body {
    padding: 30px;
}

.auth-modal .form-group {
    margin-bottom: 20px;
}

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

.auth-modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-modal .form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-modal .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #4f46e5;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #64748b;
    font-size: 14px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-github:hover {
    border-color: #333;
    color: #333;
}

.auth-switch {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.auth-switch a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #4f46e5;
}

/* 邮箱验证 */
.verify-content {
    text-align: center;
    padding: 20px 0;
}

.verify-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.verify-content h4 {
    margin-bottom: 15px;
    color: #1e293b;
}

.verify-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.verify-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-auth {
        gap: 10px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .user-dropdown {
        right: -50px;
        min-width: 180px;
    }
    
    .auth-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .auth-modal .modal-body {
        padding: 20px;
    }
    
    .social-login {
        gap: 10px;
    }
    
    .verify-actions {
        flex-direction: column;
    }
}

/* 英雄区域 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.hero::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="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* 英雄区域视觉元素 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-frame, .ai-processing, .final-video {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.video-frame i, .ai-processing i, .final-video i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.ai-icon {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.arrow {
    color: #fbbf24;
    font-size: 1.5rem;
}

/* 上传区域 */
.upload-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1e293b;
}

.upload-container {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.upload-container:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

.upload-area {
    text-align: center;
    padding: 60px 20px;
    border-radius: 15px;
    background: white;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.upload-area.dragover {
    border-color: #6366f1;
    background: #eef2ff;
    transform: scale(1.02);
}

.upload-content i {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 20px;
    display: block;
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.upload-content p {
    color: #64748b;
    margin-bottom: 30px;
}

/* 输入选项标签 */
.input-options {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    color: #64748b;
}

.input-tab.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.input-tab:hover:not(.active) {
    background: #f1f5f9;
    color: #6366f1;
}

/* 输入面板 */
.input-content {
    position: relative;
    min-height: 200px;
}

.input-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.input-panel.active {
    display: block;
}

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

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* 文件列表 */
.file-list {
    display: grid;
    gap: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.file-size {
    color: #64748b;
    font-size: 14px;
}

.file-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.file-remove:hover {
    background: #dc2626;
}

/* 模板选择 - 增强样式 */
.template-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.template-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1e293b;
}

.template-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.category-tab {
    flex: 1;
    min-width: 100px;
    padding: 15px 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.category-tab.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.category-tab:hover:not(.active) {
    background: #f1f5f9;
    color: #6366f1;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}

/* 自定义滚动条 */
.template-grid::-webkit-scrollbar {
    width: 8px;
}

.template-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.template-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.template-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.template-item {
    background: #f8fafc;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.template-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #6366f1;
}

.template-item.selected {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.template-preview {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.template-preview .featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.template-preview .template-duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.template-preview::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="template-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23template-pattern)"/></svg>');
    opacity: 0.5;
}

.template-info {
    padding: 15px;
}

.template-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #1e293b;
    font-weight: 600;
}

.template-info p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.template-tags {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.template-tag {
    background: #6366f1;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.template-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.template-actions .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.template-actions .btn-outline {
    background: white;
    border: 1px solid #6366f1;
    color: #6366f1;
}

.template-actions .btn-outline:hover {
    background: #6366f1;
    color: white;
}

.template-actions .btn-ghost {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.template-actions .btn-ghost:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.template-item.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.template-item.featured::after {
    content: 'HOT';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    display: none;
}

/* 模板管理样式 */
.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.template-manager-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.template-manager-tabs .tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
}

.template-manager-tabs .tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.template-manager-content {
    min-height: 400px;
}

.tab-content {
    display: none;
}

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

.template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.template-manager-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.template-manager-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

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

.template-manager-item p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.template-manager-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.template-manager-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* 模态框大尺寸 */
.modal-content.large {
    max-width: 800px;
    width: 90%;
}

.help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

/* 模板预览样式 */
.template-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.template-preview-image {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-preview-info h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.template-preview-info p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.template-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.template-preview-tags .template-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.template-preview-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.template-preview-details p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.template-preview-details p:last-child {
    margin-bottom: 0;
}

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

.template-preview-actions .btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .template-preview-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .template-preview-actions {
        flex-direction: column;
    }
}

/* 标签建议样式 */
.tag-suggestions {
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tag-suggestion-group {
    margin-bottom: 16px;
}

.tag-suggestion-group:last-child {
    margin-bottom: 0;
}

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

.tag-suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-suggestion {
    display: inline-block;
    padding: 4px 12px;
    background: #e5e7eb;
    color: #374151;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-suggestion:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

.tag-suggestion.selected {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* 滤镜选择 */
.filter-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1e293b;
}

.filter-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-category-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    color: #64748b;
}

.filter-category-tab.active {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.filter-category-tab:hover:not(.active) {
    background: #fef3c7;
    color: #f59e0b;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.filter-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.filter-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
}

.filter-item.selected {
    border-color: #f59e0b;
    background: #fef3c7;
}

.filter-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.filter-preview.beauty {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.filter-preview.dance {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.filter-preview.vintage {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.filter-preview.color {
    background: linear-gradient(135deg, #10b981, #059669);
}

.filter-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #1e293b;
}

.filter-info p {
    font-size: 0.7rem;
    color: #64748b;
}

.filter-item.featured::after {
    content: 'NEW';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: bold;
}

/* 剪辑设置 */
.editing-settings {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.editing-settings h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1e293b;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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

.setting-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.setting-group select {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.setting-group select:focus {
    outline: none;
    border-color: #6366f1;
}


/* 功能特色 */
.features-section {
    padding: 80px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* 工作原理 */
.how-it-works-section {
    padding: 80px 0;
    background: white;
}

.workflow {
    display: grid;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    background: #eef2ff;
    transform: translateX(10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.workflow-step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.workflow-step p {
    color: #64748b;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #fbbf24;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fbbf24;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .video-preview {
        flex-direction: column;
        gap: 15px;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .nav-menu {
        display: none;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
    }
    
    .workflow-step:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .upload-container {
        padding: 20px;
    }
    
    .editing-settings {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

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

.slide-in-up {
    animation: slideInUp 0.6s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* 登录覆盖层样式（已移除，所有功能开放使用） */

/* 真实滤镜样式 */
.filter-item.real-filter {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    border: 2px solid #ff6b6b;
}

.filter-item.real-filter:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    border-color: #ff4757;
}

.filter-item.real-filter.selected {
    background: linear-gradient(135deg, #ff4757 0%, #ffa502 100%);
    border-color: #ff4757;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.filter-preview.real {
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

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

.filter-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.filter-category-title {
    grid-column: 1 / -1;
    margin: 20px 0 15px 0;
    text-align: center;
}

.filter-category-title h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

.filter-separator {
    grid-column: 1 / -1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 20px 0;
}

/* 滤镜预览样式 */
.filter-preview-content {
    padding: 20px 0;
}

.preview-description {
    text-align: center;
    margin-bottom: 30px;
    color: #64748b;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.preview-item h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #1e293b;
}

.preview-image {
    width: 100%;
    height: 200px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.preview-image:hover {
    border-color: #6366f1;
    background: #f0f4ff;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.preview-image i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
}

/* TikTok 工具样式 */
.tiktok-tools-section {
    background: linear-gradient(135deg, #ff0050 0%, #00f2ea 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    color: white;
}

.tiktok-tools-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

.section-description {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.tiktok-tools-container {
    display: grid;
    gap: 30px;
}

.tool-category h4 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

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

.tool-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tool-btn i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tool-btn span {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.tool-btn small {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* TikTok 工具模态框样式 */
.tiktok-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.tiktok-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tiktok-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.tiktok-modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.tiktok-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
}

.tiktok-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.tiktok-step {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #ff0050;
}

.tiktok-step h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

.tiktok-step p {
    margin: 0 0 10px 0;
    color: #64748b;
    line-height: 1.6;
}

.tiktok-step ul {
    margin: 10px 0;
    padding-left: 20px;
}

.tiktok-step li {
    margin-bottom: 8px;
    color: #64748b;
    line-height: 1.5;
}

.tiktok-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.tiktok-upload-area:hover {
    border-color: #ff0050;
    background: #fef2f2;
}

.tiktok-upload-area i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 15px;
}

.tiktok-upload-area p {
    margin: 0;
    color: #6b7280;
    font-size: 1.1rem;
}

.tiktok-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.tiktok-preview-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.tiktok-preview-item h5 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.tiktok-preview-video {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.tiktok-preview-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.tiktok-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tiktok-controls .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
}

/* 七步剪辑步骤样式 */
.editing-steps {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.editing-step {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.editing-step:hover {
    border-color: #ff0050;
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.1);
}

.editing-step.active {
    border-color: #ff0050;
    background: #fef2f2;
}

.editing-step.completed {
    border-color: #10b981;
    background: #f0fdf4;
}

.editing-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
}

.editing-step.active .step-number {
    background: #ff0050;
    color: white;
}

.editing-step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.step-description {
    color: #64748b;
    line-height: 1.5;
    margin-left: 45px;
}

.step-actions {
    margin-top: 15px;
    margin-left: 45px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.step-param {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.step-param input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tiktok-tools-container {
        gap: 20px;
    }
    
    .tool-options {
        grid-template-columns: 1fr;
    }
    
    .tiktok-modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .tiktok-preview {
        grid-template-columns: 1fr;
    }
    
    .tiktok-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .tiktok-controls .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* TikTok 发布功能样式 */
.publish-settings {
    display: grid;
    gap: 20px;
}

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

.setting-group label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.publish-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.publish-time-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.publish-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.method-option {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.method-option:hover {
    border-color: #ff0050;
    background: #fef2f2;
    transform: translateY(-2px);
}

.method-option.selected {
    border-color: #ff0050;
    background: #fef2f2;
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.1);
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.method-option h5 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.method-option p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.batch-settings {
    display: grid;
    gap: 20px;
}

.publish-mode-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.download-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.description-template,
.hashtags-template {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
}

.video-actions {
    display: flex;
    gap: 8px;
}

.video-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* 发布进度样式 */
.publish-progress {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0050, #00f2ea);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .publish-methods {
        grid-template-columns: 1fr;
    }
    
    .publish-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .publish-time-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .video-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .video-actions {
        align-self: flex-end;
    }
}

/* 发布指导样式 */
.publish-steps {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.step-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.step-content p {
    margin: 0 0 10px 0;
    color: #64748b;
    line-height: 1.5;
}

.copy-content {
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.copy-content:hover {
    background: #e2e8f0;
    border-color: #ff0050;
}

.content-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 10px;
    color: #1e293b;
}

.copy-btn {
    background: #ff0050;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: #e6004a;
    transform: translateY(-1px);
}

.publish-options-guide {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.option-guide {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.option-guide input[type="checkbox"] {
    margin: 0;
    cursor: not-allowed;
}

.script-container {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
}

.publish-script {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.script-container .btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.script-container .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .publish-options-guide {
        flex-direction: column;
        gap: 10px;
    }
    
    .script-container .btn {
        position: static;
        margin-top: 15px;
        width: 100%;
    }
}

/* 验证码登录样式 */
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #1e293b;
    background: #f8fafc;
}

.tab-btn.active {
    color: #ff0050;
    border-bottom-color: #ff0050;
    background: #fef2f2;
}

.verify-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verify-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

.verify-input-group input:focus {
    outline: none;
    border-color: #ff0050;
    box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.1);
}

.verify-input-group .btn {
    padding: 12px 20px;
    white-space: nowrap;
    min-width: 120px;
}

.code-timer {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    text-align: center;
}

.code-timer span {
    color: #0369a1;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 验证码输入框特殊样式 */
#loginVerifyCode {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
}

#loginVerifyCode::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
}

/* 发送按钮状态 */
#sendCodeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#sendCodeBtn:disabled:hover {
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .verify-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .verify-input-group .btn {
        width: 100%;
        min-width: auto;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* ==================== 七步深度剪辑工具样式 ==================== */

.deep-edit-modal .tiktok-modal-content {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.deep-edit-container {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}

.edit-steps-panel {
    width: 200px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
}

.step-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-nav-item {
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    font-weight: 500;
}

.step-nav-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.step-nav-item.active {
    background: #2196f3;
    color: white;
    border-color: #1976d2;
}

.edit-content-panel {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
}

.step-content {
    display: none;
}

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

.step-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.parameter-group {
    margin-bottom: 20px;
}

.parameter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.parameter-group input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.parameter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.value-display {
    font-weight: bold;
    color: #2196f3;
    font-size: 14px;
}

.preview-area {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 步骤1：时间轴预览 */
.video-timeline {
    margin: 20px 0;
}

.timeline-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    margin-bottom: 10px;
}

.trim-start, .trim-end {
    position: absolute;
    top: 0;
    height: 100%;
    background: #ff5722;
    border-radius: 10px;
}

.trim-start {
    left: 0;
    width: 30%;
}

.trim-end {
    right: 0;
    width: 30%;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* 步骤2：缩放预览 */
.scale-preview {
    display: flex;
    gap: 20px;
    align-items: center;
}

.original-frame, .scaled-frame {
    width: 100px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    position: relative;
}

.frame-label {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 12px;
    color: #666;
}

/* 步骤3：镜像预览 */
.mirror-preview {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sample-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.sample-text.mirrored {
    transform: scaleX(-1);
}

.mirror-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

/* 步骤4：调色预览 */
.color-preview {
    display: flex;
    gap: 20px;
    align-items: center;
}

.color-sample {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.color-sample.original {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.color-sample.adjusted {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    filter: brightness(110%) contrast(110%) saturate(110%);
}

/* 步骤5：变速预览 */
.timeline-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.original-timeline, .speeded-timeline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline-label {
    width: 80px;
    font-size: 12px;
    color: #666;
}

.timeline-bar.original {
    height: 15px;
    background: #4caf50;
    border-radius: 8px;
    width: 200px;
}

.timeline-bar.speeded {
    height: 15px;
    background: #ff9800;
    border-radius: 8px;
    width: 174px;
}

/* 步骤6：画中画预览 */
.overlay-preview {
    display: flex;
    gap: 20px;
    align-items: center;
}

.base-frame, .overlay-frame {
    width: 100px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 8px;
    position: relative;
    background: #f0f0f0;
}

.overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="10" height="10" fill="%23000" opacity="0.1"/></svg>') repeat;
    opacity: 0.05;
    border-radius: 6px;
}

.preset-overlays {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.preset-btn {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: #e0e0e0;
}

/* 步骤7：标题预览 */
.title-preview {
    width: 200px;
    height: 120px;
    border: 2px solid #ddd;
    border-radius: 8px;
    position: relative;
    background: #333;
    overflow: hidden;
}

.title-text {
    position: absolute;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.title-text.top-left { top: 10px; left: 10px; }
.title-text.top-center { top: 10px; left: 50%; transform: translateX(-50%); }
.title-text.top-right { top: 10px; right: 10px; }
.title-text.bottom-left { bottom: 10px; left: 10px; }
.title-text.bottom-center { bottom: 10px; left: 50%; transform: translateX(-50%); }
.title-text.bottom-right { bottom: 10px; right: 10px; }

.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.position-btn {
    padding: 8px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.position-btn:hover {
    background: #e0e0e0;
}

.position-btn.active {
    background: #2196f3;
    color: white;
    border-color: #1976d2;
}

.audio-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* 响应式设计 - 深度剪辑工具 */
@media (max-width: 768px) {
    .deep-edit-container {
        flex-direction: column;
    }
    
    .edit-steps-panel {
        width: 100%;
        height: auto;
    }
    
    .step-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .step-nav-item {
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .scale-preview, .mirror-preview, .color-preview, .overlay-preview {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .position-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 注册验证码样式 ==================== */

/* 注册验证码组样式 */
.verification-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.verification-code-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    font-weight: bold;
}

.verification-code-group input:focus {
    border-color: #2196f3;
    outline: none;
}

.verification-code-group .btn {
    white-space: nowrap;
    min-width: 100px;
    padding: 12px 16px;
    font-size: 14px;
}

.code-timer {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 响应式设计 - 注册验证码 */
@media (max-width: 768px) {
    .verification-code-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .verification-code-group .btn {
        width: 100%;
        min-width: auto;
    }
    
    .code-timer {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 5px;
    }
}

/* ==================== 深度剪辑控件样式 ==================== */

.deep-edit-controls {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 50px 0 !important;
    margin: 30px 0 !important;
    border-radius: 25px !important;
    position: relative !important;
    overflow: hidden !important;
}

.deep-edit-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.deep-edit-controls h3 {
    text-align: center !important;
    margin-bottom: 40px !important;
    color: white !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    position: relative !important;
    z-index: 1 !important;
}

.edit-params-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.edit-param {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 25px !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.edit-param::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

.edit-param:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.edit-param label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.param-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.param-group input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e5e7eb, #d1d5db);
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

.param-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
}

.param-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
}

.param-group input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.param-group select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.param-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.param-group span {
    min-width: 80px;
    text-align: center;
    font-weight: 700;
    color: #6366f1;
    font-size: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.param-group input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.param-group input[type="text"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 特效设置样式 */
.effect-toggle-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 50px 0;
    margin: 30px 0;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.effect-toggle-section::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="%23636f71" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23636f71" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23636f71" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23636f71" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23636f71" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.effect-toggle-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.effect-option {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.effect-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.effect-option:hover::before {
    opacity: 1;
}

.effect-option:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.effect-option.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.effect-option i {
    font-size: 3rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.effect-option h4 {
    margin: 15px 0 10px 0;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.effect-option p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.effect-settings {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    z-index: 1;
}

.effect-settings .setting-group {
    margin-bottom: 15px;
}

.effect-settings .setting-group:last-child {
    margin-bottom: 0;
}

.effect-settings label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.effect-settings input,
.effect-settings select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.effect-settings input:focus,
.effect-settings select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.effect-settings .btn {
    width: 100%;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* 操作指南样式 */
.duet-guide,
.greenscreen-guide {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #6366f1;
}

.duet-guide h5,
.greenscreen-guide h5 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duet-guide ol,
.greenscreen-guide ol {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.6;
}

.duet-guide li,
.greenscreen-guide li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.help-text {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
}

/* 视频预览区域 */
.video-preview-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px dashed #d1d5db;
    text-align: center;
}

.video-preview-container.has-video {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.video-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recording-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
}

.recording-indicator.active {
    display: flex;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 发布设置样式 */
.publish-settings {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

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

.setting-group:last-child {
    margin-bottom: 0;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .edit-params-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .effects-grid {
        grid-template-columns: 1fr;
    }
    
    .param-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .param-group span {
        text-align: left;
    }
}

/* ==================== 新增样式：用户引导和改进功能 ==================== */

/* 通知样式改进 */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    border-left: 4px solid;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification.info {
    border-left-color: #3b82f6;
}

/* 工作流程指示器 */
.workflow-indicator {
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.workflow-step:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.workflow-step.active {
    opacity: 1;
    transform: scale(1.1);
}

.workflow-step.completed {
    opacity: 0.8;
}

.workflow-step.completed .step-number {
    background: #10b981;
    color: white;
}

.workflow-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 24px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
    transition: all 0.3s ease;
    position: relative;
}

.workflow-step.active .step-number {
    background: white;
    color: #6366f1;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.step-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.step-line {
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: white;
    transition: width 0.3s ease;
}

.workflow-step.completed + .step-line::after {
    width: 100%;
}

/* 引导覆盖层 */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.guide-overlay.show {
    opacity: 1;
    visibility: visible;
}

.guide-modal {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.guide-header {
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px 24px 0 0;
}

.guide-header h2 {
    margin: 0;
    color: white;
    font-size: 26px;
}

.guide-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.guide-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.guide-content {
    padding: 40px 30px;
}

.guide-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.guide-feature {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.guide-feature:hover {
    background: #f8fafc;
    transform: translateY(-5px);
}

.guide-feature i {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.guide-feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e293b;
}

.guide-feature p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.guide-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 教程提示框 */
.tour-highlight {
    position: relative;
    z-index: 99999;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.5), 0 0 0 2000px rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.5), 0 0 0 2000px rgba(0, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.3), 0 0 0 2000px rgba(0, 0, 0, 0.7);
    }
}

.tour-tooltip {
    position: fixed;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    z-index: 100001;
    animation: fadeInUp 0.3s ease;
}

.tour-tooltip-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.tour-tooltip-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.tour-step-counter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tour-tooltip-content {
    padding: 20px;
}

.tour-tooltip-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.tour-tooltip-actions {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 处理模态框 */
.processing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.processing-modal.show {
    opacity: 1;
    visibility: visible;
}

.processing-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.processing-content h2 {
    margin-bottom: 30px;
    color: #1e293b;
    font-size: 28px;
}

.processing-steps {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.processing-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.processing-step.active {
    opacity: 1;
    transform: scale(1.1);
}

.processing-step.active i {
    animation: rotate 1s linear infinite;
}

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

.processing-step.completed {
    opacity: 0.7;
}

.processing-step.completed i {
    color: #10b981;
    animation: none;
}

.processing-step i {
    font-size: 36px;
    color: #6366f1;
    transition: all 0.3s ease;
}

.processing-step span {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.processing-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    font-size: 16px;
    color: #6366f1;
    font-weight: 600;
}

.processing-info {
    color: #64748b;
    font-size: 14px;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 结果模态框 */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.result-modal.show {
    opacity: 1;
    visibility: visible;
}

.result-content {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.5s ease;
}

.result-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 24px 24px 0 0;
}

.result-header i {
    font-size: 48px;
    color: white;
    margin-bottom: 15px;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.result-header h2 {
    margin: 0;
    color: white;
    font-size: 28px;
}

.result-preview {
    padding: 20px;
    background: #f8fafc;
}

.result-preview video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result-info {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-stat {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.result-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-stat span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-stat strong {
    display: block;
    font-size: 20px;
    color: #1e293b;
    font-weight: 700;
}

.result-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.result-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.result-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 发布模态框 */
.publish-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.publish-modal.show {
    opacity: 1;
    visibility: visible;
}

.publish-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.5s ease;
}

.publish-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e293b;
    font-size: 28px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.platform-option {
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-option:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.platform-option:hover i,
.platform-option:hover span {
    color: white;
}

.platform-option i {
    font-size: 40px;
    color: #6366f1;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.platform-option span {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    transition: all 0.3s ease;
}

.publish-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #64748b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.publish-close:hover {
    background: #e5e7eb;
    color: #1e293b;
    transform: rotate(90deg);
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.5s ease;
}

/* 下一步按钮 */
.next-step-button {
    margin-top: 30px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.next-step-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.next-step-button i {
    transition: transform 0.3s ease;
}

.next-step-button:hover i {
    transform: translateX(5px);
}

/* 视频预览容器 */
.video-preview-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    overflow: hidden;
}

.preview-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h3 {
    margin: 0;
    font-size: 18px;
}

.preview-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.preview-content {
    padding: 20px;
    background: #f8fafc;
}

.preview-content video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.preview-controls {
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: white;
    border-top: 1px solid #e5e7eb;
}

/* 响应式设计改进 */
@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-line {
        width: 3px;
        height: 40px;
    }
    
    .guide-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .result-info {
        grid-template-columns: 1fr;
    }
    
    .processing-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
}
