.ai-chat {
  height: 100%;
  width: 400px;
  .ai-chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .ant-card-extra {
    cursor: pointer;
  }
  .ant-card-body {
    height: calc(100% - 56px);
  }
  .input-container {
    padding: 10px;
    background-color: #fff;
    margin-top: 10px;
    fill: #fff;
    border: 1px solid #e0e3e6;
    border-radius: 16px;
    stroke-width: 2px;
    stroke: #d9d9d9;
    filter: drop-shadow(0px 0px 11px rgba(0, 0, 0, 0.05));
    transition: border-color 0.3s;
    .input-box {
      .edit-area {
        max-height: 100px;
        overflow: hidden auto;
      }
      .pre-prompt {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        line-height: 1.7;
        background-color: #e6eaf0;
        border-radius: 4px;
        padding: 4px 8px 3px;
        font-size: 14px;
        font-weight: 500;
      }
      .content {
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
        font-size: 14px;
        line-height: 30px;
      }
    }
    .input-tools {
      margin-top: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      .ant-select {
        --ant-border-radius: 15px;
      }
    }
  }

  .message-scroll {
    margin: 10px 0;
    // height: 600px;
    // height: 100%;
    // overflow-x: hidden;
    // overflow-y: auto;
  }
  .message-item {
    display: flex;
    margin: 10px 0;
    &.user {
      justify-content: flex-end;
      .message-box {
        background-color: #0000000d;
      }
    }
    &.assistant {
      .message-box {
        background-color: #fae3e5;
      }
    }
    .message-box {
      max-width: 75%;
      border-radius: 12px;
    }
    .message-content {
      padding: 16px;
      // max-height: 300px;
      // overflow-y: auto;
    }
    .message-tools {
      padding: 16px;
      border-top: 1px solid #ececec;
    }
    .result-item {
      margin-top: 12px;
      p {
        margin-bottom: 12px;
        word-break: break-word !important;
      }
    }
  }
}
