/* ===== 日常感界面美化 - 和纸木质风格 ===== */
/* 设计理念：自然舒适、柔和光线、温暖触感 */

/* === 一、全局基础设定 === */
* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans CJK JP", sans-serif !important;
  transition: all 0.25s ease-in-out !important;
}

/* === 二、顶部控制栏 - 木质边框 === */
.sticky.top-0 {
  background: linear-gradient(135deg, #FAF9F6 0%, #F0F4F8 100%) !important;
  border-bottom: 2px solid #8B7355 !important;
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.08) !important;
  padding: 12px 16px !important;
}

/* 模型选择器 - 和纸卡片 */
#ai-model-selector {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid #E8E4D9 !important;
  border-radius: 10px !important;
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    0 3px 8px rgba(0, 0, 0, 0.05) !important;
  padding: 8px 16px !important;
}

#ai-model-selector .truncate {
  color: #5A5240 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
}

#ai-model-selector svg[data-icon="ChevronDown"] {
  color: #8FBC8F !important;
  transition: transform 0.2s !important;
}

#ai-model-selector:hover svg[data-icon="ChevronDown"] {
  transform: translateY(2px) !important;
}

/* 设置按钮 - 陶瓷质感 */
#header-setting-button {
  background: linear-gradient(145deg, #F5F5F5, #E8E8E8) !important;
  border: 1px solid #D8D4C9 !important;
  border-radius: 10px !important;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.7) !important;
  color: #6C8EBF !important;
  padding: 8px 12px !important;
}

#header-setting-button:hover {
  background: linear-gradient(145deg, #E8E8E8, #F5F5F5) !important;
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 3px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-1px) !important;
}

/* 移动端历史图标 & 音乐按钮 */
.lucide-clock8.md\:hidden,
button .lucide-music2 {
  color: #8B7355 !important;
  background: rgba(143, 188, 143, 0.1) !important;
  border-radius: 8px !important;
  padding: 6px !important;
}

/* === 三、快捷按钮组 - 棉麻质感 === */
#ai-mod-button2 {
  background: rgba(240, 244, 248, 0.7) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(232, 228, 217, 0.6) !important;
  border-radius: 16px !important;
  margin: 12px auto !important;
  padding: 8px 12px !important;
  width: fit-content !important;
}

#ai-mod-button2 .MuiButton-outlinedPrimary {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1.5px solid #D8D4C9 !important;
  border-radius: 10px !important;
  color: #5A5240 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 0 4px !important;
  padding: 6px 14px !important;
}

#ai-mod-button2 .MuiButton-outlinedPrimary:hover {
  background: rgba(143, 188, 143, 0.1) !important;
  border-color: #8FBC8F !important;
  box-shadow: 0 4px 8px rgba(143, 188, 143, 0.15) !important;
  color: #6B8E23 !important;
  transform: translateY(-2px) !important;
}

#ai-mod-button2 svg {
  color: #8FBC8F !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05)) !important;
}

/* 隐藏按钮开关 */
#toggle-sub-buttons {
  background: rgba(139, 115, 85, 0.15) !important;
  border-radius: 50% !important;
  color: #8B7355 !important;
}

/* === 四、底部输入区 - 和纸书写区 === */
/* 渐变层改为自然光晕 */
.bg-gradient-to-t {
  background: linear-gradient(to top, 
    rgba(250, 249, 246, 0.98) 0%,
    rgba(240, 244, 248, 0.9) 50%,
    rgba(240, 244, 248, 0.6) 100%) !important;
}

/* 输入框容器 - 亚克力质感 */
.bg-white.border-\[1\.5px\] {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(232, 228, 217, 0.8) !important;
  border-radius: 16px !important;
  box-shadow: 
    0 8px 24px rgba(139, 115, 85, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.7) !important;
  padding: 16px !important;
}

/* 主输入框 - 毛笔字效果 */
#ai-chat-input {
  background: transparent !important;
  border: none !important;
  color: #1A1A1A !important; /* 符合对比度标准 */
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  min-height: 60px !important;
  padding: 0 !important;
  resize: none !important;
}

#ai-chat-input::placeholder {
  color: #A09A8C !important;
  font-style: italic !important;
  opacity: 0.7 !important;
}

#ai-chat-input::selection {
  background: rgba(143, 188, 143, 0.3) !important;
}

/* 字符计数器 - 小标签 */
.absolute.bottom-2.right-2 .bg-gray-100 {
  background: rgba(139, 115, 85, 0.1) !important;
  border-radius: 6px !important;
  color: #8B7355 !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
}

