/* ========== 诡秘之主风格 - 完整整合版（单次加载文字轮换）========== */

/* ==================== 聊天交互区 ==================== */

/* 聊天气泡 - 羊皮纸质感 */
.bg-gray-100\/90.relative.inline-block {
  background: linear-gradient(135deg, #2a2419 0%, #1a1510 100%) !important;
  border: 1px solid #8b7355 !important;
  border-radius: 8px !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(139, 115, 85, 0.3) !important;
  position: relative !important;
  isolation: isolate !important;
}

/* 气泡装饰纹路 */
.bg-gray-100\/90.relative.inline-block::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(139, 115, 85, 0.03) 2px,
      rgba(139, 115, 85, 0.03) 4px
    ) !important;
  border-radius: 8px !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* 消息文本 - 古典金色 */
.markdown-body {
  color: #d4af37 !important;
  font-family: 'Georgia', 'Times New Roman', serif !important;
  z-index: 1 !important;
  position: relative !important;
  background: transparent !important;
}

.markdown-body strong {
  color: #f4d03f !important;
  font-weight: bold !important;
  text-shadow: 0 0 8px rgba(244, 208, 63, 0.3) !important;
}

/* 顶部装饰条 - 隐藏 */
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] {
  display: none !important;
}

/* 操作按钮 - 古铜色 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
  color: #cd7f32 !important;
  transition: all 0.3s ease !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
  color: #f4d03f !important;
  text-shadow: 0 0 8px rgba(244, 208, 63, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* 模型名称标签 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
  color: #8b7355 !important;
  font-family: 'Georgia', serif !important;
  font-style: italic !important;
}

/* Token 计数器 */
.text-orange-500 {
  color: #cd7f32 !important;
  font-family: 'Courier New', monospace !important;
}

/* 加载动画容器 */
.flex.items-center.justify-center.w-6.h-5 {
  position: relative !important;
  width: auto !important;
  min-width: 200px !important;
  height: auto !important;
  padding: 8px 16px !important;
}

/* 隐藏默认加载动画 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
  display: none !important;
}

/* 文字单次加载动画（核心修改） */
.flex.items-center.justify-center.w-6.h-5::before {
  content: '正在准备灵性材料……' !important;
  color: #d4af37 !important;
  font-family: 'Georgia', 'KaiTi', serif !important;
  font-size: 14px !important;
  font-style: italic !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4) !important;
  animation: textRotate 12s infinite !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* 核心修改：单次顺序播放，最后停在"赞美愚者" */
@keyframes textRotate {
  0% {
    content: '正在准备灵性材料……' !important;
    color: #d4af37 !important;
  }
  15% {
    content: '正在祈祷……' !important;
    color: #d4af37 !important;
  }
  30% {
    content: '等待回应……' !important;
    color: #d4af37 !important;
  }
  45% {
    content: '正在准备灵性材料……' !important;
    color: #d4af37 !important;
  }
  60% {
    content: '不好是阿蒙！' !important;
    color: #ff6b6b !important;
    text-shadow: 0 0 12px rgba(255, 107, 107, 0.6) !important;
  }
  75% {
    content: '你的文字要被偷了……' !important;
    color: #ff6b6b !important;
    text-shadow: 0 0 12px rgba(255, 107, 107, 0.6) !important;
  }
  85% {
    content: '愚者先生救下了你的文字' !important;
    color: #f4d03f !important;
    text-shadow: 0 0 12px rgba(244, 208, 63, 0.8) !important;
  }
  100% {
    content: '赞美愚者！' !important;
    color: #f4d03f !important;
    text-shadow: 0 0 12px rgba(244, 208, 63, 0.8) !important;
  }
}

/* 加载动画闪烁效果（也改为单次播放） */
.flex.items-center.justify-center.w-6.h-5::after {
  content: '✦' !important;
  position: absolute !important;
  right: -20px !important;
  color: #cd7f32 !important;
  font-size: 12px !important;
  /* 同步改为单次播放 */
  animation: sparkle 12s forwards !important;
}

