//需要重写的样式放这里
.elx-xmarkdown-container {
  padding: 0 ;
  max-width: 100%;
  overflow-x: auto;
}
.el-bubble-content p{
  margin: 0 !important;
}
.el-bubble-content{
  padding: 10px !important;
  color: rgba(0,0,0,0.85) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 28px !important;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.chat-with-id-container{
  //待定
  //max-width: 1000px !important;
}
.el-bubble-content-wrapper {
  --bubble-content-max-width: 800px;
  max-width: 100%;
}
.markdown-language-header-div{
 z-index: 0 !important;
}

/* 移动端 markdown 优化 */
@media (max-width: 768px) {
  .el-bubble-content-wrapper {
    --bubble-content-max-width: 100%;
    max-width: calc(100vw - 80px);
  }

  .el-bubble-content {
    font-size: 14px !important;
    line-height: 24px !important;
    padding: 8px !important;
  }

  .elx-xmarkdown-container {
    max-width: 100%;
    overflow-x: auto;
  }

  /* markdown 内容元素优化 */
  .markdown-body {
    font-size: 14px !important;
    max-width: calc(100vw - 80px);


    pre {
      max-width: 100%;
      overflow-x: auto;
    }

    code {
      word-break: break-all;
    }

    table {
      display: block;
      max-width: 100%;
      overflow-x: auto;
    }

    img {
      max-width: 100%;
      height: auto;
    }
  }
}
