.zhny-sub-title {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 34px;
  font-size: 14px;
  border-bottom-color: @subtitle-light-border;
  border-bottom-style: solid;
  height: 40px;
  color: #333333;
  .skin-dark & {
    color: #fff;
    border-bottom-color: @subtitle-dark-border;
  }
  &.zhny-sub-title-solid {
    background: #eef3ff;
    .skin-red & {
      background: #fff4f3;
    }
    .skin-green & {
      background: #eff5f5;
    }
    .skin-yellow &,
    .skin-gray & {
      background: #fff9ef;
    }
    .skin-dark & {
      background: #202947;
    }
  }
  &-expanded {
    .sub-title-expand-icon {
      transform: rotate(180deg);
    }
  }
  &.zhny-sub-title-3 {
    height: 30px;
    padding: 0 10px 0 34px;
    line-height: 30px;
    border-radius: 4px;
    &::before {
      width: 16px;
      height: 16px;
      content: '';
      position: absolute;
      top: 50%;
      left: 10px;
      transform: translateY(-50%);
      background: url('./level3_blue_icon.png') no-repeat center center;
      background-size: 100% 100%;
      .skin-red & {
        background: url('./level3_red_icon.png') no-repeat center center;
        background-size: 100% 100%;
      }
      .skin-green & {
        background: url('./level3_green_icon.png') no-repeat center center;
        background-size: 100% 100%;
      }
      .skin-gray & {
        background: url('./level3_gray_icon.png') no-repeat center center;
        background-size: 100% 100%;
      }
      .skin-dark & {
        background: url('./level3_dark_icon.png') no-repeat center center;
        background-size: 100% 100%;
      }
      .skin-yellow & {
        background: url('./level3_yellow_icon.png') no-repeat center center;
        background-size: 100% 100%;
      }
    }
  }
  &.zhny-sub-title-4 {
    height: 30px;
    padding-left: 12px;
    &::before {
      position: absolute;
      display: block;
      content: '';
      width: 3px;
      height: 16px;
      border-radius: 3px;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      background: @blue-primary;
      .skin-red & {
        background: @red-primary;
      }
      .skin-green & {
        background: @green-primary;
      }
      .skin-yellow & {
        background: @yellow-primary;
      }
      .skin-gray & {
        background: @gray-primary;
      }
      .skin-dark & {
        background: @dark-primary;
      }
    }
  }
  &:not(.zhny-sub-title-3, .zhny-sub-title-4) {
    &::before,
    &::after {
      position: absolute;
      top: 50%;
      width: 4px;
      content: '';
    }
    &::before {
      height: 12px;
      transform: skewX(-20deg) translateY(calc(-50% + 2px));
      left: 10px;
      background: fade(@blue-primary, 60%);
      .skin-red & {
        background: fade(@red-primary, 60%);
      }
      .skin-green & {
        background: fade(@green-primary, 60%);
      }
      .skin-yellow & {
        background: fade(@yellow-primary, 60%);
      }
      .skin-gray & {
        background: fade(@gray-primary, 60%);
      }
      .skin-dark & {
        background: fade(@dark-primary, 60%);
      }
    }
    &::after {
      height: 16px;
      left: 16px;
      transform: skewX(-20deg) translateY(-50%);
      background: @blue-primary;
      .skin-red & {
        background: @red-primary;
      }
      .skin-green & {
        background: @green-primary;
      }
      .skin-gray & {
        background: @gray-primary;
      }
      .skin-yellow & {
        background: @yellow-primary;
      }
      .skin-dark & {
        background: @dark-primary;
      }
      .fontSize-fontlarge & {
        left: 10px;
      }
    }
  }
  .zhny-sub-title-left-slot,
  .zhny-sub-title-left-slot-dom {
    display: inline-block;
    margin-left: 20px;
    .iconfont {
      font-size: 18px;
      cursor: pointer;
      &:not(:first-child) {
        margin-left: 10px;
      }
      &.icon-disabled {
        color: #cecece !important;
        cursor: not-allowed !important;
      }
    }
  }
  .zhny-sub-title-right-slot {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    .ant-form-inline {
      .ant-form-item {
        margin-right: 10px;
      }
    }
    .ant-input-group.ant-input-group-compact {
      &::before,
      &::after {
        display: block;
      }
      > .ant-form-item {
        margin: 0;
        &:nth-of-type(1) {
          .ant-input-number {
            border-radius: 4px 0 0 4px;
          }
        }
        &:nth-of-type(2) {
          .ant-input-number {
            border-radius: 0 4px 4px 0;
          }
        }
      }
    }
  }
  .sub-title-expand-icon {
    height: 18px;
    line-height: 18px;
    width: 18px;
    margin-right: 5px;
    transition: transform 0.3s ease-in-out;
    color: @blue-primary;
    pointer-events: none;
    .skin-red & {
      color: @red-primary;
    }
    .skin-green & {
      color: @green-primary;
    }
    .skin-gray & {
      color: @gray-primary;
    }
    .skin-yellow & {
      color: @yellow-primary;
    }
    .skin-dark & {
      color: #95adff;
    }
  }
  &-expandable {
    padding-left: 0;
    cursor: pointer;
    &::before,
    &::after {
      display: none;
    }
  }
}
