/* ============================================
   古风武侠·盲女宗师 — 全界面沉浸美化（修补版 v2）
   水墨丹青 · 金丝暗纹 · 兰花意象
   ============================================ */

/* ── 全局字体 ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Ma+Shan+Zheng&display=swap');

/* ============================================
   ★ 防御性兜底：AI 输出区自定义标签块级化
   防止 <stx>/<sec>/<cot> 等自定义容器默认 inline 导致布局崩
   ============================================ */
.markdown-body stx, .markdown-body sec, .markdown-body cot,
.markdown-body act, .markdown-body opt, .markdown-body mem,
.markdown-body hd,  .markdown-body tag, .markdown-body term,
.markdown-body ntx, .markdown-body story-text, .markdown-body cot-block,
.markdown-body term-panel, .markdown-body game-bar {
    display: block;
}

/* 思考块隐藏 — 覆盖常见标签变体 */
think, thinking, reasoning {
    display: none !important;
}

/* ============================================
   一、顶部栏 — 墨夜金纹
   ============================================ */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1520 30%, #0d1117 60%, #1a0f1e 100%) !important;
  border-bottom: 1px solid transparent !important;
  border-image: linear-gradient(90deg, transparent 0%, #c9a84c 20%, #f5e6a3 50%, #c9a84c 80%, transparent 100%) 1 !important;
  box-shadow:
    0 2px 20px rgba(201, 168, 76, 0.15),
    0 1px 0 rgba(201, 168, 76, 0.1),
    inset 0 -1px 30px rgba(201, 168, 76, 0.03) !important;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', 'STSong',
               Georgia, "Microsoft YaHei", sans-serif !important;
  position: relative !important;
  overflow: visible !important;
  transition: all 0.5s ease !important;
}

.sticky.w-full.top-0.flex.items-center::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 120px !important;
  height: 100% !important;
  background: radial-gradient(ellipse at left center, rgba(201, 168, 76, 0.08) 0%, transparent 70%) !important;
  pointer-events: none !important;
  animation: inkBleed 6s ease-in-out infinite alternate !important;
}

.sticky.w-full.top-0.flex.items-center::after {
  content: '蘭' !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', cursive !important;
  font-size: 28px !important;
  color: rgba(201, 168, 76, 0.06) !important;
  pointer-events: none !important;
  animation: ghostBreath 4s ease-in-out infinite !important;
}

#ai-model-selector .group.flex.items-center {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1) 0%, rgba(201, 168, 76, 0.05) 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  position: relative !important;
  overflow: hidden !important;
}

#ai-model-selector .group.flex.items-center::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent) !important;
  transition: left 0.6s ease !important;
  pointer-events: none !important;
}

#ai-model-selector .group.flex.items-center:hover::before { left: 100% !important; }

#ai-model-selector .group.flex.items-center:hover {
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.2) !important;
}

#ai-model-selector .truncate.text-\[13px\] {
  color: #f5e6a3 !important;
  font-family: 'Noto Serif SC', serif !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.3) !important;
}

#ai-model-selector .shrink-0.flex.items-center svg {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.4)) !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover .shrink-0.flex.items-center svg {
  transform: rotate(180deg) !important;
  filter: drop-shadow(0 0 6px rgba(245, 230, 163, 0.6)) !important;
}

.sticky.w-full.top-0 svg.lucide-clock-8 {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.3)) !important;
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 svg.lucide-clock-8:hover {
  filter: drop-shadow(0 0 8px rgba(245, 230, 163, 0.6)) !important;
  transform: rotate(15deg) !important;
}

.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background: radial-gradient(circle, #ff6b6b 0%, #c44040 100%) !important;
  box-shadow: 0 0 6px rgba(255, 107, 107, 0.6), 0 0 12px rgba(255, 107, 107, 0.3) !important;
  animation: badgePulse 2s ease-in-out infinite !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2) {
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.3)) !important;
  transition: all 0.4s ease !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root:hover svg.lucide-music-2 {
  filter: drop-shadow(0 0 8px rgba(245, 230, 163, 0.7)) !important;
  animation: musicFloat 1s ease-in-out infinite !important;
}

.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.3)) !important;
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
  filter: drop-shadow(0 0 8px rgba(245, 230, 163, 0.6)) !important;
  transform: rotate(45deg) !important;
}

#header-setting-button {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12) 0%, rgba(201, 168, 76, 0.05) 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 8px !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  position: relative !important;
  overflow: hidden !important;
}

#header-setting-button::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 8px !important;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.15) 0%, transparent 70%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

#header-setting-button:hover::after { opacity: 1 !important; }

#header-setting-button:hover {
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2) !important;
}

#header-setting-button svg {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.3)) !important;
  transition: all 0.5s ease !important;
}

#header-setting-button:hover svg {
  filter: drop-shadow(0 0 8px rgba(245, 230, 163, 0.6)) !important;
  transform: rotate(90deg) !important;
}


