/**
 * Sora视频生成工具 - 样式表
 * 完整版 - 支持所有功能模块
 */

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

/* ==================== 登录页面 ==================== */
.page { min-height: 100vh; }

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.login-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-container .subtitle {
    color: #888;
    margin-bottom: 40px;
}

.login-form, .register-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90d9;
}

.form-group input::placeholder {
    color: #666;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #888;
    border: 1px solid #444;
}

.btn-secondary:hover {
    border-color: #666;
    color: #fff;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 20px;
}

/* ==================== 主应用布局 ==================== */
#app-page {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 220px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: bold; }

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    gap: 12px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: rgba(74, 144, 217, 0.2);
    color: #4a90d9;
    border-left: 3px solid #4a90d9;
}

.nav-icon { font-size: 18px; }
.nav-text { font-size: 14px; }

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.btn-logout {
    background: transparent;
    border: 1px solid #666;
    color: #888;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-logout:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* 主内容区 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

.page-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.page-header p {
    color: #888;
    font-size: 14px;
}


/* ==================== 一键带货页面 ==================== */
.batch-container {
    max-width: 800px;
    margin: 0 auto;
}

.steps-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.steps-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.steps-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: #666;
}

.steps-progress .step span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-weight: bold;
}

.steps-progress .step.active span {
    background: #4a90d9;
    color: #fff;
}

.steps-progress .step.active {
    color: #fff;
}

.steps-progress .step.completed span {
    background: #27ae60;
}

.step-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

.step-content h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.input-large {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.input-large:focus {
    outline: none;
    border-color: #4a90d9;
}

.textarea-large {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    resize: vertical;
    min-height: 150px;
    margin-bottom: 20px;
}

.select-large {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
    cursor: pointer;
}

.select-large option {
    background: #1a1a2e;
}

.model-options {
    margin-bottom: 20px;
}

.step-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 上传区域 */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.1);
}

