/* =============================================
   风月古韵 · 锦绣华章（精装版）
   base-hue:30  base-sat:25%  is-dark:0  accent-hue:350  accent-sat:72%

   bg-deep:hsl(30,25%,96%)   bg-default:hsl(30,25%,93%)   bg-paper:hsl(30,25%,100%)   bg-raised:hsl(30,25%,88%)
   bg-hover:hsl(30,25%,82%)  text-main:hsl(30,8%,7%)      text-sub:hsl(30,6%,35%)     text-muted:hsl(30,5%,56%)
   border:hsl(30,25%,80%)    accent:hsl(350,72%,42%)       accent-dim:hsl(350,25%,90%) accent-text:hsl(350,58%,30%)
   gold: hsl(38,65%,52%)     gold-dim: hsl(38,40%,82%)
   glow: 0 0 14px hsla(350,72%,55%,0.4)   glow-soft: 0 0 6px hsla(350,72%,55%,0.2)

   亮点① blockquote → 左侧朱红+金丝双线边框 + 宣纸底纹 + 右下角篆刻方印（双框）
   亮点② 加载动画  → SVG SMIL 五瓣梅花旋转绽放
   亮点③ 分隔线    → 伪元素绘制「━═☁═━」居中金丝祥云纹
   ============================================= */

/* ===== 危险区域 ===== */
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] {
  display: none !important;
}

.markdown-body pre {
  background: linear-gradient(135deg, hsl(30, 28%, 97%) 0%, hsl(30, 22%, 95%) 100%) !important;
  border: 1px solid hsl(30, 25%, 80%) !important;
  border-left: 3px solid hsl(350, 72%, 42%) !important;
  border-radius: 8px !important;
  padding: 1em 1.2em !important;
  overflow-x: auto !important;
  box-shadow: inset 0 1px 3px hsla(30, 25%, 50%, 0.06), 0 2px 6px hsla(30, 25%, 50%, 0.04) !important;
  position: relative !important;
}
.markdown-body pre::before {
  content: '◇' !important;
  position: absolute !important;
  top: 8px !important;
  right: 10px !important;
  color: hsl(38, 65%, 52%) !important;
  font-size: 10px !important;
  opacity: 0.5 !important;
}
.markdown-body pre code {
  background: transparent !important;
  color: hsl(30, 8%, 7%) !important;
}
.markdown-body :not(pre)>code {
  background: hsl(350, 25%, 90%) !important;
  color: hsl(350, 58%, 30%) !important;
  padding: 0.15em 0.5em !important;
  border-radius: 4px !important;
  border: 1px solid hsl(350, 25%, 85%) !important;
  box-shadow: 0 1px 2px hsla(350, 25%, 50%, 0.06) !important;
}

details {
  background: hsl(30, 25%, 100%) !important;
  border: 1px solid hsl(38, 40%, 82%) !important;
  border-radius: 10px !important;
  margin: 10px 0 !important;
  overflow: hidden !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  box-shadow: 0 2px 8px hsla(30, 25%, 50%, 0.05) !important;
}
details[open] {
  border-color: hsl(350, 72%, 42%) !important;
  box-shadow: 0 3px 12px hsla(350, 72%, 42%, 0.08) !important;
}
details summary {
  background: linear-gradient(90deg, hsl(30, 28%, 97%), hsl(30, 22%, 95%)) !important;
  color: hsl(30, 8%, 7%) !important;
  padding: 10px 14px 10px 36px !important;
  display: block !important;
  position: relative !important;
  border-bottom: 1px solid hsl(38, 40%, 82%) !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  list-style: none !important;
  user-select: none !important;
}
details summary::before {
  content: '▶' !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: hsl(350, 72%, 42%) !important;
  font-size: 10px !important;
  transition: transform 0.2s ease !important;
}
details[open] summary::before {
  transform: translateY(-50%) rotate(90deg) !important;
}
details summary::-webkit-details-marker {
  display: none !important;
}
details summary::after {
  content: '❀' !important;
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: hsl(38, 65%, 52%) !important;
  font-size: 12px !important;
  opacity: 0.6 !important;
}