/* 闪烁效果同步单次播放，最后保持高亮 */
@keyframes sparkle {
  0%, 100% {
    opacity: 1 !important;
    transform: scale(1.2) !important;
  }
  10% {
    opacity: 0.3 !important;
    transform: scale(0.8) !important;
  }
  20% {
    opacity: 1 !important;
    transform: scale(1.2) !important;
  }
  30% {
    opacity: 0.3 !important;
    transform: scale(0.8) !important;
  }
  40% {
    opacity: 1 !important;
    transform: scale(1.2) !important;
  }
  50% {
    opacity: 0.3 !important;
    transform: scale(0.8) !important;
  }
  60% {
    opacity: 1 !important;
    transform: scale(1.2) !important;
  }
  70% {
    opacity: 0.3 !important;
    transform: scale(0.8) !important;
  }
  80% {
    opacity: 1 !important;
    transform: scale(1.2) !important;
  }
  90% {
    opacity: 0.3 !important;
    transform: scale(0.8) !important;
  }
  100% {
    opacity: 1 !important;
    transform: scale(1.2) !important;
  }
}

/* ==================== 界面框架区 ==================== */

/* 顶部栏 - 深色神秘 */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(180deg, #1a1510 0%, #0d0a08 100%) !important;
  border-bottom: 2px solid #8b7355 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8) !important;
}

/* 模型选择器 */
#ai-model-selector .group.flex.items-center {
  background: rgba(42, 36, 25, 0.6) !important;
  border: 1px solid #8b7355 !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover {
  background: rgba(42, 36, 25, 0.9) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
}

#ai-model-selector .truncate.text-\[13px\] {
  color: #d4af37 !important;
  font-family: 'Georgia', serif !important;
}

#ai-model-selector .shrink-0.flex.items-center svg {
  filter: brightness(0) saturate(100%) invert(68%) sepia(45%) saturate(450%) hue-rotate(8deg) brightness(95%) contrast(85%) !important;
}

/* 设置按钮 */
#header-setting-button {
  color: #cd7f32 !important;
  transition: all 0.3s ease !important;
}

#header-setting-button:hover {
  color: #f4d03f !important;
  filter: drop-shadow(0 0 8px rgba(244, 208, 63, 0.4)) !important;
}

/* 开场白选择器 */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
  background: rgba(42, 36, 25, 0.6) !important;
  border: 1px solid #8b7355 !important;
  transition: all 0.3s ease !important;
}

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover {
  background: rgba(42, 36, 25, 0.9) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
}

div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"],
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
  filter: brightness(0) saturate(100%) invert(68%) sepia(45%) saturate(450%) hue-rotate(8deg) brightness(95%) contrast(85%) !important;
}

/* 底部栏 */
.bg-gradient-to-t {
  background: linear-gradient(0deg, #0d0a08 0%, transparent 100%) !important;
}

#ai-chat-bottom-input {
  background: rgba(26, 21, 16, 0.95) !important;
  border: 2px solid #8b7355 !important;
  border-radius: 12px !important;
  box-shadow: 
    0 -4px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(139, 115, 85, 0.2) !important;
}

#ai-chat-input {
  color: #d4af37 !important;
  font-family: 'Georgia', serif !important;
  background: transparent !important;
}

#ai-chat-input::placeholder {
  color: #8b7355 !important;
  font-style: italic !important;
}

#ai-chat-input::selection {
  background: rgba(212, 175, 55, 0.3) !important;
  color: #f4d03f !important;
}

/* 分页栏 */
.MuiPaginationItem-root {
  color: #cd7f32 !important;
  border-color: #8b7355 !important;
  transition: all 0.3s ease !important;
}

.MuiPaginationItem-root:hover {
  background: rgba(42, 36, 25, 0.6) !important;
  border-color: #d4af37 !important;
}

.MuiPaginationItem-root.Mui-selected {
  background: rgba(212, 175, 55, 0.2) !important;
  color: #f4d03f !important;
  border-color: #f4d03f !important;
  box-shadow: 0 0 8px rgba(244, 208, 63, 0.3) !important;
}

