```css
/* 
===========================================================
  🔴 【大曌幽帐·血金极乐】 - 聊天气泡全域强制覆盖样式
  使用说明：请将此代码整体复制，放入平台"自定义 CSS 区"即可即时生效。
===========================================================
*/

/* 1. 全局滚动条美化，注入血泊流动质感 */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}
::-webkit-scrollbar-track {
  background: #080808 !important;
}
::-webkit-scrollbar-thumb {
  background: #4a0010 !important;
  border-radius: 3px !important;
  border: 1px solid #d4af37 !important;
}

/* 2. 统一聊天气泡外壳样式：消除平台原生边框，重塑玄曜玉石底色 */
.group.is-user > div:first-child, 
.group.is-assistant > div:first-child {
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.group.is-user > div:first-child:hover, 
.group.is-assistant > div:first-child:hover {
  transform: translateY(-2px) !important;
}

/* 3. 用户(User)气泡：深黯血红背景，象征施暴权力与沸腾血腥 */
.group.is-user > div:first-child {
  background: linear-gradient(135deg, #1f010a 0%, #3a0012 100%) !important;
  border-left: 3px solid #d4af37 !important; /* 黄金威权勾边 */
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.15), 0 8px 25px rgba(0, 0, 0, 0.7) !important;
}

/* 4. AI(Assistant)气泡：厚重墨黑琉璃背景，象征卑微臣服与沉沦深渊 */
.group.is-assistant > div:first-child {
  background: linear-gradient(135deg, #0d0d0d 0%, #171717 100%) !important;
  border-left: 3px solid #800020 !important; /* 暗红血泪勾边 */
  box-shadow: inset 0 0 15px rgba(128, 0, 32, 0.2), 0 8px 25px rgba(0, 0, 0, 0.8) !important;
}

/* 5. 极高对比度排版：确保在暗色环境下，极致情色描写之字句纤毫毕现 */
.rili-markdown-renderer, 
.rili-markdown-renderer * {
  color: #e5d4c0 !important; /* 精致温润象牙白 */
  font-family: 'Noto Serif SC', serif !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  letter-spacing: 0.05em !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* markdown中加粗（核心动作/玉茎/穴道/体液）呈现灿烂金芒 */
.rili-markdown-renderer strong {
  color: #d4af37 !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4) !important;
  font-weight: 900 !important;
}

/* markdown中斜体（内心挣扎/耻辱自白）呈暗粉凄美色 */
.rili-markdown-renderer em {
  color: #da70d6 !important;
  font-style: italic !important;
}

/* 6. 底部行军附加元素 (Token计量等) 美化 */
.text-xs.font-mono.text-muted-foreground {
  color: rgba(229, 212, 192, 0.4) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
}

/* 7. 操作按钮区 (编辑/刷新/删除/复制) 完美隐藏与高光显化 */
/* 强制按钮在任何时候均保持100%可见，方便频繁交互与控制 */
.group .md\:opacity-0 {
  opacity: 1 !important;
  transition: opacity 0.3s ease !important;
}

.bg-muted.rounded.flex {
  background: rgba(13, 13, 13, 0.85) !important;
  border: 1px solid #4a0010 !important;
  border-radius: 4px !important;
  padding: 2px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.bg-muted.rounded.flex button {
  background: transparent !important;
  border-radius: 2px !important;
  transition: all 0.2s ease !important;
}

.bg-muted.rounded.flex button:hover {
  background: #800020 !important; /* 悬浮呈现血侵红 */
}

.bg-muted.rounded.flex button svg.lucide {
  color: #d4af37 !important; /* 黄金图标 */
  stroke: #d4af37 !important;
  width: 14px !important;
  height: 14px !important;
}

/* 8. 摧毁并重建加载动画 (Loading Animation) */
/* 隐藏原生平台无聊的三个弹跳灰点 */
.flex.gap-2.w-full.h-full.items-center.justify-center > span {
  display: none !important;
}

/* 注入“大曌极乐香雾袅袅”SMIL高清内联SVG旋转特效，在等待AI出字时，尽显沉沦美学 */
.flex.gap-2.w-full.h-full.items-center.justify-center {
  min-height: 40px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'><path fill='%23800020' d='M25,5A20,20 0,0,1,45,25A20,20 0,0,1,25,45A20,20 0,0,1,5,25A20,20 0,0,1,25,5M25,10A15,15 0,0,0,10,25A15,15 0,0,0,25,40A15,15 0,0,0,40,25A15,15 0,0,0,25,10Z'><animateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1.5s' repeatCount='indefinite'/></path><circle cx='25' cy='25' r='5' fill='%23d4af37'><animate attributeName='opacity' values='0.3;1;0.3' dur='1.5s' repeatCount='indefinite'/></circle></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 0.8 !important;
}