.page-has-left {
  position: relative;
  min-height: 100%;

  .home-center {
    width: 100%;
    height: 100%;
    padding-right: 240px;

    > .ant-alert {
      margin-top: 0;
    }
  }

  .home-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 230px;
    min-height: 100%;
    padding-bottom: 44px;

    &.role-promotion .panel-tepl:first-child {
      margin-top: 0;
    }
  }

  .min-h100 {
    min-height: 100% !important;
  }
}

.panel-tepl {
  position: relative;
  padding: 15px;
  background-color: #fff;
  .border-radius(@border-radius-base);

  &.h260 {
    height: 260px;

    .img-response {
      text-align: center;

      img {
        max-width: 100%;
        width: auto;
        height: 100%;
      }
    }
  }

  .ad-img {
    display: block;
    margin: -15px;

    img {
      width: 100%;
      vertical-align: middle;
    }
  }

  .btn-yellow {
    background-color: #ffae00;
    border-color: #ffae00;
    cursor: default;
  }

  .btn-gray {
    background-color: #e1e1e1;
    border-color: #e1e1e1;
    cursor: default;
  }

  &.has-active:hover {
    background-color: #eef4fc;
  }

  &.has-icon {
    .qmIcon {
      display: inline-block;
      width: 40px;
      height: 40px;
      line-height: 40px;
      font-size: 22px;
      color: #fff;
      text-align: center;
      background-color: #85cfee;
      .border-radius(50%);
    }
  }

  &.has-avatar {
    .img-avatar {
      display: inline-block;
      vertical-align: middle;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      overflow: hidden;
      margin-right: 5px;
    }

    img {
      width: 100%;
      vertical-align: middle;
    }
  }

  .tag-alert {
    position: relative;
    top: -1px;
    display: inline-block;
    height: 13px;
    font-size: 12px;
    line-height: 13px;
    color: #fff;
    background-color: @highlight-color;
    padding: 1px 2px;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    cursor: default;

    span {
      display: inline-block;
      transform: scale(0.8);
    }
  }

  .list-item {
    li {
      .oneLineEllipsis;
      padding: 5px 0;

      > a {
        color: @text-color;
      }
    }
  }

  .section-title {
    font-size: 12px;
    font-weight: normal;
    margin: 5px 0;
  }

  .section-text {
    color: #999;
    line-height: 20px;
  }
}

.penal-tepl-title {
  font-size: 14px;
  margin: 10px 0;
  .oneLineEllipsis;

  .text-tips {
    font-size: 12px;
    font-weight: normal;
    color: #999;
    padding-left: 10px;
  }

  &.small {
    margin: 5px 0;
  }

  .pull-right {
    font-size: 12px;
    margin-right: 10px;
  }
}

.panel-highlight {
  background-color: #f7f7f7;

  .statistics-item {
    height: 100px;
    padding: 20px 0;
    text-align: center;

    strong {
      font-size: 22px;
      font-weight: normal;
      color: @primary-color;
    }

    p {
      padding-top: 5px;
    }
  }

  //图片方式实现图标展示
  .img-icon {
    display: inline-block;
    vertical-align: middle;
    width: 34px;
    height: 34px;
    background: url(//pic.qianmi.com/qmui/v0.2/img/boss-home-2.png) no-repeat 0 0;
    -webkit-background-size: 136px auto;
    background-size: 136px auto;

    &.icon1 {
      background-position: 0 0;
    }

    &.icon2 {
      background-position: -34px 0;
    }

    &.icon3 {
      background-position: -68px 0;
    }

    &.icon4 {
      background-position: -102px 0;
    }
  }

  //图标方式实现图标展示
  .img-icon-box {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 34px;
    height: 34px;
    text-align: center;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #fff;

    &::before {
      position: absolute;
      top: 0;
      left: 7px;
      width: 20px;
      font-size: 20px;
      line-height: 34px;
      color: #fff;
    }

    &.icon1 {
      background-color: #57b8e7;
    }

    &.icon2 {
      background-color: #4cd590;
    }

    &.icon3 {
      background-color: #20e0c8;
    }

    &.icon4 {
      background-color: #19caeb;
    }
  }

  .img-icon-title {
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
    margin-left: 16px;
  }
}

.panel-equal {
  .ant-col-12 {
    padding-right: 10px;
    padding-bottom: 10px;
  }

  .ant-col-6 {
    padding-right: 10px;
    padding-bottom: 10px;
  }

  .title {
    font-size: 20px;
  }

  &.four {
    color: #fff;

    .text-tips {
      color: #fff;
    }
  }

  .panel-highlight {
    height: 90px;
    padding: 20px 0;
    text-align: center;

    &.color-1 {
      background-color: #2bcbed;
    }

    &.color-2 {
      background-color: #35dec4;
    }

    &.color-3 {
      background-color: #59b8e9;
    }

    &.color-4 {
      background-color: #54d186;
    }
  }

  .text-tips {
    color: #999;
    padding-top: 5px;
  }
}

.panel-preview-popover {
  padding: 8px 0;

  .ant-row {
    text-align: center;
    padding-bottom: 10px;
  }

  .img-response {
    display: inline-block;
    width: 120px;
    height: 120px;
    margin-bottom: 5px;
    overflow: hidden;

    &.large {
      width: 120px;
      height: 120px;
      overflow: hidden;
    }
  }

  .enter-pc {
    display: block;
    text-align: center;
    margin: 0 -16px -16px;
    padding: 15px;
    border-top: 1px solid @border-color-split;
  }
}
