/* ═══ B平台加载动画适配（自动注入）═══ */
.flex.items-center.justify-center.size-6 { opacity: 1 !important; }
.flex.items-center.justify-center.size-6 > .flex.gap-2 { display: none !important; }
.is-assistant.w-fit { width: 100% !important; }
.is-assistant > .border.border-muted:has(.flex.items-center.justify-center.size-6) {
  width: 100% !important; background: transparent !important;
  border: none !important; padding: 0 !important;
}
.is-assistant .space-y-3:has(.flex.items-center.justify-center.size-6) {
  display: flex; justify-content: center; width: 100%;
}

/* ═══ B平台表格修正（自动注入）═══ */
.rili-markdown-renderer table { display:table!important; table-layout:auto!important; width:100%!important; border-collapse:collapse!important; }
.rili-markdown-renderer table caption { display:table-caption!important; caption-side:top!important; text-align:center!important; padding:8px!important; }
.rili-markdown-renderer thead { display:table-header-group!important; }
.rili-markdown-renderer tbody { display:table-row-group!important; }
.rili-markdown-renderer tr { display:table-row!important; }
.rili-markdown-renderer th, .rili-markdown-renderer td { display:table-cell!important; }

/* ═══ B平台按钮组保护（自动注入 — 防止按钮消失）═══
   原理：B平台消息操作按钮结构为：
   .flex.items-center.gap-1.ml-auto (hover显隐包装)
     └── .bg-muted.rounded.flex.p-0.5 (按钮组容器)
           └── button.rounded-full.size-7 (单个按钮)
   以下规则使用高specificity + !important确保按钮
   不被任何转换后/透传的CSS规则意外隐藏
   ═══════════════════════════════════════════════ */
/* 按钮组容器保护 */
.w-full.h-full.flex.group .bg-muted.rounded.flex.p-0\.5,
.is-user .bg-muted.rounded.flex.p-0\.5,
.is-assistant .bg-muted.rounded.flex.p-0\.5 {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  pointer-events: auto !important;
  clip: auto !important;
  clip-path: none !important;
}
/* 单个按钮保护 */
.w-full.h-full.flex.group .bg-muted.rounded.flex.p-0\.5 > button,
.is-user .bg-muted.rounded.flex.p-0\.5 > button,
.is-assistant .bg-muted.rounded.flex.p-0\.5 > button {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  clip: auto !important;
  clip-path: none !important;
}
/* hover显隐包装层保护 — 仅保留B平台原生的opacity过渡 */
.flex.items-center.gap-1.ml-auto.md\:opacity-0.group-hover\:opacity-100 {
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
  overflow: visible !important;
}
/* 操作行保护 */
.flex.w-full.items-center.justify-between.gap-2.px-2 {
  display: flex !important;
  visibility: visible !important;
  overflow: visible !important;
}

/* ═══ B平台顶部栏适配说明（自动注入）═══
   A: div.sticky > div.flex.justify-between
      ├── 左侧空区
      ├── #ai-model-selector (居中)
      └── 右侧工具(设置按钮等)
   B: <header.flex.justify-between>
      ├── #nav-left (侧边栏开关)
      ├── #nav-middle (可能为空)
      └── #nav-right (通知/主题/语言)
   B平台模型按钮不在header内，选择器:
   button:has(> .flex-1.truncate.text-left)
   ═══════════════════════════════════════ */
header.flex.justify-between { position: relative; overflow: visible; }

/* ===== 全局字体导入 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css');

/* ===== 全局基础样式 ===== */
text, p {
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 16px;
  line-height: 1.9;
  color: #2c2416;
  text-align: justify;
  letter-spacing: 0.5px;
}

/* ===== 场景信息栏 ===== */
scene {
  display: block;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
  border-left: 4px solid #8b4513;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.15);
}

info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
}

time, location, weather {
  display: inline-flex;
  align-items: center;
  color: #5c4033;
  font-weight: 500;
}

time::before { content: "🕐 "; margin-right: 4px; }
location::before { content: "📍 "; margin-right: 4px; }
weather::before { content: "🌤️ "; margin-right: 4px; }

/* ===== 正文区域 ===== */
text {
  display: block;
  background: #fdfbf7;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05);
}

