.chat-msg-list {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  overflow-y: auto;

  // 取消滚动链接
  overscroll-behavior-y: contain;

  // 强制硬件加速
  transform: translate3d(0, 0, 0);
  perspective: 1000;

  .loading {
    position: absolute;
    top: 50px;
    z-index: 20;
    gap: 4px;
    width: 100%;
    padding: 16px 0;
    font-size: 14px;
    color: var(--font-light-1);
    background: linear-gradient(180deg, rgb(50, 54, 68) 0%, transparent 85%);

    svg {
      @keyframes rotate {
        from {
          transform: rotate(0);
        }

        to {
          transform: rotate(360deg);
        }
      }

      animation: rotate 2s linear infinite;
    }
  }

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

.new-msgs-tips {
  position: absolute;
  right: 20px;
  bottom: 16px;
  display: flex;
  column-gap: 4px;
  align-items: center;
  padding: 2px 12px;
  font-size: 14px;
  color: var(--el-color-primary-light-3);
  cursor: pointer;
  background-color: var(--background-secondary);
  border: 1px solid var(--color-white);
  border-radius: 12px;
  box-shadow: 0 0 1px 1px var(--el-box-shadow-dark);

  &:hover {
    background-color: #1a1c22;
  }
}

.virtual-list {
  position: relative;
  width: 100%;
  height: 99%; // 100%时谷歌浏览器会出现无法滚动问题
  padding-right: 20px;
  padding-left: 20px;
  overflow-y: auto;
}