::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}
::-webkit-scrollbar-track {
  background: hsl(30, 25%, 96%) !important;
  border-left: 1px solid hsl(30, 25%, 90%) !important;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(30, 25%, 78%), hsl(30, 25%, 72%)) !important;
  border-radius: 4px !important;
  border: 1px solid hsl(30, 25%, 85%) !important;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, hsl(350, 72%, 48%), hsl(350, 72%, 38%)) !important;
}

::placeholder {
  color: hsl(30, 5%, 56%) !important;
  opacity: 1 !important;
}
::selection {
  background: hsl(350, 25%, 88%) !important;
  color: hsl(350, 58%, 25%) !important;
}

#ai-chat-input {
  background: hsl(30, 25%, 100%) !important;
  color: hsl(30, 8%, 7%) !important;
  caret-color: hsl(350, 72%, 42%) !important;
}
textarea.rc-textarea {
  background: hsl(30, 25%, 100%) !important;
  color: hsl(30, 8%, 7%) !important;
  border: 1px solid hsl(38, 40%, 82%) !important;
}

/* ===== 全局 ===== */
body, #root, .h-screen {
  background: hsl(30, 25%, 93%) !important;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23d4c4a8' stroke-width='0.3' opacity='0.25'/%3E%3Ccircle cx='30' cy='30' r='1' fill='%23d4c4a8' opacity='0.15'/%3E%3C/svg%3E") !important;
  color: hsl(30, 8%, 7%) !important;
}

/* ===== 顶部导航 ===== */
.sticky.w-full.top-0.flex.items-center {
  background: hsla(30, 25%, 100%, 0.92) !important;
  backdrop-filter: blur(14px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5) !important;
  border-bottom: 1px solid hsl(38, 40%, 82%) !important;
  box-shadow: 0 1px 0 hsl(38, 65%, 52%, 0.08), 0 2px 8px hsla(30, 25%, 50%, 0.06) !important;
}
#ai-model-selector .group.flex.items-center {
  color: hsl(30, 8%, 7%) !important;
}
#ai-model-selector .truncate.text-\[13px\] {
  color: hsl(30, 6%, 35%) !important;
}
#ai-model-selector .shrink-0.flex.items-center svg {
  color: hsl(350, 72%, 42%) !important;
  filter: drop-shadow(0 0 2px hsla(350, 72%, 42%, 0.3)) !important;
}
#header-setting-button {
  color: hsl(30, 6%, 35%) !important;
  transition: color 0.15s, transform 0.15s !important;
}
#header-setting-button:hover {
  color: hsl(350, 72%, 42%) !important;
  transform: rotate(15deg) !important;
}

/* ===== 开场白区域 ===== */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
  background: hsl(30, 25%, 100%) !important;
  border: 1px solid hsl(38, 40%, 82%) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px hsla(30, 25%, 50%, 0.05) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover {
  border-color: hsl(350, 72%, 42%) !important;
  box-shadow: 0 3px 10px hsla(350, 72%, 42%, 0.1) !important;
}
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"] {
  color: hsl(350, 72%, 42%) !important;
}
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
  color: hsl(38, 65%, 52%) !important;
}

/* ===== 侧边栏 ===== */
.shadow-lg.border-r.border-gray-200 {
  background: hsl(30, 25%, 100%) !important;
  border-right: 1px solid hsl(38, 40%, 82%) !important;
  box-shadow: 4px 0 20px hsla(30, 25%, 50%, 0.08) !important;
}
.MuiList-root {
  background: transparent !important;
}
.conversation-text {
  color: hsl(30, 8%, 7%) !important;
}

/* ===== 功能按钮 ===== */
#ai-mod-button2 {
  background: transparent !important;
}
#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(135deg, hsl(30, 25%, 100%), hsl(30, 28%, 97%)) !important;
  color: hsl(350, 72%, 42%) !important;
  border: 1px solid hsl(350, 72%, 42%) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px hsla(350, 72%, 42%, 0.1) !important;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s !important;
}
#ai-mod-button2 button.MuiButton-root:hover {
  background: hsl(350, 25%, 90%) !important;
  box-shadow: 0 4px 14px hsla(350, 72%, 55%, 0.25) !important;
  transform: translateY(-1px) !important;
}
#ai-mod-button2 button.MuiButton-root svg {
  color: hsl(350, 72%, 42%) !important;
}

