.index-box {
  overflow: hidden;
  background-color: $bg_fff;

  .header {
    width: 100%;
    height: 44px;
    background-color: $bg_fff;
    padding: 10px 15px;

    .logo {
      width: 78px;
      height: 20px;
    }

    .to-app {
      display: inline-block;
      text-align: center;
      margin-left: 10px;
      width: 88px;
      height: 22px;
      border: 1px solid $bg_active;
      border-radius: 11px;
      background-color: $bg_fff;
      font-size: 12px;
      color: $active;
      vertical-align: top;
    }

    .search {
      font-size: 22px !important;
      float: right;
      margin-top: -6px;
    }
  }

  .index-swiper {
    margin-top: 7px;
    height: 168px;

    .swiper-container {
      height: 100% !important;

      .swiper-slide {
        img {
          width: 100%;
          height: 168px;
          border-radius: 6px;
        }
      }
    }

    .swiper-pagination {
      width: 100%;
      left: 188px !important;
      text-align: right;
      padding-right: 55px;

      .pagination-item {
        width: 8px !important;
        height: 8px !important;
        background-color: $bg_fff !important;
        opacity: 0.5;
      }

      .active {
        width: 18px !important;
        height: 7px !important;
        border-radius: 4px !important;
        background-color: $bg_fff !important;
        opacity: 1;
      }
    }
  }


  /*热门推荐轮播*/
  .category {
    .swiper-container {
      height: 106px !important;
      margin-top: 15px;
      margin-bottom: 5px;
      touch-action: pan-y;
      border-radius: 3px;

      .swiper-pagination {
        bottom: 5px !important;

        .pagination-item {
          width: 8px !important;
          height: 8px !important;
          background-color: $bg_fff !important;
          opacity: 0.5;
        }

        .active {
          background-color: $bg_fff !important;
          opacity: 1;
        }
      }
    }
  }


  /*
  页面tab
  */
  .tabbox {
    width: 100%;
    height: 113px;
    padding: 20px 17px;

    ul {
      display: flex;
      justify-content: space-between;
      text-align: center;

      li {
        width: 64px;

        img {
          width: 40px;
          height: 40px;
          border-radius: 50%;
        }

        span {
          color: $color_606;
          font-size: 14px;
          display: block;
          margin-top: 10px;
        }
      }
    }
  }

  /*
  近期直播
  */
  .lives {
    width: 100%;
    padding: 20px 15px 0 15px;

    .title {
      font-size: 16px;
      color: $color_333;
      display: inline-block;
    }
  }

  .scroll-box {
    width: 100%;
    overflow: auto;
    position: relative;
    margin-top: 15px;

    .scroll-list {
      height: 100%;
      display: flex;
      overflow: hidden;
      position: absolute;

      .scroll-item {
        display: inline-block;
        width: 301px;
        height: 100%;
        margin-right: 20px;
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
        background-color: $bg_fff;
        border: 1px solid rgba(0, 0, 0, .1);
        border-radius: 5px;

        .item-box {
          width: 100%;
          height: 100%;
          padding: 10px;
          display: flex;
          position: relative;

          .no-start, .start {
            display: inline-block;
            position: absolute;
            top: 15px;
            padding: 3px 8px;
            color: $white;
            font-size: 12px;
            text-align: center;
            border-radius: 0 20px 20px 0;
          }

          .no-start {
            background-color: $red;
          }

          .start {
            background-color: $bg_active;
          }

          .item-img {
            width: 100px;
            height: 72px;
            margin-right: 8px;
          }

          .item-content .item-title, .item-teacher, .item-time {
            max-width: 173px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap
          }

          .item-btn {
            width: 49px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            background: linear-gradient(60deg, $bg_active 0%, $bg_0080FF 100%);
            border-radius: 10px;
            font-size: 14px;
            color: $white;
            margin-top: 10px;
          }

          .item-title {
            font-size: 16px;
            color: $color_333;
            height: 16px;
            line-height: 16px;
          }

          .item-teacher {
            font-size: 14px;
            color: $color_555;
            margin-top: 6px;
          }

          .item-time {
            font-size: 12px;
            color: $color_999;
            margin-top: 11px;
          }
        }
      }
    }
  }

  ::-webkit-scrollbar {
    display: none;
  }


  .category-vip {
    width: 100%;
    height: 106px;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 5px;

    img {
      width: 100%;
      height: 106px;
      border-radius: 5px;
    }
  }

  /*课程公共样式*/
  .category {
    width: 100%;
    padding: 20px 15px 15px 15px;

    .title {
      font-size: 16px;
      color: $color_333;
      display: inline-block;
    }

    .more {
      color: $active;
      font-size: 12px;
      float: right;
    }
  }

  .course-detail {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: $bg_fff;

    .audition {
      position: absolute;
      top: 10px;
      width: 54px;
      height: 18px;
      line-height: 18px;
      background-color: $bg_active;
      font-size: 12px;
      color: $white;
      text-align: center;
      border-radius: 1px;

      .iconerji {
        font-size: 14px !important;
        display: inline-block;
        margin-right: 4px;
      }
    }


    .course-price {
      margin-top: 15px;

      .new {
        color: $red;
        font-size: 16px;
      }

      .old {
        color: $color_999;
        font-size: 12px;
        display: inline-block;
        margin-left: 15px;
        text-decoration: line-through;
      }
    }

    .isbuy {
      display: inline-block;
      margin-top: 15px;
      width: 61px;
      height: 18px;
      background-color: $bg_active;
      border-radius: 9px;
      color: $white;
      font-size: 12px;
      text-align: center;
      line-height: 18px;
    }
  }

  /*
  横向滚动
  */
  .scroll-box {
    height: 92px;
  }


  /*
  底部查看所有课程
  */
  .all-course {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 50px;

    p {
      color: $color_555;
      font-size: 16px;
      margin-bottom: 10px;
    }

    span {
      color: $color_999;
      font-size: 12px;
    }
  }

  /*
    直播间预约
  */
  .live-room-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, .6);

    .live-room-content {
      background-color: $bg_fff;
      width: 280px;
      height: 400px;
      border-radius: 10px;
      margin: 110px auto 0 auto;
      padding-top: 20px;

      .course-banner {
        width: 100%;
        height: 118px;
        display: flex;
        justify-content: space-between;

        .left {
          width: 43px;
          height: 73px;
          background-color: #fdd9e9;
          border-radius: 0 10px 10px 0;
          margin-top: 22px;

          span {
            display: inline-block;
            width: 37px;
            height: 63px;
            background-color: #FCC2DA;
            border-radius: 0 10px 10px 0;
            margin-top: 5px;
            margin-right: 6px;
          }
        }

        .right {
          width: 43px;
          height: 73px;
          background-color: #fce4c4;
          border-radius: 10px 0 0 10px;
          margin-top: 22px;

          span {
            display: inline-block;
            width: 37px;
            height: 63px;
            background-color: #FAD29F;
            border-radius: 10px 0 0 10px;
            margin-top: 5px;
            margin-left: 6px;
          }
        }


        .center {
          img {
            width: 165px;
            height: 118px;
            border-radius: 10px;
          }
        }
      }

      .course-dec {
        text-align: center;
        margin-top: 10px;

        .title {
          color: $color_333;
          font-size: 14px;
        }

        .teacher {
          color: $color_333;
          font-size: 16px;
          margin: 10px 0 5px 0;
        }

        .time {
          color: $active;
          font-size: 12px;
        }
      }

      .course-info {
        margin-top: 10px;
        height: 115px;
        padding: 13px 0;
        border-top: 1px solid $border_e7eaf1;
        border-bottom: 1px solid $border_e7eaf1;

        ul {
          margin: 0 auto;
          width: 195px;
          height: 90px;
          overflow: hidden;

          li {
            color: $color_666;
            font-size: 12px;
          }

          li:nth-child(1) {
            color: $color_333;
            font-size: 14px;
          }
        }
      }

      .course-subscribe {
        text-align: center;

        button {
          margin-top: 12px;
          width: 60px;
          height: 27px;
          background-color: $bg_active;
          border-radius: 14px;
          font-size: 14px;
          color: $white;
          border: none;
        }

        span {
          display: inline-block;
          margin-top: 12px;
          font-size: 16px;
          color: $redprice;
        }
      }
    }

    .live-room-close {
      text-align: center;
      margin-top: 20px;

      .close {
        font-size: 22px !important;
        color: $white;
      }
    }
  }

  .subscribe-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .8);
    z-index: 2;

    .close-subscribe {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0;
    }

    .subscribe-content {
      width: 300px;
      height: 155px;
      background-color: $bg_fff;
      border-radius: 3px;
      position: absolute;
      top: 50%;
      margin-top: -150px;
      left: 50%;
      margin-left: -150px;
      text-align: center;
      padding-top: 20px;

      button {
        background-color: $bg_18B4ED;
        font-size: 16px;
        color: $white;
        width: 135px;
        height: 30px;
        border-radius: 15px;
        border: none;
        display: block;
        margin: auto;
      }

      .title {
        font-size: 16px;
        color: $color_333;
        display: block;
        height: 15px;
        line-height: 15px;
      }

      .follow {
        margin-top: 20px;
      }

      .nofollow {
        margin-top: 15px;
      }

      .tips {
        font-size: 12px;
        color: $color_555;
        display: block;
        height: 12px;
        line-height: 12px;
        margin-top: 7px;
      }

      .iphone {
        margin-top: 15px;
      }
    }

    .iphone-content {
      width: 300px;
      height: 191px;
      background-color: $bg_fff;
      border-radius: 3px;
      position: absolute;
      top: 50%;
      margin-top: -150px;
      left: 50%;
      margin-left: -150px;
      text-align: center;
      padding: 15px 20px;

      .title {
        font-size: 16px;
        color: $color_333;
        display: block;
        height: 15px;
        line-height: 15px;
      }

      .dec {
        font-size: 14px;
        color: $color_666;
        display: block;
        margin-top: 15px;
        text-align: left;
        height: 33px;
        line-height: 18px;
      }

      input {
        width: 100%;
        height: 30px;
        padding-left: 15px;
        border: 1px solid $border_ccc;
        margin-top: 15px;
      }

      input:focus {
        border: 1px solid $bg_active;

      }

      .submit {
        width: 260px;
        height: 30px;
        background-color: $bg_18B4ED;
        border-radius: 3px;
        font-size: 16px;
        color: $white;
        border: none;
        margin-top: 20px;
      }
    }

    .server-content {
      height: 226px;
      padding: 20px;

      .title {
        font-size: 18px;
        color: $active;
        height: 24px;
        line-height: 24px;

        i {
          font-size: 24px;
          margin-right: 10px;
        }

        span {
          position: relative;
          top: -3px;
        }
      }

      .dec {
        height: 53px;
      }
    }
  }


  .success {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 32px;
    background-color: $bg_000;
    border-radius: 15px;
    margin-left: -50px;
    margin-top: -16px;
    opacity: .6;
    color: $white;
    font-size: 16px;
    text-align: center;
    line-height: 32px;
  }

  //.LazyLoad {
  //  //  width: 100%;
  //  //  min-height: 100px;
  //  //  background: url('http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/img/index/logo.png') no-repeat;
  //  //  background-position: center;
  //  //}
  //  //.is-visible {
  //  //  background-image: none;
  //  //}
}

.borderTop {
  width: 100%;
  height: 8px;
  background-color: #F3F4F8;
}
