.user-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  row-gap: 2px;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  margin-top: 8px;
  overflow: hidden;
  overflow-y: auto;

  // 取消滚动链接
  overscroll-behavior-y: contain;
  list-style-type: none;

  :deep(.el-loading-mask) {
    background-color: var(--background-mask);
  }

  &-box {
    position: relative;
    margin-left: 20px;
  }

  &-mask {
    transition: background-color 0.3s ease;

    &.show {
      position: fixed;
      inset: 66px 0 0;
      background-color: var(--background-black-half);
    }
  }

  .list-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--font-light);
  }

  &-wrapper {
    position: absolute;
    top: 0;
    right: -16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 100%;
    padding: 8px 12px;
    background-color: var(--background-secondary);
    border-radius: 8px;
    transition: transform 0.3s ease;
    transform: translateX(100%);

    &.show {
      transform: translateX(-16px);
    }
  }

  &-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
  }
}

@media only screen and (min-width: 640px) {
  .user-list-wrapper {
    position: relative;
    top: 0;
    right: 0;

    // right: -200px;
    transform: translateX(0);

    &.show {
      transform: translateX(0);
    }
  }

  .user-list-mask.show {
    position: relative;
    top: initial;
    right: initial;
    bottom: initial;
    left: initial;
    background-color: transparent;
  }
}