/* ===== 聊天气泡 ===== */
.bg-gray-100\/90.relative.inline-block {
  background: hsl(30, 25%, 100%) !important;
  border: 1px solid hsl(38, 40%, 82%) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px hsla(30, 25%, 50%, 0.06), 0 0 0 0.5px hsla(38, 65%, 52%, 0.1) !important;
  transition: box-shadow 0.2s, border-color 0.2s !important;
  position: relative !important;
}
.bg-gray-100\/90.relative.inline-block::before {
  content: '' !important;
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  width: 10px !important;
  height: 10px !important;
  border-top: 2px solid hsl(38, 65%, 52%) !important;
  border-left: 2px solid hsl(38, 65%, 52%) !important;
  border-radius: 3px 0 0 0 !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.bg-gray-100\/90.relative.inline-block::after {
  content: '' !important;
  position: absolute !important;
  bottom: 6px !important;
  right: 6px !important;
  width: 10px !important;
  height: 10px !important;
  border-bottom: 2px solid hsl(38, 65%, 52%) !important;
  border-right: 2px solid hsl(38, 65%, 52%) !important;
  border-radius: 0 0 3px 0 !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.bg-gray-100\/90.relative.inline-block:hover {
  box-shadow: 0 4px 18px hsla(350, 72%, 55%, 0.1), 0 0 0 1px hsla(38, 65%, 52%, 0.15) !important;
  border-color: hsl(350, 50%, 72%) !important;
}
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
  background: hsl(30, 25%, 100%) !important;
  border: 1px solid hsl(38, 40%, 82%) !important;
}
.markdown-body {
  color: hsl(30, 8%, 7%) !important;
  line-height: 1.8 !important;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: hsl(30, 8%, 7%) !important;
  border-bottom-color: hsl(38, 40%, 82%) !important;
  position: relative !important;
  padding-left: 14px !important;
}
.markdown-body h1::before, .markdown-body h2::before, .markdown-body h3::before {
  content: '┃' !important;
  position: absolute !important;
  left: 0 !important;
  color: hsl(350, 72%, 42%) !important;
  font-weight: 400 !important;
}
.markdown-body ul, .markdown-body ol, .markdown-body li {
  color: hsl(30, 8%, 7%) !important;
}
.markdown-body li::marker {
  color: hsl(350, 72%, 42%) !important;
}
/* 段落首行缩进两字（排除details内部） */
.markdown-body p:not(details p) {
  text-indent: 2em !important;
}
/* 美化水平分割线 --- */
.markdown-body hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, hsl(38, 65%, 52%, 0.5), hsl(350, 72%, 42%, 0.4), hsl(38, 65%, 52%, 0.5), transparent) !important;
  margin: 20px 0 !important;
  position: relative !important;
  overflow: visible !important;
}
.markdown-body hr::before {
  content: '◆' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: hsl(30, 25%, 100%) !important;
  padding: 0 10px !important;
  color: hsl(38, 65%, 52%) !important;
  font-size: 10px !important;
}
/* 亮点① 世界观氛围 blockquote —— 朱砂+金丝双线 + 篆刻方印 */
.markdown-body blockquote {
  background: linear-gradient(135deg, hsl(30, 30%, 98%) 0%, hsl(30, 28%, 96%) 100%) !important;
  border-left: 3px solid hsl(350, 72%, 42%) !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 14px 20px 14px 22px !important;
  margin: 14px 0 !important;
  color: hsl(30, 6%, 30%) !important;
  font-style: italic !important;
  position: relative !important;
  box-shadow: inset 0 0 0 1px hsla(38, 65%, 52%, 0.12), 0 2px 8px hsla(30, 25%, 50%, 0.05) !important;
}
.markdown-body blockquote::before {
  content: '「' !important;
  position: absolute !important;
  top: 4px !important;
  left: 10px !important;
  color: hsl(38, 65%, 52%) !important;
  font-size: 20px !important;
  font-style: normal !important;
  opacity: 0.5 !important;
  line-height: 1 !important;
}
.markdown-body blockquote::after {
  content: '風月' !important;
  position: absolute !important;
  right: 10px !important;
  bottom: 8px !important;
  width: 28px !important;
  height: 28px !important;
  border: 2px solid hsl(350, 72%, 48%) !important;
  outline: 1px solid hsl(350, 72%, 48%) !important;
  outline-offset: 2px !important;
  border-radius: 3px !important;
  color: hsl(350, 72%, 48%) !important;
  font-size: 9px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  text-align: center !important;
  letter-spacing: -1px !important;
  opacity: 0.3 !important;
}
.markdown-body table {
  border-color: hsl(38, 40%, 82%) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px hsla(30, 25%, 50%, 0.04) !important;
}
.markdown-body th, .markdown-body td {
  border-color: hsl(38, 40%, 82%) !important;
  color: hsl(30, 8%, 7%) !important;
}
.markdown-body th {
  background: linear-gradient(180deg, hsl(30, 28%, 97%), hsl(30, 25%, 94%)) !important;
  color: hsl(350, 58%, 30%) !important;
}
.markdown-body strong {
  color: hsl(350, 58%, 30%) !important;
  text-shadow: 0 0 1px hsla(350, 72%, 42%, 0.1) !important;
}
.markdown-body em {
  color: hsl(30, 6%, 30%) !important;
}
.markdown-body a {
  color: hsl(350, 72%, 42%) !important;
  text-decoration: underline !important;
  text-decoration-style: wavy !important;
  text-decoration-color: hsla(350, 72%, 42%, 0.3) !important;
  text-underline-offset: 3px !important;
  transition: color 0.15s, text-decoration-color 0.15s !important;
}
.markdown-body a:hover {
  color: hsl(350, 72%, 52%) !important;
  text-decoration-color: hsl(350, 72%, 52%) !important;
}