/* ============================================
   二、开场白选择器 — 古卷铜扣
   ============================================ */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
  background: linear-gradient(135deg, #1a1520 0%, #0d1117 50%, #1a0f1e 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 8px !important;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(201, 168, 76, 0.1) !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent) !important;
  pointer-events: none !important;
}

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover {
  border-color: rgba(201, 168, 76, 0.6) !important;
  box-shadow:
    0 4px 20px rgba(201, 168, 76, 0.15),
    inset 0 0 20px rgba(201, 168, 76, 0.05) !important;
}

div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"] {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.4)) !important;
  transition: all 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.3)) !important;
  transition: transform 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group:hover svg[data-icon="ChevronDown"] {
  transform: rotate(180deg) !important;
  filter: drop-shadow(0 0 6px rgba(245, 230, 163, 0.6)) !important;
}

div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]) {
  background: linear-gradient(135deg, #1a1520 0%, #0d1117 100%) !important;
  border-color: rgba(201, 168, 76, 0.3) !important;
}


/* ============================================
   三、按钮栏 — 竹简卷轴
   ============================================ */
#ai-mod-button2 { position: relative !important; }

#ai-mod-button2::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.2) 20%, rgba(201, 168, 76, 0.2) 80%, transparent 100%) !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(180deg, #1e1828 0%, #12101a 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 6px !important;
  color: #e8d5a0 !important;
  font-family: 'Noto Serif SC', serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  text-shadow: 0 0 6px rgba(201, 168, 76, 0.2) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(201, 168, 76, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  position: relative !important;
  overflow: hidden !important;
}

#ai-mod-button2 button.MuiButton-root::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -150% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent) !important;
  transform: skewX(-25deg) !important;
  transition: left 0.6s ease !important;
  pointer-events: none !important;
}

#ai-mod-button2 button.MuiButton-root:hover::before { left: 200% !important; }

#ai-mod-button2 button.MuiButton-root::after {
  content: '' !important;
  position: absolute !important;
  bottom: 2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 20px !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(180, 60, 0.6), transparent) !important;
  border-radius: 1px !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease, width 0.3s ease !important;
  pointer-events: none !important;
}

#ai-mod-button2 button.MuiButton-root:hover::after {
  opacity: 1 !important;
  width: 60% !important;
}

#ai-mod-button2 button.MuiButton-root:hover {
  border-color: rgba(201, 168, 76, 0.6) !important;
  box-shadow:
    0 4px 16px rgba(201, 168, 76, 0.2),
    0 0 25px rgba(201, 168, 76, 0.08),
    inset 0 1px 0 rgba(201, 168, 76, 0.2) !important;
  transform: translateY(-1px) !important;
  color: #f5e6a3 !important;
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.4) !important;
}

#ai-mod-button2 button.MuiButton-root:active {
  transform: translateY(0px) !important;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

#ai-mod-button2 button.MuiButton-root svg {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.3)) !important;
  transition: all 0.3s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover svg {
  filter: drop-shadow(0 0 6px rgba(245, 230, 163, 0.6)) !important;
  color: #f5e6a3 !important;
}


/* ============================================
   四、底部栏 — 宣纸墨韵
   ============================================ */
.bg-gradient-to-t {
  background: linear-gradient(to top, #0a0a0f 0%, #0a0a0fcc 40%, transparent 100%) !important;
}

#ai-chat-bottom-input {
  background: linear-gradient(135deg, #1a1520 0%, #12101a 50%, #1a0f1e 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 12px !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(201, 168, 76, 0.04),
    inset 0 1px 0 rgba(201, 168, 76, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.5s ease !important;
}

#ai-chat-bottom-input::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 5% !important;
  right: 5% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), rgba(245, 230, 163, 0.5), rgba(201, 168, 76, 0.3), transparent) !important;
  pointer-events: none !important;
  animation: goldThread 3s ease-in-out infinite alternate !important;
}

#ai-chat-bottom-input::after {
  content: '' !important;
  position: absolute !important;
  bottom: -5px !important;
  left: 20% !important;
  right: 20% !important;
  height: 10px !important;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%) !important;
  filter: blur(4px) !important;
  pointer-events: none !important;
}

#ai-chat-bottom-input:focus-within {
  border-color: rgba(201, 168, 76, 0.45) !important;
  box-shadow:
    0 4px 30px rgba(201, 168, 76, 0.12),
    0 0 60px rgba(201, 168, 76, 0.06),
    inset 0 0 30px rgba(201, 168, 76, 0.03) !important;
}

#ai-chat-input {
  color: #e8d5a0 !important;
  font-family: 'Noto Serif SC', 'SimSun', serif !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  line-height: 1.7 !important;
  caret-color: #c9a84c !important;
  background: transparent !important;
}

#ai-chat-input::placeholder {
  color: rgba(201, 168, 76, 0.3) !important;
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', cursive !important;
  font-size: 15px !important;
  letter-spacing: 3px !important;
  font-style: normal !important;
}

#ai-chat-input::selection {
  background: rgba(201, 168, 76, 0.3) !important;
  color: #fff !important;
}


/* ============================================
   五、分页栏 — 铜钱印章
   ============================================ */