/* 发送按钮 - 陶瓷钮扣 */
#ai-send-button {
  background: linear-gradient(145deg, #8FBC8F, #7DBE9B) !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 
    0 4px 8px rgba(143, 188, 143, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
  color: white !important;
  padding: 10px 20px !important;
}

#ai-send-button:hover {
  background: linear-gradient(145deg, #7DBE9B, #8FBC8F) !important;
  box-shadow: 
    0 6px 12px rgba(143, 188, 143, 0.35),
    inset 0 1px 3px rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) scale(1.05) !important;
}

#ai-send-button .icon-icon-send {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)) !important;
}

/* === 五、分页控制 - 日式活字排版 === */
.mo-pagination {
  background: rgba(250, 249, 246, 0.8) !important;
  border-radius: 12px !important;
  padding: 8px !important;
}

.MuiPaginationItem-root {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #E8E4D9 !important;
  border-radius: 8px !important;
  color: #5A5240 !important;
  margin: 0 2px !important;
  min-width: 36px !important;
}

.MuiPaginationItem-root:hover {
  background: rgba(143, 188, 143, 0.15) !important;
  border-color: #8FBC8F !important;
  color: #6B8E23 !important;
}

.MuiPaginationItem-root.Mui-selected {
  background: linear-gradient(135deg, #8FBC8F, #6C8EBF) !important;
  border: none !important;
  box-shadow: 0 3px 6px rgba(143, 188, 143, 0.2) !important;
  color: white !important;
  font-weight: 600 !important;
}

.MuiPaginationItem-root.Mui-disabled {
  background: rgba(232, 228, 217, 0.5) !important;
  color: #C4BDB0 !important;
  opacity: 0.6 !important;
}

.MuiPaginationItem-previousNext .MuiPaginationItem-icon {
  color: #8B7355 !important;
}

/* 跳转输入区域 */
.forum-pagination-input-wrapper {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #E8E4D9 !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
}

.forum-pagination-input-wrapper .MuiInputBase-input {
  color: #5A5240 !important;
  font-size: 14px !important;
  padding: 4px !important;
  text-align: center !important;
}

.MuiStack-root.text-sm .MuiBox-root {
  color: #8B7355 !important;
  font-weight: 500 !important;
}

/* === 六、响应式适配 === */
@media (max-width: 768px) {
  .sticky.top-0 {
    padding: 8px 12px !important;
  }
  
  #ai-mod-button2 {
    border-radius: 12px !important;
    overflow-x: auto !important;
    padding: 6px 8px !important;
    white-space: nowrap !important;
    width: 90% !important;
  }
  
  #ai-mod-button2 .MuiButton-outlinedPrimary {
    font-size: 12px !important;
    margin: 0 2px !important;
    padding: 4px 10px !important;
  }
  
  .bg-white.border-\[1\.5px\] {
    border-radius: 12px !important;
    margin: 0 8px !important;
    padding: 12px !important;
  }
  
  #ai-chat-input {
    font-size: 14px !important;
    min-height: 50px !important;
  }
  
  .mo-pagination {
    font-size: 13px !important;
  }
  
  .MuiPaginationItem-root {
    min-width: 32px !important;
    height: 32px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  
  #ai-send-button:hover,
  #ai-mod-button2 .MuiButton-outlinedPrimary:hover {
    transform: none !important;
  }
}

/* === 滚动条美化（可选） === */
::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 115, 85, 0.4) !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 115, 85, 0.6) !important;
}

::-webkit-scrollbar-track {
  background: rgba(240, 244, 248, 0.5) !important;
  border-radius: 4px !important;
}
css
/* === 代码块美化 - 专为【主角信息】Status块优化 === */
.markdown-body pre {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 105, 180, 0.2) !important;
  background: linear-gradient(145deg, #1a0f1f, #2a1a2f) !important;
}

.markdown-body pre > div {
  background: transparent !important;
}

