.max-w-\[720px\] {
    --dialogue-bg: #f0f7ff;
    --dialogue-shadow: 0 6px 20px rgba(22, 93, 255, 0.08);
    --details-border-color: #c9e0ff;
    --details-header-bg: #f8fbff;
    --details-header-bg-hover: #e6f2ff;
    --content-bg: #f5f9ff;
    --text-color-primary: #1a365d;
    --text-color-secondary: #4a6fa5;
    --border-radius-main: 12px;
    --border-radius-inner: 8px;
}

.chat-container .group .relative.inline-block {
    background-color: var(--dialogue-bg);
    border: 1px solid var(--details-border-color);
    box-shadow: var(--dialogue-shadow);
    border-radius: var(--border-radius-main);
}

.chat-container .group .relative.inline-block > .MuiBox-root.css-0 {
    display: none;
}

.markdown-body details {
    border: none;
    margin: 16px 0;
    background-color: transparent;
    overflow: visible;
}

.markdown-body summary {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    background-color: var(--details-header-bg);
    color: var(--text-color-primary);
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    outline: none;
    border: 1px solid var(--details-border-color);
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgba(22, 93, 255, 0.04);
    list-style: none;
}

.markdown-body summary::-webkit-details-marker {
    display: none;
}

.markdown-body summary:hover {
    background-color: var(--details-header-bg-hover);
    border-color: #9fc5ff;
    box-shadow: 0 3px 8px rgba(22, 93, 255, 0.06);
}

.markdown-body summary::before {
    content: '+';
    display: inline-block;
    margin-right: 12px;
    font-size: 0.7em;
    color: var(--text-color-secondary);
    transition: transform 0.2s ease-in-out;
    transform-origin: center;
}

.markdown-body details[open] > summary::before {
    transform: rotate(90deg);
}

.markdown-body details > pre,
.markdown-body details > table {
    margin-top: 8px;
    border: 1px solid var(--details-border-color);
    border-radius: var(--border-radius-inner);
    background-color: var(--content-bg);
    overflow-x: auto;
}

.markdown-body details pre > div:first-child[style*="border-color"] {
    display: none;
}

.markdown-body details pre {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.markdown-body details pre > div[node="[object Object]"] {
    padding: 16px;
    color: var(--text-color-primary);
    background: transparent !important;
}

.markdown-body details code.language-markdown {
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-color-primary);
    background: transparent !important;
}

.markdown-body details table th,
.markdown-body details table td {
    font-size: 12px;
    padding: 6px 10px;
    line-height: 1.3;
}

@keyframes ai-answer-spinner-rotation {
  to {
    transform: rotate(360deg);
  }
}

#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) {
  justify-content: flex-start;
  width: auto;
  height: auto;
}

#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after {
  content: '加载中...';
  font-size: 13px;
  color: #5a86c8;
  margin-left: 10px;
}

#ai-chat-answer .chat-answer-container .style_dot-flashing__8L91Q::before,
#ai-chat-answer .chat-answer-container .style_dot-flashing__8L91Q::after {
  content: none;
  display: none;
}

#ai-chat-answer .chat-answer-container .style_dot-flashing__8L91Q {
  background: transparent;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-left-color: #2563eb;
  border-radius: 50%;
  animation: ai-answer-spinner-rotation 0.8s linear infinite;
}