/* 场景相关样式 - 深色主题 */

/* 提示词帮助文本样式 */
.prompt-help-text {
    font-size: 12px;
    color: var(--text-accent);
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-style: italic;
}
.preview-section {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.2s ease;
}

.preview-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 20px;
}

/* 角色和场景图库样式 - 深色主题 */
.preview-assets-gallery {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

.assets-section {
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-primary);
    min-width: 200px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.assets-section:hover {
    background: var(--bg-secondary);
    border-color: var(--border-accent);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.assets-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.assets-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 80px;
    align-items: center;
}

.asset-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 移除固定宽高，让子元素决定大小 */
}

/* 角色图项目特殊样式 - 完全透明背景 */
.assets-section:first-child .asset-item {
    background: transparent !important; /* 角色图项目完全透明背景 */
}

.asset-item:hover .asset-image {
    transform: scale(1.05);
    border-color: var(--border-accent);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 角色图hover效果 - 保持透明背景 */
.assets-section:first-child .asset-item:hover .asset-image {
    transform: scale(1.05);
    border: none !important; /* hover时也不显示边框 */
    box-shadow: none !important; /* hover时也不显示阴影 */
    background: transparent !important; /* hover时保持透明背景 */
}

/* 这些样式已经整合到上面的.asset-item .asset-image img中 */

/* 统一的图片容器样式 */
.asset-item .asset-image {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 6px; /* 图片和文字之间的间距 */
}

/* 角色图库保持较小，完全透明背景 */
.assets-section:first-child .asset-item .asset-image {
    width: 60px;
    height: 60px;
    border: none; /* 完全移除边框 */
    background: transparent !important; /* 强制透明背景 */
    box-shadow: none; /* 移除阴影 */
    border-radius: 0; /* 移除圆角，保持角色原始轮廓 */
    overflow: visible; /* 允许角色轮廓超出容器边界 */
}

/* 场景图库图片更大 */
.assets-section:last-child .asset-item .asset-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
}

.asset-item .asset-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain以保持角色完整轮廓 */
}

/* 角色图片特殊样式 - 完全透明背景，只显示角色主体 */
.assets-section:first-child .asset-item .asset-image img {
    object-fit: contain; /* 保持角色完整轮廓 */
    background: transparent !important; /* 强制透明背景 */
    border: none !important; /* 移除任何边框 */
    box-shadow: none !important; /* 移除阴影 */
    border-radius: 0 !important; /* 移除圆角 */
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除外边距 */
}

.asset-item .thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-accent);
    border-radius: 8px;
}

.asset-item .asset-name {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 1.2;
    /* 移除最大宽度限制，让文字自然显示 */
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    color: white;
    font-size: 9px;
    margin-top: 2px;
}

/* 角色图库文字样式 */
.assets-section:first-child .asset-item .asset-name {
    max-width: 68px; /* 控制角色名最大宽度 */
}

/* 场景图库文字样式 */
.assets-section:last-child .asset-item .asset-name {
    max-width: 88px; /* 控制场景名最大宽度 */
    font-size: 10px;
}

.empty-placeholder {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    width: 100%;
    padding: 20px 0;
    font-style: italic;
    opacity: 0.7;
}

.preview-title-section h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: var(--text-primary);
}

.preview-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

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

/* 场景网格布局 */
.scenes-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* 场景卡片 */
.scene-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-primary);
}

.scene-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
    gap: 10px;
}

.scene-card-header .scene-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.scene-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.scene-duration {
    background: #f0f8ff;
    color: #1890ff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #91d5ff;
}

.scene-references {
    display: flex;
    gap: 6px;
    align-items: center;
}

.reference-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e6f3ff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reference-thumb:hover {
    transform: scale(1.1);
    border-color: #1890ff;
}

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

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
}

.character-thumb {
    border-color: #e6f7ff;
    position: relative;
}

.location-thumb {
    border-color: #f6ffed;
    position: relative;
}

/* 场景环境图删除按钮 */
.delete-location-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff4d4f;
    color: white;
    border: none;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-location-btn:hover {
    background: #ff7875;
    transform: scale(1.1);
}

/* 角色删除按钮 */
.delete-character-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff4d4f;
    color: white;
    border: none;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-character-btn:hover {
    background: #ff7875;
    transform: scale(1.1);
}

.scene-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.scene-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #f0f0f0;
    color: #666;
}

.status-generating {
    background: #e6f7ff;
    color: #1890ff;
}