.MuiPaginationItem-root {
  color: #c9a84c !important;
  font-family: 'Noto Serif SC', serif !important;
  font-weight: 700 !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1a1520 0%, #12101a 100%) !important;
  transition: all 0.4s ease !important;
  text-shadow: 0 0 4px rgba(201, 168, 76, 0.2) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.MuiPaginationItem-root:hover {
  border-color: rgba(201, 168, 76, 0.6) !important;
  box-shadow:
    0 0 15px rgba(201, 168, 76, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.4) !important;
  color: #f5e6a3 !important;
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.5) !important;
  background: linear-gradient(135deg, #2a1f35 0%, #1a1520 100%) !important;
}

.MuiPaginationItem-root.Mui-selected {
  background: radial-gradient(circle, #8b2020 0%, #6b1515 40%, #4a0e0e 100%) !important;
  border-color: rgba(180, 60, 60, 0.6) !important;
  color: #f5e6a3 !important;
  box-shadow:
    0 0 15px rgba(180, 60, 60, 0.3),
    0 0 30px rgba(180, 60, 60, 0.1),
    inset 0 0 10px rgba(0, 0, 0, 0.3) !important;
  text-shadow: 0 0 8px rgba(245, 230, 163, 0.6) !important;
  font-weight: 900 !important;
}

.MuiPaginationItem-root.Mui-disabled {
  color: rgba(201, 168, 76, 0.15) !important;
  border-color: rgba(201, 168, 76, 0.08) !important;
  background: rgba(10, 10, 15, 0.6) !important;
  box-shadow: none !important;
}

.MuiPaginationItem-icon {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.3)) !important;
  transition: all 0.3s ease !important;
}

.MuiPaginationItem-root:hover .MuiPaginationItem-icon {
  color: #f5e6a3 !important;
  filter: drop-shadow(0 0 6px rgba(245, 230, 163, 0.5)) !important;
}

.MuiStack-root.css-1uwir8f {
  background: rgba(26, 21, 32, 0.8) !important;
  border-radius: 8px !important;
}

.MuiStack-root.css-1uwir8f .MuiBox-root {
  color: rgba(201, 168, 76, 0.6) !important;
  font-family: 'Noto Serif SC', serif !important;
}

.MuiInputBase-input {
  color: #e8d5a0 !important;
  font-family: 'Noto Serif SC', serif !important;
  border-color: rgba(201, 168, 76, 0.2) !important;
  background: rgba(10, 10, 15, 0.6) !important;
  caret-color: #c9a84c !important;
}


/* ============================================
   六、评论区 — 古籍批注风
   ★ 全部加 scope 前缀，防止误伤 AI 输出
   ============================================ */

/* 评论区根容器（同时作为后续 scope 锚点） */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: linear-gradient(180deg, #0e0b14 0%, #1a1520 30%, #12101a 70%, #0e0b14 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.12) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(201, 168, 76, 0.08) !important;
}

/* 顶部"评论(x)"标题 */
[class*="bg-white"][class*="bottom-0"] div.text-lg.font-bold {
  color: #f5e6a3 !important;
  font-family: 'Noto Serif SC', serif !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.3) !important;
  position: relative !important;
}

[class*="bg-white"][class*="bottom-0"] div.text-lg.font-bold::after {
  content: '' !important;
  position: absolute !important;
  bottom: -6px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.6) 0%, rgba(180, 60, 60, 0.4) 50%, transparent 100%) !important;
  border-radius: 1px !important;
}

[class*="bg-white"][class*="bottom-0"] p.MuiTypography-body1.text-grey-600 {
  color: rgba(201, 168, 76, 0.6) !important;
  font-family: 'Noto Serif SC', serif !important;
  letter-spacing: 2px !important;
}

/* 评分星 */
span.MuiRating-root {
  filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.2)) !important;
}

span.MuiRating-iconEmpty svg {
  color: rgba(201, 168, 76, 0.2) !important;
  transition: all 0.3s ease !important;
}

span.MuiRating-iconEmpty:hover svg {
  color: rgba(201, 168, 76, 0.5) !important;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.3)) !important;
}

span.MuiRating-iconFilled svg {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.5)) !important;
  animation: starGlow 2s ease-in-out infinite alternate !important;
}

/* ★ 评分数字 — 用相邻兄弟选择器锁定，避免与底部加载提示冲突 */
.MuiRating-root + span.text-orange-500,
.MuiRating-root ~ span.text-orange-500,
[class*="bg-white"][class*="bottom-0"] span.text-orange-500 {
  color: #f5e6a3 !important;
  font-family: 'Noto Serif SC', serif !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.4) !important;
}

/* 评论输入框容器 */
[class*="bg-white"][class*="bottom-0"] div.flex.flex-col.border-gray-200 {
  border-color: rgba(201, 168, 76, 0.15) !important;
  background: linear-gradient(135deg, rgba(26, 21, 32, 0.6) 0%, rgba(18, 16, 26, 0.8) 100%) !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

[class*="bg-white"][class*="bottom-0"] div.flex.flex-col.border-gray-200:focus-within {
  border-color: rgba(201, 168, 76, 0.35) !important;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.08) !important;
}