/* ===== 加载动画 ===== */
.style_dot-flashing__8L91Q.style_text__zGhNq {
  display: none !important;
}
.flex.items-center.justify-center.w-6.h-5 {
  position: relative !important;
  width: 24px !important;
  height: 20px !important;
}
/* 亮点② 自定义加载动画 —— SVG SMIL五瓣梅花旋转绽放 */
.flex.items-center.justify-center.w-6.h-5::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg%3E%3Cellipse cx='15' cy='6' rx='2.5' ry='3.5' fill='%23b5243a' opacity='0.9'/%3E%3Cellipse cx='23' cy='12' rx='2.5' ry='3.5' fill='%23b5243a' opacity='0.72' transform='rotate(72 23 12)'/%3E%3Cellipse cx='20' cy='22' rx='2.5' ry='3.5' fill='%23b5243a' opacity='0.54' transform='rotate(144 20 22)'/%3E%3Cellipse cx='10' cy='22' rx='2.5' ry='3.5' fill='%23b5243a' opacity='0.36' transform='rotate(216 10 22)'/%3E%3Cellipse cx='7' cy='12' rx='2.5' ry='3.5' fill='%23b5243a' opacity='0.2' transform='rotate(288 7 12)'/%3E%3Ccircle cx='15' cy='15' r='2' fill='%23c8963e'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 15 15' to='360 15 15' dur='1.5s' repeatCount='indefinite'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px 22px !important;
}
.flex.items-center.justify-center.w-6.h-5::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 5px !important;
  height: 5px !important;
  background: radial-gradient(circle, hsl(38, 65%, 52%) 0%, hsl(350, 72%, 42%) 100%) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  box-shadow: 0 0 4px hsla(38, 65%, 52%, 0.5) !important;
}

