/* ==================== 全局样式 ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-card: #1e293b;
    --bg-input: rgba(255, 255, 255, 0.05);

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==================== 导航栏 ==================== */

.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

/* ==================== 主要内容 ==================== */

.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== Hero Section ==================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-decoration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-blob {
    position: absolute;
    border-radius: 45% 55% 52% 48% / 48% 45% 55% 52%;
    filter: blur(40px);
    opacity: 0.4;
    mix-blend-mode: screen;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    animation: blob-animation 8s infinite;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    animation: blob-animation 8s infinite reverse;
    animation-delay: 2s;
    top: 50px;
    right: -50px;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    animation: blob-animation 8s infinite;
    animation-delay: 4s;
    bottom: 20px;
    left: 20px;
}

@keyframes blob-animation {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(50px, 50px) scale(1.05); }
}

/* ==================== 按钮 ==================== */

.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
    position: relative;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.btn-close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* ==================== 功能特性 ==================== */

.features {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 上传区域 ==================== */

.upload-section {
    padding: 4rem 0;
}

.upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box {
    width: 100%;
    aspect-ratio: 1;
    border: 2px dashed var(--primary-color);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(99, 102, 241, 0.05);
    position: relative;
}

.upload-box:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.upload-box.dragover {
    border-color: var(--secondary-color);
    background: rgba(236, 72, 153, 0.1);
}

.upload-icon {
    font-size: 3rem;
}

.upload-box h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.upload-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==================== 参数面板 ==================== */

.params-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.params-panel h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.param-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.param-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.param-group textarea,
.param-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    padding: 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.param-group textarea:focus,
.param-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.param-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.param-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.input-group input {
    flex: 1;
    padding: 0.5rem;
    padding-right: 2rem;
}

.input-group .unit {
    position: absolute;
    right: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    pointer-events: none;
}

/* ==================== 任务监控 ==================== */

.task-monitor {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.task-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.task-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    padding: 1rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.status-badge.running {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ==================== 进度条 ==================== */

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--dark-border);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.progress-text {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== 任务操作 ==================== */

.task-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==================== 页脚 ==================== */

.footer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--dark-border);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 768px) {
    .navbar-content {
        padding: 1rem;
    }

    .logo-text {
        display: none;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-decoration {
        display: none;
    }

    .upload-container {
        grid-template-columns: 1fr;
    }

    .upload-box {
        aspect-ratio: auto;
        min-height: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .params-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .params-grid {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .task-info {
        grid-template-columns: 1fr;
    }

    .task-actions {
        flex-direction: column;
    }

    .task-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ==================== comfyuiPose 独有样式 ==================== */

/* ---- 主区域 ---- */
main {
    flex: 1;
    padding: 40px 0;
}

/* ---- 功能卡片 ---- */
.workflow-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 250px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.card p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ---- 工作流面板 ---- */
.workflow-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.workflow-content {
    display: none;
}

.workflow-content.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-border);
}

.panel-header h2 {
    font-size: 1.5rem;
}

/* ---- 表单 ---- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s;
}

select {
    background: #000000;
}

select option {
    background: #000000;
    color: var(--text-primary);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
    resize: vertical;
    font-family: inherit;
}

/* ---- 上传预览 ---- */
.upload-preview {
    width: 100%;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--dark-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    overflow: hidden;
    cursor: pointer;
}

.upload-preview:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.upload-preview video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.upload-preview span {
    color: var(--text-secondary);
}

/* ---- 按钮扩展 ---- */
button {
    font-family: inherit;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ---- 进度面板 ---- */
.progress-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.progress-panel h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

#progressText {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

#etaText {
    font-size: 0.85rem;
    color: #ffaa00;
    margin-top: 6px;
    font-weight: bold;
}

/* ---- 结果面板 ---- */
.result-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.result-panel h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.result-image {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.result-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.result-actions {
    display: flex;
    gap: 15px;
}

.result-actions button {
    flex: 1;
}

/* ---- 多图容器 ---- */
#multiImageContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

#singleImageContainer {
    text-align: center;
    margin-top: 20px;
}

#singleImageContainer img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ---- 历史记录 ---- */
.history-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.history-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.history-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.history-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.history-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.history-item-info {
    padding: 12px;
}

.history-item-type {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.history-item-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    grid-column: 1 / -1;
}

/* ---- Tab 切换 ---- */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--dark-border);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-1);
    color: var(--text-primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
}

.result-box h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.result-text {
    padding: 15px;
    background: var(--dark-surface);
    border-radius: 8px;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    min-height: 60px;
}

/* ---- 模式切换按钮 ---- */
.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

/* ---- 多图+音频视频生成 ---- */
#multi-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.multi-image-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.multi-image-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.multi-image-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.multi-image-item .upload-area {
    margin-bottom: 15px;
}

.multi-image-item .upload-preview {
    min-height: 150px;
}

.guide-controls {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.guide-controls label {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: normal;
}

.guide-controls input {
    padding: 8px 12px;
    font-size: 14px;
}

#multi-audio-preview {
    min-height: 120px;
}

/* ---- 参考图网格 ---- */
.ref-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* ---- 加载动画 ---- */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-color);
    font-style: italic;
}

.loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ---- 通知消息 ---- */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 12px 24px;
    border-radius: 8px;
    background: #1a1a2e;
    color: #eee;
    font-size: 14px;
    border-left: 4px solid #888;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    word-break: break-word;
}
.notification.info    { border-color: #4a9eff; }
.notification.success { border-color: var(--success-color); }
.notification.error   { border-color: var(--error-color); }
.notification.warning { border-color: var(--warning-color); }

/* ---- 视频 Tab 切换 ---- */
.video-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--dark-border);
}

.video-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-tab:hover {
    color: var(--primary-color);
}

.video-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.video-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.video-player-container {
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
}

.image-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 200px;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* ---- 工作流面板内上传框缩小 ---- */
.workflow-content .upload-box {
    aspect-ratio: auto;
    min-height: 100px;
    padding: 1rem;
}

/* ---- 响应式追加 ---- */
@media (max-width: 1024px) {
    .workflow-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    #multi-images-container {
        grid-template-columns: 1fr;
    }
    .ref-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .workflow-cards {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ----statusDisplay追加----*/
.status-pending  { background: #ffc107; color: #000; }
.status-running  { background: #007bff; color: #fff; }
.status-completed { background: #28a745; color: #fff; }
.status-failed   { background: #dc3545; color: #fff; }