textarea.rc-textarea {
  color: #e8d5a0 !important;
  font-family: 'Noto Serif SC', serif !important;
  background: transparent !important;
  caret-color: #c9a84c !important;
  letter-spacing: 0.5px !important;
  line-height: 1.6 !important;
}

textarea.rc-textarea::placeholder {
  color: rgba(201, 168, 76, 0.25) !important;
  font-family: 'Ma Shan Zheng', cursive !important;
  letter-spacing: 2px !important;
}

[class*="bg-white"][class*="bottom-0"] div.bg-gray-100.text-gray-500 {
  background: rgba(201, 168, 76, 0.06) !important;
  color: rgba(201, 168, 76, 0.4) !important;
  font-family: 'Noto Serif SC', serif !important;
  border-radius: 0 0 10px 10px !important;
}

/* 发送评论按钮 — 加 scope 防误伤 */
[class*="bg-white"][class*="bottom-0"] div.cursor-pointer.group.flex.items-center.justify-center {
  background: linear-gradient(135deg, rgba(180, 60, 60, 0.3) 0%, rgba(139, 32, 32, 0.4) 100%) !important;
  border: 1px solid rgba(180, 60, 60, 0.3) !important;
  border-radius: 8px !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

[class*="bg-white"][class*="bottom-0"] div.cursor-pointer.group.flex.items-center.justify-center::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(circle at center, rgba(245, 230, 163, 0.1) 0%, transparent 70%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

[class*="bg-white"][class*="bottom-0"] div.cursor-pointer.group.flex.items-center.justify-center:hover::before {
  opacity: 1 !important;
}

[class*="bg-white"][class*="bottom-0"] div.cursor-pointer.group.flex.items-center.justify-center:hover {
  border-color: rgba(180, 60, 60, 0.6) !important;
  box-shadow:
    0 0 20px rgba(180, 60, 60, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px) !important;
}

[class*="bg-white"][class*="bottom-0"] div[data-state="closed"] svg[data-icon="Send03"] {
  color: #c9a84c !important;
  filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.4)) !important;
  transition: all 0.3s ease !important;
}

div.style_divider__mW0YX {
  background: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.2) 20%, rgba(201, 168, 76, 0.3) 50%, rgba(201, 168, 76, 0.2) 80%, transparent 100%) !important;
  height: 1px !important;
}

/* 排序按钮 */
.MuiStack-root.css-1dmzxoz { gap: 8px !important; }

button.MuiButton-containedPrimary {
  background: linear-gradient(135deg, #8b2020 0%, #6b1515 100%) !important;
  border: 1px solid rgba(180, 60, 60, 0.5) !important;
  color: #f5e6a3 !important;
  font-family: 'Noto Serif SC', serif !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  border-radius: 6px !important;
  box-shadow:
    0 2px 10px rgba(180, 60, 60, 0.3),
    inset 0 1px 0 rgba(245, 230, 163, 0.1) !important;
  text-shadow: 0 0 6px rgba(245, 230, 163, 0.3) !important;
}

button.MuiButton-outlinedPrimary {
  background: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  color: rgba(201, 168, 76, 0.6) !important;
  font-family: 'Noto Serif SC', serif !important;
  letter-spacing: 2px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

button.MuiButton-outlinedPrimary:hover {
  border-color: rgba(201, 168, 76, 0.5) !important;
  color: #c9a84c !important;
  background: rgba(201, 168, 76, 0.06) !important;
}

button.MuiButton-containedPrimary:hover,
button.MuiButton-outlinedPrimary:hover {
  transform: translateY(-1px) !important;
}

div.p-3.overflow-y-auto {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(201, 168, 76, 0.2) transparent !important;
}

div.p-3.overflow-y-auto::-webkit-scrollbar { width: 4px !important; }
div.p-3.overflow-y-auto::-webkit-scrollbar-track { background: transparent !important; }
div.p-3.overflow-y-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.3) 0%, rgba(201, 168, 76, 0.1) 100%) !important;
  border-radius: 2px !important;
}

/* 评论项 — 加 scope */
[class*="bg-white"][class*="bottom-0"] div.group.ml-0 {
  border-bottom: 1px solid rgba(201, 168, 76, 0.06) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  padding: 8px 4px !important;
}

[class*="bg-white"][class*="bottom-0"] div.group.ml-0:hover {
  background: rgba(201, 168, 76, 0.03) !important;
  border-bottom-color: rgba(201, 168, 76, 0.12) !important;
}

[class*="bg-white"][class*="bottom-0"] div.group.ml-0::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 2px !important;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.15), transparent) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

[class*="bg-white"][class*="bottom-0"] div.group.ml-0:hover::before { opacity: 1 !important; }

[class*="bg-white"][class*="bottom-0"] div.group img.rounded-full {
  border: 2px solid rgba(201, 168, 76, 0.25) !important;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.1) !important;
  transition: all 0.4s ease !important;
}

[class*="bg-white"][class*="bottom-0"] div.group img.rounded-full:hover {
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2) !important;
  transform: scale(1.05) !important;
}

