Spaces:
Sleeping
Sleeping
| /* CSS 变量定义 */ | |
| :root { | |
| /* 浅色主题 */ | |
| --bg-primary: #ffffff; | |
| --bg-secondary: #f8fafc; | |
| --bg-tertiary: #f1f5f9; | |
| --text-primary: #1e293b; | |
| --text-secondary: #64748b; | |
| --text-muted: #94a3b8; | |
| --border-color: #e2e8f0; | |
| --accent-primary: #3b82f6; | |
| --accent-secondary: #1d4ed8; | |
| --accent-hover: #2563eb; | |
| --success-color: #6366f1; | |
| --error-color: #ef4444; | |
| --warning-color: #f59e0b; | |
| --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); | |
| --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); | |
| --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); | |
| --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); | |
| } | |
| /* 深色主题 */ | |
| [data-theme="dark"] { | |
| --bg-primary: #0f172a; | |
| --bg-secondary: #1e293b; | |
| --bg-tertiary: #334155; | |
| --text-primary: #f8fafc; | |
| --text-secondary: #cbd5e1; | |
| --text-muted: #64748b; | |
| --border-color: #475569; | |
| --accent-primary: #60a5fa; | |
| --accent-secondary: #3b82f6; | |
| --accent-hover: #2563eb; | |
| --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3); | |
| --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3); | |
| --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3); | |
| } | |
| /* 基础样式重置 */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |
| background-color: var(--bg-secondary); | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| transition: background-color 0.3s ease, color 0.3s ease; | |
| } | |
| .container { | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* 头部样式 */ | |
| .header { | |
| background: var(--bg-primary); | |
| border-bottom: 1px solid var(--border-color); | |
| box-shadow: var(--shadow-sm); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .header-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 1rem 2rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .title { | |
| font-size: 1.75rem; | |
| font-weight: 700; | |
| background: var(--gradient-primary); | |
| background-clip: text; | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .title i { | |
| color: var(--accent-primary); | |
| -webkit-text-fill-color: var(--accent-primary); | |
| } | |
| .header-controls { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .api-key-button, | |
| .theme-toggle { | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 0.5rem; | |
| padding: 0.75rem; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-secondary); | |
| } | |
| .api-key-button:hover, | |
| .theme-toggle:hover { | |
| background: var(--accent-primary); | |
| color: white; | |
| transform: translateY(-1px); | |
| } | |
| .api-key-button.configured { | |
| background: var(--success-color); | |
| color: white; | |
| } | |
| /* 模态框样式 */ | |
| .modal { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.7); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| backdrop-filter: blur(4px); | |
| } | |
| .modal-content { | |
| background: var(--bg-primary); | |
| border-radius: 1rem; | |
| max-width: 500px; | |
| width: 90%; | |
| max-height: 90vh; | |
| overflow-y: auto; | |
| box-shadow: var(--shadow-lg); | |
| border: 1px solid var(--border-color); | |
| } | |
| .modal-header { | |
| padding: 1.5rem; | |
| border-bottom: 1px solid var(--border-color); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .modal-header h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-primary); | |
| } | |
| .close-button { | |
| background: none; | |
| border: none; | |
| font-size: 1.25rem; | |
| cursor: pointer; | |
| color: var(--text-muted); | |
| padding: 0.5rem; | |
| border-radius: 0.25rem; | |
| transition: all 0.3s ease; | |
| } | |
| .close-button:hover { | |
| background: var(--error-color); | |
| color: white; | |
| } | |
| .modal-body { | |
| padding: 1.5rem; | |
| } | |
| .api-key-info { | |
| background: var(--bg-tertiary); | |
| border-radius: 0.5rem; | |
| padding: 1rem; | |
| margin-bottom: 1.5rem; | |
| border-left: 4px solid var(--accent-primary); | |
| } | |
| .api-key-hint { | |
| color: var(--text-secondary); | |
| font-size: 0.875rem; | |
| margin-top: 0.5rem; | |
| } | |
| .api-key-hint a { | |
| color: var(--accent-primary); | |
| text-decoration: none; | |
| } | |
| .api-key-hint a:hover { | |
| text-decoration: underline; | |
| } | |
| .api-key-warning { | |
| color: var(--accent-primary); | |
| font-size: 0.875rem; | |
| margin-top: 0.5rem; | |
| padding: 0.75rem; | |
| background: rgba(59, 130, 246, 0.1); | |
| border-radius: 0.375rem; | |
| border: 1px solid rgba(59, 130, 246, 0.2); | |
| } | |
| .api-key-warning i { | |
| color: var(--accent-primary); | |
| } | |
| .api-key-input-group { | |
| position: relative; | |
| display: flex; | |
| } | |
| .api-key-input-group .form-input { | |
| flex: 1; | |
| padding-right: 3rem; | |
| } | |
| .toggle-visibility { | |
| position: absolute; | |
| right: 0.5rem; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| color: var(--text-muted); | |
| padding: 0.5rem; | |
| border-radius: 0.25rem; | |
| transition: all 0.3s ease; | |
| } | |
| .toggle-visibility:hover { | |
| color: var(--accent-primary); | |
| } | |
| .api-key-options { | |
| margin: 1rem 0; | |
| } | |
| .checkbox-label { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| cursor: pointer; | |
| color: var(--text-secondary); | |
| } | |
| .checkbox-label input[type="checkbox"] { | |
| display: none; | |
| } | |
| .checkmark { | |
| width: 20px; | |
| height: 20px; | |
| border: 2px solid var(--border-color); | |
| border-radius: 0.25rem; | |
| position: relative; | |
| transition: all 0.3s ease; | |
| } | |
| .checkbox-label input[type="checkbox"]:checked + .checkmark { | |
| background: var(--accent-primary); | |
| border-color: var(--accent-primary); | |
| } | |
| .checkbox-label input[type="checkbox"]:checked + .checkmark::after { | |
| content: '✓'; | |
| position: absolute; | |
| color: white; | |
| font-size: 0.875rem; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| } | |
| .modal-actions { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1.5rem; | |
| } | |
| .save-button, | |
| .test-button { | |
| flex: 1; | |
| padding: 0.75rem 1.5rem; | |
| border: none; | |
| border-radius: 0.5rem; | |
| cursor: pointer; | |
| font-weight: 600; | |
| transition: all 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| } | |
| .save-button { | |
| background: var(--accent-primary); | |
| color: white; | |
| } | |
| .save-button:hover { | |
| background: var(--accent-hover); | |
| } | |
| .test-button { | |
| background: var(--accent-primary); | |
| color: white; | |
| } | |
| .test-button:hover { | |
| background: var(--accent-hover); | |
| } | |
| /* 主要内容 */ | |
| .main { | |
| flex: 1; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 2rem; | |
| width: 100%; | |
| } | |
| /* 标签页 */ | |
| .tabs { | |
| display: flex; | |
| gap: 0.5rem; | |
| margin-bottom: 2rem; | |
| background: var(--bg-primary); | |
| padding: 0.5rem; | |
| border-radius: 0.75rem; | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .tab-button { | |
| flex: 1; | |
| background: transparent; | |
| border: none; | |
| padding: 1rem 1.5rem; | |
| border-radius: 0.5rem; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| } | |
| .tab-button:hover { | |
| background: var(--bg-tertiary); | |
| color: var(--text-primary); | |
| } | |
| .tab-button.active { | |
| background: var(--accent-primary); | |
| color: white; | |
| box-shadow: var(--shadow-md); | |
| } | |
| /* 标签内容 */ | |
| .tab-content { | |
| display: none; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| } | |
| /* 表单容器 */ | |
| .form-container { | |
| background: var(--bg-primary); | |
| border-radius: 1rem; | |
| padding: 2rem; | |
| box-shadow: var(--shadow-lg); | |
| border: 1px solid var(--border-color); | |
| } | |
| .generation-form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1.5rem; | |
| } | |
| /* 表单组 */ | |
| .form-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .form-label { | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .form-label i { | |
| color: var(--accent-primary); | |
| } | |
| /* 输入框 */ | |
| .form-input, | |
| .form-textarea, | |
| .form-select { | |
| padding: 0.75rem 1rem; | |
| border: 2px solid var(--border-color); | |
| border-radius: 0.5rem; | |
| background: var(--bg-secondary); | |
| color: var(--text-primary); | |
| font-size: 1rem; | |
| transition: all 0.3s ease; | |
| } | |
| .form-input:focus, | |
| .form-textarea:focus, | |
| .form-select:focus { | |
| outline: none; | |
| border-color: var(--accent-primary); | |
| box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1); | |
| } | |
| .form-textarea { | |
| min-height: 100px; | |
| resize: vertical; | |
| } | |
| /* 图片上传区域 */ | |
| .image-upload-area { | |
| position: relative; | |
| border: 2px dashed var(--border-color); | |
| border-radius: 0.75rem; | |
| padding: 2rem; | |
| text-align: center; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| background: var(--bg-secondary); | |
| } | |
| .image-upload-area:hover { | |
| border-color: var(--accent-primary); | |
| background: var(--bg-tertiary); | |
| } | |
| .image-upload-area.dragover { | |
| border-color: var(--accent-primary); | |
| background: var(--accent-primary); | |
| background-opacity: 0.1; | |
| } | |
| .upload-placeholder i { | |
| font-size: 3rem; | |
| color: var(--accent-primary); | |
| margin-bottom: 1rem; | |
| } | |
| .upload-placeholder p { | |
| color: var(--text-secondary); | |
| margin: 0.5rem 0; | |
| } | |
| .upload-hint { | |
| font-size: 0.875rem; | |
| color: var(--text-muted); | |
| } | |
| .image-preview { | |
| position: relative; | |
| display: inline-block; | |
| } | |
| .image-preview img { | |
| max-width: 300px; | |
| max-height: 200px; | |
| border-radius: 0.5rem; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .remove-image { | |
| position: absolute; | |
| top: -0.5rem; | |
| right: -0.5rem; | |
| background: var(--error-color); | |
| color: white; | |
| border: none; | |
| border-radius: 50%; | |
| width: 2rem; | |
| height: 2rem; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.3s ease; | |
| } | |
| .remove-image:hover { | |
| transform: scale(1.1); | |
| } | |
| /* 范围滑块 */ | |
| .form-range { | |
| width: 100%; | |
| height: 6px; | |
| border-radius: 3px; | |
| background: var(--bg-tertiary); | |
| outline: none; | |
| -webkit-appearance: none; | |
| } | |
| .form-range::-webkit-slider-thumb { | |
| -webkit-appearance: none; | |
| appearance: none; | |
| width: 20px; | |
| height: 20px; | |
| border-radius: 50%; | |
| background: var(--accent-primary); | |
| cursor: pointer; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .form-range::-moz-range-thumb { | |
| width: 20px; | |
| height: 20px; | |
| border-radius: 50%; | |
| background: var(--accent-primary); | |
| cursor: pointer; | |
| border: none; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .range-value { | |
| color: var(--accent-primary); | |
| font-weight: 600; | |
| margin-left: 0.5rem; | |
| } | |
| /* 高级设置 */ | |
| .advanced-settings { | |
| border: 1px solid var(--border-color); | |
| border-radius: 0.75rem; | |
| overflow: hidden; | |
| } | |
| .advanced-settings summary { | |
| padding: 1rem 1.5rem; | |
| background: var(--bg-tertiary); | |
| cursor: pointer; | |
| font-weight: 600; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| transition: background-color 0.3s ease; | |
| } | |
| .advanced-settings summary:hover { | |
| background: var(--border-color); | |
| } | |
| .advanced-settings[open] summary { | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .settings-grid { | |
| padding: 1.5rem; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 1.5rem; | |
| } | |
| /* 提交按钮 */ | |
| .submit-button { | |
| background: var(--gradient-primary); | |
| color: white; | |
| border: none; | |
| padding: 1rem 2rem; | |
| border-radius: 0.75rem; | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.75rem; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .submit-button:hover { | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow-lg); | |
| } | |
| .submit-button:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| /* 结果容器 */ | |
| /* 生成队列(生成栏) */ | |
| .generation-queue { | |
| background: var(--bg-primary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 1rem; | |
| padding: 1.5rem; | |
| box-shadow: var(--shadow-lg); | |
| margin-bottom: 1.5rem; | |
| } | |
| .queue-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 1rem; | |
| padding-bottom: 1rem; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .queue-header h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-primary); | |
| margin: 0; | |
| } | |
| .queue-count { | |
| color: var(--text-muted); | |
| font-size: 0.875rem; | |
| } | |
| .queue-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| min-height: 80px; | |
| } | |
| .empty-queue { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--text-secondary); | |
| gap: 0.75rem; | |
| padding: 1rem; | |
| } | |
| .queue-item { | |
| display: grid; | |
| grid-template-columns: 1fr auto; | |
| align-items: center; | |
| gap: 0.75rem; | |
| padding: 0.75rem 1rem; | |
| border: 1px solid var(--border-color); | |
| border-radius: 0.75rem; | |
| background: var(--bg-secondary); | |
| } | |
| .queue-item .info { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.25rem; | |
| } | |
| .queue-item .title { | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| font-size: 0.9rem; | |
| } | |
| .queue-item .prompt { | |
| color: var(--text-secondary); | |
| font-size: 0.8rem; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .queue-item .meta { | |
| color: var(--text-muted); | |
| font-size: 0.75rem; | |
| } | |
| .queue-progress { | |
| min-width: 220px; | |
| } | |
| .queue-progress .progress-bar { | |
| width: 100%; | |
| height: 6px; | |
| background: var(--bg-tertiary); | |
| border-radius: 3px; | |
| overflow: hidden; | |
| } | |
| .queue-progress .progress-fill { | |
| height: 100%; | |
| background: var(--gradient-primary); | |
| width: 0%; | |
| transition: width 0.3s ease; | |
| } | |
| .queue-status { | |
| font-size: 0.75rem; | |
| padding: 0.25rem 0.5rem; | |
| border-radius: 0.25rem; | |
| text-align: center; | |
| min-width: 72px; | |
| } | |
| .queue-status.pending { | |
| background: var(--bg-tertiary); | |
| color: var(--text-secondary); | |
| } | |
| .queue-status.running { | |
| background: var(--accent-primary); | |
| color: white; | |
| } | |
| .queue-status.done { | |
| background: var(--accent-secondary); | |
| color: white; | |
| } | |
| .queue-status.error { | |
| background: var(--error-color); | |
| color: white; | |
| } | |
| /* 移动端优化:生成队列 */ | |
| @media (max-width: 768px) { | |
| .generation-queue { | |
| padding: 1rem; | |
| } | |
| .queue-item { | |
| grid-template-columns: 1fr; | |
| } | |
| .queue-progress { | |
| min-width: 100%; | |
| } | |
| } | |
| .result-container { | |
| background: var(--bg-primary); | |
| border-radius: 1rem; | |
| padding: 2rem; | |
| box-shadow: var(--shadow-lg); | |
| border: 1px solid var(--border-color); | |
| margin-top: 2rem; | |
| } | |
| .result-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 1.5rem; | |
| padding-bottom: 1rem; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .result-header h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-primary); | |
| } | |
| .clear-button { | |
| background: var(--error-color); | |
| color: white; | |
| border: none; | |
| border-radius: 0.5rem; | |
| padding: 0.5rem 1rem; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .clear-button:hover { | |
| background: #dc2626; | |
| } | |
| .result-video { | |
| width: 100%; | |
| max-width: 800px; | |
| border-radius: 0.75rem; | |
| box-shadow: var(--shadow-md); | |
| margin-bottom: 1rem; | |
| } | |
| .result-actions { | |
| display: flex; | |
| gap: 1rem; | |
| justify-content: center; | |
| } | |
| .download-button { | |
| background: var(--accent-primary); | |
| color: white; | |
| text-decoration: none; | |
| padding: 0.75rem 1.5rem; | |
| border-radius: 0.5rem; | |
| font-weight: 600; | |
| transition: all 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .download-button:hover { | |
| background: var(--accent-hover); | |
| transform: translateY(-1px); | |
| } | |
| /* 加载状态 */ | |
| .loading-container { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(0, 0, 0, 0.8); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| backdrop-filter: blur(4px); | |
| } | |
| .loading-content { | |
| background: var(--bg-primary); | |
| border-radius: 1rem; | |
| padding: 3rem; | |
| text-align: center; | |
| max-width: 400px; | |
| box-shadow: var(--shadow-lg); | |
| } | |
| .loading-spinner { | |
| width: 60px; | |
| height: 60px; | |
| border: 4px solid var(--border-color); | |
| border-top: 4px solid var(--accent-primary); | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| margin: 0 auto 1.5rem; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .loading-progress { | |
| margin-top: 1.5rem; | |
| } | |
| .progress-bar { | |
| width: 100%; | |
| height: 8px; | |
| background: var(--bg-tertiary); | |
| border-radius: 4px; | |
| overflow: hidden; | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| background: var(--gradient-primary); | |
| width: 0%; | |
| transition: width 0.3s ease; | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.7; } | |
| } | |
| /* 视频库样式 */ | |
| .video-library-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 2rem; | |
| padding-bottom: 1rem; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .video-library-header h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-primary); | |
| margin: 0; | |
| } | |
| .library-controls { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .refresh-button { | |
| background: var(--accent-primary); | |
| color: white; | |
| border: none; | |
| border-radius: 0.5rem; | |
| padding: 0.5rem 1rem; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-size: 0.875rem; | |
| } | |
| .refresh-button:hover { | |
| background: var(--accent-hover); | |
| transform: translateY(-1px); | |
| } | |
| .video-count { | |
| color: var(--text-secondary); | |
| font-size: 0.875rem; | |
| } | |
| .video-library-content { | |
| min-height: 300px; | |
| } | |
| .loading-library { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| height: 200px; | |
| color: var(--text-secondary); | |
| gap: 1rem; | |
| } | |
| .video-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
| gap: 1.5rem; | |
| margin-top: 1rem; | |
| } | |
| .video-item { | |
| background: var(--bg-secondary); | |
| border-radius: 0.75rem; | |
| padding: 1rem; | |
| border: 1px solid var(--border-color); | |
| transition: all 0.3s ease; | |
| } | |
| .video-item:hover { | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow-md); | |
| } | |
| .video-preview { | |
| width: 100%; | |
| border-radius: 0.5rem; | |
| margin-bottom: 1rem; | |
| background: #000; | |
| } | |
| .video-info { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .video-filename { | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| font-size: 0.875rem; | |
| word-break: break-all; | |
| } | |
| .video-meta { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| } | |
| .video-size { | |
| color: var(--accent-primary); | |
| } | |
| .video-actions { | |
| display: flex; | |
| gap: 0.5rem; | |
| margin-top: 0.5rem; | |
| } | |
| .video-action-btn { | |
| flex: 1; | |
| padding: 0.5rem; | |
| border: none; | |
| border-radius: 0.375rem; | |
| cursor: pointer; | |
| font-size: 0.75rem; | |
| transition: all 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.25rem; | |
| } | |
| .download-video-btn { | |
| background: var(--accent-primary); | |
| color: white; | |
| } | |
| .download-video-btn:hover { | |
| background: var(--accent-hover); | |
| } | |
| .play-video-btn { | |
| background: var(--accent-primary); | |
| color: white; | |
| } | |
| .play-video-btn:hover { | |
| background: var(--accent-hover); | |
| } | |
| .empty-library { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| height: 200px; | |
| color: var(--text-secondary); | |
| gap: 1rem; | |
| } | |
| .empty-library i { | |
| font-size: 3rem; | |
| color: var(--text-muted); | |
| } | |
| /* 底部 */ | |
| .footer { | |
| background: var(--bg-primary); | |
| border-top: 1px solid var(--border-color); | |
| padding: 2rem; | |
| text-align: center; | |
| color: var(--text-muted); | |
| } | |
| /* 响应式设计 */ | |
| @media (max-width: 768px) { | |
| .main { | |
| padding: 1rem; | |
| } | |
| .header-content { | |
| padding: 1rem; | |
| } | |
| .title { | |
| font-size: 1.5rem; | |
| } | |
| .form-container { | |
| padding: 1.5rem; | |
| } | |
| .settings-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .tabs { | |
| flex-direction: column; | |
| } | |
| .loading-content { | |
| margin: 1rem; | |
| padding: 2rem; | |
| } | |
| .modal-content { | |
| width: 95%; | |
| } | |
| .modal-actions { | |
| flex-direction: column; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .header-content { | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .title { | |
| font-size: 1.25rem; | |
| } | |
| .form-container { | |
| padding: 1rem; | |
| } | |
| } |