/* 增强组件样式 - 新增功能相关 */

/* 模型选择器样式 - 紧凑化 */
.model-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.model-selector label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.model-selector select {
    height: var(--unified-height);
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--unified-border-radius);
    background: var(--bg-color);
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 85px; /* 缩短模型选择框 */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.model-selector select:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.model-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 紧凑型模式开关样式 */
.compact-mode-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(30, 32, 38, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    align-self: flex-end;
    margin-right: 20px;
}

.compact-mode-switch .mode-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    min-width: 12px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 紧凑型开关按钮样式 */
.compact-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
}

.compact-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.compact-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    transition: all 0.3s ease;
    border-radius: 18px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.15);
}

.compact-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15);
}

input:checked + .compact-slider {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

input:checked + .compact-slider:before {
    transform: translateX(18px);
}

.compact-slider:hover {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

/* 调整主按钮样式确保居中 */
.primary-button {
    margin: 0 auto;
    display: block;
}

/* 继续/暂停按钮样式 */
.continue-pause-btn {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--unified-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.continue-pause-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

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

.continue-pause-btn.pause {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
    box-shadow: 0 2px 8px rgba(250, 173, 20, 0.3);
}

.continue-pause-btn.pause:hover {
    box-shadow: 0 4px 12px rgba(250, 173, 20, 0.4);
}

.continue-pause-btn:disabled {
    background: #d9d9d9;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.continue-pause-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 四步流程提示 */
.step-indicator {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.step-item {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    background: rgba(30, 32, 45, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 72px;
    justify-content: center;
}

.step-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35), rgba(118, 75, 162, 0.35));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.step-item .step-number {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.step-item .step-label {
    font-size: 14px;
    font-weight: 600;
}

.step-item.active {
    border-color: rgba(82, 196, 26, 0.6);
    color: #fff;
}

.step-item.active::after {
    opacity: 1;
}

.step-item.completed {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(82, 196, 26, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.step-item.error {
    border-color: rgba(255, 77, 79, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.25);
}

@media (max-width: 768px) {
    .step-indicator {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .step-indicator {
        grid-template-columns: 1fr;
    }
}

.model-selector select option {
    padding: 8px;
    background: var(--bg-color);
    color: var(--text-color);
}

/* 图片张数选择器样式 - 紧凑化 */
.image-count-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.image-count-selector label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.image-count-selector input {
    height: var(--unified-height);
    padding: 8px 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--unified-border-radius);
    background: var(--bg-color);
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.3s ease;
    width: 24px; /* 四分之一大小 */
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.image-count-selector input:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-count-selector input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 统一间距布局 */
.unified-container {
    display: flex;
    align-items: center;
    gap: var(--unified-gap);
    flex-wrap: wrap;
}

.unified-row {
    display: flex;
    align-items: center;
    gap: var(--unified-gap);
    margin-bottom: 16px;
}

/* AI出图特定元素样式修复 */
#imageGenStyleSelect {
    width: 45px !important; /* 风格选择框进一步缩短 */
}

#imageGenCountInput {
    width: 28px !important; /* 张数输入框进一步缩短 */
    padding: 8px 1px !important;
}

/* textarea容器样式 */
.textarea-container {
    position: relative;
    width: 100%;
}

/* 输入框内上传图标样式 */
.upload-icon-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #667eea;
    user-select: none;
    z-index: 10;
}

.upload-icon-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: scale(1.1);
}

.upload-icon-btn:active {
    transform: scale(0.9);
}

/* 确保textarea有足够的右侧内边距避免与图标重叠 */
.textarea-container textarea {
    padding-right: 120px !important; /* 增加右侧内边距以容纳爆款元素按钮 */
}

/* 爆款元素按钮样式 */
.hot-element-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.hot-element-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

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

/* 爆款元素下拉菜单样式 */
.hot-element-menu {
    position: absolute;
    right: 8px;
    bottom: 45px;
    width: 320px;
    max-height: 400px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hot-element-menu-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hot-element-add-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.hot-element-add-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hot-element-add-btn:active {
    transform: scale(0.95);
}

/* 添加爆款元素输入框容器 */
.add-hot-element-input-container {
    padding: 12px;
    background: #222;
    border-bottom: 1px solid #333;
    display: flex;
    gap: 8px;
    align-items: center;
}

.add-hot-element-input {
    flex: 1;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.add-hot-element-input:focus {
    border-color: #667eea;
    background: #222;
}

.add-hot-element-input::placeholder {
    color: #666;
}

.hot-element-add-confirm-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hot-element-add-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.hot-element-add-confirm-btn:active {
    transform: translateY(0);
}

.hot-element-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 300px;
}

.hot-element-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #e0e0e0;
}

.hot-element-item:hover {
    background: #2a2a2a;
    border-color: #667eea;
}

.hot-element-item.selected {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.hot-element-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #667eea;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hot-element-item.selected .hot-element-checkbox {
    background: #667eea;
    border-color: #667eea;
}

.hot-element-checkbox::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hot-element-item.selected .hot-element-checkbox::after {
    opacity: 1;
}

.hot-element-label {
    flex: 1;
    user-select: none;
}

.hot-element-menu-footer {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #333;
    background: #1a1a1a;
}

.hot-element-btn-cancel,
.hot-element-btn-clear {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hot-element-btn-cancel {
    background: #333;
    color: #e0e0e0;
}

.hot-element-btn-cancel:hover {
    background: #444;
}

.hot-element-btn-clear {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.hot-element-btn-clear:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 新版本分镜头预览样式 */
.scene-group {
    margin-bottom: 30px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.scene-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-header:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.scene-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.scene-toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.scene-shot-count {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
}

.scene-description {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.9;
}

.scene-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.shot-meta-tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shots-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.shot-card {
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #2a2a2a;
    color: #ffffff;
    display: flex;
    flex-direction: row;
    min-height: 180px;
}

.shot-card.compact {
    min-height: 160px;
    margin-bottom: 10px;
}

.shot-card.compact .shot-header {
    width: 80px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shot-card.compact .shot-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.shot-card.compact .shot-description {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.shot-card.compact .shot-media-container {
    display: flex;
    gap: 15px;
    flex: 1;
}

.shot-card.compact .media-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shot-card.compact .shot-media,
.shot-card.compact .shot-video {
    width: 100%;
    height: 120px;
    background: #0a0a0a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    aspect-ratio: 1/1;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shot-card.compact .shot-media:hover,
.shot-card.compact .shot-video:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.shot-card.compact .shot-media img,
.shot-card.compact .shot-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.shot-card.compact .media-prompt {
    background: #333333;
    border-radius: 4px;
    padding: 6px;
}

.shot-card.compact .media-prompt h6 {
    font-size: 10px;
    margin: 0 0 4px 0;
    color: #ffd700;
}

/* 新的并列布局样式 */
.media-prompt-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.prompt-section {
    flex: 1;
    min-width: 0;
}

.narration-section {
    flex: 0 0 280px;
    min-width: 280px;
    min-height: 80px;
    border: 2px dashed #ffd700 !important;
    border-radius: 6px;
    padding: 8px;
    background: rgba(255, 215, 0, 0.05) !important;
    display: block !important;
    visibility: visible !important;
}

.prompt-section h6,
.narration-section h6 {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

.narration-section h6 {
    color: #ffd700 !important;
    font-weight: bold !important;
}

.prompt-section .prompt-text,
.narration-section .narration-text {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
    color: #cccccc;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 40px;
    word-wrap: break-word;
}

.narration-section .narration-text {
    background: #1a1a1a !important;
    border: 1px solid #444;
    font-style: italic;
    color: #aaa;
    display: block !important;
    visibility: visible !important;
    min-height: 40px;
    padding: 8px;
}

.prompt-section .prompt-text:hover,
.narration-section .narration-text:hover {
    background: #333333;
}

/* 重复样式已移除 */

/* 旁白框样式 */
.shot-narration {
    width: 100%;
    height: 100px;
    background: #0a0a0a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    aspect-ratio: 1/1;
    border: 1px solid #555;
}

.narration-content {
    padding: 8px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.narration-content h6 {
    font-size: 10px;
    margin: 0 0 4px 0;
    color: #ffd700;
}

.narration-text {
    font-size: 9px;
    line-height: 1.2;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.narration-text:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.02);
}

.shot-card.compact .prompt-text {
    font-size: 9px;
    line-height: 1.2;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.shot-card.compact .prompt-text:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.02);
}

.shot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.shot-card.generating {
    border-color: #ffc107;
    animation: pulse 2s infinite;
}

.shot-card.completed {
    border-color: #28a745;
}

.shot-card.error {
    border-color: #dc3545;
}

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

.shot-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 15px;
    background: #2a2a2a;
    border-bottom: 1px solid #333333;
    flex-shrink: 0;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.shot-header span {
    font-size: 12px;
    color: #cccccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    height: 24px;
    line-height: 24px;
}

.shot-header .shot-number-badge {
    background: #4285f4;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    height: 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.shot-header span.shot-description {
    max-width: 200px;
    flex-shrink: 2;
}

.shot-title-info {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    flex: 1;
    margin-left: 15px;
    overflow: hidden;
}

.shot-title-info span {
    font-size: 12px;
    color: #cccccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.shot-title-info span.shot-description {
    max-width: 200px;
    flex-shrink: 2;
}

.shot-number {
    font-weight: bold;
    color: #ffffff;
    font-size: 16px;
}

.shot-duration, .shot-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
    margin-top: 4px;
}

.shot-duration {
    background: #28a745;
}

.shot-type {
    background: #17a2b8;
}

.shot-media {
    position: relative;
    width: 280px;
    height: 160px;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shot-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shot-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shot-media .placeholder {
    color: #cccccc;
    font-size: 14px;
}

.shot-description {
    padding: 15px;
    font-size: 14px;
    color: #cccccc;
    line-height: 1.4;
    border-top: 1px solid #333333;
}

/* 新版本进度条样式 */
#progressSectionNew {
    margin: 30px 0;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid #2a2a2a;
}

#progressSectionNew .progress {
    height: 8px;
    background: #333333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

#progressSectionNew .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

#progressSectionNew .status {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
}

#progressSectionNew .status.info {
    color: #17a2b8;
}

#progressSectionNew .status.success {
    color: #28a745;
}

#progressSectionNew .status.error {
    color: #dc3545;
}

/* 新版本预览区域样式 */
#previewSectionNew {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid #2a2a2a;
}

#previewSectionNew .preview-header {
    background: #2a2a2a;
    padding: 20px;
    border-bottom: 2px solid #333333;
}

#previewSectionNew .preview-title-section h3 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

#previewSectionNew .preview-subtitle {
    color: #cccccc;
    font-size: 14px;
    margin-top: 5px;
}

#scenesPreviewContentNew {
    padding: 20px;
}

/* 批量操作按钮样式 */
.batch-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.batch-button {
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.batch-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.batch-button.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.batch-button.primary:hover {
    background: #0056b3;
}

.batch-button.secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.batch-button.secondary:hover {
    background: #545b62;
}

.batch-button .icon {
    font-size: 16px;
}

.batch-button .text {
    font-weight: 500;
}

/* 新增资源样式 */
.add-asset-item {
    border: 2px dashed var(--border-color);
    background: rgba(102, 126, 234, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-asset-item:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.add-asset-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: var(--primary-color);
}

.add-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.add-text {
    font-size: 14px;
    font-weight: 500;
}

/* 资源控制按钮 */
.asset-controls {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-item:hover .asset-controls {
    opacity: 1;
}

.asset-control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.asset-control-btn.edit-btn:hover {
    background: var(--primary-color);
}

.asset-control-btn.delete-btn:hover {
    background: #ff4d4f;
}

.asset-control-btn.generate-btn:hover {
    background: #52c41a;
}

/* 资源对话框样式 */
.asset-dialog-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;
}

.asset-dialog {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.asset-dialog.scene-dialog {
    max-width: 800px;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.dialog-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.dialog-content {
    padding: 24px;
}

.dialog-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.input-group textarea {
    min-height: 80px;
    resize: vertical;
}

.input-group select[multiple] {
    min-height: 80px;
}

.input-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.dialog-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-actions .secondary-button,
.dialog-actions .primary-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dialog-actions .secondary-button {
    background: #f5f5f5;
    color: #666;
}

.dialog-actions .secondary-button:hover {
    background: #e8e8e8;
}

.dialog-actions .primary-button {
    background: var(--primary-color);
    color: white;
}

.dialog-actions .primary-button:hover {
    background: var(--primary-hover);
}

/* 场景控制按钮样式 */
.scene-header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.scene-controls {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scene-card:hover .scene-controls {
    opacity: 1;
}

.scene-control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.scene-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scene-control-btn:disabled:hover {
    transform: none;
}

.scene-control-btn.edit-scene-btn:hover {
    background: var(--primary-color);
}

.scene-control-btn.delete-scene-btn:hover {
    background: #ff4d4f;
}

/* 表单提示样式 */
.input-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .asset-dialog {
        width: 95%;
        max-height: 90vh;
    }
    
    .dialog-row {
        grid-template-columns: 1fr;
    }
    
    .dialog-content {
        padding: 16px;
    }
    
    .scene-controls {
        opacity: 1; /* 移动端始终显示控制按钮 */
    }
    
    .asset-controls {
        opacity: 1; /* 移动端始终显示控制按钮 */
    }
}

/* 新增对话框特殊样式 */
.add-new-dialog {
    max-width: 700px;
}

.add-preview {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.preview-text {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* 生成按钮状态 */
.dialog-actions .primary-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.dialog-actions .primary-button:disabled:hover {
    background: #ccc;
}

/* 提示词编辑对话框样式 */
.prompt-edit-dialog {
    max-width: 800px;
}

.prompt-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

.warning-text {
    color: #e6a23c;
    font-size: 14px;
    font-weight: 500;
}

.scene-prompt-dialog {
    max-width: 900px;
}

.scene-prompt-dialog .dialog-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 优化批量操作按钮样式 */
.batch-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.batch-button.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.batch-button.secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
}

.batch-button.primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    font-weight: 600;
    border: 2px solid #ff6b6b;
}

.batch-button.primary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e55039 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.batch-button .icon {
    font-size: 18px;
    margin-right: 8px;
}

.batch-button .text {
    font-size: 14px;
    font-weight: 500;
}

/* YouTube上传按钮特殊样式 */
.youtube-upload-trigger {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border: 1px solid #ff0000;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.youtube-upload-trigger:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.youtube-upload-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 控制面板样式 - 现代化设计 */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.mode-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

.redo-control {
    display: flex;
    align-items: center;
}

/* 模式开关样式 - 现代化设计 */
.mode-switch {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.mode-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.mode-badge.manual {
    background: linear-gradient(135deg, #ff7a45 0%, #fa541c 100%);
}

.mode-badge.auto {
    background: linear-gradient(135deg, #52c41a 0%, #237804 100%);
}

.mode-hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.6;
}

.mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 76px;
    height: 40px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider:before {
    content: "";
    position: absolute;
    height: 32px;
    width: 32px;
    left: 2px;
    top: 2px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider:after {
    content: "🤖";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    transition: all 0.4s ease;
    opacity: 0.6;
}

.mode-switch input:checked + .slider {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.2));
    border-color: rgba(76, 175, 80, 0.4);
}

.mode-switch input:checked + .slider:before {
    transform: translateX(36px);
    background: linear-gradient(145deg, #4CAF50, #45a049);
    box-shadow: 
        0 6px 16px rgba(76, 175, 80, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-switch input:checked + .slider:after {
    content: "✋";
    left: 8px;
    right: auto;
    opacity: 0.8;
}

.mode-text {
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    min-width: 60px;
}

.mode-switch input:checked ~ .mode-text .manual-text {
    display: none;
}

.mode-switch input:not(:checked) ~ .mode-text .auto-text {
    display: none;
}

.auto-text {
    color: rgba(255, 255, 255, 0.95);
}

.manual-text {
    color: rgba(255, 255, 255, 0.95);
}

/* 控制按钮样式 - 现代化设计 */
.control-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    color: white;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

.pause-btn {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.9), rgba(255, 152, 0, 0.8));
}

.pause-btn:hover {
    background: linear-gradient(145deg, rgba(255, 193, 7, 1), rgba(255, 152, 0, 0.9));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(255, 193, 7, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.continue-btn {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.9), rgba(67, 160, 71, 0.8));
}

.continue-btn:hover {
    background: linear-gradient(145deg, rgba(76, 175, 80, 1), rgba(67, 160, 71, 0.9));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(76, 175, 80, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.redo-btn {
    background: linear-gradient(145deg, rgba(156, 39, 176, 0.9), rgba(123, 31, 162, 0.8));
    font-size: 16px;
    padding: 14px 24px;
}

.redo-btn:hover {
    background: linear-gradient(145deg, rgba(156, 39, 176, 1), rgba(123, 31, 162, 0.9));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(156, 39, 176, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 重置保护按钮样式 */
.reset-protection-btn {
    background: linear-gradient(145deg, rgba(33, 150, 243, 0.9), rgba(21, 101, 192, 0.8));
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.reset-protection-btn:hover {
    background: linear-gradient(145deg, rgba(33, 150, 243, 1), rgba(21, 101, 192, 0.9));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(33, 150, 243, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 快速添加对话框样式 */
.quick-add-dialog {
    max-width: 600px;
}

/* 可选择项目样式 */
.selectable-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.selectable-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.05);
}

.selectable-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.selectable-item.selected .selection-indicator {
    display: block;
}

.selection-indicator {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

/* 悬停删除按钮样式 */
.delete-hover-btn {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 87, 34, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
}

.selectable-item:hover .delete-hover-btn {
    display: block;
}

.delete-hover-btn:hover {
    background: rgba(255, 87, 34, 1);
    transform: scale(1.1);
}

/* 第三级按钮样式 */
.tertiary-button {
    background: rgba(108, 117, 125, 0.8);
    color: white;
    border: 1px solid rgba(108, 117, 125, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tertiary-button:hover {
    background: rgba(108, 117, 125, 1);
    transform: translateY(-1px);
}

.available-items {
    display: grid;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.available-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.available-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.item-desc {
    font-size: 12px;
    color: #7f8c8d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-item-btn {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-item-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* 场景引用添加按钮样式 */
.reference-add-controls {
    display: flex;
    gap: 6px;
    margin-left: 8px;
}

.add-reference-btn {
    width: 30px;
    height: 30px;
    border: 2px dashed rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.add-reference-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.add-reference-btn .add-icon {
    font-size: 12px;
    color: #667eea;
}

/* 重做对话框样式 */
.redo-dialog {
    max-width: 700px;
}

.redo-options {
    display: grid;
    gap: 12px;
}

.redo-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redo-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.option-info {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* 基准图和分镜预览区域样式 - 暗色主题 */
.base-images-preview,
.shot-images-preview,
.shot-videos-preview {
    margin: 20px 0;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
}

.base-images-preview h4,
.shot-images-preview h4,
.shot-videos-preview h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.base-images-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.character-base-images,
.location-base-images {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #444;
}

.character-base-images h4,
.location-base-images h4 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 500;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.image-item {
    text-align: center;
}

.image-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #555;
}

.image-label {
    margin-top: 8px;
    font-size: 12px;
    color: #cccccc;
}

/* 分镜卡片详细内容样式 */
.shot-details {
    padding: 15px;
    background: #1a1a1a;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shot-content {
    margin-bottom: 15px;
}

.shot-content h5 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.shot-description {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.shot-prompts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.prompt-section {
    background: #333333;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #444;
}

.prompt-section h6 {
    color: #ffd700;
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.prompt-text {
    color: #cccccc;
    font-size: 11px;
    line-height: 1.3;
    font-family: monospace;
}

.shot-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #444;
}

.shot-type,
.shot-duration {
    font-size: 11px;
    color: #999999;
    background: #333;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #555;
}

/* 场景标题区域显示角色信息 */
.scene-characters {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.character-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 分镜角色标签样式 */
.shot-characters {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.shot-characters .character-tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    font-weight: 500;
}

/* 新的场景标签管理样式 */
.scene-meta-info {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scene-characters, .scene-locations {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.meta-label {
    font-weight: 600;
    color: #555;
    margin-right: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.editable-tag {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.editable-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.location-tag {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
    display: inline-block;
    font-weight: 500;
}

.tag-remove {
    margin-left: 4px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tag-remove:hover {
    opacity: 1;
    color: #ff4444;
}

.add-tag-btn {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
    display: inline-block;
    cursor: pointer;
    border: 1px dashed #ccc;
    transition: all 0.2s ease;
}

.add-tag-btn:hover {
    background: #e0e0e0;
    border-color: #999;
    color: #333;
}

/* 图片放大预览模态框样式 */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-zoom-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-zoom-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-zoom-container {
    background: white;
    border-radius: 16px;
    max-width: 800px; /* 固定最大宽度，更适合上下布局 */
    max-height: 90vh;
    width: 90vw;
    overflow: hidden;
    cursor: default;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-modal.show .image-zoom-container {
    transform: scale(1);
}

.image-zoom-header {
    padding: 24px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-zoom-header h3 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    flex: 1;
    font-weight: 600;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.image-zoom-content {
    display: flex;
    flex-direction: column; /* 改为上下布局 */
    flex: 1;
    overflow: hidden;
    gap: 20px; /* 添加间距 */
    padding: 20px;
}

.zoomed-image {
    width: 100%; /* 占满宽度 */
    max-height: 50vh; /* 限制最大高度 */
    object-fit: contain;
    border-radius: 8px;
    margin: 0; /* 移除边距 */
}

.image-info {
    flex: 1;
    padding: 0; /* 移除内边距，因为外层已经有了 */
    overflow-y: auto;
    max-height: none; /* 自适应高度 */
    display: flex;
    flex-direction: column;
    gap: 16px; /* 添加项目间距 */
}

.info-item {
    margin-bottom: 0; /* 移除margin，使用父容器的gap */
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #212529;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.image-zoom-actions {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #ffffff;
}

.btn-secondary, .btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-zoom-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .image-zoom-content {
        padding: 12px;
        gap: 12px;
    }
    
    .zoomed-image {
        max-height: 40vh;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .image-zoom-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-secondary, .btn-primary {
        width: 100%;
    }
}

/* 角色库和场景库样式 - 横向并列显示 */
.assets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    max-width: 100%;
    overflow-x: auto;
}

.asset-item {
    text-align: center;
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 12px;
    padding: 12px;
    border: 2px solid #444;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 120px;
    min-width: 120px;
}

.asset-item:hover {
    background: linear-gradient(145deg, #3a3a3a, #2e2e2e);
    transform: translateY(-4px) scale(1.02);
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.asset-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    aspect-ratio: 1/1;
    border: 1px solid #555;
    transition: all 0.3s ease;
}

.asset-placeholder {
    width: 100%;
    height: 80px;
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    aspect-ratio: 1/1;
    border: 1px solid #555;
}

.asset-label {
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.empty-placeholder {
    color: #999;
    text-align: center;
    padding: 20px;
    font-size: 12px;
}

/* 资源区域标题样式 */
.assets-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

/* 刷新按钮样式 */
.refresh-trigger {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.refresh-trigger:hover {
    background: linear-gradient(145deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.refresh-trigger:active {
    transform: translateY(0);
}

/* 图片放大模态框样式 */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.image-zoom-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
}

.image-zoom-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 界面收缩样式 */
.hero-section.collapsed {
    display: none;
}

.form-container.collapsed {
    display: none;
}

.button-container.collapsed {
    display: none;
}

.preview-section.expanded {
    margin-top: 20px;
}

.plot-summary-section {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.plot-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plot-summary-content {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

/* 提示词编辑对话框样式 */
.prompt-edit-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.prompt-edit-dialog {
    background: #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

.prompt-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #444;
}

.prompt-edit-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.prompt-edit-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prompt-edit-close:hover {
    background: #444;
    color: #fff;
}

.prompt-edit-content {
    padding: 24px;
}

.prompt-edit-content textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}

.prompt-edit-content textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.prompt-edit-actions {
    padding: 16px 24px;
    border-top: 1px solid #444;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.prompt-edit-cancel,
.prompt-edit-save {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.prompt-edit-cancel {
    background: #555;
    color: #ffffff;
}

.prompt-edit-cancel:hover {
    background: #666;
}

.prompt-edit-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.prompt-edit-save:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

/* 右键菜单样式 */
.message-context-menu {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    min-width: 160px;
    z-index: 10000;
    animation: contextMenuFadeIn 0.2s ease-out;
}

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

.context-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.context-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.context-menu-item:hover::before {
    left: 100%;
}

.context-menu-item:hover {
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.2) 0%, rgba(24, 144, 255, 0.1) 100%);
    color: #1890ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.context-menu-item:active {
    transform: translateX(2px) scale(0.98);
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.3) 0%, rgba(24, 144, 255, 0.2) 100%);
}

.context-menu-item:first-child {
    margin-top: 4px;
}

.context-menu-item:last-child {
    margin-bottom: 4px;
}

/* 图标样式优化 */
.context-menu-item::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.context-menu-item:hover::after {
    filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(1456%) hue-rotate(204deg) brightness(102%) contrast(101%);
}

/* 为不同菜单项添加不同图标 */
.context-menu-item:first-child::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10,9 9,9 8,9'/%3E%3C/svg%3E");
}

.context-menu-item:last-child::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");
}

/* 消息内容悬停效果 */
.message-content[style*="cursor: context-menu"] {
    position: relative;
    transition: all 0.2s ease;
}

.message-content[style*="cursor: context-menu"]:hover {
    background: rgba(24, 144, 255, 0.05);
    border-radius: 8px;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.1);
}

/* 右键菜单分隔线 */
.context-menu-item:not(:last-child)::after {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

/* 统一组件高度 */
:root {
    --unified-height: 42px;
    --unified-padding: 12px 16px;
    --unified-border-radius: 8px;
    --unified-font-size: 14px;
    --unified-gap: 12px;
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --border-color: #444;
    --bg-color: #2a2a2a;
    --text-color: #e0e0e0;
}

/* 统一按钮样式基础类 */
.unified-btn {
    height: var(--unified-height);
    padding: var(--unified-padding);
    border-radius: var(--unified-border-radius);
    font-size: var(--unified-font-size);
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.unified-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, #333 100%);
}

.unified-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 主要按钮样式 */
.unified-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.unified-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.4);
}

/* 成功按钮样式 */
.unified-btn.success {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    border-color: #52c41a;
    color: white;
}

.unified-btn.success:hover {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
    border-color: #73d13d;
    box-shadow: 0 4px 16px rgba(82, 196, 26, 0.4);
}

/* 统一输入框样式 */
.unified-input {
    height: var(--unified-height);
    padding: var(--unified-padding);
    border-radius: var(--unified-border-radius);
    font-size: var(--unified-font-size);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.unified-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.unified-input:hover {
    border-color: #555;
}

/* 统一选择器样式 */
.unified-select {
    height: var(--unified-height);
    padding: var(--unified-padding);
    border-radius: var(--unified-border-radius);
    font-size: var(--unified-font-size);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.unified-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.unified-select:hover {
    border-color: #555;
}

/* 比例选择器样式 - 紧凑单行设计 */
.aspect-ratio-selector, .resolution-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.aspect-ratio-selector label, .resolution-selector label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.resolution-selector select, .duration-selector select {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
}

/* Seedance选项容器 */
.seedance-options {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 12px;
    flex-wrap: wrap;
}

/* 时长选择器样式 */
.duration-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.duration-selector label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.ratio-buttons {
    display: flex;
    gap: 2px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--unified-border-radius);
    padding: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    height: var(--unified-height);
    align-items: center;
    box-sizing: border-box; /* 确保高度计算包含边框 */
}

.ratio-buttons input[type="radio"] {
    display: none;
}

.ratio-btn {
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    text-align: center;
    line-height: 36px;
    width: 32px;
    min-width: 32px;
}

.ratio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.ratio-btn:hover::before {
    left: 100%;
}

.ratio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.ratio-buttons input[type="radio"]:checked + .ratio-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.ratio-buttons input[type="radio"]:checked + .ratio-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: scale(1.05);
}

/* 分辨率选择器样式 */
.resolution-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.resolution-selector label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.resolution-buttons {
    display: flex;
    gap: 2px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--unified-border-radius);
    padding: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    height: var(--unified-height);
    align-items: center;
    box-sizing: border-box;
}

.resolution-buttons input[type="radio"] {
    display: none;
}

.resolution-btn {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    text-align: center;
    line-height: 36px;
    min-width: 40px;
}

.resolution-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.resolution-btn:hover::before {
    left: 100%;
}

.resolution-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.resolution-buttons input[type="radio"]:checked + .resolution-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.resolution-buttons input[type="radio"]:checked + .resolution-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: scale(1.05);
}

/* 风格选择器样式 - 紧凑化 */
.style-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.style-selector label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.style-selector select {
    height: var(--unified-height);
    padding: 8px 20px 8px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--unified-border-radius);
    background: var(--bg-color);
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px; /* 缩短一半 */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.style-selector select:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.style-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 文件上传按钮样式 - 紧凑化 */
.file-upload-btn {
    height: var(--unified-height);
    padding: 0 8px;
    border-radius: var(--unified-border-radius);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    text-align: center;
    line-height: var(--unified-height);
    box-sizing: border-box;
    vertical-align: middle;
}

.file-upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.file-upload-btn:hover::before {
    left: 100%;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.file-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 历史按钮样式 - 紧凑化 */
.history-btn {
    height: var(--unified-height);
    padding: 0 8px;
    border-radius: var(--unified-border-radius);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    text-align: center;
    line-height: var(--unified-height);
    box-sizing: border-box;
    vertical-align: middle;
}

.history-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.history-btn:hover::before {
    left: 100%;
}

.history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(82, 196, 26, 0.4);
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
}

.history-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

/* 发送按钮样式 - 紧凑化主要按钮 */
.send-btn {
    height: var(--unified-height);
    padding: 0 10px;
    border-radius: var(--unified-border-radius);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 50px;
    flex-shrink: 0;
    text-align: center;
    line-height: var(--unified-height);
    box-sizing: border-box;
    vertical-align: middle;
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.send-btn:hover::before {
    left: 100%;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* 组合控件容器样式 - 强制单行布局 */
.style-and-actions {
    display: flex;
    align-items: center; /* 恢复居中对齐 */
    gap: 4px; /* 最小间距确保完整显示 */
    flex-wrap: nowrap; /* 不换行 */
    margin-top: 24px; /* 进一步增加上边距 */
    overflow: visible; /* 确保内容可见 */
    height: var(--unified-height); /* 固定容器高度 */
    width: 100%; /* 使用全宽 */
}

.input-actions {
    display: flex;
    align-items: center; /* 恢复居中对齐 */
    gap: 3px; /* 最小间距确保完整显示 */
    flex-wrap: nowrap; /* 不换行 */
    height: var(--unified-height); /* 固定容器高度 */
    overflow: visible; /* 确保内容可见 */
    width: 100%; /* 使用全宽 */
    margin-top: 16px; /* 增加上边距 */
}

/* 角色和场景占位符样式 */
.character-placeholder, .location-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(40, 42, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    height: 100%;
    min-height: 120px;
}

.placeholder-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.character-description, .location-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    line-height: 1.3;
    max-width: 150px;
    word-wrap: break-word;
}

/* 基本信息编辑样式 */
.basic-info-container {
    margin-bottom: 20px;
    background: rgba(30, 32, 38, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.basic-info-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-toggle {
    font-size: 12px;
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.edit-toggle:hover {
    background: rgba(0, 123, 255, 0.3);
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.info-row label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    min-width: 80px;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: var(--text-color);
    word-wrap: break-word;
}

.info-edit {
    flex: 1;
    padding: 6px 10px;
    background: rgba(40, 42, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 13px;
}

.info-edit[type="number"] {
    width: 80px;
    flex: none;
}

.info-edit textarea {
    min-height: 60px;
    resize: vertical;
}

.edit-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.save-btn, .cancel-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.save-btn {
    background: #28a745;
    color: white;
}

.save-btn:hover {
    background: #218838;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 编辑按钮样式 */
.edit-buttons {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.edit-btn {
    padding: 4px 8px;
    font-size: 11px;
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
}

/* 资源项布局样式 */
.asset-image-container {
    cursor: pointer;
    transition: all 0.3s ease;
}

.asset-image-container:hover {
    transform: translateY(-2px);
}

/* 资源控制按钮区域 */
.asset-controls {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* 提示词按钮样式 */
.prompt-btn {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.prompt-btn:hover {
    background: linear-gradient(145deg, #764ba2, #667eea);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* 可点击样式 */
.asset-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.asset-item.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 详情弹窗样式 */
.detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.detail-modal {
    background: rgba(20, 22, 28, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 32, 38, 0.8);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.modal-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.detail-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row span {
    color: var(--text-color);
    font-family: monospace;
    background: rgba(40, 42, 48, 0.6);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.detail-text {
    color: var(--text-color);
    line-height: 1.5;
    background: rgba(40, 42, 48, 0.6);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.modal-actions {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(30, 32, 38, 0.8);
}

/* 图片URL显示样式 */
.image-url-display {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: rgba(20, 22, 28, 0.8) !important;
    border: 1px solid rgba(100, 150, 255, 0.3);
    color: #87CEEB;
    max-height: 60px;
    overflow-y: auto;
    cursor: text;
    user-select: all;
}

.image-url-display:hover {
    background: rgba(20, 22, 28, 0.9) !important;
    border-color: rgba(100, 150, 255, 0.5);
}

/* 提示词编辑模态框样式 */
.prompt-modal {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

.prompt-modal .modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-modal .modal-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

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

.character-info, .location-info {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #444;
}

.character-info h4, .location-info h4 {
    color: #667eea;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.character-desc, .location-desc {
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.prompt-editor {
    margin-bottom: 20px;
}

.prompt-editor label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.prompt-editor textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

.prompt-editor textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.prompt-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #444;
}

/* 重新生成按钮样式 */
.regenerate-btn {
    background: linear-gradient(145deg, #ff7675, #e74c3c);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.regenerate-btn:hover {
    background: linear-gradient(145deg, #e74c3c, #ff7675);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* 保存按钮样式 */
.save-btn {
    background: linear-gradient(145deg, #00b894, #00a085);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.save-btn:hover {
    background: linear-gradient(145deg, #00a085, #00b894);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 184, 148, 0.3);
}

/* === 图片拖拽上传样式 === */
.image-upload-container {
    position: relative;
    border: 2px dashed transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    background: #f8f9fa;
    overflow: hidden;
}

.image-upload-container:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.image-upload-container.drag-over {
    border-color: #007bff;
    background-color: #f0f8ff;
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
}

.image-upload-container.has-image {
    border-color: #28a745;
    background-color: transparent;
}

.image-upload-container.has-image:hover {
    border-color: #20c997;
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 8px;
    pointer-events: none;
}

.upload-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.upload-overlay .upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.upload-overlay.show .upload-icon {
    transform: scale(1);
}

.upload-overlay .upload-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    max-width: 200px;
}

.upload-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    z-index: 1001;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.upload-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* 上传进度动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes uploadSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 放置动画 */
@keyframes dropBounce {
    0% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* 上传成功脉冲动画 */
@keyframes successPulse {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    20% { 
        transform: scale(1.2);
        opacity: 1;
    }
    40% { 
        transform: scale(0.9);
        opacity: 1;
    }
    60% { 
        transform: scale(1.1);
        opacity: 1;
    }
    80% { 
        transform: scale(0.95);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* 上传成功指示器样式 */
.upload-success-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: rgba(40, 167, 69, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.upload-success {
    animation: uploadSuccess 0.6s ease;
}

/* 图片预览样式 */
.image-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-preview.loading {
    opacity: 0;
}

/* 拖拽区域高亮 */
.drag-highlight {
    border-color: #007bff !important;
    background-color: #f0f8ff !important;
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
}

/* ===== 对口型弹窗样式 ===== */
.lip-sync-modal {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
}

.lip-sync-left,
.lip-sync-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lip-sync-preview-wrapper {
    background: #0f172a;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

.lip-sync-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
    min-height: 200px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lip-sync-preview img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    user-select: none;
    pointer-events: none;
    object-fit: contain;
}

.lip-sync-face-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.lip-sync-face-rect {
    position: absolute;
    border: 2px solid rgba(148, 163, 184, 0.6); /* 默认：半透明灰色 */
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lip-sync-face-rect.active {
    border: 3px solid #3b82f6; /* 选中：蓝色高亮 */
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 12px rgba(59, 130, 246, 0.6);
    z-index: 10; /* 选中的框在最上层 */
}

.lip-sync-preview-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.lip-sync-preview-actions button {
    flex: 1;
    padding: 10px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 13px;
}

.lip-sync-preview-actions button:hover {
    background: #334155;
    border-color: #60a5fa;
}

.lip-sync-timeline-wrapper {
    background: #0f172a;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lip-sync-timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 14px;
    position: relative;
}

.lip-sync-zoom-btn {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lip-sync-zoom-btn:hover {
    background: #334155;
    border-color: #60a5fa;
}

.lip-sync-play-all-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lip-sync-play-all-btn:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.lip-sync-timeline-container {
    overflow-x: auto;
    overflow-y: visible;
    background: #020617;
    border-radius: 8px;
    padding: 12px;
}

.lip-sync-timeline-content {
    position: relative;
    min-height: 200px;
}

.lip-sync-timeline-ruler {
    height: 30px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

.lip-sync-timeline-playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #f59e0b;
    pointer-events: none;
    z-index: 100;
}

.lip-sync-timeline {
    padding-top: 8px;
}

.lip-sync-right-section {
    background: #0f172a;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.lip-sync-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.lip-sync-face-status {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.lip-sync-face-status.error {
    color: #f87171;
}

.lip-sync-face-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}

/* 角色卡片样式 - 正方形布局 */
.lip-sync-face-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.lip-sync-face-card:hover {
    background: rgba(51, 65, 85, 0.5);
    border-color: #60a5fa;
}

.lip-sync-face-card.active {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

/* 角色缩略图 - 正方形 */
.lip-sync-face-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(148, 163, 184, 0.3);
}

.lip-sync-face-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lip-sync-face-thumb.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    font-weight: 600;
}

/* 角色元信息 - 垂直布局 */
.lip-sync-face-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lip-sync-face-meta span {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
}

.lip-sync-face-name {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 兼容旧版样式 */
.lip-sync-face-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.lip-sync-face-item:hover {
    background: rgba(51, 65, 85, 0.5);
    border-color: #60a5fa;
}

.lip-sync-face-item.active {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
}

.lip-sync-face-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lip-sync-textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #e2e8f0;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
}

.lip-sync-textarea:focus {
    outline: none;
    border-color: #60a5fa;
}

.lip-sync-control-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.lip-sync-voice-control {
    display: flex;
    gap: 8px;
    flex: 1;
}

.lip-sync-voice-select-btn,
.lip-sync-voice-preview-btn {
    padding: 10px 16px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.lip-sync-voice-select-btn {
    flex: 1;
}

.lip-sync-voice-select-btn:hover,
.lip-sync-voice-preview-btn:hover {
    background: #334155;
    border-color: #60a5fa;
}

.lip-sync-editor-actions {
    display: flex;
    gap: 12px;
}

.lip-sync-editor-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

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

.lip-sync-editor-actions button.primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lip-sync-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.lip-sync-footer button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.lip-sync-footer button:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lip-sync-upload-audio-btn {
    padding: 8px 12px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 12px;
}

.lip-sync-upload-audio-btn:hover {
    background: #334155;
    border-color: #60a5fa;
}

/* 对口型入口按钮 */
.lip-sync-entry-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.lip-sync-entry-btn:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 选择矩形框 */
.lip-sync-selection-rect {
    position: absolute;
    border: 2px dashed #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    pointer-events: none;
    display: none;
}

/* ===== 时间轴轨道样式 ===== */
.lip-sync-timeline-track {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    min-height: 48px;
}

.lip-sync-track-label {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 12px;
    color: #e2e8f0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lip-sync-track-content {
    flex: 1;
    min-height: 48px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

/* 🔥 音轨body容器 - 不设置overflow，让音频片段完全可见 */
.lip-sync-track-body {
    position: relative;
    flex: 1;
    min-height: 60px;
    /* 🔥 关键：不设置overflow:hidden，让删除按钮等元素可以超出容器 */
}

/* 音频片段样式 */
.lip-sync-clip {
    position: absolute;
    height: 40px;
    border-radius: 4px;
    cursor: move;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    will-change: transform;
}

.lip-sync-clip:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.lip-sync-clip.selected {
    box-shadow: 0 0 0 2px #f59e0b;
    z-index: 20;
}

.lip-sync-clip-content {
    flex: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-end;
    padding: 4px 6px;
}

.lip-sync-clip-duration {
    color: white;
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* 音频片段拖动手柄 */
.lip-sync-clip-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    z-index: 10;
}

.lip-sync-clip-handle.left {
    left: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.lip-sync-clip-handle.right {
    right: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
}

.lip-sync-clip-handle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 音频片段删除按钮 */
.lip-sync-clip-delete {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: auto;
}

.lip-sync-clip:hover .lip-sync-clip-delete {
    opacity: 1;
}

.lip-sync-clip-delete:hover {
    background: rgba(220, 38, 38, 1);
    opacity: 1;
    transform: scale(1.1);
}

/* 时间线刻度 */
.lip-sync-timeline-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(148, 163, 184, 0.2);
    pointer-events: none;
}

.lip-sync-timeline-tick-label {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 10px;
    color: #94a3b8;
    pointer-events: none;
}

/* 滚动条美化 */
.lip-sync-timeline-container::-webkit-scrollbar {
    height: 8px;
}

.lip-sync-timeline-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.lip-sync-timeline-container::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.lip-sync-timeline-container::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.lip-sync-face-list::-webkit-scrollbar {
    width: 6px;
}

.lip-sync-face-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 3px;
}

.lip-sync-face-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.lip-sync-face-list::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* 情绪选择器样式 */
#lipSync-emotion-select,
.lip-sync-modal select {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    color: #e2e8f0;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
}

#lipSync-emotion-select:hover,
.lip-sync-modal select:hover {
    border-color: #60a5fa;
}

#lipSync-emotion-select:focus,
.lip-sync-modal select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

/* 语速滑块样式 */
.lip-sync-modal input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.lip-sync-modal input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lip-sync-modal input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.lip-sync-modal input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== 手动添加角色对话框 ===== */
.lip-sync-name-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

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

.lip-sync-name-dialog {
    background: #1e293b;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    animation: slideUp 0.3s ease;
}

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

.lip-sync-name-dialog h4 {
    margin: 0 0 24px 0;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.lip-sync-name-dialog input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 24px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lip-sync-name-dialog input[type="text"]:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.lip-sync-name-dialog input[type="text"]::placeholder {
    color: #64748b;
}

.lip-sync-name-dialog .actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.lip-sync-name-dialog .actions button {
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.lip-sync-name-dialog .actions button[data-action="cancel"] {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.lip-sync-name-dialog .actions button[data-action="cancel"]:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.5);
}

.lip-sync-name-dialog .actions button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lip-sync-name-dialog .actions button.primary:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

.lip-sync-name-dialog .actions button.primary:active {
    transform: translateY(0);
}