text p {
  margin-bottom: 14px;
  text-indent: 2em;
}

text p:first-child::first-letter {
  font-size: 1.8em;
  font-weight: bold;
  color: #8b4513;
  float: left;
  line-height: 1;
  margin-right: 4px;
}

/* ===== 状态栏容器 ===== */
status {
  display: block;
  background: linear-gradient(to bottom, #f9f6f0, #f0ebe3);
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #d4c4b0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

status::before,
status::after {
  content: "◈◈◈";
  display: block;
  text-align: center;
  color: #8b4513;
  font-size: 12px;
  letter-spacing: 8px;
}

status::before { margin-bottom: 12px; }
status::after { margin-top: 12px; }

/* 折叠面板样式 */
status details {
  background: white;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #e0d5c7;
  overflow: hidden;
  transition: all 0.3s ease;
}

status details:hover {
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
  border-color: #8b4513;
}

status details[open] { background: #fffef9; }

status summary {
  font-family: 'LXGW WenKai', serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  background: linear-gradient(to right, #f5e6d3, #faf7f2);
  color: #5c4033;
  user-select: none;
  transition: background 0.3s ease;
  border-bottom: 1px solid transparent;
}

status summary:hover { background: linear-gradient(to right, #ead5c0, #f5e6d3); }
status details[open] summary {
  border-bottom-color: #e0d5c7;
  background: linear-gradient(to right, #8b4513, #a0522d);
  color: #fff;
}

/* 表格样式 */
status table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
}

status table tr:nth-child(even) { background: #faf8f4; }
status table td, status table th {
  padding: 10px 12px;
  border-bottom: 1px solid #e8e0d5;
  text-align: left;
}
status table td:first-child, status table th:first-child {
  font-weight: 600;
  color: #8b4513;
  width: 120px;
}
status table th {
  background: #f5e6d3;
  color: #5c4033;
  font-weight: 600;
}

/* 列表样式 */
.memory-section, .quest-section {
  padding: 12px 16px;
  font-family: 'LXGW WenKai', serif;
  font-size: 14px;
  line-height: 1.8;
}
.memory-section strong, .quest-section strong {
  color: #8b4513;
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 15px;
}
.memory-section ol, .quest-section ul, status details ul {
  margin: 8px 0;
  padding-left: 24px;
}
.memory-section li, .quest-section li, status details li {
  margin-bottom: 6px;
  color: #3c3226;
}

/* ===== 行动推荐区域 ===== */
.action-section {
    padding: 12px 16px;
    font-family: 'LXGW WenKai', serif;
    font-size: 14px;
    line-height: 1.8;
}

.action-section strong {
    color: #8b4513;
    display: block;
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 15px;
}

.action-section ol, .action-section ul {
    margin: 8px 0;
    padding-left: 24px;
}

.action-section li {
    margin-bottom: 8px;
    color: #3c3226;
}

.action-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.25));
    color: #8b4513;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    margin-right: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.action-section ul li::before {
    content: "⚡";
    margin-right: 6px;
    color: #d4af37;
}

/* ===== 平台默认装饰移除 ===== */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] { display: none !important; }

/* ===== 聊天框主体 - 水墨卷轴风格 ===== */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted {
    background: linear-gradient(135deg, 
        rgba(250, 248, 242, 0.95) 0%, 
        rgba(245, 240, 235, 0.98) 50%, 
        rgba(240, 235, 228, 0.95) 100%) !important;
    border: 2px solid rgba(139, 69, 19, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 8px 32px rgba(101, 67, 33, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 60px rgba(139, 69, 19, 0.08) !important;
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
}

/* 聊天框背景动态效果 - 流动灵气 */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3CradialGradient id='g1'%3E%3Cstop offset='0%25' stop-color='%23d4af37' stop-opacity='0.3'/%3E%3Cstop offset='100%25' stop-color='%23d4af37' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='3' fill='url(%23g1)'%3E%3Canimate attributeName='cx' values='50;350;50' dur='8s' repeatCount='indefinite'/%3E%3Canimate attributeName='cy' values='50;300;50' dur='8s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;1;0' dur='8s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='200' cy='100' r='2' fill='url(%23g1)'%3E%3Canimate attributeName='cx' values='200;100;200' dur='10s' repeatCount='indefinite'/%3E%3Canimate attributeName='cy' values='100;350;100' dur='10s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0.8;0' dur='10s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='300' cy='200' r='2.5' fill='url(%23g1)'%3E%3Canimate attributeName='cx' values='300;50;300' dur='12s' repeatCount='indefinite'/%3E%3Canimate attributeName='cy' values='200;100;200' dur='12s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;1;0' dur='12s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    background-size: cover !important;
    border-radius: 16px !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0.6 !important;
}

/* 聊天框水墨纹理叠加 */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(101, 67, 33, 0.04) 0%, transparent 50%) !important;
    border-radius: 16px !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* 聊天框文本内容 */
.rili-markdown-renderer {
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    color: #2c2416 !important;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', serif !important;
    font-size: 15.5px !important;
    line-height: 1.9 !important;
    letter-spacing: 0.3px !important;
}

/* 输入聊天框特殊样式 */
.is-user > .border.border-muted {
    background: linear-gradient(135deg, 
        rgba(255, 253, 248, 0.98) 0%, 
        rgba(250, 245, 238, 0.98) 100%) !important;
    border: 2px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* 底部附加元素美化 */
.bg-muted.rounded.flex.p-0\.5 > button.rounded-full.size-7{
    color: #8b4513 !important;
    font-family: 'LXGW WenKai', serif !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    opacity: 0.75 !important;
}
.bg-muted.rounded.flex.p-0\.5 > button.rounded-full.size-7{
    color: #d4af37 !important;
    opacity: 1 !important;
    transform: translateY(-1px) !important;
}
.flex.items-center.gap-2.text-xs.font-mono.text-muted-foreground {
    color: #8b7355 !important;
    font-family: 'LXGW WenKai', serif !important;
    font-size: 12px !important;
    opacity: 0.8 !important;
}
/* [Token消耗hover逻辑转换未启用]
.text-orange-500 {
    color: #d4af37 !important;
    font-weight: 600 !important;
    font-family: 'LXGW WenKai', serif !important;
}
*/

/* 隐藏默认加载动画 */
.flex.items-center.justify-center.size-6 > .flex.gap-2 { display: none !important; }

/* 自定义加载动画 - 灵气汇聚 */
.flex.items-center.justify-center.size-6 {
    position: relative !important;
    min-height: 40px !important;
}
.flex.items-center.justify-center.size-6::before {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cdefs%3E%3CradialGradient id='glow'%3E%3Cstop offset='0%25' stop-color='%23d4af37' stop-opacity='0.8'/%3E%3Cstop offset='100%25' stop-color='%23d4af37' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='4' fill='url(%23glow)'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1.2s' repeatCount='indefinite'/%3E%3Canimate attributeName='r' values='3;5;3' dur='1.2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='50' cy='20' r='4' fill='url(%23glow)'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1.2s' begin='0.4s' repeatCount='indefinite'/%3E%3Canimate attributeName='r' values='3;5;3' dur='1.2s' begin='0.4s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='80' cy='20' r='4' fill='url(%23glow)'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1.2s' begin='0.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='r' values='3;5;3' dur='1.2s' begin='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center/contain no-repeat !important;
}

/* ===== 顶部栏 - 云雾缭绕效果 ===== */
header.flex.justify-between {
    background: linear-gradient(180deg, 
        rgba(245, 240, 235, 0.98) 0%, 
        rgba(250, 245, 240, 0.95) 100%) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15) !important;
    box-shadow: 0 4px 20px rgba(101, 67, 33, 0.08) !important;
    position: relative !important;
}
header.flex.justify-between::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.5) 50%, 
        transparent 100%) !important;
}