.upload-placeholder {
    cursor: pointer;
    color: #888;
    padding: 40px 20px;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.upload-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.upload-preview {
    position: relative;
    display: inline-block;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.btn-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* 生成动画 */
.generating-animation {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #4a90d9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 进度条 */
.progress-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90d9, #27ae60);
    transition: width 0.5s;
}

/* 视频结果 */
.video-result {
    margin: 20px 0;
}

.video-result video {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    background: #000;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== 表单容器 ==================== */
.form-container {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.form-section textarea,
.form-section select,
.form-section input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.form-section textarea {
    resize: vertical;
    min-height: 100px;
}

.form-section select {
    cursor: pointer;
}

.form-section select option {
    background: #1a1a2e;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-section.half {
    flex: 1;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.template-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}


/* ==================== 任务管理页面 ==================== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4a90d9;
}

.stat-label {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.task-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.task-filters select,
.task-filters input {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.task-filters input {
    flex: 1;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.task-thumbnail {
    width: 120px;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.task-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-icon {
    font-size: 32px;
    color: #666;
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-prompt {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.task-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-pending { background: #f39c12; color: #fff; }
.status-processing { background: #3498db; color: #fff; }
.status-completed { background: #27ae60; color: #fff; }
.status-failed { background: #e74c3c; color: #fff; }

.task-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.task-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90d9, #27ae60);
    transition: width 0.3s;
}

.task-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ==================== 商品管理页面 ==================== */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon {
    font-size: 48px;
    color: #666;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-category {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.product-price {
    font-size: 18px;
    color: #4a90d9;
    font-weight: bold;
}

.product-actions {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==================== 提示词库页面 ==================== */
.prompt-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prompt-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.prompt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.prompt-name {
    font-size: 16px;
    font-weight: bold;
}

.prompt-category {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(74, 144, 217, 0.2);
    color: #4a90d9;
    border-radius: 20px;
}

.prompt-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: #27ae60;
    color: #fff;
    border-radius: 10px;
}

.prompt-content {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 15px;
}

.prompt-actions {
    display: flex;
    gap: 10px;
}

/* ==================== 设置页面 ==================== */
.settings-container {
    max-width: 600px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #4a90d9;
}

.settings-section .form-section {
    margin-bottom: 15px;
}

.settings-section label input[type="checkbox"] {
    margin-right: 10px;
}

/* 设置页面中的保存按钮容器 */
.settings-section .btn-primary {
    min-width: 140px;
}

/* 设置区块的按钮组 */
.settings-section > div[style*="display: flex"] {
    flex-wrap: wrap;
}

/* Star API配置区块强调样式 */
.settings-section:first-of-type {
    border: 2px solid rgba(74, 144, 217, 0.3);
    background: rgba(74, 144, 217, 0.08);
}

.settings-section:first-of-type .btn-primary {
    animation: pulse-save 2s ease-in-out infinite;
}

@keyframes pulse-save {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(74, 144, 217, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(74, 144, 217, 0.6);
    }
}


/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #1a1a2e;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}

/* 提示词模板弹窗 - 更宽更大 */
.modal.prompt-template-modal {
    max-width: 720px;
    width: 95%;
}

.modal.prompt-template-modal .modal-header {
    padding: 20px 28px;
    background: linear-gradient(135deg, #1e3a5f 0%, #1a1a2e 100%);
    border-radius: 16px 16px 0 0;
}

.modal.prompt-template-modal .modal-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal.prompt-template-modal .modal-body {
    padding: 24px 28px;
}

.modal.prompt-template-modal .form-group {
    margin-bottom: 20px;
}

.modal.prompt-template-modal .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-size: 14px;
}

.modal.prompt-template-modal .form-group input[type="text"],
.modal.prompt-template-modal .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.modal.prompt-template-modal .form-group input:focus,
.modal.prompt-template-modal .form-group textarea:focus {
    border-color: #4a90d9;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2);
    outline: none;
}

.modal.prompt-template-modal .form-group input::placeholder,
.modal.prompt-template-modal .form-group textarea::placeholder {
    color: #666;
}

/* 分类卡片 */
.modal.prompt-template-modal .category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.modal.prompt-template-modal .category-card {
    padding: 16px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: rgba(255, 255, 255, 0.03);
}

.modal.prompt-template-modal .category-card:hover {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.1);
    transform: translateY(-2px);
}

.modal.prompt-template-modal .category-card.active {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.15);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

.modal.prompt-template-modal .category-card .icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.modal.prompt-template-modal .category-card .name {
    font-size: 13px;
    color: #ccc;
    font-weight: 500;
}

.modal.prompt-template-modal .category-card.active .name {
    color: #fff;
}

/* 大文本框 */
.modal.prompt-template-modal .large-textarea {
    min-height: 220px;
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'SF Mono', monospace;
    line-height: 1.7;
    font-size: 13px;
}

/* 提示文字 */
.modal.prompt-template-modal .hint-text {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* 一键带货编辑器区块 */
.modal.prompt-template-modal .batch-editor-section {
    background: rgba(74, 144, 217, 0.08);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 8px;
}

.modal.prompt-template-modal .batch-editor-section .form-group {
    margin-bottom: 14px;
}

.modal.prompt-template-modal .batch-editor-section .form-group:last-child {
    margin-bottom: 0;
}

.modal.prompt-template-modal .batch-editor-section label {
    font-size: 13px;
    color: #aaa;
}

.modal.prompt-template-modal .modal-footer {
    padding: 18px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal.prompt-template-modal .modal-footer .btn {
    padding: 10px 24px;
    font-size: 14px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 预设存档项 */
.preset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
}

.preset-info {
    flex: 1;
}

.preset-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.preset-meta {
    font-size: 12px;
    color: #888;
}

.preset-actions {
    display: flex;
    gap: 10px;
}

/* ==================== 加载动画 ==================== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #4a90d9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    color: #ccc;
}

/* ==================== 消息提示 ==================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: #333;
    color: #fff;
    z-index: 1002;
    transform: translateX(120%);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }
.toast.warning { background: #f39c12; }
.toast.info { background: #3498db; }

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    color: #666;
    padding: 60px 20px;
    font-size: 16px;
}

/* ==================== 响应式布局 ==================== */
@media (max-width: 1024px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #app-page {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .nav-item {
        flex-direction: column;
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom: 3px solid #4a90d9;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .steps-progress {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .steps-progress .step {
        min-width: 80px;
    }
    
    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 50px 15px;
    }
    
    .login-container h1 {
        font-size: 1.8rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .task-filters {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}


/* ==================== API配置样式 ==================== */
.input-with-toggle {
    display: flex;
    gap: 10px;
}

.input-with-toggle input {
    flex: 1;
}

.btn-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    padding: 0 15px;
    font-size: 16px;
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.api-hint {
    background: rgba(74, 144, 217, 0.1);
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-size: 13px;
    color: #aaa;
}

.api-hint a {
    color: #4a90d9;
    text-decoration: none;
}

.api-hint a:hover {
    text-decoration: underline;
}

.settings-section .btn-secondary {
    margin-top: 10px;
}


/* ==================== 新增功能样式 ==================== */

/* 批量操作栏 */
.batch-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(74, 144, 217, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
}

.batch-actions .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
}

.batch-actions .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.selected-count {
    color: #888;
    font-size: 14px;
}

.selected-count span {
    color: #4a90d9;
    font-weight: bold;
}

/* 任务项复选框 */
.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 成本估算 */
.cost-estimate {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #27ae60;
}

.cost-estimate span {
    font-weight: bold;
    font-size: 16px;
}

/* 复选框标签 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 多图片上传 */
.multi-upload {
    min-height: 120px;
}

.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-list-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.image-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-list-item .btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.image-list-item .image-order {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.reference-image-item {
    flex: 0 0 160px;
    width: 160px;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-image-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.reference-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-image-meta {
    padding: 0 8px;
    font-size: 11px;
    line-height: 1.4;
}

.reference-image-meta.file-name {
    color: rgba(255, 255, 255, 0.68);
    word-break: break-all;
}

.reference-image-name {
    width: calc(100% - 16px);
    margin: 0 8px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
}

.reference-image-name:focus {
    outline: none;
    border-color: rgba(74, 144, 217, 0.8);
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.18);
}

.reference-image-meta.reference-usage.pending {
    color: #ffb86b;
}

.reference-image-meta.reference-usage.ready {
    color: #7ed6a7;
}

.reference-image-actions {
    padding: 0 8px;
}

.reference-image-actions .btn {
    width: 100%;
}

.modal.reference-name-modal {
    width: 92%;
    max-width: 960px;
}

.reference-name-modal .modal-header {
    padding: 20px 24px;
}

.reference-name-modal .modal-body {
    padding: 20px 24px 24px;
}

.reference-name-modal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.reference-name-modal-item {
    flex: 1 1 360px;
    min-width: 320px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.reference-name-modal-item img {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    border-radius: 10px;
    object-fit: cover;
}

.reference-name-modal-form {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reference-name-modal .reference-image-meta {
    padding: 0;
}

.reference-name-modal .reference-image-name {
    width: 100%;
    margin: 0;
}

/* 提示文字 */
.hint {
    color: #888;
    font-size: 12px;
    font-weight: normal;
}

/* 筛选栏 */
.product-filters,
.prompt-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.product-filters select,
.product-filters input,
.prompt-filters select,
.prompt-filters input {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.product-filters input,
.prompt-filters input {
    flex: 1;
}

.product-filters select option,
.prompt-filters select option {
    background: #1a1a2e;
}

/* 使用次数统计 */
.prompt-usage {
    font-size: 12px;
    color: #888;
    margin-left: auto;
}

/* 视频预览对话框 */
.video-preview-modal {
    max-width: 900px;
}

.video-preview-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-preview-container video {
    width: 100%;
    max-height: 500px;
}

.video-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 图片预览对话框 */
.image-preview-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 20px;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.image-preview-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 任务详情对话框 */
.task-detail-modal {
    max-width: 700px;
}

.task-detail-section {
    margin-bottom: 20px;
}

.task-detail-section h4 {
    color: #4a90d9;
    margin-bottom: 10px;
    font-size: 14px;
}

.task-detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.task-detail-label {
    width: 100px;
    color: #888;
    font-size: 13px;
}

.task-detail-value {
    flex: 1;
    color: #ccc;
    font-size: 13px;
    word-break: break-all;
}

.task-detail-prompt {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.task-detail-url {
    display: flex;
    gap: 10px;
    align-items: center;
}

.task-detail-url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    gap: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .batch-actions {
        flex-wrap: wrap;
    }
    
    .product-filters,
    .prompt-filters {
        flex-direction: column;
    }
    
    .image-list-item:not(.reference-image-item) {
        width: 80px;
        height: 80px;
    }

    .reference-image-item {
        width: calc(50% - 5px);
        min-width: 150px;
    }

    .reference-name-modal-item {
        min-width: 0;
        flex-basis: 100%;
        flex-direction: column;
    }

    .reference-name-modal-item img {
        width: 100%;
        height: auto;
        flex-basis: auto;
        aspect-ratio: 1 / 1;
    }
}


/* ==================== 视频数量选择 ==================== */
.video-count-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.video-count-section label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-weight: 500;
}

.count-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.count-btn {
    padding: 10px 25px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.count-btn:hover {
    background: rgba(52, 152, 219, 0.3);
}

.count-btn.active {
    background: #3498db;
    color: white;
}

.estimated-time {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
}

/* ==================== 镜头数量设置 ==================== */
.shot-count-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.shot-count-section label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-weight: 500;
}

.shot-count-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shot-count-inputs .input-small {
    width: 70px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.shot-count-inputs .input-small:focus {
    outline: none;
    border-color: #4a90d9;
}

.shot-count-separator {
    color: #888;
    font-size: 14px;
}

.shot-count-unit {
    color: #888;
    font-size: 14px;
}

/* ==================== 价格公示 ==================== */
.price-list {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: #ccc;
    font-size: 14px;
}

.price-value {
    color: #f39c12;
    font-weight: 600;
    font-size: 14px;
}

/* ==================== 价格提示按钮 ==================== */
.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price-tip {
    position: relative;
    cursor: pointer;
    padding: 4px 10px;
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid rgba(243, 156, 18, 0.5);
    border-radius: 6px;
    font-size: 12px;
    color: #f39c12;
    font-weight: 500;
    transition: all 0.3s;
}

.price-tip:hover {
    background: rgba(243, 156, 18, 0.3);
    border-color: #f39c12;
}

.price-tip-box {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    width: 200px;
    padding: 15px;
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.price-tip-box.show {
    display: block;
}

.price-tip-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-tip-item {
    font-size: 13px;
    color: #ccc;
    padding: 5px 0;
}

.price-tip-item::before {
    color: #27ae60;
}

.shot-count-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

/* ==================== 存档列表区域 ==================== */
.preset-list-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.preset-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preset-list-header h3 {
    margin: 0;
    font-size: 18px;
}

.preset-list {
    max-height: 400px;
    overflow-y: auto;
}

.preset-list .empty-tip {
    color: #7f8c8d;
    text-align: center;
    padding: 30px;
}

.preset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.preset-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.preset-item-info {
    flex: 1;
}

.preset-item-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.preset-item-meta {
    font-size: 12px;
    color: #7f8c8d;
}

.preset-item-actions {
    display: flex;
    gap: 8px;
}

/* ==================== 保存存档对话框 ==================== */
.save-preset-modal {
    max-width: 500px;
    width: 90%;
}

.save-preset-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.save-preset-modal .modal-header h3 {
    margin: 0;
}

.save-preset-modal .modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.save-preset-modal .modal-close:hover {
    opacity: 1;
}

.save-preset-modal .modal-body {
    padding: 20px;
}

.save-preset-modal .form-group {
    margin-bottom: 15px;
}

.save-preset-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

.save-preset-modal .form-group .required {
    color: #e74c3c;
}

.save-preset-modal .input-large {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.save-preset-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    resize: vertical;
}

.preset-preview {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.preset-preview h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #3498db;
}

.preset-preview-content {
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
}

.preset-preview-content p {
    margin: 5px 0;
}

.save-preset-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== 批量视频结果 ==================== */
.batch-video-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.video-result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.video-result-item video {
    width: 100%;
    display: block;
}

.video-result-item .video-actions {
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 按钮样式补充 */
.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}


/* ==================== 设置页面新板块 ==================== */
.section-desc {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

/* ==================== 公告弹窗 ==================== */
.announcement-modal {
    max-width: 400px;
}

.announcement-content {
    text-align: center;
    padding: 20px;
}

.announcement-content p {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

/* ==================== 二维码弹窗 ==================== */
.qrcode-modal {
    max-width: 350px;
}

.qrcode-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.qrcode-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.qrcode-placeholder p {
    color: #fff;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.qrcode-hint {
    color: #888 !important;
    font-size: 14px !important;
}


/* ==================== 独立页面样式（客服、交流群、教程、大客户） ==================== */
.info-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.qrcode-card,
.tutorial-card,
.vip-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qrcode-placeholder-large {
    padding: 40px 20px;
}

.qrcode-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
}

.qrcode-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 15px 0;
}

.qrcode-hint {
    font-size: 24px;
    color: #f39c12;
    margin: 0 0 10px 0;
}

.qrcode-desc {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.tutorial-placeholder {
    padding: 40px 20px;
}

.tutorial-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.tutorial-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 15px 0;
}

.tutorial-hint {
    font-size: 24px;
    color: #f39c12;
    margin: 0 0 10px 0;
}

.tutorial-desc {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.vip-content {
    padding: 20px;
}

.vip-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.vip-title {
    font-size: 24px;
    font-weight: 600;
    color: #f39c12;
    margin: 0 0 15px 0;
}

.vip-desc {
    font-size: 16px;
    color: #ccc;
    margin: 0 0 20px 0;
}

.vip-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.vip-features li {
    padding: 10px 0;
    font-size: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vip-features li:last-child {
    border-bottom: none;
}


/* ==================== 一键带货模式选择 ==================== */
.mode-selection {
    padding: 20px;
}

.mode-selection h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
    color: #fff;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.mode-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-card:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-5px);
}

.mode-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.mode-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.mode-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.mode-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.mode-features li {
    padding: 8px 0;
    font-size: 13px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-features li:last-child {
    border-bottom: none;
}

/* 全自动模式表单 */
.auto-mode-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.auto-mode-form h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #f39c12;
}

.auto-mode-hint {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

.auto-form-section {
    margin-bottom: 25px;
}

.auto-form-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #fff;
}

.auto-config-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.auto-config-info h4 {
    margin: 0 0 15px 0;
    color: #3498db;
    font-size: 14px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-item:last-child {
    border-bottom: none;
}

.config-item span:first-child {
    color: #888;
}

.config-item span:last-child {
    color: #fff;
    font-weight: 500;
}

.auto-form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 全自动模式提交成功 */
.auto-mode-submitted {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.submitted-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.auto-mode-submitted h3 {
    font-size: 24px;
    color: #27ae60;
    margin-bottom: 10px;
}

.submitted-hint {
    font-size: 16px;
    color: #888;
    margin-bottom: 30px;
}

.submitted-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.submitted-info p {
    margin: 10px 0;
    font-size: 14px;
    color: #ccc;
}

.status-processing {
    color: #f39c12;
    font-weight: 500;
}

.submitted-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .mode-cards {
        grid-template-columns: 1fr;
    }
}


/* 模式选择徽章 */
.mode-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}

.mode-badge.recommend {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.mode-badge.warning {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.mode-warning {
    margin-top: 15px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    font-size: 12px;
    color: #e74c3c;
    text-align: left;
}

/* ==================== 角色库页面样式 ==================== */

/* 创建角色区域 */
.characters-create-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.create-tab {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.create-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.create-tab.active {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    border-color: transparent;
}

.create-panel {
    display: none;
}

.create-panel.active {
    display: block;
}

/* 角色列表区域 */
.characters-list-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.characters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.characters-header h3 {
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-badge {
    background: rgba(74, 144, 217, 0.2);
    color: #4a90d9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.characters-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.characters-actions input[type="text"] {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 200px;
    font-size: 14px;
}

.characters-actions input[type="text"]::placeholder {
    color: #888;
}

.characters-actions select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

/* 角色卡片网格 */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.character-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.character-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 217, 0.2);
    border-color: rgba(74, 144, 217, 0.4);
}

.character-card.favorite {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.15);
}

.character-avatar {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-avatar .avatar-placeholder {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.character-info {
    padding: 15px;
}

.character-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.character-name .favorite-star {
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.character-name .favorite-star:hover {
    transform: scale(1.2);
}

.character-name .favorite-star.active {
    color: #f5a30b;
}

.character-id {
    font-size: 12px;
    color: #888;
    font-family: 'Monaco', 'Consolas', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    word-break: break-all;
}

.character-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 12px;
}

/* 角色状态徽章 */
.character-info .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.character-info .status-badge.pending {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.character-info .status-badge.failed {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.character-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.character-actions .btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* 收藏星标动画 */
@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.favorite-star.pop {
    animation: starPop 0.3s ease;
}

/* 角色使用说明 */
.characters-help {
    background: rgba(74, 144, 217, 0.1);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.characters-help h4 {
    color: #4a90d9;
    margin-bottom: 15px;
    font-size: 16px;
}

.characters-help ul {
    list-style: none;
    padding: 0;
}

.characters-help li {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.characters-help li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a90d9;
}

.characters-help code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    color: #67b26f;
    font-size: 13px;
}

/* 角色创建进度 */
.character-creating {
    text-align: center;
    padding: 30px;
}

.character-creating .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 144, 217, 0.3);
    border-top-color: #4a90d9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.character-creating p {
    color: #ccc;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .characters-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .characters-actions {
        width: 100%;
    }
    
    .characters-actions input[type="text"] {
        width: 100%;
    }
    
    .create-tabs {
        flex-direction: column;
    }
    
    .create-tab {
        width: 100%;
        text-align: center;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
}
