/* ======================== 分镜编辑模块样式 ======================== */

.storyboard-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

.storyboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.storyboard-main {
    display: flex;
    flex: 1;
    gap: 12px;
    min-height: 0;
}

.scene-list-panel {
    width: 200px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scene-list-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scene-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.scene-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.scene-item:hover {
    background: var(--hover-bg);
}

.scene-item.active {
    background: var(--border-color);
    border-color: var(--accent-color);
}

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

.scene-item-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.scene-item-shots {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.shot-timeline-panel {
    flex: 1;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.shot-timeline-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.shot-card {
    background: var(--input-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.shot-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.shot-card.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(100, 108, 255, 0.2);
}

.shot-preview {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.shot-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.shot-info {
    padding: 10px;
}

.shot-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shot-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

.shot-actions {
    padding: 8px 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.shot-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.shot-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.shot-detail-panel {
    width: 280px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shot-detail-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.shot-detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.detail-preview {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.detail-field {
    margin-bottom: 12px;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.875rem;
    line-height: 1.5;
}

.detail-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.8rem;
    resize: vertical;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* 场景编辑对话框 */
.scene-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scene-edit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scene-edit-form label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.scene-edit-form .form-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.scene-edit-form textarea.form-input {
    min-height: 80px;
    resize: vertical;
}