[class*="bg-white"][class*="bottom-0"] div.text-sm.text-grey-600 span.font-bold {
  color: #c9a84c !important;
  font-family: 'Noto Serif SC', serif !important;
  font-weight: 700 !important;
  text-shadow: 0 0 6px rgba(201, 168, 76, 0.15) !important;
}

[class*="bg-white"][class*="bottom-0"] span.text-\[10px\] {
  color: rgba(180, 60, 60, 0.7) !important;
  font-family: 'Noto Serif SC', serif !important;
  background: rgba(180, 60, 60, 0.1) !important;
  border: 1px solid rgba(180, 60, 60, 0.2) !important;
  border-radius: 3px !important;
  padding: 0 4px !important;
}

/* ★ 评论内容 break-all — 严格 scope，避免误伤 AI 输出里的长字符串 */
[class*="bg-white"][class*="bottom-0"] div.group.ml-0 div.break-all {
  color: #d4c5a0 !important;
  font-family: 'Noto Serif SC', serif !important;
  line-height: 1.7 !important;
  letter-spacing: 0.3px !important;
}

[class*="bg-white"][class*="bottom-0"] div.text-xs.text-grey-600 {
  color: rgba(201, 168, 76, 0.35) !important;
  font-family: 'Noto Serif SC', serif !important;
  letter-spacing: 1px !important;
}

[class*="bg-white"][class*="bottom-0"] button.text-gray-400 {
  color: rgba(201, 168, 76, 0.35) !important;
  transition: all 0.3s ease !important;
}

[class*="bg-white"][class*="bottom-0"] button.text-gray-400:hover { color: #c9a84c !important; }

[class*="bg-white"][class*="bottom-0"] button.text-gray-400 svg {
  transition: all 0.3s ease !important;
}

[class*="bg-white"][class*="bottom-0"] button.text-gray-400:hover svg {
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.4)) !important;
  transform: scale(1.15) !important;
}

/* ★ 回复文字 — 严格 scope */
[class*="bg-white"][class*="bottom-0"] span.cursor-pointer {
  color: rgba(201, 168, 76, 0.4) !important;
  font-family: 'Noto Serif SC', serif !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

[class*="bg-white"][class*="bottom-0"] span.cursor-pointer:hover {
  color: #c9a84c !important;
  text-shadow: 0 0 6px rgba(201, 168, 76, 0.3) !important;
}

[class*="bg-white"][class*="bottom-0"] span.cursor-pointer::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 0 !important;
  height: 1px !important;
  background: #c9a84c !important;
  transition: width 0.3s ease !important;
}

[class*="bg-white"][class*="bottom-0"] span.cursor-pointer:hover::after { width: 100% !important; }

[class*="bg-white"][class*="bottom-0"] div.ml-8.border-l {
  border-color: rgba(201, 168, 76, 0.12) !important;
  position: relative !important;
}

[class*="bg-white"][class*="bottom-0"] div.ml-8.border-l::before {
  content: '' !important;
  position: absolute !important;
  left: -1px !important;
  top: 0 !important;
  width: 2px !important;
  height: 100% !important;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.25), rgba(201, 168, 76, 0.05)) !important;
  pointer-events: none !important;
}


/* ============================================
   七、聊天框主体 — 水墨武侠
   ============================================ */

/* 隐藏默认顶部颜色条 */
[class*="bg-[#F1CBCB]"],
[class*="bg-[#c9e9]"] {
    display: none !important;
}

/* 聊天框主体 */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(
        170deg,
        rgba(15, 10, 8, 0.92) 0%,
        rgba(30, 22, 18, 0.90) 35%,
        rgba(20, 15, 12, 0.93) 70%,
        rgba(10, 8, 6, 0.95) 100%
    ) !important;
    border: 1px solid rgba(180, 150, 100, 0.35) !important;
    border-left: 3px solid rgba(180, 150, 100, 0.6) !important;
    border-radius: 4px 12px 4px !important;
    box-shadow:
        0 0 15px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(180, 150, 100, 0.06),
        inset 0 0 60px rgba(0, 0, 0, 0.3) !important;
    padding: 18px 20px !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    transition: box-shadow 0.4s ease !important;
}

.bg-gray-100\/90.relative.inline-block:hover {
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(180, 150, 100, 0.1),
        inset 0 0 60px rgba(0, 0, 0, 0.3) !important;
}

/* ★ 用户/AI 气泡区分 — 用 :has() 替代复杂 :not() */
.chat-answer-container .bg-gray-100\/90.relative.inline-block {
    border-left-color: rgba(180, 150, 100, 0.6) !important;
}
/* 默认（非 AI 回答区）— 用户输入气泡偏绿调 */
.bg-gray-100\/90.relative.inline-block:not(:has(.markdown-body)) {
    border-left-color: rgba(140, 180, 160, 0.5) !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;
    z-index: 0 !important;
    opacity: 0.03 !important;
    pointer-events: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='1'/%3E%3C/svg%3E") !important;
    background-size: cover !important;
}

