* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

/* 顶部导航 */
.header {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.token-config {
    display: flex;
    gap: 12px;
}

.token-input {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    width: 300px;
    transition: all 0.3s;
}

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

.btn-save {
    padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 登出按钮 */
.btn-logout {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* 获取令牌按钮 */
.btn-get-token {
    padding: 10px 20px;
    background: #f8fafc;
    color: #6366f1;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-get-token:hover {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    text-decoration: none;
}

.btn-get-token:active {
    transform: translateY(0);
}

/* 使用帮助按钮 */
.btn-help {
    padding: 10px 20px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-right: 8px;
}

.btn-help:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
    text-decoration: none;
}

.btn-help:active {
    transform: translateY(0);
}

/* 选项卡 - Google风格 */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #5f6368;
    position: relative;
}

.tab-icon {
    font-size: 18px;
}

.tab:hover {
    background: #f1f3f4;
    color: #202124;
}

.tab.active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: #1a73e8;
    border-radius: 3px 3px 0 0;
}

/* 主内容区�?*/
.main-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.input-section {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select:hover {
    border-color: #a5b4fc;
    background-color: #fafbff;
}

.form-group textarea {
    resize: vertical;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* 数量输入组样式 */
.number-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    width: fit-content;
}

.number-input-group .btn-decrease,
.number-input-group .btn-increase {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #6366f1;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.number-input-group .btn-decrease:hover,
.number-input-group .btn-increase:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.number-input-group .btn-decrease:active,
.number-input-group .btn-increase:active {
    background: #e0e7ff;
}

.number-input-group input[type="number"] {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    -moz-appearance: textfield;
    background: white;
    padding: 0;
    margin: 0;
}

.number-input-group input[type="number"]::-webkit-outer-spin-button,
.number-input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-input-group input[type="number"]:focus {
    outline: none;
    background: #fafbff;
}

/* 制作中心选项容器 - 简洁无边框 */
.iti-options-container {
    padding: 8px 0 16px 0;
    margin-bottom: 8px;
}

.iti-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.iti-option-item {
    flex: 0 0 auto;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iti-option-item label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.iti-option-item select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
    height: 36px;
}

.iti-option-item select:hover {
    border-color: #c7d2fe;
}

.iti-option-item select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}

.iti-option-item .number-input-group {
    height: 36px;
}

.iti-option-item .number-input-group .btn-decrease,
.iti-option-item .number-input-group .btn-increase {
    height: 36px;
    width: 32px;
}

.iti-option-item .number-input-group input[type="number"] {
    height: 36px;
    width: 48px;
}

@media (max-width: 768px) {
    .iti-options-row {
        flex-wrap: wrap;
    }
    
    .iti-option-item {
        flex: 1 1 45%;
        min-width: 100px;
    }
}

/* 比例选择tooltip样式 - 优雅简约 */
.ratio-tooltip {
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
    animation: slideDown 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ratio-tooltip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px 0 0 10px;
}

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

.ratio-tooltip .tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 8px;
}

.ratio-tooltip .tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ratio-tooltip .tooltip-ratio {
    font-size: 13px;
    font-weight: 700;
    color: #6366f1;
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.15);
    border: 1px solid #e0e7ff;
}

.ratio-tooltip .tooltip-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.ratio-tooltip .tooltip-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
    padding-left: 2px;
}

.ratio-tooltip .tooltip-scenarios {
    font-size: 12px;
    color: #475569;
    line-height: 1.7;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-top: 2px;
}

.ratio-tooltip .tooltip-scenarios strong {
    color: #1e293b;
    font-weight: 600;
    display: inline-block;
    margin-right: 4px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
}

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

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.preview-area p {
    color: #6b7280;
    font-size: 14px;
}

.preview-area img,
.preview-area video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

/* 已上传图片列表 - 紧凑样式 */
.uploaded-images-list,
#iti-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.uploaded-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.uploaded-image-item:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.uploaded-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-image-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.uploaded-image-item:hover .remove-btn {
    opacity: 1;
}

.uploaded-image-item .remove-btn:hover {
    background: #dc2626;
}

.uploaded-image-item .image-index {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
}

.uploaded-image-item .image-size {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
}

.uploaded-image-item .compress-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 3px;
}

