.chat-container {
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 0;

  .chat-message {
    padding: 10px;
    border-radius: 5px;
    max-width: 100%;
    margin-bottom: 16px;
    word-wrap: break-word; // 自动换行

    &.user-message {
      max-width: 93.5%;
      padding: 9px 12px;
      align-self: flex-end;
      background-color: #e6f2ff;
    }
    &.bot-message {
      align-self: flex-start;
      padding: 0;

      .bot-message-content {
        .bot-message-avatar {
          display: flex;
          flex-direction: row;
          justify-content: flex-start;
          align-items: center;
          margin-bottom: 8px;

          & > img {
            width: 24px;
            height: 24px;
            margin-right: 8px;
          }
          .bot-message-status {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            height: 32px;
            padding: 12px;
            background: #f5f7fa;
            border-radius: 8px;
            font-weight: 400;
            font-size: 12px;
            color: #3d424d;
          }
        }
        .bot-message-text {
          .think-text {
            font-weight: 300;
            font-size: 12px;
            color: #7a8599;
            line-height: 16px;
            padding-left: 32px;
            padding-right: 8px;
            text-align: justify;
            font-style: normal;
            margin-bottom: 12px;
            overflow: hidden;
          }
          .msg-content {
            padding: 0 8px;
            padding-left: 20px;

            .charts-content {
              position: relative;
              width: 460px;
              height: 200px;
              margin-top: 24px;
              margin-bottom: 24px;
              .charts-detail-btn {
                display: none;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                cursor: pointer;
                position: absolute;
                right: 0;
                top: -20px;
                width: 60px;
                height: 24px;
                z-index: 99;
                background: rgba(41, 44, 51, 0.7);
                border-radius: 4px;
                color: #fff;
                font-size: 12px;
              }
              &.canReadDetail {
                &:hover {
                  .charts-detail-btn {
                    display: flex;
                  }
                }
              }
            }
          }
        }
        .copyBtn {
          display: inline-block;
          width: 24px;
          height: 24px;
          margin-left: 20px;
        }
      }
    }
  }
}
