[v-cloak] {
  display: none !important;
}
.web-gpt {
  height: 100%;
  min-width: 1190px;
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.web-gpt .gpt-topbar {
  flex: 0 0 64px;
  height: 64px;
  background: #09c867;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 2;
}
.web-gpt .gpt-topbar .topbar-brand {
  display: flex;
  align-items: center;
}
.web-gpt .gpt-topbar .topbar-brand .topbar-fold {
  background-image: url('../../images/ai1/5.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.web-gpt .gpt-topbar .topbar-brand .topbar-logo {
  width: 48px;
  height: 56px;
  margin: 0 12px 0 24px;
}
.web-gpt .gpt-topbar .topbar-brand .topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 20px;
}
.web-gpt .gpt-topbar .topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.web-gpt .gpt-topbar .topbar-user span {
  font-size: 14px;
  color: #fff;
}
.web-gpt .gpt-topbar .topbar-user span em {
  font-style: normal;
}
.web-gpt .gpt-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.web-gpt .sidebar {
  flex: 0 0 240px;
  width: 240px;
  min-width: 0;
  background: #fff;
  border-right: 1px solid #f2f3f5;
  box-sizing: border-box;
  transition: width 0.25s ease, flex-basis 0.25s ease;
  overflow: hidden;
}
.web-gpt .sidebar .sidebar-inner {
  width: 240px;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.web-gpt .sidebar .btn-new-topic {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid #10FF86;
  box-shadow: 0 -2px 1px 0 rgba(3, 32, 112, 0.2) inset, 0 2px 1px 0 rgba(255, 255, 255, 0.2) inset;
  background: #09C867;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
.web-gpt .sidebar .btn-new-topic b {
  font-size: 20px;
  margin-right: 8px;
}
.web-gpt .sidebar .hist-items {
  flex: 1;
  overflow: auto;
  margin: 0 -4px;
  padding: 0 4px;
  min-height: 0;
}
.web-gpt .sidebar .hist-items::-webkit-scrollbar {
  width: 4px;
}
.web-gpt .sidebar .hist-items::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.15);
}
.web-gpt .sidebar .hist-items .hist-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}
.web-gpt .sidebar .hist-items .hist-item p {
  flex: 1;
  min-width: 0;
}
.web-gpt .sidebar .hist-items .hist-item:hover,
.web-gpt .sidebar .hist-items .hist-item.active {
  background: #fff;
  color: #333;
  box-shadow: 0 1px 3px rgba(29, 33, 41, 0.1);
}
.web-gpt .sidebar .hist-items .no-data {
  font-size: 14px;
  text-align: center;
  color: #909399;
  line-height: 22px;
  padding: 24px 0;
  white-space: nowrap;
}
.web-gpt.sidebar-collapsed .sidebar {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  border-right: none;
}
.web-gpt .main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  position: relative;
}
.web-gpt .chat-wrp {
  flex: 1;
  overflow: auto;
  padding: 24px 32px 16px;
  min-height: 0;
}
.web-gpt .chat-wrp::-webkit-scrollbar {
  width: 5px;
}
.web-gpt .chat-wrp::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
}
.web-gpt .chat-wrp .chat-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}
.web-gpt .chat-wrp .chat-welcome {
  margin-bottom: 24px;
}
.web-gpt .chat-wrp .chat-welcome .welcome-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.web-gpt .chat-wrp .chat-welcome .welcome-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  align-items: flex-start;
}
.web-gpt .chat-wrp .chat-welcome .welcome-intro {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(29, 33, 41, 0.1);
  padding: 10px 16px;
  font-size: 14px;
  line-height: 22px;
  color: #333;
  max-width: 720px;
  width: fit-content;
  word-wrap: break-word;
  word-break: break-all;
}
.web-gpt .chat-wrp .chat-welcome .ai-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e1fff2;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.web-gpt .chat-wrp .chat-welcome .ai-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.web-gpt .chat-wrp .chat-welcome .suggest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.web-gpt .chat-wrp .chat-welcome .suggest-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  background: #fff;
  border: 1px solid #f2f3f5;
  border-radius: 8px;
  font-size: 14px;
  color: #1d2129;
  line-height: 22px;
  box-sizing: border-box;
  max-width: 720px;
  width: fit-content;
  cursor: pointer;
}
.web-gpt .chat-wrp .chat-welcome .suggest-item span {
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}
.web-gpt .chat-wrp .chat-welcome .suggest-item i {
  background-image: url('../../images/ai1/4.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
}
.web-gpt .chat-wrp .chat-items {
  margin: 0;
}
.web-gpt .chat-wrp .msg-user {
  margin-bottom: 24px;
  display: flex;
  justify-content: flex-end;
}
.web-gpt .chat-wrp .msg-user .bubble {
  max-width: 720px;
  width: fit-content;
  padding: 12px 16px;
  background: #09c867;
  border-radius: 8px;
  font-size: 14px;
  line-height: 22px;
  color: #fff;
  word-wrap: break-word;
  word-break: break-all;
}
.web-gpt .chat-wrp .msg-ai {
  margin-bottom: 24px;
  padding-left: 0;
}
.web-gpt .chat-wrp .msg-ai .msg-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.web-gpt .chat-wrp .msg-ai .ai-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e1fff2;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.web-gpt .chat-wrp .msg-ai .ai-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.web-gpt .chat-wrp .msg-ai .bubble-wrap {
  min-width: 0;
  max-width: 720px;
  width: fit-content;
}
.web-gpt .chat-wrp .msg-ai .bubble {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(29, 33, 41, 0.1);
  padding: 10px 16px 8px;
  font-size: 14px;
  line-height: 22px;
  color: #333;
  word-wrap: break-word;
  word-break: break-all;
  display: flex;
  flex-direction: column;
}
.web-gpt .chat-wrp .msg-ai .bubble:has(pre) {
  width: 100%;
}
.web-gpt .chat-wrp .msg-ai .bubble .bubble-body:has(pre) {
  width: 100%;
}
.web-gpt .chat-wrp .msg-ai .msg-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
}
.web-gpt .chat-wrp .msg-ai .msg-actions .action-btn {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url('../../images/ai1/2.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.web-gpt .chat-wrp .msg-ai .msg-actions .action-btn:hover {
  opacity: 0.8;
}
.web-gpt .chat-wrp .msg-ai .loading-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
}
.web-gpt .chat-wrp .msg-ai .loading-dots .circle {
  width: 8px;
  height: 8px;
  background: #09c867;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}
.web-gpt .chat-wrp .msg-ai .loading-dots .circle:nth-child(1) {
  animation-delay: 0s;
  opacity: 0.4;
}
.web-gpt .chat-wrp .msg-ai .loading-dots .circle:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0.7;
}
.web-gpt .chat-wrp .msg-ai .loading-dots .circle:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 1;
}
.web-gpt .input-area {
  margin: 0 24px 24px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #f2f3f5;
  border-radius: 4px;
  box-shadow: 0 8px 24px -8px rgba(203, 203, 203, 0.5);
  display: flex;
  flex-direction: column;
}
.web-gpt .input-area .input-content {
  padding: 0 16px 8px;
}
.web-gpt .input-area textarea {
  font-size: 14px;
  width: 100%;
  line-height: 22px;
  height: 100px;
  resize: none;
  max-height: 100px;
  overflow: auto;
  color: #333;
  border: none;
  outline: none;
}
.web-gpt .input-area textarea::placeholder {
  color: #909399;
}
.web-gpt .input-area textarea::-webkit-scrollbar {
  width: 4px;
}
.web-gpt .input-area textarea::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.15);
}
.web-gpt .input-area .input-footer {
  padding: 8px 16px 0;
  border-top: 1px solid #f2f3f5;
  display: flex;
  justify-content: flex-end;
}
.web-gpt .input-area .send-btn {
  width: 32px;
  height: 32px;
  background: #09c867;
  border: 1px solid #10ff86;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 1px 0 rgba(4, 52, 125, 0.2) inset, 0 2px 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.web-gpt .input-area .send-btn img {
  height: 16px;
  width: 16px;
}
@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(0.6);
    opacity: 1;
  }
}
.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 pre {
  color: #abb2bf;
  background: #282c34;
  display: block;
  padding: 1em;
  font-size: 14px;
  margin-top: 10px;
  overflow: auto;
  border-radius: 4px;
}
.markdown pre::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background-color: rgba(217, 217, 227, 0.8);
}
.markdown pre::-webkit-scrollbar {
  height: 8px;
}
.markdown pre code {
  width: 100%;
}
.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;
}
