
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
img {
  -webkit-user-drag: none; /* 禁用图片拖拽拽出残影 */
}
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  user-select: auto !important;
}
#app {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 14px;
  overflow: hidden;
  position: relative;
}

/* 针对 X6 Scroller 生成的滚动条 */
.x6-graph-scroller::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}
.x6-graph-scroller::-webkit-scrollbar-thumb {
  background: rgba(144, 147, 153, 0.3);
  border-radius: 8px;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}
.x6-graph-scroller::-webkit-scrollbar-thumb:hover {
  background: rgba(144, 147, 153, 0.5);
}
.x6-graph-scroller::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 8px;
}

/* Firefox */
.x6-graph-scroller {
  scrollbar-width: thin;
  scrollbar-color: rgba(144, 147, 153, 0.3) transparent;
}

/* 防止框选后,可以拖拽的情况-- */
.x6-widget-selection-box {
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
          user-select: none !important;
  -webkit-user-drag: none !important;
}

/* 选中节点后的动画-- */
@keyframes ant-line {
to {
    stroke-dashoffset: -1000;
}
}

/* 去掉 Element Plus 所有组件点击后的 outline */
:deep(.el-button:focus),
:deep(.el-button:active),
:deep(.el-dropdown:focus),
:deep(.el-dropdown:active),
:deep(.el-input__inner:focus),
:deep(.el-input__inner:active),
:deep(.el-select:focus),
:deep(.el-select:active),
:deep(.el-dropdown-menu__item:focus),
:deep(.el-dropdown-menu__item:active) {
  outline: none !important;
  box-shadow: none !important;
}
div {
  box-sizing: border-box;
}