/* 提示词模式切换 - 紧凑标签样式 */
.prompt-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.prompt-mode-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-mode-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.prompt-mode-tab.active {
    background: #eef2ff;
    border-color: #6366f1;
    color: #6366f1;
}

.prompt-mode-tab .tab-icon {
    font-size: 14px;
}

.prompt-mode-content {
    animation: fadeIn 0.2s ease;
}

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

.prompt-mode-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 4px;
    border-left: 3px solid #6366f1;
}

/* 单独配置模式 - 图片提示词列表 */
.individual-prompt-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.individual-prompt-list::-webkit-scrollbar {
    width: 4px;
}

.individual-prompt-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.individual-prompt-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.individual-empty-hint {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
}

.individual-empty-hint .hint-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.individual-empty-hint p {
    margin: 4px 0;
    font-size: 13px;
}

.individual-empty-hint .hint-sub {
    font-size: 11px;
    color: #b0b8c4;
}

.individual-prompt-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.2s ease;
}

.individual-prompt-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.individual-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.individual-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.individual-item-info {
    flex: 1;
    min-width: 0;
}

.individual-item-name {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.individual-item-size {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
    display: block;
}

.individual-item-index {
    background: #6366f1;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.individual-prompt-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
    min-height: 50px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.individual-prompt-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.individual-prompt-textarea::placeholder {
    color: #94a3b8;
    font-size: 11px;
}

/* 文生图批量提示词卡片 */
.tti-multi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.tti-multi-tips {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 12px;
}

.tti-multi-tips .tip-icon {
    font-size: 14px;
}

.tti-multi-tips kbd {
    display: inline-block;
    padding: 2px 6px;
    background: white;
    border: 1px solid #d97706;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
}

.tti-multi-tips strong {
    color: #78350f;
}

.tti-multi-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.tti-multi-info .info-icon {
    font-size: 16px;
}

.btn-add-prompt {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-prompt:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.btn-add-prompt span:first-child {
    font-size: 16px;
    font-weight: 600;
}

.tti-prompt-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 4px;
}

.tti-prompt-cards::-webkit-scrollbar {
    width: 4px;
}

.tti-prompt-cards::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.tti-prompt-cards::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.tti-empty-hint {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.tti-empty-hint .hint-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.tti-empty-hint p {
    font-size: 13px;
}

.tti-prompt-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    padding: 8px 10px;
}

.tti-prompt-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px;
    margin-bottom: 4px;
}

.card-index {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.btn-remove-card {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #c9cdd4;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-card:hover {
    background: #fee2e2;
    color: #ef4444;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-prompt-group {
    margin-bottom: 6px;
}

.card-prompt-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.card-prompt-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.card-prompt-input::placeholder {
    color: #94a3b8;
}

.card-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-option {
    flex: 1;
    min-width: 80px;
}

.card-option label {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.card-option select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.card-option select:focus {
    outline: none;
    border-color: #6366f1;
}

.card-count-group {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    width: fit-content;
}

.card-count-group .btn-count {
    width: 28px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.card-count-group .btn-count:hover {
    background: #e2e8f0;
    color: #334155;
}

.card-count-group .btn-count:first-child {
    border-right: 1px solid #e2e8f0;
}

.card-count-group .btn-count:last-child {
    border-left: 1px solid #e2e8f0;
}

.card-count-group .count-value {
    min-width: 40px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding: 0 8px;
}

/* 批量制作卡片选项行布局 */
.card-options-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.card-options-row:last-child {
    margin-bottom: 0;
}

.card-option-spacer {
    /* 占位元素，用于保持布局对齐 */
    min-width: 0;
}

/* 生成按钮 */
.btn-generate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 结果区域 */
.results-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-header h3 {
    font-size: 20px;
    color: #1a1a1a;
}

.btn-download-all {
    padding: 10px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

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

.result-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    background: #f9fafb;
}

.result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.result-item img,
.result-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.result-actions {
    padding: 12px;
    display: flex;
    gap: 8px;
}

.btn-preview {
    flex: 1;
    padding: 8px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-preview:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-download {
    flex: 1;
    padding: 8px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #4f46e5;
}

/* 进度�?*/
.progress-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* 提示词建�?*/
.prompt-suggestions {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.suggestion-label {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 10px;
    font-weight: 500;
}

.label-hint {
    font-size: 12px;
    color: #9ca3af;
    font-weight: normal;
    margin-left: 8px;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.chip:active {
    transform: translateY(0);
}

/* 响应式设�?*/
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
    }

    .token-input {
        width: 100%;
    }

    .tabs {
        flex-direction: column;
    }

    .main-content {
        padding: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.btn-loading {
    display: inline-block;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 500px;
    word-wrap: break-word;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 500;
    font-size: 14px;
    padding: 16px 20px;
    border: 1px solid #fecaca;
    min-width: 350px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.notification.warning {
    border-left: 4px solid #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

/* 自定义确认对话框 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirm-dialog {
    background: white;
    border-radius: 16px;
    padding: 32px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.confirm-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.confirm-title::before {
    content: '⚠️';
    font-size: 24px;
    margin-right: 12px;
}

.confirm-message {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-button-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.confirm-button-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.confirm-button-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.confirm-button-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.confirm-button:active {
    transform: translateY(0);
}

/* 任务状态区�?*/
.tasks-section,
.history-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h3 {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh {
    padding: 6px 12px;
    background: #f8fafc;
    color: #6366f1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

.btn-clear-history {
    padding: 6px 12px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-history:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.btn-select-all-history {
    padding: 6px 12px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-select-all-history:hover {
    background: #dcfce7;
    border-color: #16a34a;
}

.btn-batch-download {
    padding: 6px 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-batch-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.btn-cancel-select {
    padding: 6px 12px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-select:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.history-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.history-controls select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: #f8fafc;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
}

.history-controls select:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.history-controls select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.download-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* 历史记录统计区域 - 精致横排样式 */
.history-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-item .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* 任务区域 */
.tasks-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 任务列表 */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-item {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.task-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-id {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #6366f1;
}

.task-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.task-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.task-status.processing {
    background: #dbeafe;
    color: #1e40af;
    animation: pulse 2s infinite;
}

.task-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.task-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

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

.task-info {
    margin-bottom: 12px;
}

.task-prompt {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
}

.task-progress {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-progress-bar {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.task-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    min-width: 45px;
    text-align: right;
}

/* 历史记录 - 紧凑小横条样式 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    max-width: 100%;
}

.history-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    max-width: 100%;
}

.history-item:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.1);
}

.history-item.selected {
    background: #eef2ff;
    border-color: #6366f1;
}

.history-item.completed {
    border-left: 3px solid #10b981;
}

.history-item.failed {
    border-left: 3px solid #ef4444;
}

.history-checkbox {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6366f1;
    margin: 0;
}

.history-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.history-video-preview,
.history-image-preview {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.preview-play-icon {
    position: absolute;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.image-placeholder {
    font-size: 18px;
    color: #9ca3af;
}

.history-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-type {
    padding: 1px 6px;
    background: #f0f1f3;
    border-radius: 3px;
    font-weight: 500;
    font-size: 10px;
    color: #5f6368;
    white-space: nowrap;
}

.history-time {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
}

.history-task-id {
    font-size: 10px;
    color: #6366f1;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    margin-top: 1px;
}

.history-prompt {
    font-size: 12px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.history-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 10px;
    color: #9ca3af;
}

.history-meta span {
    white-space: nowrap;
}

.history-error-message {
    font-size: 10px;
    color: #ef4444;
    margin-top: 2px;
}

.history-actions {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.history-actions .btn-download-single,
.history-actions .btn-preview {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.history-actions .btn-download-single:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.history-actions .btn-preview:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.history-note {
    font-size: 10px;
    color: #9ca3af;
    padding: 2px 6px;
}

/* 分页 - Google风格 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.page-btn {
    padding: 8px 14px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    color: #5f6368;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-btn:hover:not(:disabled) {
    background: #f1f3f4;
    border-color: #d2d3d4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
}

.page-info {
    padding: 8px 16px;
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
    margin-left: 8px;
}

.page-ellipsis {
    padding: 8px 4px;
    font-size: 14px;
    color: #80868b;
}

.page-btn svg {
    display: block;
}

/* 空状�?*/
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    color: #6b7280;
}

/* 批量导入模式 */
.mode-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
}

.mode-btn {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #6b7280;
}

.mode-btn:hover {
    color: #374151;
}

.mode-btn.active {
    background: white;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.batch-info {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.batch-info h4 {
    font-size: 16px;
    color: #0c4a6e;
    margin-bottom: 12px;
}

.batch-info p {
    font-size: 14px;
    color: #075985;
    margin: 8px 0;
    line-height: 1.6;
}

.batch-warning {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 12px !important;
    color: #92400e !important;
}

.template-download {
    margin-bottom: 24px;
}

.template-download h4 {
    font-size: 15px;
    color: #374151;
    margin-bottom: 12px;
}

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

.btn-template {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-template:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.file-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.batch-preview {
    margin-top: 24px;
}

.batch-table-container {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.batch-table th {
    background: #f9fafb;
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.batch-table td {
    padding: 12px;
    font-size: 13px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.batch-table tr:hover {
    background: #f9fafb;
}

.batch-stats {
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #1e40af;
    margin-top: 16px;
}

.validation-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.validation-error h4 {
    color: #991b1b;
    font-size: 14px;
    margin-bottom: 8px;
}

.validation-error ul {
    margin: 0;
    padding-left: 20px;
}

.validation-error li {
    color: #dc2626;
    font-size: 13px;
    margin: 4px 0;
}

/* 图生视频批量模式 */
.batch-images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 8px;
}

.batch-images-header h4 {
    margin: 0;
    font-size: 15px;
    color: #1e40af;
}

.batch-images-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.batch-image-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
}

.batch-image-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.batch-image-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.batch-image-select {
    flex-shrink: 0;
}

.batch-image-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

.batch-image-checkbox:checked {
    background-color: #6366f1;
}

.batch-select-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.batch-image-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.batch-image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.batch-image-info {
    flex: 1;
    min-width: 0;
}

.batch-image-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-image-size {
    font-size: 12px;
    color: #6b7280;
}

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

.btn-remove-batch-image {
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove-batch-image:hover {
    background: #dc2626;
}

.batch-image-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.batch-config-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.batch-config-group.batch-config-full {
    grid-column: 1 / -1;
}

.batch-config-group label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.batch-config-group input,
.batch-config-group select,
.batch-config-group textarea {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
}

.batch-config-group textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

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

/* 批量进度展示 */
.batch-progress-container {
    margin-top: 24px;
}

.batch-progress-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.batch-progress-item.processing {
    border-color: #3b82f6;
    background: #eff6ff;
}

.batch-progress-item.completed {
    border-color: #10b981;
    background: #f0fdf4;
}

.batch-progress-item.failed {
    border-color: #ef4444;
    background: #fef2f2;
}

.batch-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.batch-progress-title {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.batch-progress-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.batch-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.batch-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.5s ease;
}

.batch-error-message {
    margin-top: 8px;
    padding: 8px;
    background: #fee2e2;
    border-radius: 4px;
    font-size: 12px;
    color: #991b1b;
}

/* 文生图批量提示词卡片样式 */
.tti-multi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tti-multi-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.info-icon {
    font-size: 18px;
}

.btn-add-prompt {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-add-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tti-prompt-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.tti-prompt-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.tti-prompt-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.tti-prompt-card.active {
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    background: linear-gradient(to bottom, #f5f3ff, white);
}

.tti-prompt-card .card-active-badge {
    font-size: 11px;
    color: #6366f1;
    background: #eef2ff;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.tti-prompt-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.tti-prompt-card .card-number {
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6px 16px;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
}

.tti-prompt-card .btn-remove-card {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tti-prompt-card .btn-remove-card:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.tti-prompt-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tti-prompt-card .card-prompt {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    min-height: 80px;
    box-sizing: border-box;
}

.tti-prompt-card .card-prompt:focus {
    outline: none;
    border-color: #667eea;
}

.tti-prompt-card .card-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tti-prompt-card .card-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tti-prompt-card .card-option label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.tti-prompt-card .card-option select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.tti-prompt-card .card-option select:hover {
    border-color: #d1d5db;
}

.tti-prompt-card .card-option select:focus {
    outline: none;
    border-color: #667eea;
}

.tti-prompt-card .card-option .number-input-group {
    display: flex;
    gap: 4px;
}

.tti-prompt-card .card-option .number-input-group button {
    flex: 0 0 32px;
    height: 32px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tti-prompt-card .card-option .number-input-group button:hover {
    background: #f3f4f6;
    border-color: #667eea;
}

.tti-prompt-card .card-option .number-input-group input {
    flex: 1;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 40px;
}

.tti-prompt-card .card-option-placeholder {
    /* 占位符，用于保持网格对齐 */
    min-height: 1px;
}