.status-completed {
    background: #f6ffed;
    color: #52c41a;
}

.status-failed {
    background: #fff2f0;
    color: #ff4d4f;
}

/* 场景内容布局 - 主内容区+右侧栏 */
.scene-content-main-sidebar {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: start;
    margin-top: 15px;
}

/* 主要内容区域（三列） */
.scene-main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* 右侧旁白栏 */
.scene-narration-sidebar {
    flex: 0 0 280px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-height: 280px;
}

/* 主内容区各列的基础样式 */
.scene-description-column,
.scene-image-column,
.scene-video-column {
    background: var(--bg-elevated);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-height: 280px;
}

.scene-description-column:hover,
.scene-image-column:hover,
.scene-video-column:hover {
    border-color: var(--border-accent);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.scene-narration-sidebar:hover {
    border-color: var(--border-accent);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

/* 各列特定样式 */
.scene-description-column h4,
.scene-image-column h4,
.scene-video-column h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 右侧旁白栏标题样式 */
.scene-narration-sidebar h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 场景描述列 */
.scene-description-column .description-content {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-secondary);
    margin-bottom: 10px;
    min-height: 80px;
}

.scene-description-column .scene-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

/* 场景图片列 */
.scene-image-column .image-preview {
    width: 100%;
    height: 180px; /* 增加高度 */
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.scene-image-column .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain保持比例 */
    border-radius: 6px;
}

.scene-image-column .placeholder-content {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

/* 场景视频列 */
.scene-video-column .video-preview {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.scene-video-column .video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.scene-video-column .placeholder-content {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

/* 媒体控制按钮 - 统一样式 */
.media-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* 深色主题按钮系统 */
.control-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.control-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
    color: var(--text-accent);
    transform: translateY(-1px);
}

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

/* 主要操作按钮 - 蓝色 */
.regenerate-btn, .generate-btn {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.regenerate-btn:hover, .generate-btn:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

/* 编辑按钮 - 绿色 */
.edit-btn {
    background: #52c41a;
    color: white;
    border-color: #52c41a;
}

.edit-btn:hover {
    background: #73d13d;
    border-color: #73d13d;
}

/* TTS按钮 - 紫色 */
.tts-btn {
    background: #722ed1;
    color: white;
    border-color: #722ed1;
}

.tts-btn:hover {
    background: #9254de;
    border-color: #9254de;
}

/* 危险操作按钮 - 红色 */
.delete-btn {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

.delete-btn:hover {
    background: #ff7875;
    border-color: #ff7875;
}

/* 提示词控制 - 极简样式 */
.prompt-section {
    margin-top: 12px;
    padding-top: 8px;
}

.prompt-textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.prompt-textarea:focus {
    outline: none;
    border-color: var(--border-accent);
    background: var(--bg-elevated);
}

.prompt-textarea::placeholder {
    color: var(--text-muted);
}

.prompt-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-accent);
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.prompt-toggle-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
}

.prompt-content {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.prompt-content.hidden {
    display: none;
}

.prompt-textarea {
    width: 100%;
    min-height: 60px;
    padding: 6px;
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.prompt-action-btn {
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.prompt-action-btn:hover {
    background: #40a9ff;
}

/* 场景旁白列 */
.scene-narration-column .narration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-primary);
}

.scene-narration-column .tts-play-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.scene-narration-column .tts-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.scene-narration-column .narration-content {
    margin-bottom: 12px;
}

.narration-textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-secondary);
    resize: vertical;
}

/* 音频控制区域 */
.audio-controls {
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 10px;
    border: 1px solid var(--border-primary);
}

.audio-player {
    margin-bottom: 10px;
}

.audio-player audio {
    width: 100%;
    height: 32px;
}

.tts-options {
    margin-bottom: 10px;
}

.tts-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.tts-voice-select {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    font-size: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.audio-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.scene-narration-column .prompt-section {
    margin-bottom: 8px;
    font-size: 11px;
}

.scene-narration-column .prompt-label {
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 4px;
}

.scene-narration-column .prompt-content {
    color: #666;
    background: #f5f5f5;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid #1890ff;
    line-height: 1.3;
}

/* 新布局响应式设计 */
@media (max-width: 1400px) {
    .scene-main-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    
    .scene-narration-sidebar {
        flex: 0 0 250px;
    }
    
    .scene-description-column,
    .scene-image-column,
    .scene-video-column {
        padding: 12px;
        min-height: 180px;
        font-size: 12px;
    }
    
    .scene-image-column .image-preview,
    .scene-video-column .video-preview {
        height: 120px;
    }
}

@media (max-width: 1200px) {
    .scene-content-main-sidebar {
        flex-direction: column;
        gap: 15px;
    }
    
    .scene-main-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }
    
    .scene-narration-sidebar {
        flex: none;
        width: 100%;
    }
    
    .scene-description-column,
    .scene-image-column,
    .scene-video-column {
        padding: 10px;
        min-height: 150px;
        font-size: 11px;
    }
    
    .scene-image-column .image-preview,
    .scene-video-column .video-preview {
        height: 100px;
    }
    
    .scene-description-column h4,
    .scene-image-column h4,
    .scene-video-column h4,
    .scene-narration-sidebar h4 {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .scene-main-content {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .scene-description-column,
    .scene-image-column,
    .scene-video-column {
        padding: 8px;
        min-height: auto;
        font-size: 10px;
    }
    
    .scene-image-column .image-preview,
    .scene-video-column .video-preview {
        height: 80px;
    }
    
    .scene-description-column h4,
    .scene-image-column h4,
    .scene-video-column h4,
    .scene-narration-sidebar h4 {
        font-size: 11px;
    }
}

/* 场景各个区域 */
.scene-description-section,
.scene-image-section, 
.scene-video-section,
.scene-narration-section {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px;
    margin: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.scene-description-section:hover,
.scene-image-section:hover, 
.scene-video-section:hover,
.scene-narration-section:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.15);
    transform: translateY(-2px);
}

/* 各区域尺寸 */
.scene-description-section {
    flex: 0 0 200px;
    min-width: 200px;
}

.scene-image-section {
    flex: 0 0 250px;
    min-width: 250px;
}

.scene-video-section {
    flex: 0 0 250px;
    min-width: 250px;
}

.scene-narration-section {
    flex: 1;
    min-width: 200px;
}

/* 区域标题 */
.scene-description-section h4,
.scene-image-section h4, 
.scene-video-section h4,
.scene-narration-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 区域内容 */
.scene-description-section .description-content,
.scene-narration-section .narration-content {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-height: 60px;
}

/* 图片和视频预览 */
.image-section, .video-section {
    text-align: center;
    width: 100%;
    min-width: 0;
}

.image-section h4, .video-section h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #1890ff;
    font-weight: 600;
}

.image-preview, .video-preview {
    width: 100%;
    max-width: 300px;
    height: 180px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    overflow: hidden;
}

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

.clickable-media {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable-media:hover {
    transform: scale(1.02);
}

/* 角色和场景信息 */
.character-scene-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e6f3ff;
}

/* 脚本预览 */
.script-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
}

.script-section h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #1890ff;
    font-weight: 600;
}

