/**
 * AI创作坊 · 节点仓库抽屉样式
 * 分类→节点类型层级菜单，纯文字无图标，不透明底框便于阅读，符合侧边栏工具栏功能框架
 * 字体：Microsoft YaHei，符合项目字体规范
 */

/* 节点仓库抽屉：不透明底框，更像常规菜单 */
.ai-workshop-node-repo-drawer[aria-hidden="true"] {
    display: none !important;
}
.ai-workshop-node-repo-drawer,
.ai-workshop-node-repo-drawer.ai-workshop-node-repo-drawer-visible {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    background-color: #2b2b2b;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.ai-workshop-node-repo-drawer[aria-hidden="true"] {
    display: none !important;
}

/* 内层：左右两列，左侧二级分类、右侧三级节点 */
.ai-workshop-node-repo-inner {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background-color: #2b2b2b;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
    font-size: 13px;
}

/* 左侧：二级分类列表 */
.ai-workshop-node-repo-categories {
    width: 88px;
    min-width: 88px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 8px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #252525;
    overflow-y: auto;
}

/* 二级菜单项：分类名（通用、分镜等） */
.ai-workshop-node-repo-category-row {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
    font-size: 12px;
    color: #9ca3af;
    padding: 8px 10px;
    margin: 0;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: none;
    text-align: left;
}

.ai-workshop-node-repo-category-row:hover,
.ai-workshop-node-repo-category-row.is-active {
    background-color: #363636;
    color: #e0e0e0;
}

.ai-workshop-node-repo-category-row.is-active {
    color: #ffffff;
}

/* 右侧：三级目录弹出区（悬停/点击分类后显示对应节点） */
.ai-workshop-node-repo-submenu {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #2b2b2b;
}

.ai-workshop-node-repo-submenu-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-workshop-node-repo-node-row {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
    font-size: 13px;
    color: #ffffff;
    padding: 10px 14px;
    margin: 0;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    background-color: #3c3c3e;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-workshop-node-repo-node-row:hover {
    background-color: #4a4a4c;
    color: #ffffff;
}

.ai-workshop-node-repo-node-row[data-draggable="true"] {
    cursor: grab;
}

.ai-workshop-node-repo-node-row[data-draggable="true"]:active {
    cursor: grabbing;
    background-color: #505052;
}

/* 空状态 */
.ai-workshop-node-repo-empty {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
    font-size: 12px;
    color: #9ca3af;
    padding: 16px;
    text-align: center;
    background-color: #363636;
    border-radius: 4px;
}