/* 模型选择器 - 古风按钮 */
#nav-middle .group.flex.items-center {
    background: linear-gradient(135deg, 
        rgba(255, 253, 248, 0.9) 0%, 
        rgba(250, 245, 238, 0.9) 100%) !important;
    border: 1.5px solid rgba(139, 69, 19, 0.25) !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(101, 67, 33, 0.1) !important;
}
#nav-middle .group.flex.items-center:hover {
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-1px) !important;
}
#nav-middle button:has(> .flex-1.truncate.text-left) .flex-1.truncate.text-left {
    font-family: 'LXGW WenKai', serif !important;
    color: #5c4033 !important;
    font-weight: 500 !important;
}
#nav-middle .shrink-0.flex.items-center svg {
    color: #8b7355 !important;
    transition: transform 0.3s ease !important;
}
#nav-middle .group:hover svg { transform: rotate(180deg) !important; }

/* 顶部栏图标美化 */
header.flex.justify-between.w-full.top-0 svg.lucide-clock-8,
header.flex.justify-between.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
    color: #8b7355 !important;
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(139, 69, 19, 0.15)) !important;
}
header.flex.justify-between.w-full.top-0 svg.lucide-clock-8:hover,
header.flex.justify-between.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
    color: #d4af37 !important;
    transform: scale(1.1) !important;
}
#nav-right button {
    background: rgba(255, 253, 248, 0.8) !important;
    border: 1.5px solid rgba(139, 69, 19, 0.2) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