.MuiPaginationItem-root.Mui-disabled {
  color: #4a3f2f !important;
  border-color: #4a3f2f !important;
}

.MuiPaginationItem-icon {
  filter: brightness(0) saturate(100%) invert(50%) sepia(25%) saturate(450%) hue-rotate(8deg) brightness(85%) contrast(85%) !important;
}

.MuiStack-root.css-1uwir8f .MuiBox-root {
  color: #8b7355 !important;
  font-family: 'Georgia', serif !important;
}

.MuiInputBase-input {
  color: #d4af37 !important;
  border-color: #8b7355 !important;
  background: rgba(26, 21, 16, 0.6) !important;
}

/* 评论区 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: linear-gradient(180deg, #1a1510 0%, #0d0a08 100%) !important;
  border-top: 2px solid #8b7355 !important;
}

div.text-lg.font-bold {
  color: #f4d03f !important;
  font-family: 'Georgia', serif !important;
  text-shadow: 0 0 8px rgba(244, 208, 63, 0.3) !important;
}

p.MuiTypography-body1.text-grey-600 {
  color: #cd7f32 !important;
  font-family: 'Georgia', serif !important;
}

span.MuiRating-iconEmpty svg {
  filter: brightness(0) saturate(100%) invert(50%) sepia(25%) saturate(450%) hue-rotate(8deg) brightness(85%) contrast(85%) !important;
}

span.MuiRating-iconFilled svg {
  filter: brightness(0) saturate(100%) invert(68%) sepia(45%) saturate(450%) hue-rotate(8deg) brightness(95%) contrast(85%) drop-shadow(0 0 4px rgba(212, 175, 55, 0.5)) !important;
}

span.text-orange-500 {
  color: #f4d03f !important;
  font-family: 'Georgia', serif !important;
}

textarea.rc-textarea {
  background: rgba(26, 21, 16, 0.8) !important;
  color: #d4af37 !important;
  border: 1px solid #8b7355 !important;
  border-radius: 8px !important;
  font-family: 'Georgia', serif !important;
}

textarea.rc-textarea::placeholder {
  color: #8b7355 !important;
  font-style: italic !important;
}

div.bg-gray-100.text-gray-500 {
  background: rgba(42, 36, 25, 0.4) !important;
  color: #8b7355 !important;
}

div.cursor-pointer.group.flex.items-center.justify-center {
  background: rgba(205, 127, 50, 0.2) !important;
  border: 1px solid #cd7f32 !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover {
  background: rgba(205, 127, 50, 0.4) !important;
  box-shadow: 0 0 12px rgba(205, 127, 50, 0.4) !important;
}

div[data-state="closed"] svg[data-icon="Send03"] {
  filter: brightness(0) saturate(100%) invert(50%) sepia(45%) saturate(450%) hue-rotate(8deg) brightness(95%) contrast(85%) !important;
}

div.style_divider__mW0YX {
  background: #8b7355 !important;
  opacity: 0.3 !important;
}

button.MuiButton-containedPrimary,
button.MuiButton-outlinedPrimary {
  font-family: 'Georgia', serif !important;
  transition: all 0.3s ease !important;
}

button.MuiButton-containedPrimary {
  background: rgba(212, 175, 55, 0.2) !important;
  color: #f4d03f !important;
  border: 1px solid #d4af37 !important;
}

button.MuiButton-outlinedPrimary {
  color: #cd7f32 !important;
  border-color: #8b7355 !important;
}

button.MuiButton-outlinedPrimary:hover {
  background: rgba(42, 36, 25, 0.4) !important;
  border-color: #cd7f32 !important;
}

div.group.ml-0 {
  border-bottom: 1px solid rgba(139, 115, 85, 0.2) !important;
}

div.group img.rounded-full {
  border: 2px solid #8b7355 !important;
  box-shadow: 0 0 8px rgba(139, 115, 85, 0.3) !important;
}

div.text-sm.text-grey-600 span.font-bold {
  color: #d4af37 !important;
  font-family: 'Georgia', serif !important;
}

span.text-\[10px\] {
  color: #cd7f32 !important;
  font-style: italic !important;
}

div.break-all {
  color: #c9b896 !important;
  font-family: 'Georgia', serif !important;
}

div.text-xs.text-grey-600 {
  color: #8b7355 !important;
  font-family: 'Courier New', monospace !important;
  font-size: 10px !important;
}

button.text-gray-400 {
  color: #8b7355 !important;
  transition: all 0.3s ease !important;
}

button.text-gray-400:hover {
  color: #cd7f32 !important;
}

button.text-gray-400 svg {
  filter: brightness(0) saturate(100%) invert(50%) sepia(25%) saturate(450%) hue-rotate(8deg) brightness(85%) contrast(85%) !important;
  transition: filter 0.3s ease !important;
}

button.text-gray-400:hover svg {
  filter: brightness(0) saturate(100%) invert(50%) sepia(45%) saturate(450%) hue-rotate(8deg) brightness(95%) contrast(85%) !important;
}

span.cursor-pointer {
  color: #cd7f32 !important;
  transition: all 0.3s ease !important;
}

span.cursor-pointer:hover {
  color: #f4d03f !important;
  text-shadow: 0 0 6px rgba(244, 208, 63, 0.3) !important;
}

div.ml-8.border-l {
  border-color: rgba(139, 115, 85, 0.3) !important;
}

/* ==================== 状态面板美化 ==================== */

