.node-item {
  margin-bottom: var(--td-comp-margin-s);
  &:last-child {
    margin-bottom: 0;
  }
}

.node-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}

.node-label,
.remove-button {
  flex: 0 0 auto;
  margin-top: 4px;
}

.node-input {
  flex: 1 1 auto;
  min-width: 200px;
}

.node-input-port {
  width: 70px;
}

.node-input-weight {
  width: 110px; 
}

.node-input :deep(.t-input__inner),
.node-input-number :deep(.t-input-number__input) {
  width: 100%;
}


// Use t-row/t-col for better layout control than simple margin on unit
:deep(.t-input-number__suffix) {
  padding-left: var(--td-comp-paddingLR-s);
}

.t-divider {
  margin-top: var(--td-comp-margin-xxl);
  margin-bottom: var(--td-comp-margin-l);
  &:first-of-type {
    // No top margin for the very first divider
    margin-top: 0;
  }
}

:deep(.t-form__label--top) {
  margin-bottom: var(--td-comp-margin-s);
}

:deep(.t-form__item) {
  .t-input,
  .t-select__wrap,
  .t-input-number {
    width: 100%; // Ensure inputs fill space within cols/items
  }
}

// Align divider text left
:deep(.t-divider--horizontal.t-divider--with-text-left) {
  &::before {
    width: 2%; // Small gap before left-aligned text
  }
  &::after {
    width: 98%;
  }
}

/* #region dom渐变动画 */
.v-enter-active,
.v-leave-active {
  transition: all 0.24s ease;
}

.v-enter-from,
.v-leave-to {
  opacity: 0;
  transform: translateX(30px);
}

/* #endregion */


/* #region 列表渐变动画 */

/* 进入动画：从下方向上淡入 */
.list-enter-from {
  opacity: 0;
  transform: translateY(20px);
}
.list-enter-to {
  opacity: 1;
  transform: translateY(0);
}
.list-enter-active {
  transition: all 0.24s ease;
}

/* 离开动画：向右淡出 */
.list-leave-from {
  opacity: 1;
  transform: translateX(0);
}
.list-leave-to {
  opacity: 0;
  transform: translateX(60px);
}
.list-leave-active {
  transition: all 0.24s ease;
}
/* #endregion */