/* 飘落墨点 */
.bg-gray-100\/90.relative.inline-block::after {
    content: "" !important;
    position: absolute !important;
    top: -10% !important;
    left: 0 !important;
    width: 100% !important;
    height: 120% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0.04 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='600' viewBox='0 0 200 600'%3E%3Ccircle cx='30' cy='50' r='1.5' fill='%23c8a86e' opacity='0.8'%3E%3Canimate attributeName='cy' from='-20' to='620' dur='12s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0.8;0.8;0' dur='12s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='80' cy='150' r='1' fill='%23c8a86e' opacity='0.6'%3E%3Canimate attributeName='cy' from='-50' to='620' dur='18s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0.6;0.6;0' dur='18s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='150' cy='100' r='1.2' fill='%23c8a86e' opacity='0.7'%3E%3Canimate attributeName='cy' from='-30' to='620' dur='15s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0.7;0.7;0' dur='15s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='170' cy='200' r='0.8' fill='%23c8a86e' opacity='0.5'%3E%3Canimate attributeName='cy' from='-80' to='620' dur='20s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: repeat-x !important;
    background-size: 200px 600px !important;
}

/* 主要文本 */
.markdown-body {
    color: #E8E0D0 !important;
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", "Songti SC",
                 Georgia, "Microsoft YaHei", serif !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
}

.markdown-body strong {
    color: #D4A855 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(212, 168, 85, 0.15) !important;
}

.markdown-body em {
    color: #C8B89A !important;
    font-style: italic !important;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
    color: #D4A855 !important;
    font-weight: bold !important;
    border-bottom: 1px solid rgba(180, 150, 100, 0.2) !important;
    padding-bottom: 6px !important;
    margin-top: 1.2em !important;
}

.markdown-body a {
    color: #C8A86E !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(200, 168, 110, 0.4) !important;
}

.markdown-body blockquote {
    border-left: 3px solid rgba(180, 150, 100, 0.5) !important;
    background: rgba(180, 150, 100, 0.05) !important;
    color: #C8B89A !important;
    padding: 8px 14px !important;
    margin: 10px 0 !important;
    border-radius: 0 6px 6px 0 !important;
}

.markdown-body code {
    background: rgba(180, 150, 100, 0.12) !important;
    color: #D4A855 !important;
    border: 1px solid rgba(180, 150, 100, 0.2) !important;
    border-radius: 3px !important;
    padding: 1px 5px !important;
    font-family: "Fira Code", "Source Code Pro", monospace !important;
    font-size: 0.9em !important;
}

.markdown-body pre {
    background: rgba(10, 8, 6, 0.6) !important;
    border: 1px solid rgba(180, 150, 100, 0.2) !important;
    border-radius: 6px !important;
    padding: 12px !important;
}

.markdown-body pre code {
    background: transparent !important;
    border: none !important;
    color: #C8B89A !important;
}

.markdown-body hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(
        90deg, transparent 0%,
        rgba(180, 150, 100, 0.4) 20%,
        rgba(180, 150, 100, 0.6) 50%,
        rgba(180, 150, 100, 0.4) 80%,
        transparent 100%
    ) !important;
    margin: 20px 0 !important;
}

.markdown-body table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 10px 0 !important;
    font-size: 13px !important;
}

.markdown-body table th {
    background: rgba(180, 150, 100, 0.15) !important;
    color: #D4A855 !important;
    font-weight: bold !important;
    border: 1px solid rgba(180, 150, 100, 0.3) !important;
    padding: 8px 10px !important;
    text-align: left !important;
}

.markdown-body table td {
    border: 1px solid rgba(180, 150, 100, 0.15) !important;
    padding: 6px 10px !important;
    color: #D0C8B8 !important;
    background: rgba(0, 0, 0, 0.15) !important;
}

.markdown-body table tr:hover td {
    background: rgba(180, 150, 100, 0.08) !important;
}

