/* ===== 白底黑字 · 纯净阅读版 ===== */

/* ---------- 一、全局背景恢复白色 ---------- */

#customized-question-content,
#customized-answer-content {
  background: transparent !important;
}

/* ---------- 二、消息气泡 - 浅灰底+深色边框 ---------- */

/* 用户气泡 */
#customized-question-content {
  background: #f8f9fa !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: none !important;
}

/* AI气泡 */
#customized-answer-content {
  background: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  box-shadow: none !important;
}

/* 气泡圆角 */
#customized-question-content .rounded-xl,
#customized-answer-content .rounded-xl {
  border-radius: 12px !important;
}

/* 气泡内边距 */
#customized-question-content .px-4,
#customized-answer-content .px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
#customized-question-content .py-3,
#customized-answer-content .py-3 {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* ---------- 三、消息文字 - 纯黑深色 ---------- */

/* 正文颜色 */
#customized-question-content .text-gray-900,
#customized-answer-content .text-gray-900 {
  color: #1a1a1a !important;
}

/* Markdown内容 */
#customized-question-content .markdown-body,
#customized-answer-content .markdown-body {
  color: #1a1a1a !important;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-shadow: none !important;
}

/* 标题 */
#customized-question-content .markdown-body h1,
#customized-question-content .markdown-body h2,
#customized-question-content .markdown-body h3,
#customized-question-content .markdown-body h4,
#customized-answer-content .markdown-body h1,
#customized-answer-content .markdown-body h2,
#customized-answer-content .markdown-body h3,
#customized-answer-content .markdown-body h4 {
  color: #1a1a1a !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* 粗体 */
#customized-question-content .markdown-body strong,
#customized-question-content .markdown-body b,
#customized-answer-content .markdown-body strong,
#customized-answer-content .markdown-body b {
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

/* 链接 */
#customized-question-content .markdown-body a,
#customized-answer-content .markdown-body a {
  color: #2563eb !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

/* 代码 */
#customized-question-content .markdown-body code,
#customized-answer-content .markdown-body code {
  color: #1a1a1a !important;
  background: #f0f0f0 !important;
  font-weight: 500 !important;
  padding: 2px 5px !important;
  border-radius: 3px !important;
  font-size: 0.85em !important;
}

/* 列表 */
#customized-question-content .markdown-body ul,
#customized-question-content .markdown-body ol,
#customized-answer-content .markdown-body ul,
#customized-answer-content .markdown-body ol {
  color: #1a1a1a !important;
}

/* ---------- 四、装饰条 - 浅灰中性 ---------- */

/* 用户装饰条 */
#customized-question-content .bg-\[\#c9e1e9\] {
  background: #e8e8e8 !important;
  box-shadow: none !important;
}

/* AI装饰条 */
#customized-answer-content .bg-\[\#F1CBCB\] {
  background: #dcdcdc !important;
  box-shadow: none !important;
}

/* ---------- 五、操作按钮 - 深灰中性 ---------- */

#customized-reload-button,
#customized-edit-button,
#customized-resend-button,
#customized-delete-button,
#customized-create-image-button,
#customized-create-audio-button,
#customized-branch-and-share-button,
#customized-prompt-log-button {
  color: #666666 !important;
  opacity: 0.8 !important;
  text-shadow: none !important;
  transition: color 0.2s ease, opacity 0.2s ease !important;
}
#customized-reload-button:hover,
#customized-edit-button:hover,
#customized-resend-button:hover,
#customized-delete-button:hover,
#customized-create-image-button:hover,
#customized-create-audio-button:hover,
#customized-branch-and-share-button:hover,
#customized-prompt-log-button:hover {
  color: #1a1a1a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* 按钮SVG - 恢复原始深色 */