/* 玩家档案框 */
.markdown-body pre code {
  background: linear-gradient(135deg, #2a2419 0%, #1a1510 100%) !important;
  border: 2px solid #8b7355 !important;
  border-radius: 8px !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(139, 115, 85, 0.3) !important;
  color: #d4af37 !important;
  font-family: 'Courier New', 'Consolas', monospace !important;
  padding: 16px !important;
  position: relative !important;
}

/* 代码块装饰纹理 */
.markdown-body pre code::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(139, 115, 85, 0.1) 1px,
      rgba(139, 115, 85, 0.1) 2px
    ) !important;
  pointer-events: none !important;
  border-radius: 8px !important;
}

/* 折叠面板容器 */
.markdown-body details {
  background: rgba(26, 21, 16, 0.8) !important;
  border: 1px solid #8b7355 !important;
  border-radius: 8px !important;
  margin: 12px 0 !important;
  padding: 8px 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s ease !important;
}

.markdown-body details:hover {
  border-color: #cd7f32 !important;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3) !important;
}

.markdown-body details[open] {
  background: rgba(26, 21, 16, 0.95) !important;
  border-color: #d4af37 !important;
  box-shadow: 
    0 4px 16px rgba(212, 175, 55, 0.2),
    inset 0 1px 0 rgba(139, 115, 85, 0.2) !important;
}

/* 折叠面板标题 */
.markdown-body details summary {
  color: #f4d03f !important;
  font-family: 'Georgia', serif !important;
  font-weight: bold !important;
  cursor: pointer !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  list-style: none !important;
  user-select: none !important;
}

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

.markdown-body details summary::before {
  content: '▶' !important;
  display: inline-block !important;
  margin-right: 8px !important;
  transition: transform 0.3s ease !important;
  color: #cd7f32 !important;
}

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

.markdown-body details summary:hover {
  background: rgba(42, 36, 25, 0.6) !important;
  text-shadow: 0 0 8px rgba(244, 208, 63, 0.4) !important;
}

/* 折叠面板内容 */
.markdown-body details > *:not(summary) {
  margin-top: 12px !important;
  padding-left: 8px !important;
  animation: fadeIn 0.3s ease !important;
}

