@import 'common/var.scss';
.qf-tabs-nav {
  overflow: hidden;
  margin-bottom: -1px;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #e4e7ed;
    z-index: 1;
  }
  &.is-left::after {
    left: auto;
    right: 0;
  }
  &.is-right::after {
    left: 0;
    right: auto;
  }
  &.is-left,
  &.is-right {
    height: 100%;
    &.is-scrollable {
      padding: 30px 0;
    }
    .qf-tabs-nav-prev {
      left: auto;
      top: 0;
    }
    .qf-tabs-nav-next {
      right: auto;
      bottom: 0;
    }
    .qf-tabs-nav-scroll {
      height: 100%;
    }
    .qf-tabs-nav-prev,
    .qf-tabs-nav-next {
      height: 30px;
      line-height: 30px;
      width: 100%;
      text-align: center;
      cursor: pointer;
      transform: rotateZ(90deg);
    }
    &::after {
      height: 100%;
      width: 2px;
      bottom: auto;
      top: 0;
    }
  }
  &.is-scrollable {
    padding: 0 20px;
    box-sizing: border-box;
  }
  .qf-tabs-nav-prev {
    left: 0;
  }
  .qf-tabs-nav-next {
    right: 0;
  }
  .qf-tabs-nav-prev,
  .qf-tabs-nav-next {
    position: absolute;
    cursor: pointer;
    line-height: 40px;
    font-size: 12px;
    color: #909399;
  }
  .qf-tabs-nav-scroll {
    overflow: hidden;
  }
  &.is-card {
    .qf-tabs-list {
      border: 1px solid #e4e7ed;
      border-bottom: none;
      border-radius: 4px 4px 0 0;
      .qf-tab-item {
        border-bottom: 1px solid transparent;
        border-left: 1px solid #e4e7ed;
        transition: color .3s cubic-bezier(.645, .045, .355, 1), padding .3s cubic-bezier(.645, .045, .355, 1);
        &.is-top {
          &:first-child {
            border-left: none;
          }
          &:nth-child(2) {
            padding-left: 20px;
          }
          &:last-child {
            padding-right: 20px;
            ;
          }
        }
        &.is-active {
          border-bottom-color: #fff;
        }
      }
    }
  }
  .qf-tabs-list {
    font-size: 0px;
    white-space: nowrap;
    position: relative;
    transition: transform .3s;
    float: left;
    z-index: 2;
    .qf-tab-item {
      padding: 0 20px;
      height: 40px;
      box-sizing: border-box;
      outline: none;
      line-height: 40px;
      display: inline-block;
      list-style: none;
      font-size: 14px;
      font-weight: 500;
      color: #303133;
      position: relative;
      &.is-top {
        &:nth-child(2) {
          padding-left: 0;
        }
        &:last-child {
          padding-right: 0;
        }
      }
      &.is-right {
        display: block;
      }
      &.is-left {
        display: block;
        text-align: right;
      }
      &.is-active {
        color: #409eff;
      }
    }
  }
}

//-----
.qf-tabs-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: $--color-primary;
  z-index: 1;
  transition: transform .3s cubic-bezier(.645, .045, .355, 1);
  list-style: none;
  &.is-left {
    left: auto;
    right: 0;
  }
  &.is-right {
    left: 0;
  }
  &.is-left,
  &.is-right {
    top: 0;
    bottom: auto;
    width: 2px;
    height: auto;
  }
}
