
.kg-editor-toolbar[data-v-68c3b92d] {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 210, 220, 0.6);
  border-radius: 12px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  user-select: none;
}
.kg-tool-btn[data-v-68c3b92d] {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  outline: none;
}
.kg-tool-btn svg[data-v-68c3b92d] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.kg-tool-btn[data-v-68c3b92d]:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}
.kg-tool-btn.active[data-v-68c3b92d] {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* 危险操作按钮 */
.kg-tool-btn-danger[data-v-68c3b92d]:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}
.kg-tool-btn-danger.active[data-v-68c3b92d] {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* 分隔线 */
.kg-toolbar-divider[data-v-68c3b92d] {
  width: 24px;
  height: 1px;
  background: rgba(200, 210, 220, 0.6);
  margin: 2px 0;
}
.kg-editor-toolbar.kg-theme-dark[data-v-68c3b92d] {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(71, 85, 105, 0.65);
  box-shadow:
    0 8px 24px rgba(2, 6, 23, 0.45),
    0 2px 8px rgba(2, 6, 23, 0.32);
}
.kg-editor-toolbar.kg-theme-dark .kg-tool-btn[data-v-68c3b92d] {
  color: #cbd5e1;
}
.kg-editor-toolbar.kg-theme-dark .kg-tool-btn[data-v-68c3b92d]:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.38);
}
.kg-editor-toolbar.kg-theme-dark .kg-tool-btn.active[data-v-68c3b92d] {
  background: rgba(59, 130, 246, 0.26);
  color: #bfdbfe;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22);
}
.kg-editor-toolbar.kg-theme-dark .kg-tool-btn-danger[data-v-68c3b92d]:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.36);
}
.kg-editor-toolbar.kg-theme-dark .kg-tool-btn-danger.active[data-v-68c3b92d] {
  background: rgba(239, 68, 68, 0.28);
  color: #fecaca;
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.24);
}
.kg-editor-toolbar.kg-theme-dark .kg-toolbar-divider[data-v-68c3b92d] {
  background: rgba(71, 85, 105, 0.75);
}

.graph-container[data-v-3ca8f55d] {
  width: 100%;
  height: 100%;
  position: relative;
  background: #f8fafc;
  transition: background-color 0.2s ease;
}
.graph-canvas[data-v-3ca8f55d] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
}
.context-menu[data-v-3ca8f55d],[data-v-3ca8f55d] .kg-editor-toolbar {
  z-index: 1000;
}
.graph-container.edit-mode[data-v-3ca8f55d] {
  border: 2px dashed #3b82f6;
  border-radius: 4px;
}
.graph-container.theme-dark[data-v-3ca8f55d] {
  background: #0f172a;
}
.graph-container.theme-dark.edit-mode[data-v-3ca8f55d] {
  border-color: #60a5fa;
}

/* 右键菜单 */
.context-menu[data-v-3ca8f55d] {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  min-width: 140px;
  user-select: none;
}
.context-menu-item[data-v-3ca8f55d] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
}
.context-menu-item[data-v-3ca8f55d]:hover {
  background: #f0f4ff;
  color: #3b82f6;
}
.context-menu-item.danger[data-v-3ca8f55d] {
  color: #ff4d4f;
}
.context-menu-item.danger[data-v-3ca8f55d]:hover {
  background: #fff1f0;
  color: #ff4d4f;
}
.context-menu-item svg[data-v-3ca8f55d] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.graph-container.theme-dark .context-menu[data-v-3ca8f55d] {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}
.graph-container.theme-dark .context-menu-item[data-v-3ca8f55d] {
  color: #cbd5e1;
}
.graph-container.theme-dark .context-menu-item[data-v-3ca8f55d]:hover {
  background: #1e293b;
  color: #93c5fd;
}
.graph-container.theme-dark .context-menu-item.danger[data-v-3ca8f55d] {
  color: #fca5a5;
}
.graph-container.theme-dark .context-menu-item.danger[data-v-3ca8f55d]:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.kg-toolbar[data-v-81013747] {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  z-index: 100;
  display: flex;
  gap: 6px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', 'PingFang SC', system-ui, sans-serif;
}
.kg-toolbar[data-v-81013747]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.kg-toolbar.kg-collapsed[data-v-81013747] {
  padding: 6px;
  right: 12px;
}
.kg-btn-group[data-v-81013747] {
  display: flex;
  gap: 8px;
}
.kg-btn-subgroup[data-v-81013747] {
  display: flex;
  gap: 6px;
  padding-right: 8px;
  border-right: 1px solid #e2e8f0;
  margin-right: 2px;
}
.kg-btn[data-v-81013747] {
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  outline: none;
}
.kg-btn[data-v-81013747]:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.kg-btn.kg-active[data-v-81013747] {
  background: #3b82f6;
  color: #fff;
}

/* 编辑按钮 - 蓝色 */
.kg-btn-edit[data-v-81013747] {
  color: #3b82f6;
  font-weight: 600;
}
.kg-btn-edit[data-v-81013747]:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* 保存按钮 - 绿色 */
.kg-btn-save[data-v-81013747] {
  background: #10b981;
  color: #fff;
  font-weight: 600;
}
.kg-btn-save[data-v-81013747]:hover {
  background: #059669;
  color: #fff;
}

/* 取消按钮 - 红色 */
.kg-btn-cancel[data-v-81013747] {
  background: #ef4444;
  color: #fff;
  font-weight: 600;
}
.kg-btn-cancel[data-v-81013747]:hover {
  background: #dc2626;
  color: #fff;
}
.kg-icon[data-v-81013747] {
  font-size: 13px;
  line-height: 1;
}
.kg-toggle[data-v-81013747] {
  padding: 4px 8px;
  background: transparent;
  color: #64748b;
  border: none;
  border-radius: 4px;
  font-size: 11px;
}
.kg-toggle[data-v-81013747]:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.kg-toolbar.kg-theme-dark[data-v-81013747] {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
}
.kg-toolbar.kg-theme-dark .kg-btn-subgroup[data-v-81013747] {
  border-right-color: #334155;
}
.kg-toolbar.kg-theme-dark .kg-btn[data-v-81013747] {
  color: #cbd5e1;
}
.kg-toolbar.kg-theme-dark .kg-btn[data-v-81013747]:hover {
  background: #1e293b;
  color: #f8fafc;
}
.kg-toolbar.kg-theme-dark .kg-toggle[data-v-81013747] {
  color: #94a3b8;
}
.kg-toolbar.kg-theme-dark .kg-toggle[data-v-81013747]:hover {
  background: #1e293b;
  color: #f8fafc;
}
.kg-toolbar.kg-theme-dark .kg-btn-edit[data-v-81013747] {
  color: #60a5fa;
}
.kg-toolbar.kg-theme-dark .kg-btn-edit[data-v-81013747]:hover {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}