@keyframes fadeIn {
  from {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
  }
  to {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* 标题样式 */
.markdown-body h3 {
  color: #f4d03f !important;
  font-family: 'Georgia', serif !important;
  border-bottom: 2px solid #8b7355 !important;
  padding-bottom: 8px !important;
  margin-top: 16px !important;
  text-shadow: 0 0 8px rgba(244, 208, 63, 0.3) !important;
}

.markdown-body h2 {
  color: #f4d03f !important;
  font-family: 'Georgia', serif !important;
  border-bottom: 2px solid #cd7f32 !important;
  padding-bottom: 10px !important;
  margin-top: 20px !important;
  text-shadow: 0 0 10px rgba(244, 208, 63, 0.4) !important;
}

.markdown-body h4 {
  color: #cd7f32 !important;
  font-family: 'Georgia', serif !important;
  margin-top: 12px !important;
}

/* 小标题 */
.markdown-body sub {
  color: #8b7355 !important;
  font-family: 'Georgia', serif !important;
  font-style: italic !important;
}

/* 引用块 - 功能说明 */
.markdown-body blockquote {
  background: rgba(42, 36, 25, 0.4) !important;
  border-left: 4px solid #cd7f32 !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  margin: 12px 0 !important;
  color: #c9b896 !important;
  font-family: 'Georgia', serif !important;
  box-shadow: inset 0 1px 0 rgba(139, 115, 85, 0.2) !important;
}

.markdown-body blockquote b {
  color: #f4d03f !important;
  font-weight: bold !important;
}

/* 分隔线 */
.markdown-body hr {
  border: none !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #8b7355, transparent) !important;
  margin: 24px 0 !important;
  opacity: 0.6 !important;
}

/* Emoji 图标增强 */
.markdown-body details summary::first-letter {
  font-size: 1.2em !important;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5)) !important;
}

/* 嵌套折叠面板 */
.markdown-body details details {
  background: rgba(42, 36, 25, 0.5) !important;
  border-color: #6d5d45 !important;
  margin: 8px 0 !important;
}

.markdown-body details details summary {
  color: #cd7f32 !important;
  font-size: 0.95em !important;
}

.markdown-body details details[open] {
  background: rgba(42, 36, 25, 0.7) !important;
  border-color: #8b7355 !important;
}

/* 列表样式 */
.markdown-body ul,
.markdown-body ol {
  color: #c9b896 !important;
}

.markdown-body li::marker {
  color: #cd7f32 !important;
}

/* 链接样式 */
.markdown-body a {
  color: #d4af37 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
  transition: all 0.3s ease !important;
}

.markdown-body a:hover {
  color: #f4d03f !important;
  border-bottom-color: #f4d03f !important;
  text-shadow: 0 0 6px rgba(244, 208, 63, 0.3) !important;
}

/* 表格样式 */
.markdown-body table {
  border-collapse: collapse !important;
  border: 1px solid #8b7355 !important;
  background: rgba(26, 21, 16, 0.6) !important;
}

.markdown-body th {
  background: rgba(42, 36, 25, 0.8) !important;
  color: #f4d03f !important;
  border: 1px solid #8b7355 !important;
  padding: 8px 12px !important;
  font-family: 'Georgia', serif !important;
}

.markdown-body td {
  border: 1px solid #8b7355 !important;
  padding: 8px 12px !important;
  color: #c9b896 !important;
}

.markdown-body tr:hover {
  background: rgba(42, 36, 25, 0.4) !important;
}

/* 行内代码 */
.markdown-body code:not(pre code) {
  background: rgba(42, 36, 25, 0.6) !important;
  color: #f4d03f !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  border: 1px solid #8b7355 !important;
  font-family: 'Courier New', monospace !important;
}

/* ==================== 滚动条美化 ==================== */

::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track {
  background: rgba(13, 10, 8, 0.5) !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b7355 0%, #cd7f32 100%) !important;
  border-radius: 4px !important;
  transition: background 0.3s ease !important;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #cd7f32 0%, #d4af37 100%) !important;
}

/* ==================== 移动端适配 ==================== */

