/**
 * AI创作坊 · 信息球节点专属样式（通用分类）
 * 圆形、无标题栏；底色、文本区；字体：Microsoft YaHei
 * 默认深色与通用节点一致；颜色设置区隐藏但功能保留（如右键菜单可设底色）
 */

/* 根节点不设 overflow:hidden，避免裁掉下方箭头尾巴；宽高一致 + border-radius:50% 实现圆形；尺寸由 JS 根据内容适配 */
.ai-workshop-node-info-ball {
    width: 200px;
    height: 200px;
    min-width: 120px;
    min-height: 120px;
    max-width: 420px;
    max-height: 420px;
    border-radius: 50%;
    padding: 0;
    background: var(--ai-workshop-node-info-ball-bg, #2d2d30);
    transition: width 0.2s ease, height 0.2s ease;
    box-sizing: border-box;
}

/* 文字与球体边框保持边界，避免贴边 */
.ai-workshop-node-info-ball .ai-workshop-node-body {
    padding: 18px 20px;
    min-height: 0;
    border-radius: 50%;
    background: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.ai-workshop-node-info-ball .ai-workshop-node-footer {
    height: 2px;
}

/* 内容区：填满 body 并让文字块在圆球内上下左右居中 */
.ai-workshop-node-info-ball-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

/* 可编辑内容：随文字增高、不出现滚动条；与球体边框保持内边距，效果美观 */
.ai-workshop-node-info-ball-content {
    width: 100%;
    min-height: 1.4em;
    padding: 12px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #f0f0f0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
    resize: none;
    outline: none;
    box-sizing: border-box;
    overflow: visible;
    overflow-wrap: break-word;
    align-self: center;
}

/* contenteditable 占位符 */
.ai-workshop-node-info-ball-content:empty::before {
    content: attr(data-placeholder);
    color: #888;
}

.ai-workshop-node-info-ball-content:focus {
    outline: none;
    box-shadow: none;
}

/* 颜色设置区域：不显示，功能保留（底色仍通过 data/右键等生效） */
.ai-workshop-node-info-ball-color-row {
    display: none;
    align-items: center;
    gap: 8px;
}

.ai-workshop-node-info-ball-color-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.ai-workshop-node-info-ball-color {
    width: 28px;
    height: 20px;
    padding: 0 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
