.max-w-\[720px\] {
    /* 桃枝·轻松日常 浅暖色调 */
    --dialogue-bg: linear-gradient(135deg, rgba(255, 247, 239, 0.95) 0%, rgba(255, 241, 230, 0.98) 100%);
    --dialogue-shadow: 0 8px 30px rgba(248, 138, 122, 0.14),
                       0 2px 8px rgba(0, 0, 0, 0.04);
    --details-border-color: rgba(248, 138, 122, 0.3);
    --details-header-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 233, 220, 0.92) 100%);
    --details-header-bg-hover: linear-gradient(135deg, rgba(255, 233, 220, 0.95) 0%, rgba(255, 221, 201, 0.95) 100%);
    --content-bg: rgba(255, 253, 248, 0.96);
    --text-color-primary: #5a4438;
    --text-color-secondary: #8a786b;
    --accent-color: #e07a5f;
    --accent-light: #f4978e;
    --border-radius-main: 18px;
    --border-radius-inner: 12px;
    --border-radius-pill: 24px;
}

/* 对话容器 */
.chat-container .group .relative.inline-block {
    background: var(--dialogue-bg);
    border: 1px solid rgba(240, 138, 122, 0.25);
    box-shadow: var(--dialogue-shadow);
    border-radius: var(--border-radius-main);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* 添加微妙的桃色装饰元素 */
.chat-container .group .relative.inline-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(244, 151, 142, 0.4),
        rgba(224, 122, 95, 0.55),
        rgba(244, 151, 142, 0.4),
        transparent
    );
    z-index: 1;
}

.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;
    position: relative;
}

.markdown-body summary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    background: var(--details-header-bg);
    color: var(--text-color-primary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    border: 1px solid var(--details-border-color);
    border-radius: var(--border-radius-pill);
    box-shadow: 0 4px 12px rgba(244, 151, 142, 0.12);
    list-style: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* 背景光泽效果 */
.markdown-body summary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.markdown-body summary:hover::after {
    left: 100%;
}

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

.markdown-body summary:hover {
    background: var(--details-header-bg-hover);
    border-color: rgba(240, 138, 122, 0.45);
    box-shadow: 0 6px 18px rgba(240, 138, 122, 0.2);
    transform: translateY(-1px);
    color: var(--accent-color);
}

/* 自定义小桃花图标 */
.markdown-body summary::before {
    content: '🌸';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

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

/* 内容区域 */
.markdown-body details > pre,
.markdown-body details > table {
    margin-top: 16px;
    border: 1px solid rgba(240, 138, 122, 0.25);
    border-radius: var(--border-radius-inner);
    background: var(--content-bg);
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
}

/* 代码块装饰 */
.markdown-body details > pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom,
        var(--accent-light),
        rgba(224, 122, 95, 0.7)
    );
    border-radius: var(--border-radius-inner) 0 0 var(--border-radius-inner);
}

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

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

.markdown-body details pre > div[node="[object Object]"] {
    padding: 20px;
    color: var(--text-color-primary);
    background: transparent !important;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.markdown-body details code.language-markdown {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-color-primary);
    background: transparent !important;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* 表格样式 */
.markdown-body details table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.markdown-body details table th {
    background: linear-gradient(135deg, rgba(240, 138, 122, 0.1) 0%, rgba(224, 122, 95, 0.06) 100%);
    font-weight: 600;
    color: var(--accent-color);
}

.markdown-body details table th,
.markdown-body details table td {
    font-size: 13px;
    padding: 10px 16px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(240, 138, 122, 0.12);
}

.markdown-body details table tr:last-child td {
    border-bottom: none;
}

.markdown-body details table tr:hover td {
    background: rgba(240, 138, 122, 0.04);
}

/* 加载动画 */
@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;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-pill);
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    rgba(240, 138, 122, 0.06) 0%,
    rgba(255, 247, 239, 0.12) 50%,
    rgba(240, 138, 122, 0.06) 100%
  );
  border: 1px solid rgba(240, 138, 122, 0.2);
}

#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after {
  content: '🌸 正在为你编织红线故事...';
  font-size: 13px;
  color: var(--accent-color);
  margin-left: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#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: 20px;
  height: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 2px solid rgba(240, 138, 122, 0.3);
  border-left-color: var(--accent-color);
  border-radius: 50%;
  animation: ai-answer-spinner-rotation 0.8s linear infinite;
  position: relative;
  z-index: 1;
}