/* ===== 底部输入区 ===== */
.bg-gradient-to-t {
  background: linear-gradient(to top, hsl(30, 25%, 93%), transparent) !important;
}
#ai-chat-bottom-input {
  background: hsl(30, 25%, 100%) !important;
  border: 1px solid hsl(38, 40%, 82%) !important;
  border-radius: 14px !important;
  box-shadow: 0 -2px 16px hsla(30, 25%, 50%, 0.06), inset 0 0 0 0.5px hsla(38, 65%, 52%, 0.1) !important;
}
#ai-chat-input {
  background: hsl(30, 25%, 100%) !important;
  color: hsl(30, 8%, 7%) !important;
  caret-color: hsl(350, 72%, 42%) !important;
}
#ai-chat-input::placeholder {
  color: hsl(30, 5%, 56%) !important;
  opacity: 1 !important;
}
#ai-chat-input::selection {
  background: hsl(350, 25%, 88%) !important;
  color: hsl(350, 58%, 25%) !important;
}
#ai-send-button {
  background: linear-gradient(135deg, hsl(350, 72%, 45%), hsl(350, 72%, 38%)) !important;
  color: hsl(30, 25%, 100%) !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 2px 8px hsla(350, 72%, 42%, 0.25) !important;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s !important;
}
#ai-send-button:hover {
  background: linear-gradient(135deg, hsl(350, 72%, 50%), hsl(350, 72%, 42%)) !important;
  box-shadow: 0 4px 18px hsla(350, 72%, 55%, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* ===== 评论区 ===== */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: hsl(30, 25%, 100%) !important;
  border-top: 1px solid hsl(38, 40%, 82%) !important;
  box-shadow: 0 -2px 10px hsla(30, 25%, 50%, 0.04) !important;
}
div.text-lg.font-bold {
  color: hsl(30, 8%, 7%) !important;
}
p.MuiTypography-body1.text-grey-600 {
  color: hsl(30, 6%, 35%) !important;
}
span.MuiRating-root {
  color: hsl(350, 72%, 42%) !important;
}
span.MuiRating-iconEmpty svg {
  color: hsl(38, 40%, 82%) !important;
}
span.MuiRating-iconFilled svg {
  color: hsl(350, 72%, 42%) !important;
  filter: drop-shadow(0 1px 2px hsla(350, 72%, 42%, 0.3)) !important;
}
span.text-orange-500 {
  color: hsl(350, 72%, 42%) !important;
}
div.flex.flex-col.border-gray-200 {
  border-color: hsl(38, 40%, 82%) !important;
}
textarea.rc-textarea {
  background: hsl(30, 25%, 100%) !important;
  color: hsl(30, 8%, 7%) !important;
  border: 1px solid hsl(38, 40%, 82%) !important;
  border-radius: 10px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
textarea.rc-textarea:focus {
  border-color: hsl(350, 72%, 42%) !important;
  box-shadow: 0 0 0 3px hsla(350, 72%, 42%, 0.08), 0 0 8px hsla(350, 72%, 55%, 0.15) !important;
}
div.bg-gray-100.text-gray-500 {
  background: hsl(30, 25%, 96%) !important;
  color: hsl(30, 5%, 56%) !important;
  border-radius: 8px !important;
}
div.cursor-pointer.group.flex.items-center.justify-center {
  color: hsl(30, 6%, 35%) !important;
  transition: color 0.15s, transform 0.15s !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
  color: hsl(350, 72%, 42%) !important;
  transform: scale(1.05) !important;
}
div[data-state="closed"] svg[data-icon="Send03"] {
  color: hsl(350, 72%, 42%) !important;
  filter: drop-shadow(0 0 3px hsla(350, 72%, 42%, 0.3)) !important;
}
/* 亮点③ 分隔线 —— 金丝祥云纹居中装饰 */
div.style_divider__mW0YX {
  border-color: hsl(38, 40%, 82%) !important;
  position: relative !important;
  overflow: visible !important;
  margin: 16px 0 !important;
}
div.style_divider__mW0YX::before {
  content: '━═✾═━' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: hsl(30, 25%, 100%) !important;
  padding: 0 16px !important;
  color: hsl(38, 65%, 52%) !important;
  font-size: 13px !important;
  letter-spacing: 3px !important;
  text-shadow: 0 0 4px hsla(38, 65%, 52%, 0.3) !important;
}
div.style_divider__mW0YX::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, hsl(38, 65%, 52%, 0.3), hsl(38, 65%, 52%, 0.5), hsl(38, 65%, 52%, 0.3), transparent) !important;
  z-index: -1 !important;
}
.MuiStack-root.css-1dmzxoz {
  background: transparent !important;
}
button.MuiButton-containedPrimary {
  background: linear-gradient(135deg, hsl(350, 72%, 45%), hsl(350, 72%, 38%)) !important;
  color: hsl(30, 25%, 100%) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px hsla(350, 72%, 42%, 0.2), inset 0 1px 0 hsla(0, 0%, 100%, 0.1) !important;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s !important;
}
button.MuiButton-containedPrimary:hover {
  background: linear-gradient(135deg, hsl(350, 72%, 50%), hsl(350, 72%, 42%)) !important;
  box-shadow: 0 4px 18px hsla(350, 72%, 55%, 0.35) !important;
  transform: translateY(-1px) !important;
}
button.MuiButton-outlinedPrimary {
  color: hsl(350, 72%, 42%) !important;
  border: 1px solid hsl(350, 72%, 42%) !important;
  background: transparent !important;
  border-radius: 10px !important;
  transition: background 0.15s, box-shadow 0.15s !important;
}
button.MuiButton-outlinedPrimary:hover {
  background: hsl(350, 25%, 90%) !important;
  box-shadow: 0 0 8px hsla(350, 72%, 42%, 0.12) !important;
}
div.p-3.overflow-y-auto {
  background: hsl(30, 25%, 93%) !important;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23d4c4a8' stroke-width='0.3' opacity='0.15'/%3E%3C/svg%3E") !important;
}
div.group.ml-0 {
  background: transparent !important;
}
div.group img.rounded-full {
  border: 2px solid hsl(38, 65%, 52%) !important;
  box-shadow: 0 2px 6px hsla(38, 65%, 52%, 0.15) !important;
}
div.text-sm.text-grey-600 span.font-bold {
  color: hsl(30, 8%, 7%) !important;
}
span.text-\[10px\] {
  color: hsl(30, 5%, 56%) !important;
}
div.break-all {
  color: hsl(30, 8%, 7%) !important;
}
div.text-xs.text-grey-600 {
  color: hsl(30, 5%, 56%) !important;
}
button.text-gray-400 {
  color: hsl(30, 5%, 56%) !important;
  transition: color 0.15s, transform 0.15s !important;
}
button.text-gray-400:hover {
  color: hsl(350, 72%, 42%) !important;
  transform: scale(1.1) !important;
}
button.text-gray-400 svg {
  color: inherit !important;
}
span.cursor-pointer {
  color: hsl(350, 72%, 42%) !important;
  transition: opacity 0.15s !important;
}
span.cursor-pointer:hover {
  opacity: 0.75 !important;
}
div.ml-8.border-l {
  border-left-color: hsl(38, 40%, 82%) !important;
  border-left-style: dashed !important;
}