.script-description {
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* 场景标签 */
.scene-header {
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

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

.character-tag {
    background: #e6f7ff;
    color: #1890ff;
}

/* 场景中角色头像样式 - 适配透明背景 */
.character-avatar img {
    object-fit: contain !important; /* 保持角色完整轮廓 */
    background: transparent !important; /* 透明背景 */
    border-radius: 50% !important; /* 保持圆形头像 */
}

.character-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    border: 1px solid #91d5ff;
}

.location-tag {
    background: #f6ffed;
    color: #52c41a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    border: 1px solid #b7eb8f;
}

/* 场景详情 */
.scene-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: none;
}

.scene-details.expanded {
    display: block;
}

/* 翻译部分 */
.translation-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin: 8px 0;
}

.translation-label {
    font-weight: 500;
    color: #1890ff;
    font-size: 11px;
    margin-bottom: 4px;
}

/* 中文提示词显示 */
.chinese-prompt {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    border-left: 3px solid #1890ff;
    line-height: 1.4;
}

.prompt-label {
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 4px;
}

.prompt-display {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    display: none;
    border-left: 3px solid #1890ff;
}

.prompt-display.show {
    display: block;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .scene-content .character-scene-section {
        min-width: 250px;
    }
}

@media (max-width: 900px) {
    .scene-content {
        gap: 10px;
    }
    .scene-content .character-scene-section {
        min-width: 150px;
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .scene-content {
        gap: 8px;
    }
    .scene-content .character-scene-section {
        min-width: 120px;
        max-width: 150px;
        font-size: 11px;
    }
    .image-preview, .video-preview {
        max-width: 200px;
        height: 120px;
    }
}

