@import './common/variable.scss';
@import './common/color.scss';

.jd-tab-swiper {
  position: relative;
  background-color: $white;
  .swiper-page-tab {
    position: absolute;
    bottom: 0;
    height: 40px;
    width: 100%;
    ul {
      // width: 66.5%;
      height: 25px;
      padding: 0;
      margin: 0 auto;
      list-style-type: none;
      li {
        float: left;
        color: $gray;
        text-align: center;
        font-size: 12px;
        width: 74px;
        margin-right: 54px;
        padding-bottom: 3px;
        margin-top: 3px;
        position: relative;
        z-index: 2;
        cursor: pointer;
        &.active {
          color: $red;
          border-bottom: 2px solid $red;
          font-size: 14px;
          margin-top: 0;
        }
        &:last-child {
          margin-right: 0;
        }
      }
    }
  }
  .swiper-button {
    position: absolute;
    cursor: pointer;
    width: 51px;
    height: 51px;
    border-radius: 50%;
    background-color: $white;
    text-align: center;
    &:hover {
      .iconfont {
        color: $black;
      }
    }
    .iconfont {
      color: $border-gray;
      font-size: 51px;
      position: relative;
      top: -10px;
    }
    &-prev {
      left: 41px;
      z-index: 2;
      background-image: none;
      &-bg {
        position: absolute;
        z-index: 1;
        width: 21.7%;
        height: 100%;
        left: 0;
        top: 0;
        background-image: linear-gradient(270deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.8) 75%,#fff);
      }
      .iconfont {
        right: 2px;
      }
    }
    &-next {
      right: 41px;
      z-index: 2;
      background-image: none;
      &-bg {
        position: absolute;
        z-index: 1;
        width: 21.7%;
        height: 100%;
        right: 0;
        top: 0;
        background-image: linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.8) 75%,#fff);
      }
      .iconfont {
        left: 2px;
      }
    }
  }
}
