.press-schedule__switch {
  position: relative;
  background: $color-gray-3;
  border-radius: .08rem;
  display: flex;
  align-items: center;
  width: 2.56rem;
  height: .56rem;
  margin-left: .32rem;
  margin-top: .24rem;
  flex-shrink: 0;

  .press-schedule__switch-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 1.28rem;
    height: .56rem;
    background: $color-white;
    border-radius: .08rem;
    -webkit-transition: left .5s;
    transition: left .5s;

    &--right {
      left: 1.3rem;
    }
  }

  .press-schedule__switch-item {
    flex: 1;
    font-size: $font-xxs;
    color: $color-gray;
    text-align: center;
    position: relative;
    font-weight: normal;
    -webkit-transition: color .5s, font-weight .5s;
    transition: color .5s, font-weight .5s;

    // 加上 height、line-height，小程序上没有继承
    height: .56rem;
    line-height: .56rem;

    &--active {
      color: $color-black;
      font-weight: 400;
    }


    &--red-dot {
      position: relative;

      &::after {
        content: '';
        @include red-dot($top: -.04rem, $right: .16rem);
      }
    }
  }
}