.max-w-[720px] {
    --dialogue-bg: #0a0810;
    --dialogue-shadow: 0 6px 20px rgba(136, 68, 255, 0.15);
    --details-border-color: rgba(200, 120, 150, 0.3);
    --details-header-bg: rgba(10, 8, 16, 0.95);
    --details-header-bg-hover: rgba(30, 20, 40, 0.95);
    --content-bg: rgba(10, 8, 16, 0.9);
    --text-color-primary: #e0d0f0;
    --text-color-secondary: #a090b0;
    --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);
    color: #e8dcc8;
}

.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: #e0d0f0;
    font-weight: 500;
    font-size: 13px;
    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 rgba(200, 120, 150, 0.3);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(136, 68, 255, 0.1);
    list-style: none;
}

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

.markdown-body summary:hover {
    background-color: var(--details-header-bg-hover);
    border-color: rgba(200, 120, 150, 0.6);
    box-shadow: 0 3px 12px rgba(136, 68, 255, 0.2);
}

.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 rgba(200, 120, 150, 0.15);
    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;
}

.markdown-body details table th {
    color: #d4a060;
    border-bottom: 1px solid rgba(200, 120, 150, 0.2);
}

.markdown-body details table td {
    color: #c8b8d8;
    border-bottom: 1px solid rgba(200, 120, 150, 0.08);
}

@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: #a090b0;
  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(136, 68, 255, 0.2);
  border-left-color: #8844ff;
  border-radius: 50%;
  animation: ai-answer-spinner-rotation 0.8s linear infinite;
}