/* ===== 分页 ===== */
.MuiPaginationItem-root {
  color: hsl(30, 6%, 35%) !important;
  border-color: hsl(38, 40%, 82%) !important;
  border-radius: 8px !important;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s !important;
}
.MuiPaginationItem-root:hover {
  background: hsl(350, 25%, 90%) !important;
  color: hsl(350, 72%, 42%) !important;
  box-shadow: 0 2px 6px hsla(350, 72%, 42%, 0.1) !important;
}
.MuiPaginationItem-root.Mui-selected {
  background: linear-gradient(135deg, hsl(350, 72%, 45%), hsl(350, 72%, 38%)) !important;
  color: hsl(30, 25%, 100%) !important;
  border-color: hsl(350, 72%, 42%) !important;
  box-shadow: 0 2px 8px hsla(350, 72%, 42%, 0.25) !important;
}
.MuiPaginationItem-root.Mui-disabled {
  color: hsl(30, 5%, 56%) !important;
  opacity: 0.45 !important;
}
.MuiPaginationItem-icon {
  color: hsl(350, 72%, 42%) !important;
}
.MuiStack-root.css-1uwir8f {
  background: transparent !important;
}
.MuiInputBase-input {
  color: hsl(30, 8%, 7%) !important;
  background: hsl(30, 25%, 100%) !important;
}

