.model-node {
  position: fixed; // Safari兼容问题处理
  .iconBox {
    &:hover {
      .mask {
        border-color: rgb(22, 119, 255);
        box-shadow: 0px 0px 12px 0px rgba(8, 40, 104, 0.24);
      }
    }

    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6897dd;

    .icon {
      width: 35px;
      height: 35px;
      font-size: 35px;
    }

    .mark {
      position: absolute;
      bottom: -2px;
      right: -2px;
      width: 50%;
      height: 50%;
    }

    .status {
      width: 20px;
      height: 20px;
      font-size: 20px;
      position: absolute;
      left: -4px;
      top: -4px;
      z-index: 1;
    }

    .mask {
      position: absolute;
      width: 100%;
      height: 100%;
      border: 1px solid rgba(0, 0, 0, 0.15);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;

      .lockIcon {
        display: none;
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 20px;
        color: #595959;
      }
    }
  }

  .nodeName {
    font-weight: 400;
    color: #000000;
    line-height: 12px;
    font-size: 12px;
    text-align: center;
    margin: 0 auto;
    width: max-content;
    position: absolute;
    left: 50%;
    transform: translateX(-72px);
    word-break: break-all;
    margin-top: 8px;

    .text {
      width: 144px;
    }
    textarea {
      resize: none;
      overflow: hidden;
      width: 144px;
    }
  }
  // 锁
  &.lock {
    .iconBox {
      &:hover {
        .mask {
          background: rgba(255, 255, 255, 0.8);
          border-color: #91d5ff !important; // blue-3
        }

        .lockIcon {
          display: block !important;
        }
      }
    }
  }
}

.x6-node-selected {
  // 激活
  .model-node {
    .iconBox {
      .mask {
        border-width: 2px;
        border-color: rgb(22, 119, 255);
        box-shadow: none !important;

        &::after {
          content: "";
          position: absolute;
          width: 100%;
          height: 100%;
          box-sizing: content-box;
          border: 4px solid rgba(24, 144, 255, 0.15); // 注意此颜色不是预定颜色，可能需要额外加变量。主题色+15%透明度
          box-shadow: 0px 0px 12px 0px rgba(8, 40, 104, 0.24);
          z-index: -1;
          border-radius: 50%;
          left: -4px;
          top: -4px;
        }
      }
    }
  }
}