/* 折叠栏 */
.markdown-body details {
    border: 1px solid rgba(180, 150, 100, 0.25) !important;
    border-radius: 6px !important;
    margin: 8px 0 !important;
    background: rgba(20, 15, 10, 0.5) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.markdown-body details[open] {
    background: rgba(20, 15, 10, 0.7) !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

.markdown-body details summary {
    cursor: pointer !important;
    padding: 10px 14px !important;
    color: #D4A855 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    letter-spacing: 1.5px !important;
    background: linear-gradient(
        90deg,
        rgba(180, 150, 100, 0.1) 0%,
        rgba(180, 150, 100, 0.05) 100%
    ) !important;
    border-bottom: 1px solid rgba(180, 150, 100, 0.15) !important;
    transition: background 0.3s ease !important;
    list-style: none !important;
}

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

.markdown-body details summary::before {
    content: "◆ " !important;
    color: rgba(180, 150, 100, 0.6) !important;
}

.markdown-body details[open] summary::before { content: "◇ " !important; }

.markdown-body details summary:hover {
    background: linear-gradient(
        90deg,
        rgba(180, 150, 100, 0.18) 0%,
        rgba(180, 150, 100, 0.08) 100%
    ) !important;
}

.markdown-body details > *:not(summary) { padding: 0 14px !important; }

/* 列表 */
.markdown-body ul {
    list-style: none !important;
    padding-left: 16px !important;
}

.markdown-body ul > li::before {
    content: "›" !important;
    color: rgba(180, 150, 100, 0.6) !important;
    font-weight: bold !important;
    margin-right: 6px !important;
}

.markdown-body ol {
    padding-left: 20px !important;
    color: #D0C8B8 !important;
}

/* 底部附加按钮 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #B8A888 !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-textPrimary:hover {
    color: #D4A855 !important;
    opacity: 1 !important;
}

.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #8A7E6A !important;
    font-family: "Noto Serif SC", serif !important;
    font-size: 11px !important;
}

/* ★ 底部加载提示文字 — 用更长 class 链锁定，避免覆盖评分数字 */
.MuiTypography-root.MuiTypography-body2 .text-orange-500,
.style_dot-flashing__8L91Q ~ .text-orange-500,
[class*="loading"] .text-orange-500 {
    color: #A08050 !important;
}

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


/* ============================================
   八、武侠对打加载动画
   ★ 加 :has() 限定，避免误伤其它小图标容器
   ============================================ */
.flex.items-center.justify-center.w-6.h-5:has(.style_dot-flashing__8L91Q),
[class*="answer"] .flex.items-center.justify-center.w-6.h-5,
.style_dot-flashing__8L91Q + .flex.items-center.justify-center.w-6.h-5,
.style_dot-flashing__8L91Q ~ .flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 120px !important;
    height: 60px !important;
    min-height: 60px !important;
    overflow: visible !important;
}

.flex.items-center.justify-center.w-6.h-5:has(.style_dot-flashing__8L91Q)::before,
[class*="answer"] .flex.items-center.justify-center.w-6.h-5::before,
.style_dot-flashing__8L91Q ~ .flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 120px !important;
    height: 60px !important;
    transform: translate(-50%, -50%) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' width='120' height='60'%3E%3Cg%3E%3Cline x1='30' y1='22' x2='30' y2='38' stroke='%23D4A855' stroke-width='2' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='30;33;30' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='30;33;30' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Ccircle cx='30' cy='17' r='5' fill='none' stroke='%23D4A855' stroke-width='1.5'%3E%3Canimate attributeName='cx' values='30;33;30' dur='0.6s' repeatCount='indefinite'/%3E%3C/circle%3E%3Cline x1='30' y1='26' x2='52' y2='18' stroke='%23D4A855' stroke-width='1.8' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='30;33;30' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='52;68;52' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y2' values='18;28;18' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='52' y1='18' x2='65' y2='14' stroke='%23E8E0D0' stroke-width='1.2' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='52;68;52' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y1' values='18;28;18' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='65;82;65' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y2' values='14;26;14' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='30' y1='26' x2='20' y2='32' stroke='%23D4A855' stroke-width='1.5' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='30;33;30' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='20;18;20' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='30' y1='38' x2='38' y2='52' stroke='%23D4A855' stroke-width='1.8' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='30;33;30' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='38;44;38' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='30' y1='38' x2='22' y2='52' stroke='%23D4A855' stroke-width='1.8' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='30;33;30' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='22;24;22' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3C/g%3E%3Cg%3E%3Cline x1='90' y1='22' x2='90' y2='38' stroke='%23C8B89A' stroke-width='2' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='90;87;90' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='90;87;90' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Ccircle cx='90' cy='17' r='5' fill='none' stroke='%23C8B89A' stroke-width='1.5'%3E%3Canimate attributeName='cx' values='90;87;90' dur='0.6s' repeatCount='indefinite'/%3E%3C/circle%3E%3Cline x1='90' y1='26' x2='68' y2='18' stroke='%23C8B89A' stroke-width='1.8' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='90;87;90' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='68;55;68' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y2' values='18;14;18' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='68' y1='18' x2='55' y2='14' stroke='%23E8E0D0' stroke-width='1.2' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='68;55;68' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y1' values='18;14;18' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='55;40;55' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y2' values='14;10;14' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='90' y1='26' x2='100' y2='32' stroke='%23C8B89A' stroke-width='1.5' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='90;87;90' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='100;102;100' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='90' y1='38' x2='82' y2='52' stroke='%23C8B89A' stroke-width='1.8' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='90;87;90' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='82;76;82' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='90' y1='38' x2='98' y2='52' stroke='%23C8B89A' stroke-width='1.8' stroke-linecap='round'%3E%3Canimate attributeName='x1' values='90;87;90' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='98;96;98' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3C/g%3E%3Ccircle cx='60' cy='22' r='0' fill='%23FFD700' opacity='0'%3E%3Canimate attributeName='r' values='0;0;4;0' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0;0.9;0' dur='0.6s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='57' cy='19' r='0' fill='%23FFF' opacity='0'%3E%3Canimate attributeName='r' values='0;0;2;0' dur='0.6s' repeatCount='indefinite' begin='0.05s'/%3E%3Canimate attributeName='opacity' values='0;0;1;0' dur='0.6s' repeatCount='indefinite' begin='0.05s'/%3E%3C/circle%3E%3Ccircle cx='63' cy='25' r='0' fill='%23FFA500' opacity='0'%3E%3Canimate attributeName='r' values='0;0;2.5;0' dur='0.6s' repeatCount='indefinite' begin='0.1s'/%3E%3Canimate attributeName='opacity' values='0;0;0.8;0' dur='0.6s' repeatCount='indefinite' begin='0.1s'/%3E%3C/circle%3E%3Cline x1='60' y1='22' x2='60' y2='22' stroke='%23FFD700' stroke-width='1' stroke-linecap='round' opacity='0'%3E%3Canimate attributeName='x2' values='60;50;60' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y2' values='22;14;22' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0;0.8;0' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='60' y1='22' x2='60' y2='22' stroke='%23FFD700' stroke-width='1' stroke-linecap='round' opacity='0'%3E%3Canimate attributeName='x2' values='60;70;60' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y2' values='22;15;22' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0;0.7;0' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='60' y1='22' x2='60' y2='22' stroke='%23FFA500' stroke-width='0.8' stroke-linecap='round' opacity='0'%3E%3Canimate attributeName='x2' values='60;55;60' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='y2' values='22;30;22' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0;0.6;0' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='10' y1='53' x2='110' y2='53' stroke='%23D4A855' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
}