#nav-right button:hover {
    background: rgba(250, 245, 238, 1) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2) !important;
}
#nav-right button svg { color: #8b7355 !important; }

/* 开场白选择器 - 卷轴风格 */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
    background: linear-gradient(135deg, 
        rgba(255, 253, 248, 0.95) 0%, 
        rgba(250, 245, 238, 0.95) 100%) !important;
    border: 1.5px solid rgba(139, 69, 19, 0.25) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(101, 67, 33, 0.08) !important;
}
div.flex.items-center.h-9.cursor-pointer.group:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
    transform: translateY(-1px) !important;
}
div.flex.items-center.h-9.cursor-pointer.group svg {
    color: #8b7355 !important;
    transition: all 0.3s ease !important;
}
div.flex.items-center.h-9.cursor-pointer.group:hover svg { color: #d4af37 !important; }

/* 按钮栏 - 古风按钮组 */
#ai-mod-button2 button.MuiButton-root {
    background: linear-gradient(135deg, 
        rgba(255, 253, 248, 0.9) 0%, 
        rgba(250, 245, 238, 0.9) 100%) !important;
    border: 1.5px solid rgba(139, 69, 19, 0.25) !important;
    border-radius: 8px !important;
    color: #5c4033 !important;
    font-family: 'LXGW WenKai', serif !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(101, 67, 33, 0.1) !important;
}
#ai-mod-button2 button.MuiButton-root:hover {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(212, 175, 55, 0.1) 100%) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-2px) !important;
}
#ai-mod-button2 button.MuiButton-root svg {
    color: #8b7355 !important;
    transition: transform 0.3s ease !important;
}
#ai-mod-button2 button.MuiButton-root:hover svg { transform: scale(1.15) !important; }

/* 底部栏 - 水墨渐变 */
.bg-gradient-to-t {
    background: linear-gradient(to top, 
        rgba(245, 240, 235, 0.98) 0%, 
        rgba(250, 245, 240, 0.95) 50%,
        rgba(255, 255, 255, 0) 100%) !important;
}
#ai-chat-bottom-input {
    background: rgba(255, 253, 248, 0.95) !important;
    border: 2px solid rgba(139, 69, 19, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 4px 20px rgba(101, 67, 33, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease !important;
}
#ai-chat-bottom-input:focus-within {
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 
        0 6px 28px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
#ai-chat-input {
    font-family: 'LXGW WenKai', serif !important;
    color: #2c2416 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}
#ai-chat-input::placeholder {
    color: rgba(139, 115, 85, 0.5) !important;
    font-family: 'LXGW WenKai', serif !important;
}
#ai-chat-input::selection {
    background: rgba(212, 175, 55, 0.3) !important;
    color: #2c2416 !important;
}

