/**index.wxss**/
@import "/style/theme.less";
@import "/style/form.less";

page {
  min-height: 100vh;
  .t-popup--bottom {
    padding-bottom: 16rpx;
  }
}

.search {
  background-color: white;
  // margin-bottom: 32rpx;
  padding: 16rpx 32rpx;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;

  &-tabs {
    margin-top: 16rpx;

    &-item {
      border-radius: 8px;
      height: 60rpx;
      line-height: 56rpx;
      margin-right: 32rpx;
      padding: 0 32rpx;
      border: 2rpx solid #E6E6E6;
      color: @tx3;
      display: flex;
      align-items: center;

      &.active {
        color: white;
        background-color: @mainColor;
        border: 2rpx solid @mainColor;
      }

      &.text-nowrap {
        padding-right: 0;
      }
    }
  }
}

.scrollarea {
  flex: 1;
  padding: 0 30rpx;

  .container {
    background-color: white;
    box-shadow: 0rpx 1rpx 7rpx -1rpx rgba(55, 139, 152, 0.15);
    border-radius: 24rpx;

    &.pad {
      padding: 0rpx 32rpx;
    }
  }

  .list {
    &-item {
      padding: 40rpx 0rpx;

      &-avatar {
        width: 120rpx;
        height: 120rpx;

        &-img {
          width: 100%;
          height: 100%;
        }
      }

      .txt {
        margin-bottom: 4rpx;
      }

      .role {
        border-radius: 12rpx;
        background-color: rgba(57, 178, 197, 0.1);
        border: 1rpx solid @mainColor;
        color: @mainColor;
        height: 44rpx;
        line-height: 42rpx;
        display: inline-block;
        padding: 0 16rpx;
        font-size: 22rpx;
      }

      .title {
        max-width: 100%;
      }

      .description {
        width: 60vw;
        overflow: hidden;
      }

      .empty {
        width: 1rpx;
        height: 10rpx;
      }
    }
  }
}

.popup {
  max-height: 80vh;
  overflow-y: hidden;
  .popup-title {
    padding: 16rpx 30rpx;
    border-bottom: @border;
  }

  .popup-filter {
    padding: 0 30rpx;

    .filter-item {
      padding: 30rpx 0;
      min-height: 108rpx;
      line-height: 48rpx;
      border-bottom: @border;

      &-img {
        flex: 0 0 36rpx;
        height: 36rpx;
        display: inline-block;
        margin-left: 8rpx;
      }
    }
  }

  .popup-footer {
    border-top: @border;
    height: 108rpx;
    padding: 0 30rpx;

    .btn {
      height: 88rpx;
      flex: 0 0 30%;
      text-align: center;
      border-radius: 12rpx;
      font-size: 34rpx;

      &-outline {
        line-height: 86rpx;
        color: @mainColor;
        border: 1px solid @mainColor;
      }

      &-primary {
        line-height: 88rpx;
        background-color: @mainColor;
        color: white;
      }
    }
  }
}