/* ★ "过招中..."文字 — 改用 width 截断动画（替代 content 动画，跨浏览器兼容） */
.flex.items-center.justify-center.w-6.h-5:has(.style_dot-flashing__8L91Q)::after,
[class*="answer"] .flex.items-center.justify-center.w-6.h-5::after,
.style_dot-flashing__8L91Q ~ .flex.items-center.justify-center.w-6.h-5::after {
    content: "过招中..." !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #D4A855 !important;
    font-family: "Noto Serif SC", "SimSun", serif !important;
    font-size: 11px !important;
    letter-spacing: 3px !important;
    opacity: 0.7 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    width: 5.8em !important;
    animation: wuxia-dots 1.6s steps(4, end) infinite !important;
}

/* 用 width 而非 content 实现"点点"效果，Chrome/Safari/Firefox 全兼容 */
@keyframes wuxia-dots {
    0%   { width: 4em; }
    25%  { width: 4.6em; }
    50%  { width: 5.2em; }
    100% { width: 5.8em; }
}


/* ============================================
   九、滚动条
   ============================================ */
.markdown-body::-webkit-scrollbar { width: 5px !important; }
.markdown-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2) !important; }
.markdown-body::-webkit-scrollbar-thumb {
    background: rgba(180, 150, 100, 0.3) !important;
    border-radius: 3px !important;
}
.markdown-body::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 150, 100, 0.5) !important;
}


/* ============================================
   十、动画关键帧
   ============================================ */
@keyframes inkBleed {
  0%   { opacity: 0.5; width: 100px; }
  100% { opacity: 1;   width: 140px; }
}

@keyframes ghostBreath {
  0%, 100% { opacity: 0.04; transform: translateY(-50%) scale(1); }
  50%      { opacity: 0.08; transform: translateY(-50%) scale(1.05); }
}

@keyframes goldThread {
  0%   { background-position: -200% center; opacity: 0.6; }
  100% { background-position:  200% center; opacity: 1; }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 6px rgba(255, 107, 0.6); }
  50%      { transform: scale(1.3); box-shadow: 0 0 12px rgba(255, 107, 107, 0.8); }
}

@keyframes musicFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  25%      { transform: translateY(-2px) rotate(5deg); }
  75%      { transform: translateY(1px)  rotate(-3deg); }
}

@keyframes starGlow {
  0%   { filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.3)); }
  100% { filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.6)); }
}


/* ============================================
   十一、响应式适配
   ============================================ */
@media (max-width: 768px) {
  .sticky.w-full.top-0.flex.items-center::after {
    font-size: 22px !important;
    right: 8px !important;
  }

  #ai-mod-button2 button.MuiButton-root {
    font-size: 11px !important;
    letter-spacing: 1px !important;
  }
}

@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 12px 14px !important;
        border-radius: 3px 8px 8px 3px !important;
    }

    .markdown-body {
        font-size: 14px !important;
        line-height: 1.75 !important;
    }

    .flex.items-center.justify-center.w-6.h-5:has(.style_dot-flashing__8L91Q),
    [class*="answer"] .flex.items-center.justify-center.w-6.h-5,
    .style_dot-flashing__8L91Q ~ .flex.items-center.justify-center.w-6.h-5 {
        width: 90px !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    .flex.items-center.justify-center.w-6.h-5:has(.style_dot-flashing__8L91Q)::after,
    [class*="answer"] .flex.items-center.justify-center.w-6.h-5::after,
    .style_dot-flashing__8L91Q ~ .flex.items-center.justify-center.w-6.h-5::after {
        font-size: 10px !important;
    }
}


/* ============================================
   十二、低动效偏好（统一兜底）
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.1s !important;
    }

    /* 保留必要的视觉提示，单独减弱 */
    .bg-gray-100\/90.relative.inline-block::after {
        opacity: 0.02 !important;
    }
}