/* 评论区 - 古卷背景 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(180deg, 
        rgba(250, 248, 242, 0.98) 0%, 
        rgba(245, 240, 235, 0.98) 100%) !important;
    border-top: 2px solid rgba(139, 69, 19, 0.15) !important;
    box-shadow: 0 -4px 20px rgba(101, 67, 33, 0.08) !important;
}
div.text-lg.font-bold {
    font-family: 'LXGW WenKai', serif !important;
    color: #5c4033 !important;
    font-size: 20px !important;
}
p.MuiTypography-body1.text-grey-600 {
    font-family: 'LXGW WenKai', serif !important;
    color: #8b7355 !important;
}

/* 评分星星 - 金色灵光 */
span.MuiRating-iconEmpty svg {
    color: rgba(212, 175, 55, 0.3) !important;
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.2)) !important;
}
span.MuiRating-iconFilled svg {
    color: #d4af37 !important;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6)) !important;
    transition: all 0.3s ease !important;
}
span.MuiRating-iconFilled:hover svg { transform: scale(1.15) !important; }
/* [Token消耗hover逻辑转换未启用]
span.text-orange-500 {
    color: #d4af37 !important;
    font-family: 'LXGW WenKai', serif !important;
    font-weight: 600 !important;
}
*/

/* 评论输入框 */
textarea.rc-textarea {
    font-family: 'LXGW WenKai', serif !important;
    color: #2c2416 !important;
    background: rgba(255, 253, 248, 0.8) !important;
    border: 1.5px solid rgba(139, 69, 19, 0.2) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}
textarea.rc-textarea:focus {
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2) !important;
}

/* 发送按钮 - 灵气脉动 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.9) 0%, 
        rgba(184, 134, 11, 0.9) 100%) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
}
div.cursor-pointer.group:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
    transform: translateY(-2px) scale(1.05) !important;
}
div[data-state="closed"] svg[data-icon="Send03"] {
    color: #fff !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)) !important;
}

/* 排序按钮 */
button.MuiButton-containedPrimary {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.9) 0%, 
        rgba(184, 134, 11, 0.9) 100%) !important;
    color: #fff !important;
    font-family: 'LXGW WenKai', serif !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
}
button.MuiButton-outlinedPrimary {
    background: rgba(255, 253, 248, 0.8) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
    color: #8b7355 !important;
    font-family: 'LXGW WenKai', serif !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
button.MuiButton-outlinedPrimary:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
}

/* 评论项美化 */
div.group.ml-0 {
    background: rgba(255, 253, 248, 0.6) !important;
    border: 1px solid rgba(139, 69, 19, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}
div.group.ml-0:hover {
    background: rgba(255, 253, 248, 0.9) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
}
div.group img.rounded-full {
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2) !important;
}
div.text-sm.text-grey-600 span.font-bold {
    font-family: 'LXGW WenKai', serif !important;
    color: #5c4033 !important;
}
div.break-all {
    font-family: 'LXGW WenKai', serif !important;
    color: #3c3226 !important;
    line-height: 1.8 !important;
}

/* 点赞按钮 */
button.text-gray-400 {
    transition: all 0.3s ease !important;
}
button.text-gray-400:hover {
    color: #d4af37 !important;
}
button.text-gray-400:hover svg {
    transform: scale(1.2) !important;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6)) !important;
}

/* 回复按钮 */
span.cursor-pointer {
    color: #8b7355 !important;
    font-family: 'LXGW WenKai', serif !important;
    transition: all 0.3s ease !important;
}
span.cursor-pointer:hover { color: #d4af37 !important; }

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  text, p { font-size: 15px; line-height: 1.8; }
  info { flex-direction: column; gap: 8px; }
  status table td:first-child { width: 90px; font-size: 13px; }
  .is-user > .border.border-muted,
.is-assistant > .border.border-muted { border-radius: 12px !important; }
  .rili-markdown-renderer { font-size: 15px !important; line-height: 1.85 !important; }
  header.flex.justify-between { padding: 8px 12px !important; }
  #nav-middle .group.flex.items-center { padding: 6px 10px !important; }
  #ai-chat-input { font-size: 14px !important; }
  .action-section { font-size: 13px; }
  .action-tag { font-size: 11px; padding: 1px 6px; }
}

/* ===== 降低动效模式 ===== */
@media (prefers-reduced-motion: reduce) {
  .is-user > .border.border-muted,
.is-assistant > .border.border-muted::before { opacity: 0.3 !important; }
}