.chatContainer {
  height: 100%;
  display: flex;
  flex-direction: column;

  .chatTab {
    position: relative;
    background: #fff;
    height: 50px;

    .addChatType {
      position: absolute;
      right: 0px;
      top: 7px;
    }

    .arco-tabs-nav {
      padding-right: 90px;
    }
  }

  .chatContent {
    display: flex;
    row-gap: 10px;
    flex-direction: column;
    justify-content: end;
    flex: 1;
    height: calc(100vh - 80px);
  }

  .chatInputContainer {
    height: 180px;

    .chatAction {
      display: flex;
      column-gap: 10px;
      justify-content: space-between;

      .leftAction {
        display: flex;
        column-gap: 10px;
      }

      .chatActionItem {
        display: flex;
        column-gap: 4px;
        align-items: center;
        padding: 2px 5px;
        background: #fff;
        border-radius: 3px;
        cursor: pointer;
        color: #4e5969;

        img {
          width: 16px;
        }
      }
    }

    .chatInput {
      border-radius: 10px;
      border: 1px solid #165dff;
      background: #fff;
      position: relative;
      .languageArea {
        position: absolute;
        right: 1px;
        top: 1px;
      }

      .arco-tabs-nav::before {
        height: 0px;
      }

      .chatInputWithUpload {
        display: flex;
        padding: 10px;
        column-gap: 10px;
      }

      .chatInputTextarea {
        width: 100%;
        height: 100px;
        outline: none;
        resize: none;
        border: none;
        line-height: 24px;
      }

      .sendBtnArea {
        display: flex;
        padding: 4px 10px;

        .audioBtn {
          cursor: pointer;
          color: #165dff;
          font-size: 28px;
        }

        .disableSend {
          background: #abafc3 !important;
        }

        .send {
          background: #165dff;
          border-radius: 10px;
          color: #fff;
          width: 40px;
          height: 40px;
          cursor: pointer;
          text-align: center;
          line-height: 36px;
          img {
            width: 32px;
          }
          .iconfont {
            font-size: 24px;
          }
        }
      }
    }
  }

  .chatLogContainer {
    height: calc(100vh - 262px);
    padding: 10px 20px 10px 0;

    .arco-spin {
      width: 100%;
    }

    .prologue {
      margin-bottom: 20px;
      background: #ffffff;
      box-shadow: 0px 3px 20px 0px rgba(22, 45, 95, 0.04);
      border-radius: 10px;
      padding: 10px;
      display: flex;
      column-gap: 10px;
      .answerLogo {
        width: 72px;
        text-align: center;
        img {
          width: 32px;
        }
      }
    }

    .loadMore {
      color: #165dff;
      cursor: pointer;
      text-align: center;
      margin-bottom: 20px;
    }

    img,
    video {
      max-width: 100%;
    }

    .chatlogItem {
      width: 100%;

      .logTime {
        text-align: right;
        color: rgba(78, 89, 105, 0.9);
        margin: 10px 0;
      }

      .questionArea {
        display: flex;
        column-gap: 10px;

        .questionLogo {
          width: 72px;
          text-align: center;
          margin-left: 10px;
        }

        .questionContent {
          display: flex;
          column-gap: 10px;
          line-height: 24px;
          align-items: center;
          flex: 1;

          .edit {
            width: 20px;
            height: 20px;
            cursor: pointer;
          }
        }
      }

      .answerArea {
        margin-top: 10px;
        background: #fff;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        column-gap: 10px;

        .answerContent {
          flex: 1;
          .answerContentText {
            pre,
            code {
              white-space: initial;
            }
          }

          .gif {
            width: 300px;
            height: 200px;
          }
        }

        .answerLogo {
          width: 72px;
          text-align: center;

          img {
            width: 32px;
          }

          .aiRoleName {
            font-size: 12px;
            color: #165dff;
          }
        }

        .actionArea {
          .actionBtn {
            display: flex;
            column-gap: 10px;
            align-items: center;
            margin-top: 10px;

            .actionBtnItem {
              width: 20px;
              height: 20px;
              cursor: pointer;
            }
          }
        }
      }
    }
  }
}