/* ===== MUI 全局 ===== */
.MuiButton-root, .MuiButton-contained, .MuiButton-outlined {
  border-radius: 10px !important;
  text-transform: none !important;
}
.MuiIconButton-root {
  color: hsl(30, 6%, 35%) !important;
  transition: color 0.15s, background 0.15s !important;
}
.MuiIconButton-root:hover {
  color: hsl(350, 72%, 42%) !important;
  background: hsl(350, 25%, 90%) !important;
}
.MuiDialog-paper, .MuiDrawer-paper {
  background: hsl(30, 25%, 100%) !important;
  color: hsl(30, 8%, 7%) !important;
  border: 1px solid hsl(38, 40%, 82%) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 40px hsla(30, 25%, 20%, 0.12), 0 0 0 1px hsla(38, 65%, 52%, 0.08) !important;
}
.MuiBackdrop-root {
  background: hsla(30, 25%, 7%, 0.45) !important;
  backdrop-filter: blur(4px) !important;
}
.MuiDivider-root {
  border-color: hsl(38, 40%, 82%) !important;
}
.MuiTypography-root {
  color: hsl(30, 8%, 7%) !important;
}
.MuiRating-icon {
  color: hsl(350, 72%, 42%) !important;
}
.MuiOutlinedInput-root {
  background: hsl(30, 25%, 100%) !important;
  color: hsl(30, 8%, 7%) !important;
  border-radius: 10px !important;
}
.MuiOutlinedInput-notchedOutline {
  border-color: hsl(38, 40%, 82%) !important;
  transition: border-color 0.2s !important;
}
.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: hsl(350, 72%, 42%) !important;
}
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: hsl(350, 72%, 42%) !important;
  box-shadow: 0 0 0 3px hsla(350, 72%, 42%, 0.08) !important;
}
.MuiTouchRipple-root {
  color: hsla(350, 72%, 42%, 0.12) !important;
}
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
  color: hsl(30, 6%, 35%) !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
  color: hsl(350, 72%, 42%) !important;
  transition: background 0.15s !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
  background: hsl(350, 25%, 90%) !important;
}
.text-orange-500 {
  color: hsl(350, 72%, 42%) !important;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  .bg-gray-100\/90.relative.inline-block {
    border-radius: 10px !important;
  }
  .bg-gray-100\/90.relative.inline-block::before,
  .bg-gray-100\/90.relative.inline-block::after {
    display: none !important;
  }
  #ai-chat-bottom-input {
    border-radius: 10px !important;
  }
  .markdown-body blockquote::after {
    display: none !important;
  }
  div.style_divider__mW0YX::before {
    font-size: 11px !important;
    letter-spacing: 1px !important;
  }
  .sticky.w-full.top-0.flex.items-center {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
}

/* ===== 降速兜底 ===== */
@media (prefers-reduced-motion: reduce) {
  .flex.items-center.justify-center.w-6.h-5::before,
  .flex.items-center.justify-center.w-6.h-5::after {
    animation-duration: 4s !important;
  }
  details summary::before {
    transition: none !important;
  }
  .bg-gray-100\/90.relative.inline-block {
    transition: none !important;
  }
  #ai-send-button,
  #ai-mod-button2 button.MuiButton-root,
  button.MuiButton-containedPrimary {
    transition: none !important;
    transform: none !important;
  }
  #header-setting-button:hover {
    transform: none !important;
  }
}
/* 锁定状态栏，禁止展开 */
details.status-locked {
  pointer-events: none !important;
  user-select: none !important;
}
details.status-locked summary::before {
  content: '◈' !important;
  color: hsl(38, 65%, 52%) !important;
  transform: translateY(-50%) !important;
  transition: none !important;
}
details.status-locked summary {
  cursor: default !important;
}