#customized-reload-button use[xlink\:href="#icon-a-icon-chat-refresh01"],
#customized-edit-button use[xlink\:href="#icon-a-icon-chat-edit01"],
#customized-resend-button use[xlink\:href="#icon-a-icon-chat-copy01"],
#customized-delete-button use[xlink\:href="#icon-a-icon-chat-delete01"],
#customized-create-image-button use[xlink\:href="#icon-icon-img"],
#customized-create-audio-button use[xlink\:href="#icon-icon-chat-voice"] {
  filter: none !important;
}

/* ---------- 六、模型标识与Token ---------- */

/* 模型信息容器 */
#customized-answer-content .text-purple-500.mt-1 {
  color: #666666 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

/* 模型名称 */
#customized-answer-content .MuiTypography-body2:first-child {
  color: #333333 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* Token消耗 */
#customized-answer-content .text-orange-500 {
  color: #666666 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* ---------- 七、输入框 ---------- */

#ai-chat-input {
  background: #ffffff !important;
  border-color: #d0d0d0 !important;
  color: #1a1a1a !important;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  caret-color: #1a1a1a !important;
  text-shadow: none !important;
}

#ai-chat-input:focus {
  border-color: #999999 !important;
  box-shadow: none !important;
}

#ai-chat-input::placeholder {
  color: #999999 !important;
}

#ai-chat-input::selection {
  background: rgba(0, 0, 0, 0.15) !important;
  color: #1a1a1a !important;
}

/* 字符计数器 */
.absolute.bottom-2.right-2 .bg-gray-100 {
  background: #f0f0f0 !important;
  color: #666666 !important;
  font-weight: 400 !important;
}

/* ---------- 八、发送按钮 - 简洁中性 ---------- */

#ai-send-button {
  background: #f0f0f0 !important;
  border: 1px solid #d0d0d0 !important;
  box-shadow: none !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}
#ai-send-button:hover {
  background: #e8e8e8 !important;
  border-color: #bbbbbb !important;
  box-shadow: none !important;
}

#ai-send-button .icon-icon-send {
  filter: none !important;
}

/* ---------- 九、顶部控制栏 ---------- */

#customized-model-selector {
  background: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  color: #1a1a1a !important;
}

#customized-model-selector .truncate {
  color: #1a1a1a !important;
  font-weight: 500 !important;
}

#customized-model-selector svg[data-icon="ChevronDown"] {
  filter: none !important;
}

/* ---------- 十、快捷按钮 ---------- */

#ai-mod-button2 .MuiButton-outlinedPrimary {
  border-color: #d0d0d0 !important;
  color: #333333 !important;
  font-weight: 500 !important;
  background: #ffffff !important;
}

#ai-mod-button2 .MuiButton-outlinedPrimary:hover {
  border-color: #999999 !important;
  background: #f8f9fa !important;
  color: #1a1a1a !important;
}

/* ---------- 十一、头像 - 去掉光晕 ---------- */

#customized-question-avatar,
#customized-answer-avatar {
  box-shadow: none !important;
}

/* ---------- 十二、加载动画 - 简洁灰点 ---------- */

#customized-answer-content [class*="dot-flashing"] {
  background: #999999 !important;
  box-shadow: none !important;
}

/* ---------- 十三、响应式 ---------- */

@media (max-width: 768px) {
  #customized-question-content .px-4,
  #customized-answer-content .px-4 {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  #customized-question-content .py-3,
  #customized-answer-content .py-3 {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }
  #customized-question-content .markdown-body,
  #customized-answer-content .markdown-body {
    font-size: 0.875rem !important;
  }
}
details {
    background-color: rgba(10, 20, 30, 0.8);
    border: 1px solid #00ffcc;
    border-radius: 4px;
    margin-bottom: 5px;
    color: #e0e0e0;
}
summary {
    background-color: #004444;
    color: #00ffcc;
    padding: 8px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #00ffcc;
}
details p {
    padding: 2px 10px;
    margin: 4px 0 !important;
    font-size: 14px;
    line-height: 1.4;
}
details b {
    color: #ffaa00; /* 强调属性名 */
}
hr {
    border-color: #00ffcc;
    opacity: 0.3;
}
