.window-box {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dialog-list {
  padding-left: 10px;
  height: calc(100% - 180px);
  overflow-y: auto;
  scroll-behavior: smooth; // 添加平滑滚动

  .dialogs {
    padding: 0 10px 10px 0;
  }
}

.sender {
  position: relative;
  flex-shrink: 0;

  .settings {
    height: 40px;
    position: relative;
  }

  .s-box {
    height: calc(100% - 20px);
  }

  .input-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 10px;
    padding: 5px;
    border-radius: 5px;
    position: relative;
    background: #292929;

    textarea {
      font-size: 14px;
      flex-grow: 1;
      border: none;
      resize: none;
      outline: none;
      padding: 7px 0 0 5px;
      background: transparent;
    }

    .btns {
      width: 100%;
      display: flex;
      height: 28px;
      position: relative;

      .right {
        position: absolute;
        right: 0px;
      }

      .right2 {
        position: absolute;
        right: 42px;
      }

      .right3 {
        position: absolute;
        right: 74px;
      }

      button {
        height: 28px;
        line-height: 16px;
        border-radius: 5px;
      }

      .btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
        color: #eee;
        padding-top: 1px;
        border-radius: 5px;

        &:hover {
          color: #fff;
          background: #3f3f3f;
        }

        &.actived {
          background: rgba(40, 100, 250, 0.8);
          border-radius: 5px;
        }

        i.actived {
          color: #4f77dd;
        }
      }
    }

    // 发送按钮
    .btn {
      .stop-box {
        position: absolute;
        width: 100%;
        height: 100%;
      }

      .spinner-box {
        width: 24px;
        height: 24px;
        border: 3px solid #5a5a5a;
        border-radius: 50%;
        box-sizing: border-box;
      }

      .fa-stop {
        font-size: 13px;
      }

      .fa-spinner-third {
        font-size: 22px;
      }
    }
  }
}

nz-resize-handle {
  .line {
    margin-top: 5px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
  }
}

.historyList {
  background: #555;
  position: absolute;
  top: 40px;
  right: 0;
}

.guide-box {
  height: 100%;
  flex-direction: column;

  i {
    font-size: 60px;
    margin-bottom: 6px;
  }

  .title {
    font-size: 20px;
  }

  .text {
    color: #999;
    text-align: center;
  }
}



.list-box {
  border-radius: 5px;
  border: 1px solid #ccc;
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 28px;
  z-index: 0;
  pointer-events: none;
  background: #3f3f3f;
}

.btn2 {
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: #ccc;
  padding-top: 1px;
  border-radius: 5px;
  cursor: pointer;

  &:hover {
    color: #fff;
  }
}

.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;

  .resource-item {
    display: flex;
    align-items: center;
    font-size: 10px;
    border-radius: 5px;
    padding: 0 5px;
    border-radius: 2px;
    border: 1px solid #666;

    &:hover {
      background-color: #444;
    }

    .resource-name {
      margin: 0 5px;
      color: #fff;
    }

    .btn {
      cursor: pointer;
      font-size: 12px;
      color: #ccc;
    }
  }
}


// 模式切换按钮
.btn {
  &.mode {
    width: 50px !important;

    span {
      margin-left: 5px;
      font-size: 12px;
    }

  }
}