@fontSize: 14px;
@themeColor: #FF7594;
@spacing: 15px;
@deep: ~'>>>';

// 滚动
.scroll-box(){
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

// 头像 标签
.header-box(){
  height: 54px;
  .img{
    margin-right: @spacing;
    width: 54px;
    height: 54px;
    border: solid 2px @themeColor;
    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 0;
    height: 54px;
    overflow: hidden;
    box-sizing: border-box;
    .name{
      padding-right: 20px;
      height: 20px;
      line-height: 20px;
      font-size: 16px;
      font-weight: 500;
      .vip{
        position: relative;
        top: 50%;
        transform: translate(0, -50%);
        margin: 0 0 0 4px;
        display: inline-block;
        width: 16px;
        height: 20px;
        background: url('../images/icon_vip.png') no-repeat center center;
        background-size: 16px auto;
        vertical-align: top;
      }
    }
    .label{
      margin-top: 6px;
      span{
        display: inline-block;
        margin-right: 8px;
        padding: 0 5px;
        line-height: 16px;
        border-radius: 8px;
        font-size: 10px;
        color: @themeColor;
        background: #FFF2F5;
      }
    }
  }
}

// 图标 + 数字
.count-box(){
  height: 16px;
  overflow: hidden;
  .count-item{
    position: relative;
    margin: 0 8px 0 0;
    padding-left: 15px;
    background: url('../images/icon_stars.png') no-repeat center left;
    background-size: auto 10px;
    button{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
    }
    &:first-child{
      margin: 0;
    }
    .text{
      line-height: 16px;
      font-size: 11px;
      color: #999999;
    }
    &.stars{
      background-image: url('../images/icon_stars.png');
      background-size: auto 10px;
      &.active{
        background-image: url('../images/icon_stars_active.png');
        background-size: auto 10px;
      }
    }
    &.collect{
      background-image: url('../images/icon_collection.png');
      background-size: auto 10px;
      &.active{
        background-image: url('../images/icon_collection_active.png');
        background-size: auto 10px;
      }
    }
    &.watch{
      background-image: url('../images/icon_watch.png');
      background-size: auto 10px;
    }
    &.time{
      background-image: url('../images/icon_time.png');
      background-size: auto 10px;
    }
    &.source{
      background-image: url('../images/icon_source.png');
      background-size: auto 10px;
    }
    &.comment{
      background-image: url('../images/icon_comment.png');
      background-size: auto 10px;
    }
    &.none{
      padding: 0;
      background: none;
    }
  }
}

// 评论 回复
.comment-box(){
  .comment-item{
    margin-bottom: 10px;
    .img{
      margin-right: 10px;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      overflow: hidden;
    }
    .comment-info{
      overflow: hidden;
      .name{
        height: 35px;
        line-height: 35px;
        color: #999999;
      }
      .old-comment{
        margin-bottom: 6px;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 10px;
        color: #999999;
        background: #F2F2F2;
        .text{
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
        }
      }
      .comment-text{
        margin-bottom: 5px;
        line-height: 20px;
      }
      .count-box{
        .count-box();
      }
    }
  }
  .input-box{
    position: fixed;
    left: 0;
    bottom: 0;
    padding: 1px 0;
    border: solid 1px #E8E8E8;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    input{
      padding: 0 @spacing;
      width: 100%;
      height: 40px;
      box-sizing: border-box;
    }
  }
}