.aiSessionDrawer {
  .arco-drawer-footer {
    justify-content: center;
    display: flex;
  }

  .chatTab {
    position: relative;
    background: #fff;
    height: 50px;

    .addChatType {
      position: absolute;
      right: 0px;
      top: 7px;
    }

    .arco-tabs-nav {
      padding-right: 90px;
    }
  }

  .formArea {
    padding: 10px;
  }
}
.spaceBetweenFlex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatDrawer {
  .ant-drawer-wrapper-body {
    overflow: hidden;
  }
  .ant-drawer-body {
    padding: 10px !important;
    li {
      padding: 0px;
    }
  }
  .robotDescArea {
    position: relative;
    /* background: url("~@/assets/static/image/bg1.png") 100% no-repeat; */
    background-size: cover;
    border-radius: 3px;
    padding: 67px 13px 13px 13px;
    flex: 1;
    overflow: hidden;
    .bgPng {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0px;
    }
    .title {
      font-weight: 500;
      font-size: 16px;
      color: #ffffff;
      position: absolute;
      top: 27px;
      left: 97px;
    }
    .robotSet {
      font-weight: 500;
      font-size: 16px;
      color: #ffffff;
      position: absolute;
      top: 10px;
      right: 10px;
      cursor: pointer;
    }
    .hiPng {
      position: absolute;
      width: 17px;
      top: -73px;
      left: 50px;
    }
    .robotPng {
      position: absolute;
      top: 0px;
      left: 14px;
      width: 71px;
      object-fit: cover;
      z-index: 10;
    }
    .robotDesc {
      background: rgba(255, 255, 255, 0.5);
      border: 1px solid #ffffff;
      width: 100%;
      height: 195px;
      position: relative;
      z-index: 9;
      border-radius: 5px;
      color: #4e5969;
      line-height: 28px;
      padding: 15px 10px;
      backdrop-filter: blur(2px);
      span {
        font-weight: 500;
        color: #000000;
      }
    }
  }
  .chat-box {
    display: flex;
    width: 100%;
    height: 100%;
    column-gap: 10px;
    .left {
      width: 30%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .arco-tabs-nav {
        justify-content: center;
      }
      .arco-tabs-nav-tab {
        flex: none;
      }

      .refresh {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;

        .tags {
          width: 68px;
          height: 24px;
          background: #f7f7f9;
          border-radius: 6px 6px 6px 6px;
          line-height: 24px;
          text-align: center;
          font-weight: 400;
          font-size: 12px;
          color: #666666;
          cursor: pointer;
        }
        .activeTag {
          background: rgba(22, 93, 255, 0.1);
          color: rgba(22, 93, 255, 0.8);
        }
      }
      .faqList {
        overflow-y: auto;
        padding: 0 15px 0 0;
        .faqItem:hover {
          background: rgba(22, 93, 255, 0.05);
          .lineClamp {
            color: rgba(22, 93, 255, 0.8);
          }
        }
        .faqItem {
          margin-bottom: 5px;
          display: flex;
          align-items: center;
          cursor: pointer;
          font-size: 16px;
          padding: 10px 0;
          .cricle {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-right: 10px;
          }
          .lineClamp {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #000;
            font-weight: 500;
            width: 96%;
          }
        }
      }
    }
    .right {
      width: 70%;
      height: calc(100vh - 80px);
      padding: 0 10px;
      background-color: #f6f7fb;
    }
  }
}
.chatFileContainer {
  display: flex;
  column-gap: 10px;
  flex-wrap: wrap;
  row-gap: 10px;
  .fileItem {
    width: 100px;
    height: 100px;
    border: 1px solid rgb(229, 230, 235);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    img {
      width: 100%;
      object-fit: contain;
    }
  }
  .otherImg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100px;
    .icon-play {
      position: absolute;
      color: #fff;
      font-size: 28px;
    }
  }
}
.chatContainer {
  .chatLogContainer {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .chatContainer {
    flex: 1;
    padding: 20px;
  }
  .commonScroll {
    overflow-y: auto;
  }
  .loadMore {
    color: #1890ff;
    cursor: pointer;
    text-align: center;
  }
  .chatlogItem {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .questionArea,
  .answerArea {
    display: flex;
    align-items: flex-start;
  }
  .questionLogo,
  .answerLogo {
    margin-right: 10px;
  }
  .questionContent,
  .answerContent {
    flex: 1;
  }
  .answerContentText {
  }
  .actionArea {
    display: flex;
    justify-content: space-between;
  }
  .actionBtnItem {
    cursor: pointer;
  }
  .edit {
    cursor: pointer;
    width: 16px;
    height: 16px;
  }
  .logTime {
    text-align: right;
    color: #999;
  }
  .gif {
    width: 50px;
    height: 50px;
  }
}
/*common滚动条*/
.commonScroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.commonScroll::-webkit-scrollbar-track {
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 1);
  display: none;
}
.commonScroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  -webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.15);
  background: rgba(227, 227, 227, 1);
}
.commonScroll {
  overflow-y: auto;
}