/* 头部栏 - 粉紫梦幻渐变 */
.markdown-body pre > div > div.flex.justify-between.h-8.items-center.p-1.pl-3.border-b {
  background: linear-gradient(to right, #4c1d95, #db2777) !important;
  border-bottom: 1px solid rgba(236, 72, 153, 0.4) !important;
  height: 42px !important;
}

/* 语言标签 - 粉色高亮 */
.markdown-body pre > div > div.flex.justify-between.h-8.items-center.p-1.pl-3.border-b > div.text-\[13px\].text-gray-500.font-normal {
  color: #f9a8d4 !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* 复制按钮区域联动 */
.markdown-body pre svg.lucide-copy,
.markdown-body pre div[data-tooltip-id^="copy-tooltip"] > svg {
  color: #f9a8d4 !important;
}
.markdown-body pre .group:hover svg.lucide-copy,
.markdown-body pre div[data-tooltip-id^="copy-tooltip"]:hover > svg {
  color: #ff69b4 !important;
}

/* 代码内容区 - 深紫背景 + 内联样式覆盖 */
.markdown-body pre > div > div[node],
.markdown-body pre > div > div:last-child {
  background: #1a0f1f !important;
  color: #f3e8ff !important;
  padding: 18px 16px 18px 20px !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

/* 代码元素美化 */
.markdown-body pre code[class^="language-"],
.markdown-body pre > div > div[node] > code {
  color: #f3e8ff !important;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace !important;
  text-shadow: 0 0 8px rgba(249, 168, 212, 0.15) !important;
}

/* 状态块专属高亮 - 粉色标签与Emoji增强 */
.markdown-body pre code span[style*="color"] {
  color: #f472b6 !important;
}

/* 特定关键词高亮（姓名、乳房、小穴等敏感字段） */
.markdown-body pre code .token.keyword,
.markdown-body pre code .token.string,
.markdown-body pre code .token.number {
  color: #ff69b4 !important;
  font-weight: 600 !important;
}

/* 标题行【主角信息】特殊处理 */
.markdown-body pre code:contains("【主角信息】") {
  color: #ff1493 !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px #ff69b4;
}

/* 增强可读性 - 行高与间距 */
.markdown-body pre code {
  white-space: pre-wrap !important;
  word-break: break-all !important;
}

/* 整体悬停光效 */
.markdown-body pre:hover {
  box-shadow: 0 15px 40px -10px rgba(236, 72, 153, 0.35) !important;
  border-color: rgba(249, 168, 212, 0.45) !important;
}
css
/* === 代码块美化 - 专为Status信息面板优化 === */
.markdown-body pre {
  background: #0f0f0f !important;
  border: 1px solid #1f1f1f !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

/* 主容器 */
.markdown-body pre > div {
  background: #0f0f0f !important;
  border-radius: 12px !important;
}

/* 头部栏 */
.markdown-body pre > div > div.flex.justify-between.h-8.items-center.p-1.pl-3.border-b {
  background: #1a1a1a !important;
  border-bottom-color: #333333 !important;
  height: 42px !important;
}

/* 语言标签（Status） */
.markdown-body pre > div > div.flex.justify-between.h-8.items-center.p-1.pl-3.border-b > div.text-\[13px\].text-gray-500.font-normal {
  color: #a0a0a0 !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

/* 按钮包装区 */
.markdown-body pre > div > div.flex.justify-between.h-8.items-center.p-1.pl-3.border-b > div:last-child {
  opacity: 0.85 !important;
}

/* 复制按钮图标颜色联动 */
.markdown-body pre svg.lucide-copy,
.markdown-body pre div[data-tooltip-id^="copy-tooltip"] > svg {
  color: #777777 !important;
}
.markdown-body pre .group:hover svg.lucide-copy,
.markdown-body pre div[data-tooltip-id^="copy-tooltip"]:hover > svg {
  color: #00ff9d !important;
}

/* 代码内容区 - 深色终端风格 */
.markdown-body pre > div > div[node],
.markdown-body pre > div > div:last-child {
  background: #0f0f0f !important;
  color: #d4d4d4 !important;
  padding: 16px 20px !important;
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

/* 代码元素 */
.markdown-body pre code[class^="language-"],
.markdown-body pre code {
  color: #d4d4d4 !important;
  background: transparent !important;
}

/* 语法高亮优化（Status面板常用关键字着色） */
.markdown-body pre code span {
  color: #d4d4d4 !important;
}

/* 针对Status面板特定关键词高亮 */
.markdown-body pre code .token.keyword,
.markdown-body pre code .token.property {
  color: #ff79c6 !important;
}
.markdown-body pre code .token.string {
  color: #50fa7b !important;
}
.markdown-body pre code .token.number {
  color: #bd93f9 !important;
}
.markdown-body pre code .token.comment {
  color: #6272a4 !important;
  font-style: italic !important;
}

/* 纯代码块备用样式 */
.markdown-body pre > code[node] {
  background: #0f0f0f !important;
  padding: 16px 20px !important;
  color: #d4d4d4 !important;
}

/* 整体悬停微光效果 */
.markdown-body pre:hover {
  box-shadow: 0 15px 40px rgba(0, 255, 157, 0.08) !important;
  border-color: #333333 !important;
}
css
.markdown-body pre {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #0f0f0f !important;
}

.markdown-body pre > div {
  background: #0f0f0f !important;
}

.markdown-body pre > div > div.flex.justify-between.h-8.items-center.p-1.pl-3.border-b {
  background: #1a1a1a !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  height: 42px !important;
}

.markdown-body pre > div > div.flex.justify-between.h-8.items-center.p-1.pl-3.border-b > div.text-\[13px\].text-gray-500.font-normal {
  color: #aaaaaa !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
}

.markdown-body pre > div > div.flex.justify-between > div[style*="display: flex"] {
  gap: 4px !important;
}

/* 复制按钮图标颜色联动（适配深色背景） */
.markdown-body pre svg.lucide-copy,
.markdown-body pre div[data-tooltip-id^="copy-tooltip"] > svg {
  color: #888888 !important;
}

.markdown-body pre .group:hover svg.lucide-copy,
.markdown-body pre div[data-tooltip-id^="copy-tooltip"]:hover > svg {
  color: #ffffff !important;
}

/* 代码内容区内联样式覆盖 */
.markdown-body pre > div > div[node],
.markdown-body pre > div > div:last-child {
  background: #0f0f0f !important;
  color: #e0e0e0 !important;
  padding: 16px 16px 16px 20px !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

.markdown-body pre code[class^="language-"],
.markdown-body pre > div > div[node] > code {
  background: transparent !important;
  color: inherit !important;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace !important;
}

/* 语法高亮优化（基础适配深色） */
.markdown-body pre code[class^="language-"] > span,
.markdown-body pre code span {
  color: #e0e0e0 !important;
}

/* 纯代码块处理 */
.markdown-body pre > code[node],
.markdown-body pre > code:only-child {
  background: #0f0f0f !important;
  color: #e0e0e0 !important;
  padding: 16px 20px !important;
  border-radius: 0 0 12px 12px !important;
}

/* Tooltip 轻微美化（全局） */
div[id^="copy-tooltip"] {
  background: #1f1f1f !important;
  color: #eeeeee !important;
  border: 1px solid #444 !important;
  font-size: 12px !important;
}
css
/* 暖色调聊天框美化方案 */

.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe4d1 40%, #ffd4b8 100%) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 25px rgba(255, 140, 80, 0.18),
                inset 0 2px 8px rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ffccaa !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.bg-gray-100\/90.relative.inline-block:hover {
    box-shadow: 0 12px 32px rgba(255, 140, 80, 0.25),
                inset 0 2px 8px rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-1px) !important;
}

/* 输入聊天框单独加强 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    background: linear-gradient(135deg, #fff9f2 0%, #ffe8d6 50%, #ffdbbe 100%) !important;
    border: 1.5px solid #ffb380 !important;
}

/* 主要文本内容 - 确保高对比度可读性 */
.markdown-body {
    color: #3f2a1e !important;
    font-weight: 500 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1.75 !important;
    text-shadow: none !important;
    background: transparent !important;
    z-index: 1 !important;
    position: relative !important;
}

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

/* 底部附加元素 - 高对比度浅暖色，确保在暖色背景上清晰可见 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #5c4033 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* 加载元素隐藏 + 自定义暖色加载动画（使用内联SVG SMIL） */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    height: 28px !important;
    width: 28px !important;
}

/* 暖色加载动画 - 使用 ::before 插入内联SVG + SMIL动画 */
.flex.items-center.justify-center.w-6.h-5::before {
    content: '';
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 22px !important;
    height: 22px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23ff9f5c' stroke-width='3' stroke-dasharray='12 8'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 11 11' to='360 11 11' dur='1.1s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='11' cy='11' r='4' fill='%23ff6b35'/%3E%3C/svg%3E") center/contain no-repeat !important;
    z-index: 2 !important;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        border-radius: 14px !important;
        margin: 4px 0 !important;
    }
    
    .flex.items-center.justify-center.w-6.h-5 {
        height: 24px !important;
        width: 24px !important;
    }
}

/* 低动效偏好适配 - 降低动画幅度但保留温暖视觉 */
@media (prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block {
        transition: background 0.4s ease !important;
    }
}