.ai-sec {
  position: fixed;
  right: 30px;
  top: 250px;
  z-index: 1000;
  width: 350px;
}
.ai-sec .ai-sec-header {
  height: 64px;
  background: #00A3FF;
  border-radius: 8px 8px 0px 0px;
  box-shadow: 0px 4px 11px 0px rgba(228, 228, 228, 0.5);
}
.ai-sec .ai-sec-header .ai-icon {
  width: 49px;
  height: 57px;
  background: url('../../images/pj/v1/18.png') no-repeat;
  background-size: 100% 100%;
  margin-left: 24px;
  position: relative;
  top: 7px;
}
.ai-sec .ai-sec-header .ai-title {
  font-size: 14px;
  color: #fff;
  line-height: 64px;
  margin-left: 13px;
}
.ai-sec .ai-sec-header .ai-close {
  font-size: 20px;
  color: #fff;
  position: absolute;
  top: 22px;
  right: 20px;
  cursor: pointer;
}
.ai-sec .ai-sec-content {
  height: 486px;
  background: #f9f9f9;
  box-shadow: 0px 4px 11px 0px rgba(228, 228, 228, 0.5);
  padding: 16px 0;
}
.ai-sec .ai-sec-content .chat-items {
  padding: 0 16px;
  height: 454px;
  overflow: auto;
}
.ai-sec .ai-sec-content .chat-items::-webkit-scrollbar {
  width: 5px;
}
.ai-sec .ai-sec-content .chat-items::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
}
.ai-sec .ai-sec-content .chat-items .chat-item {
  margin-top: 10px;
}
.ai-sec .ai-sec-content .chat-items .chat-item.question-item .chat-top {
  justify-content: flex-end;
}
.ai-sec .ai-sec-content .chat-items .chat-item.question-item .chat-top .chat-text {
  background: #00A3FF;
  color: #fff;
  box-shadow: none;
}
.ai-sec .ai-sec-content .chat-items .chat-item:first-child {
  margin-top: 0;
}
.ai-sec .ai-sec-content .chat-items .chat-item .chat-top {
  display: flex;
  min-width: 0;
  max-width: 100%;
}
.ai-sec .ai-sec-content .chat-items .chat-item .chat-top i {
  height: 32px;
  flex: 0 0 32px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.ai-sec .ai-sec-content .chat-items .chat-item .chat-top i.user-icon {
  background-image: url('../../images/pj/v1/19-1.png');
}
.ai-sec .ai-sec-content .chat-items .chat-item .chat-top .chat-text {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 4px 11px 0px rgba(228, 228, 228, 0.5);
  line-height: 20px;
  padding: 8px 13px ;
  font-size: 14px;
  color: #303133;
  margin-left: 5px;
  word-wrap: break-word;
  word-break: break-all;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.ai-sec .ai-sec-content .chat-items .chat-item .chat-top .chat-text:has(pre) {
  flex: 1;
  width: 0;
  min-width: 0;
}
.ai-sec .ai-sec-content .chat-items .chat-item .chat-top .chat-text * {
  font-size: 14px !important;
  word-wrap: break-word !important;
  word-break: break-all !important;
  max-width: 100%;
}
.ai-sec .ai-sec-content .chat-items .chat-item .chat-top .chat-text *.img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.ai-sec .ai-sec-content .chat-items .chat-item .ai-tip {
  color: #909399;
  margin-top: 10px;
  padding-left: 37px;
}
.ai-sec .ai-sec-content .chat-items .chat-item .cmd-itms {
  margin-top: 10px;
  padding-left: 37px;
  display: flex;
}
.ai-sec .ai-sec-content .chat-items .chat-item .cmd-itms .cmd-itm {
  height: 24px;
  background: #ebeef5;
  border-radius: 4px;
  box-shadow: 0px 4px 11px 0px rgba(228, 228, 228, 0.5);
  color: #606266;
  line-height: 24px;
  padding: 0 10px;
  cursor: pointer;
  margin-left: 10px;
}
.ai-sec .ai-sec-content .chat-items .chat-item .cmd-itms .cmd-itm:first-child {
  margin-left: 0;
}
.ai-sec .ai-sec-content .chat-items .item-loading {
  display: flex;
  justify-content: space-between;
  width: 50px;
  margin: 10px 0 0 40px;
}
.ai-sec .ai-sec-content .chat-items .item-loading .circle {
  width: 8px;
  height: 8px;
  background-color: #6b93e5;
  border-radius: 50% 50%;
  animation: bounce 1.5s infinite ease-in-out;
}
.ai-sec .ai-sec-content .chat-items .item-loading .circle:nth-child(1) {
  animation-delay: 0s;
}
.ai-sec .ai-sec-content .chat-items .item-loading .circle:nth-child(2) {
  background: linear-gradient(129deg, #6b93e5 35%, #16cfa8 100%);
  animation-delay: 0.2s;
}
.ai-sec .ai-sec-content .chat-items .item-loading .circle:nth-child(3) {
  background: linear-gradient(129deg, #6b93e5 35%, #16cfa8 100%, #11e4b3 89%);
  animation-delay: 0.4s;
}
.ai-sec .ai-sec-content .chat-items .item-loading .circle:nth-child(4) {
  background-color: #11e4b3;
  animation-delay: 0.6s;
}
.ai-sec .ai-sec-footer {
  height: 52px;
  background: #ffffff;
  border-radius: 0px 0 8px 8px;
  box-shadow: 0px 4px 11px 0px rgba(228, 228, 228, 0.5);
  position: relative;
  padding: 10px 84px 10px 10px;
}
.ai-sec .ai-sec-footer input {
  font-size: 14px;
  line-height: 32px;
  height: 32px;
  width: 256px;
}
.ai-sec .ai-sec-footer .send-msg {
  position: absolute;
  width: 64px;
  height: 32px;
  border-radius: 19px;
  box-shadow: 0px 4px 11px 0px rgba(228, 228, 228, 0.5);
  background: #00A3FF;
  bottom: 10px;
  right: 10px;
}
.ai-sec .ai-sec-footer .send-msg i {
  display: block;
  width: 20px;
  height: 20px;
  background: url('../../images/ai/send.png') no-repeat;
  background-size: 100% 100%;
  margin: 6px auto 0;
}
@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.5);
  }
}
.markdown a {
  color: #303133 !important;
}
.markdown p {
  margin-top: 10px;
}
.markdown p:first-child {
  margin-top: 0;
}
.markdown ol {
  list-style-type: decimal;
  padding-left: 40px;
}
.markdown ul {
  list-style-type: disc;
  padding-left: 40px;
}
.markdown img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.markdown pre {
  color: #abb2bf;
  background: #282c34;
  display: block;
  padding: 1em;
  font-size: 14px;
  margin-top: 10px;
  overflow-x: auto;
  max-width: 100%;
}
.markdown pre code {
  width: 100%;
  display: block;
  overflow-x: auto;
}
/** 小代码块样式，对应 markdown 的 `code` **/
.markdown :not(pre) > code {
  font-weight: 600;
}
.markdown :not(pre) > code::after,
.markdown :not(pre) > code::before {
  content: "`";
}
pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
}
code.hljs {
  padding: 3px 5px;
}
.hljs {
  color: #abb2bf;
  background: #282c34;
}
.hljs-comment,
.hljs-quote {
  color: #5c6370;
  font-style: italic;
}
.hljs-doctag,
.hljs-formula,
.hljs-keyword {
  color: #c678dd;
}
.hljs-deletion,
.hljs-name,
.hljs-section,
.hljs-selector-tag,
.hljs-subst {
  color: #e06c75;
}
.hljs-literal {
  color: #56b6c2;
}
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string,
.hljs-regexp,
.hljs-string {
  color: #98c379;
}
.hljs-attr,
.hljs-number,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-pseudo,
.hljs-template-variable,
.hljs-type,
.hljs-variable {
  color: #d19a66;
}
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-symbol,
.hljs-title {
  color: #61aeee;
}
.hljs-built_in,
.hljs-class .hljs-title,
.hljs-title.class_ {
  color: #e6c07b;
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: 700;
}
.hljs-link {
  text-decoration: underline;
}