@media (max-width: 768px) {
  /* 聊天气泡背景修复 */
  .bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(135deg, #2a2419 0%, #1a1510 100%) !important;
    border-radius: 6px !important;
  }
  
  /* 消息文本颜色确保 */
  .markdown-body {
    color: #d4af37 !important;
    background: transparent !important;
  }
  
  /* 输入框背景修复 */
  #ai-chat-bottom-input {
    background: rgba(26, 21, 16, 0.95) !important;
    border-radius: 8px !important;
  }
    
  #ai-chat-input {
    background: transparent !important;
    color: #d4af37 !important;
  }
  
  /* 顶部栏背景修复 */
  .sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(180deg, #1a1510 0%, #0d0a08 100%) !important;
  }
  
  /* 评论区背景修复 */
  div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(180deg, #1a1510 0%, #0d0a08 100%) !important;
  }
  
  /* 折叠面板背景修复 */
  .markdown-body details {
    background: rgba(26, 21, 16, 0.8) !important;
    padding: 6px 10px !important;
  }
  
  .markdown-body details[open] {
    background: rgba(26, 21, 16, 0.95) !important;
  }
  
  .markdown-body details summary {
    font-size: 0.9em !important;
    padding: 6px 10px !important;
  }
  
  /* 代码块背景修复 */
  .markdown-body pre code {
    background: linear-gradient(135deg, #2a2419 0%, #1a1510 100%) !important;
    font-size: 0.85em !important;
    padding: 12px !important;
  }
  
  /* 标题字体大小调整 */
  .markdown-body h2 {
    font-size: 1.5em !important;
  }
  
  .markdown-body h3 {
    font-size: 1.3em !important;
  }
  
  /* 加载动画容器调整 */
  .flex.items-center.justify-center.w-6.h-5 {
    min-width: 180px !important;
    font-size: 13px !important;
  }
  
  .flex.items-center.justify-center.w-6.h-5::before {
    font-size: 13px !important;
    animation: textRotate 12s forwards !important;
  }
  
  /* 模型选择器背景修复 */
  #ai-model-selector .group.flex.items-center {
    background: rgba(42, 36, 25, 0.6) !important;
  }
  
  /* 开场白选择器背景修复 */
  div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
    background: rgba(42, 36, 25, 0.6) !important;
  }
  
  /* 引用块背景修复 */
  .markdown-body blockquote {
    background: rgba(42, 36, 25, 0.4) !important;
  }
  
  /* 表格背景修复 */
  .markdown-body table {
    background: rgba(26, 21, 16, 0.6) !important;
  }
  
  .markdown-body th {
    background: rgba(42, 36, 25, 0.8) !important;
  }
  
  /* 输入框容器背景修复 */
  textarea.rc-textarea {
    background: rgba(26, 21, 16, 0.8) !important;
  }
  
  /* 分页输入框背景修复 */
  .MuiInputBase-input {
    background: rgba(26, 21, 16, 0.6) !important;
  }
  
  /* 按钮背景修复 */
  button.MuiButton-containedPrimary {
    background: rgba(212, 175, 55, 0.2) !important;
  }
  
  button.MuiButton-outlinedPrimary {
    background: transparent !important;
  }
  
  button.MuiButton-outlinedPrimary:hover {
    background: rgba(42, 36, 25, 0.4) !important;
  }
  
  /* 评论区元素背景修复 */
  div.bg-gray-100.text-gray-500 {
    background: rgba(42, 36, 25, 0.4) !important;
  }
  
  div.cursor-pointer.group.flex.items-center.justify-center {
    background: rgba(205, 127, 50, 0.2) !important;
  }
  
  div.cursor-pointer.group.flex.items-center.justify-center:hover {
    background: rgba(205, 127, 50, 0.4) !important;
  }
}

/* ==================== 减弱动效 ==================== */

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
  
  .markdown-body details > *:not(summary) {
    animation: none !important;
  }
  
  .markdown-body details summary::before {
    transition: none !important;
  }
  
  .flex.items-center.justify-center.w-6.h-5::before {
    animation: textRotate 12s steps(8) forwards !important;
  }
  
  .flex.items-center.justify-center.w-6.h-5::after {
    animation: none !important;
    opacity: 0.6 !important;
  }
} 