/**
 * AI创作坊 · 分支节点专属样式（通用分类）
 * 故事标题、故事内容、序号展示；详细模式下的字号/颜色设置
 * 类名前缀 ai-workshop-node-branch-*
 * 字体：Microsoft YaHei
 */

.ai-workshop-node-branch .ai-workshop-node-body {
    min-height: 80px;
}

.ai-workshop-node-branch-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-workshop-node-branch-label {
    font-size: 11px;
    color: #a0a0a0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.ai-workshop-node-branch-title {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: var(--ai-workshop-node-branch-font-size, 14px);
    font-weight: 600;
    line-height: 1.35;
    outline: none;
    box-sizing: border-box;
}

.ai-workshop-node-branch-title::placeholder {
    color: #666;
}

.ai-workshop-node-branch-title:focus {
    border-color: rgba(107, 140, 255, 0.5);
}

/* 内容区：根据内容自适应行数（配合 JS 动态 rows） */
.ai-workshop-node-branch-content {
    width: 100%;
    min-height: 60px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    line-height: 1.45;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.ai-workshop-node-branch-content::placeholder {
    color: #666;
}

.ai-workshop-node-branch-content:focus {
    border-color: rgba(107, 140, 255, 0.5);
}

/* 故事内容区滚动条深色主题（WebKit + Firefox） */
.ai-workshop-node-branch-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(90, 92, 96, 0.9) rgba(40, 42, 46, 0.95);
}

.ai-workshop-node-branch-content::-webkit-scrollbar {
    width: 8px;
}

.ai-workshop-node-branch-content::-webkit-scrollbar-track {
    background: rgba(40, 42, 46, 0.95);
    border-radius: 4px;
}

.ai-workshop-node-branch-content::-webkit-scrollbar-thumb {
    background: rgba(90, 92, 96, 0.9);
    border-radius: 4px;
}

.ai-workshop-node-branch-content::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 112, 116, 0.95);
}

.ai-workshop-node-branch-content::-webkit-scrollbar-corner {
    background: rgba(40, 42, 46, 0.95);
}

.ai-workshop-node-branch-detail {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.ai-workshop-node.view-detail .ai-workshop-node-branch-detail {
    display: flex;
}

.ai-workshop-node-branch-detail .ai-workshop-node-branch-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 详细模式下滑杆深色主题 */
.ai-workshop-node-branch-font-size-slider {
    flex: 1;
    min-width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(40, 42, 46, 0.95);
    border-radius: 3px;
    outline: none;
}

.ai-workshop-node-branch-font-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6b8cff;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.ai-workshop-node-branch-font-size-slider::-webkit-slider-thumb:hover {
    background: #8094ff;
}

.ai-workshop-node-branch-font-size-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6b8cff;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.ai-workshop-node-branch-font-size-slider::-moz-range-thumb:hover {
    background: #8094ff;
}

.ai-workshop-node-branch-detail-label {
    font-size: 11px;
    color: #a0a0a0;
    min-width: 64px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.ai-workshop-node-branch-font-size {
    width: 80px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    font-size: 12px;
}

/* 标题栏颜色选择器深色主题 */
.ai-workshop-node-branch-color {
    width: 80px;
    height: 24px;
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(40, 42, 46, 0.95);
    cursor: pointer;
}
