details {
  background: #FBF9F5;
  border: 1px solid #E7E1D7;
  border-radius: 8px;
  margin: 0 0 12px 0;
  box-shadow: 0 1px 3px rgba(31, 36, 33, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C4612F 0%, rgba(196, 97, 47, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

details[open]::before {
  opacity: 1;
}

details:hover {
  box-shadow: 0 3px 8px rgba(31, 36, 33, 0.12);
  transform: translateY(-1px);
}

summary {
  padding: 12px 16px;
  font-weight: 500;
  font-size: 15px;
  color: #C4612F;
  cursor: pointer;
  user-select: none;
  list-style: none;
  position: relative;
  background: linear-gradient(135deg, #FBF9F5 0%, #F2E3D6 100%);
  transition: all 0.2s ease;
  border-bottom: 1px solid #E7E1D7;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 11px;
  transition: transform 0.3s ease;
  color: #C4612F;
  opacity: 0.7;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

summary:hover {
  background: linear-gradient(135deg, #F2E3D6 0%, #FBF9F5 100%);
  padding-left: 18px;
}

details[open] summary {
  border-bottom: 2px solid #C4612F;
  background: linear-gradient(135deg, #F2E3D6 0%, #FFFFFF 100%);
}

details > *:not(summary) {
  padding: 16px;
  color: #1F2421;
  line-height: 1.8;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

details p {
  margin: 6px 0;
  color: #5C635D;
  font-size: 14px;
}

details strong {
  color: #C4612F;
  font-weight: 500;
  display: inline-block;
  margin-right: 8px;
  position: relative;
  padding-bottom: 2px;
}

details strong::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #C4612F 0%, transparent 100%);
  opacity: 0.4;
}

details hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E7E1D7 20%, #E7E1D7 80%, transparent);
  margin: 12px 0;
}

details table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(31, 36, 33, 0.06);
  font-size: 13px;
}

details table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
  color: #C4612F;
  background: linear-gradient(135deg, #F2E3D6 0%, #FBF9F5 100%);
  border-bottom: 2px solid #E7E1D7;
  font-size: 13px;
}

details table td {
  padding: 8px 12px;
  border-bottom: 1px solid #F7F4EF;
  color: #5C635D;
}

details table tr:last-child td {
  border-bottom: none;
}

details table tr:hover {
  background: #F7F4EF;
}

details table td:first-child {
  color: #C4612F;
  font-weight: 500;
}

details ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style: none;
}

details li {
  margin: 5px 0;
  padding-left: 16px;
  position: relative;
  color: #5C635D;
  font-size: 14px;
}

details li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #C4612F;
  font-size: 10px;
  top: 4px;
}

details blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  background: #F7F4EF;
  border-left: 3px solid #C4612F;
  border-radius: 0 6px 6px 0;
  color: #5C635D;
  font-style: italic;
  font-size: 14px;
}

details em {
  color: #C4612F;
  font-style: normal;
  font-weight: 500;
}

details code {
  background: #F7F4EF;
  padding: 2px 6px;
  border-radius: 3px;
  color: #C4612F;
  font-size: 13px;
  border: 1px solid #E7E1D7;
}

@media (max-width: 768px) {
  details {
    margin-bottom: 10px;
  }
  
  summary {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  details > *:not(summary) {
    padding: 14px;
  }
  
  details table {
    font-size: 12px;
  }
  
  details table th,
  details table td {
    padding: 6px 8px;
  }
  
  details p,
  details li {
    font-size: 13px;
  }
}
/* 隐藏平台默认顶部颜色条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 统一聊天框基础样式 */
.bg-gray-100\/90.relative.inline-block {
    background: #FBF9F5 !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(31, 36, 33, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
    padding: 16px !important;
}

.bg-gray-100\/90.relative.inline-block:hover {
    box-shadow: 0 3px 8px rgba(31, 36, 33, 0.12) !important;
    transform: translateY(-1px) !important;
}

/* 顶部装饰条（仅在展开时显示） */
.bg-gray-100\/90.relative.inline-block::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #C4612F 0%, rgba(196, 97, 47, 0.3) 50%, transparent 100%) !important;
    border-radius: 12px 12px 0 0 !important;
    z-index: 1 !important;
}

/* 聊天框主要文本内容 */
.markdown-body {
    color: #1F2421 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
    background: transparent !important;
    position: relative !important;
    z-index: 2 !important;
}

.markdown-body p {
    color: #5C635D !important;
    margin: 8px 0 !important;
}

.markdown-body strong {
    color: #C4612F !important;
    font-weight: 500 !important;
}

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

.markdown-body code {
    background: #F7F4EF !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    color: #C4612F !important;
    font-size: 13px !important;
    border: 1px solid #E7E1D7 !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #1F2421 !important;
    font-weight: 500 !important;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
}

/* 底部附加元素统一样式 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #C4612F !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    border-radius: 6px !important;
    text-transform: none !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    background: #F2E3D6 !important;
    color: #A94E22 !important;
}

.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #5C635D !important;
    font-weight: 400 !important;
    font-size: 12px !important;
}

.text-orange-500 {
    color: #C4612F !important;
    font-weight: 500 !important;
    font-size: 12px !important;
}

/* 隐藏默认加载动画 */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text {
    display: none !important;
}

/* 加载动画容器：奔跑的马车 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    min-height: 40px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 40px !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 50"%3E%3C!-- 马车车厢 --%3E%3Crect x="20" y="18" width="35" height="18" rx="2" fill="%23C4612F" stroke="%231F2421" stroke-width="1.5"%3E%3Canimate attributeName="y" values="18;16;18" dur="0.4s" repeatCount="indefinite"/%3E%3C/rect%3E%3C!-- 车顶 --%3E%3Cpath d="M18 18 L37.5 10 L57 18 Z" fill="%23A94E22" stroke="%231F2421" stroke-width="1.2"%3E%3Canimate attributeName="d" values="M18 18 L37.5 10 L57 18 Z;M18 16 L37.5 8 L57 16 Z;M18 18 L37.5 10 L57 18 Z" dur="0.4s" repeatCount="indefinite"/%3E%3C/path%3E%3C!-- 左轮 --%3E%3Ccircle cx="28" cy="36" r="6" fill="%235C635D" stroke="%231F2421" stroke-width="1.5"%3E%3Canimate attributeName="cy" values="36;35;36" dur="0.4s" repeatCount="indefinite"/%3E%3CanimateTransform attributeName="transform" type="rotate" from="0 28 36" to="360 28 36" dur="0.6s" repeatCount="indefinite"/%3E%3C/circle%3E%3Ccircle cx="28" cy="36" r="2.5" fill="%23F7F4EF"%3E%3Canimate attributeName="cy" values="36;35;36" dur="0.4s" repeatCount="indefinite"/%3E%3C/circle%3E%3C!-- 右轮 --%3E%3Ccircle cx="47" cy="36" r="6" fill="%235C635D" stroke="%231F2421" stroke-width="1.5"%3E%3Canimate attributeName="cy" values="36;35;36" dur="0.4s" repeatCount="indefinite"/%3E%3CanimateTransform attributeName="transform" type="rotate" from="0 47 36" to="360 47 36" dur="0.6s" repeatCount="indefinite"/%3E%3C/circle%3E%3Ccircle cx="47" cy="36" r="2.5" fill="%23F7F4EF"%3E%3Canimate attributeName="cy" values="36;35;36" dur="0.4s" repeatCount="indefinite"/%3E%3C/circle%3E%3C!-- 车窗 --%3E%3Crect x="26" y="22" width="8" height="8" rx="1" fill="%23F2E3D6" opacity="0.8"%3E%3Canimate attributeName="y" values="22;20;22" dur="0.4s" repeatCount="indefinite"/%3E%3C/rect%3E%3Crect x="40" y="22" width="8" height="8" rx="1" fill="%23F2E3D6" opacity="0.8"%3E%3Canimate attributeName="y" values="22;20;22" dur="0.4s" repeatCount="indefinite"/%3E%3C/rect%3E%3C!-- 地面尘土（左） --%3E%3Cellipse cx="20" cy="42" rx="8" ry="2" fill="%23E7E1D7" opacity="0.6"%3E%3Canimate attributeName="opacity" values="0.6;0.3;0.6" dur="0.5s" repeatCount="indefinite"/%3E%3Canimate attributeName="rx" values="8;10;8" dur="0.5s" repeatCount="indefinite"/%3E%3C/ellipse%3E%3C!-- 地面尘土（右） --%3E%3Cellipse cx="55" cy="42" rx="8" ry="2" fill="%23E7E1D7" opacity="0.6"%3E%3Canimate attributeName="opacity" values="0.6;0.3;0.6" dur="0.5s" begin="0.2s" repeatCount="indefinite"/%3E%3Canimate attributeName="rx" values="8;10;8" dur="0.5s" begin="0.2s" repeatCount="indefinite"/%3E%3C/ellipse%3E%3C/svg%3E') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    animation: cartMove 1.5s linear infinite !important;
}

/* 增强CSS动画（可选，在SMIL失效时提供部分视觉反馈） */
@keyframes cartMove {
    0%, 100% { 
        transform: translateX(-5px); 
    }
    50% { 
        transform: translateX(5px); 
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .markdown-body {
        font-size: 14px !important;
    }
    
    .flex.items-center.justify-center.w-6.h-5::before {
        width: 50px !important;
        height: 35px !important;
    }
}

/* 低动效模式：降低动画频率但保留效果 */
@media (prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block,
    .MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
        transition-duration: 0.15s !important;
    }
    
    /* SMIL动画会继续运行，这里仅降低CSS辅助动画的速度 */
    @keyframes cartMove {
        0%, 100% { 
            transform: translateX(-2px); 
        }
        50% { 
            transform: translateX(2px); 
        }
    }
}
/* ========== 顶部栏相关 ========== */

/* 顶部栏主容器 */
.sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(180deg, #FBF9F5 0%, #F7F4EF 100%) !important;
    border-bottom: 1px solid #E7E1D7 !important;
    box-shadow: 0 2px 8px rgba(31, 36, 33, 0.06) !important;
    backdrop-filter: blur(8px) !important;
    padding: 10px 16px !important;
}

/* 模型选择器容器 */
#ai-model-selector .group.flex.items-center {
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(31, 36, 33, 0.08) !important;
}

#ai-model-selector .group.flex.items-center:hover {
    background: #F2E3D6 !important;
    border-color: #C4612F !important;
    box-shadow: 0 2px 6px rgba(196, 97, 47, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* 模型名称 */
#ai-model-selector .truncate.text-\[13px\] {
    color: #1F2421 !important;
    font-weight: 500 !important;
    font-family: Inter, -apple-system, sans-serif !important;
}

/* 下拉箭头 */
#ai-model-selector .shrink-0.flex.items-center svg {
    color: #C4612F !important;
    transition: transform 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover svg {
    transform: translateY(2px) !important;
}

/* 历史记录图标（移动端） */
.sticky.w-full.top-0 svg.lucide-clock-8 {
    color: #C4612F !important;
    transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 svg.lucide-clock-8:hover {
    color: #A94E22 !important;
    transform: scale(1.1) !important;
}

/* 历史记录未读角标 */
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
    background-color: #C4612F !important;
    box-shadow: 0 0 0 2px #FBF9F5 !important;
}

/* 音乐按钮 */
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2) {
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2):hover {
    background: #F2E3D6 !important;
    border-color: #C4612F !important;
    transform: rotate(15deg) scale(1.05) !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
    color: #C4612F !important;
}

/* 移动端设置图标 */
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
    color: #C4612F !important;
    transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
    color: #A94E22 !important;
    transform: rotate(90deg) !important;
}

/* 设置按钮 */
#header-setting-button {
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    color: #1F2421 !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(31, 36, 33, 0.08) !important;
}

#header-setting-button:hover {
    background: #F2E3D6 !important;
    border-color: #C4612F !important;
    color: #C4612F !important;
    box-shadow: 0 2px 6px rgba(196, 97, 47, 0.15) !important;
    transform: translateY(-1px) !important;
}

#header-setting-button svg {
    color: #C4612F !important;
    transition: transform 0.3s ease !important;
}

#header-setting-button:hover svg {
    transform: rotate(45deg) !important;
}

/* ========== 开场白选择器相关 ========== */

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"],
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]) {
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 999px !important;
    padding: 0 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(31, 36, 33, 0.08) !important;
}

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover,
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]):hover {
    background: linear-gradient(135deg, #F2E3D6 0%, #FBF9F5 100%) !important;
    border-color: #C4612F !important;
    box-shadow: 0 2px 6px rgba(196, 97, 47, 0.15) !important;
    transform: translateY(-1px) !important;
}

div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"] {
    color: #C4612F !important;
    transition: transform 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group:hover svg[data-icon="SlidersH"] {
    transform: translateX(-2px) !important;
}

div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
    color: #5C635D !important;
    transition: transform 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group:hover svg[data-icon="ChevronDown"] {
    transform: translateY(2px) !important;
    color: #C4612F !important;
}

/* ========== 按钮栏相关 ========== */

#ai-mod-button2 button.MuiButton-root {
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    color: #1F2421 !important;
    font-weight: 500 !important;
    font-family: Inter, -apple-system, sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(31, 36, 33, 0.08) !important;
    text-transform: none !important;
}

#ai-mod-button2 button.MuiButton-root:hover {
    background: #C4612F !important;
    border-color: #C4612F !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 8px rgba(196, 97, 47, 0.25) !important;
    transform: translateY(-2px) !important;
}

#ai-mod-button2 button.MuiButton-root svg {
    color: #C4612F !important;
    transition: all 0.3s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover svg {
    color: #FFFFFF !important;
    transform: scale(1.1) !important;
}

/* ========== 底部栏相关 ========== */

/* 底部栏外层背景 */
.bg-gradient-to-t {
    background: linear-gradient(180deg, #FBF9F5 0%, rgba(251, 249, 245, 0.95) 100%) !important;
    backdrop-filter: blur(8px) !important;
}

/* 输入框容器 */
#ai-chat-bottom-input {
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(31, 36, 33, 0.08) !important;
    transition: all 0.3s ease !important;
    padding: 4px !important;
}

#ai-chat-bottom-input:focus-within {
    border-color: #C4612F !important;
    box-shadow: 0 4px 16px rgba(196, 97, 47, 0.15) !important;
}

/* 主输入框 */
#ai-chat-input {
    color: #1F2421 !important;
    font-family: Inter, -apple-system, sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    background: transparent !important;
}

/* 占位符 */
#ai-chat-input::placeholder {
    color: #5C635D !important;
    opacity: 0.6 !important;
    font-style: italic !important;
}

/* 文字选中效果 */
#ai-chat-input::selection {
    background: #F2E3D6 !important;
    color: #1F2421 !important;
}

/* ========== 分页栏相关 ========== */

/* 分页按钮通用 */
.MuiPaginationItem-root {
    color: #5C635D !important;
    font-weight: 500 !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: #FFFFFF !important;
}

.MuiPaginationItem-root:hover {
    background: #F2E3D6 !important;
    border-color: #C4612F !important;
    color: #C4612F !important;
    transform: translateY(-1px) !important;
}

/* 选中状态 */
.MuiPaginationItem-root.Mui-selected {
    background: linear-gradient(135deg, #C4612F 0%, #A94E22 100%) !important;
    color: #FFFFFF !important;
    border-color: #C4612F !important;
    box-shadow: 0 2px 6px rgba(196, 97, 47, 0.3) !important;
}

.MuiPaginationItem-root.Mui-selected:hover {
    background: linear-gradient(135deg, #A94E22 0%, #8B3A1A 100%) !important;
}

/* 禁用状态 */
.MuiPaginationItem-root.Mui-disabled {
    background: #F7F4EF !important;
    color: #E7E1D7 !important;
    border-color: #E7E1D7 !important;
}

/* 翻页箭头图标 */
.MuiPaginationItem-icon {
    color: #C4612F !important;
}

/* 跳转输入区域容器 */
.MuiStack-root.css-1uwir8f {
    background: #FBF9F5 !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
}

/* 跳转输入区域文字 */
.MuiStack-root.css-1uwir8f .MuiBox-root {
    color: #5C635D !important;
    font-weight: 500 !important;
}

/* 跳转输入框 */
.MuiInputBase-input {
    color: #1F2421 !important;
    font-weight: 500 !important;
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.MuiInputBase-input:focus {
    border-color: #C4612F !important;
    box-shadow: 0 0 0 3px rgba(196, 97, 47, 0.1) !important;
}

/* ========== 评论区相关 ========== */

/* 评论区背景容器 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(180deg, #FBF9F5 0%, #F7F4EF 100%) !important;
    border-top: 1px solid #E7E1D7 !important;
    box-shadow: 0 -4px 16px rgba(31, 36, 33, 0.06) !important;
}

/* 顶部标题 */
div.text-lg.font-bold {
    color: #1F2421 !important;
    font-family: 'DM Serif Display', Georgia, serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
}

/* '个人评分'文字 */
p.MuiTypography-body1.text-grey-600 {
    color: #5C635D !important;
    font-weight: 500 !important;
}

/* 评分容器 */
span.MuiRating-root {
    color: #C4612F !important;
}

/* 未选中的星星 */
span.MuiRating-iconEmpty svg {
    color: #E7E1D7 !important;
    transition: all 0.3s ease !important;
}

span.MuiRating-iconEmpty:hover svg {
    color: #F2E3D6 !important;
    transform: scale(1.1) !important;
}

/* 选中的星星 */
span.MuiRating-iconFilled svg {
    color: #C4612F !important;
    filter: drop-shadow(0 1px 3px rgba(196, 97, 47, 0.3)) !important;
    transition: transform 0.3s ease !important;
}

span.MuiRating-iconFilled:hover svg {
    transform: scale(1.15) rotate(5deg) !important;
}

/* 评分数字 */
span.text-orange-500 {
    color: #C4612F !important;
    font-weight: 600 !important;
}

/* 输入框容器 */
div.flex.flex-col.border-gray-200 {
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(31, 36, 33, 0.08) !important;
    transition: all 0.3s ease !important;
}

div.flex.flex-col.border-gray-200:focus-within {
    border-color: #C4612F !important;
    box-shadow: 0 4px 12px rgba(196, 97, 47, 0.15) !important;
}

/* 输入框 */
textarea.rc-textarea {
    color: #1F2421 !important;
    font-family: Inter, -apple-system, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    background: transparent !important;
}

textarea.rc-textarea::placeholder {
    color: #5C635D !important;
    opacity: 0.6 !important;
    font-style: italic !important;
}

textarea.rc-textarea::selection {
    background: #F2E3D6 !important;
    color: #1F2421 !important;
}

/* 输入字数统计 */
div.bg-gray-100.text-gray-500 {
    background: #F7F4EF !important;
    color: #5C635D !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* 发送评论按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(135deg, #C4612F 0%, #A94E22 100%) !important;
    border-radius: 999px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(196, 97, 47, 0.3) !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover {
    background: linear-gradient(135deg, #A94E22 0%, #8B3A1A 100%) !important;
    box-shadow: 0 4px 12px rgba(196, 97, 47, 0.4) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

div[data-state="closed"] svg[data-icon="Send03"] {
    color: #FFFFFF !important;
    transition: transform 0.3s ease !important;
}

div.cursor-pointer.group:hover svg[data-icon="Send03"] {
    transform: translateX(3px) !important;
}

/* 分割线 */
div.style_divider__mW0YX {
    background: linear-gradient(90deg, transparent, #E7E1D7 20%, #E7E1D7 80%, transparent) !important;
}

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

/* 排序按钮（已选中） */
button.MuiButton-containedPrimary {
    background: linear-gradient(135deg, #C4612F 0%, #A94E22 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 6px 16px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 6px rgba(196, 97, 47, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

button.MuiButton-containedPrimary:hover {
    background: linear-gradient(135deg, #A94E22 0%, #8B3A1A 100%) !important;
    box-shadow: 0 3px 8px rgba(196, 97, 47, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* 排序按钮（未选中） */
button.MuiButton-outlinedPrimary {
    background: #FFFFFF !important;
    color: #5C635D !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 999px !important;
    padding: 6px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

button.MuiButton-outlinedPrimary:hover {
    background: #F2E3D6 !important;
    border-color: #C4612F !important;
    color: #C4612F !important;
    transform: translateY(-1px) !important;
}

/* 评论列表容器 */
div.p-3.overflow-y-auto {
    background: transparent !important;
}

/* 评论项 */
div.group.ml-0 {
    background: #FFFFFF !important;
    border: 1px solid #E7E1D7 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(31, 36, 33, 0.06) !important;
}

div.group.ml-0:hover {
    box-shadow: 0 3px 8px rgba(31, 36, 33, 0.1) !important;
    transform: translateY(-1px) !important;
    border-color: #C4612F !important;
}

/* 用户头像 */
div.group img.rounded-full {
    border: 2px solid #E7E1D7 !important;
    transition: all 0.3s ease !important;
}

div.group:hover img.rounded-full {
    border-color: #C4612F !important;
    box-shadow: 0 2px 6px rgba(196, 97, 47, 0.2) !important;
}

/* 用户名 */
div.text-sm.text-grey-600 span.font-bold {
    color: #1F2421 !important;
    font-weight: 600 !important;
}

/* "（你）" 标签 */
span.text-\[10px\] {
    color: #C4612F !important;
    background: #F2E3D6 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}

/* 评论内容 */
div.break-all {
    color: #5C635D !important;
    line-height: 1.7 !important;
}

/* 时间戳 */
div.text-xs.text-grey-600 {
    color: #5C635D !important;
    opacity: 0.7 !important;
}

/* 点赞按钮 */
button.text-gray-400 {
    color: #5C635D !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
}

button.text-gray-400:hover {
    color: #C4612F !important;
    background: #F2E3D6 !important;
 transform: scale(1.1) !important;
}

button.text-gray-400 svg {
    transition: transform 0.3s ease !important;
}

button.text-gray-400:hover svg {
    transform: scale(1.15) !important;
}

/* 回复文字按钮 */
span.cursor-pointer {
    color: #C4612F !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

span.cursor-pointer:hover {
    background: #F2E3D6 !important;
    color: #A94E22 !important;
    text-decoration: underline !important;
}

/* 回复区域边框 */
div.ml-8.border-l {
    border-left: 2px solid #E7E1D7 !important;
    padding-left: 12px !important;
    transition: border-color 0.3s ease !important;
}

div.ml-8.border-l:hover {
    border-left-color: #C4612F !important;
}

/* ========== 移动端适配 ========== */

@media (max-width: 768px) {
    /* 顶部栏 */
    .sticky.w-full.top-0.flex.items-center {
        padding: 8px 12px !important;
    }
    
    #ai-model-selector .group.flex.items-center {
        padding: 6px 12px !important;
    }
    
    #header-setting-button {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    /* 开场白选择器 */
    div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
        padding: 0 10px !important;
    }
    
    /* 按钮栏 */
    #ai-mod-button2 button.MuiButton-root {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }
    
    /* 底部栏 */
    #ai-chat-input {
        font-size: 14px !important;
    }
    
    /* 分页栏 */
    .MuiPaginationItem-root {
        font-size: 13px !important;
        min-width: 30px !important;
        height: 30px !important;
    }
    
    /* 评论区 */
    div.text-lg.font-bold {
        font-size: 16px !important;
    }
    
    div.group.ml-0 {
        padding: 10px !important;
    }
    
    textarea.rc-textarea {
        font-size: 14px !important;
    }
    
    button.MuiButton-containedPrimary,
    button.MuiButton-outlinedPrimary {
        padding: 5px 12px !important;
        font-size: 13px !important;
    }
}

/* ========== 低动效模式 ========== */

@media (prefers-reduced-motion: reduce) {
    .sticky.w-full.top-0.flex.items-center,
    #ai-model-selector .group.flex.items-center,
    #header-setting-button,
    div.flex.items-center.h-9.cursor-pointer.group,
    #ai-mod-button2 button.MuiButton-root,
    #ai-chat-bottom-input,
    .MuiPaginationItem-root,
    div.group.ml-0,
    button.text-gray-400,
    span.cursor-pointer,
    div.cursor-pointer.group.flex.items-center.justify-center {
        transition-duration: 0.15s !important;
    }
    
    /* 禁用旋转和大幅度变换 */
    #header-setting-button:hover svg,
    .sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover,
    .sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2):hover {
        transform: none !important;
    }
}
/* ===================== 角色对话 ===================== */
p.role-danlan,
p.role-danlan-thought,
p.role-lan,
p.role-zon,
p.role-qianhon,
p.role-hui {
  position: relative !important;
  margin: 12px 0 !important;
  padding: 11px 14px !important;
  border: 1px solid #e8dcc8 !important;
  border-left-width: 3px !important;
  border-left-style: solid !important;
  border-radius: 10px !important;
  background: #fdf8f0 !important;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.2px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}
p.role-danlan::before,
p.role-danlan-thought::before,
p.role-lan::before,
p.role-zon::before,
p.role-qianhon::before,
p.role-hui::before {
  display: block !important;
  width: fit-content !important;
  margin: 0 0 6px !important;
  padding: 1px 8px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: 1px !important;
  line-height: 1.6 !important;
  border-radius: 999px !important;
  background: #fdf8f0 !important;
}
p.role-danlan::after,
p.role-danlan-thought::after,
p.role-lan::after,
p.role-zon::after,
p.role-qianhon::after,
p.role-hui::after { content: none !important; display: none !important; }

/* 侠客 · 朱砂 */
p.role-danlan { border-left-color: #8b1a1a !important; color: #3d2818 !important; }
p.role-danlan::before {
  content: "玩家" !important;
  color: #6b1212 !important;
  background: #fdf0e8 !important;
  border: 1px solid #f0d8c0 !important;
}
p.role-danlan:hover { border-color: #f0d8c0 !important; background: #fdf5ec !important; }

/* 心法 · 靛青 */
p.role-danlan-thought {
  border-left-color: #4a6b8b !important;
  color: #2c3848 !important;
  background: #f5f8fc !important;
}
p.role-danlan-thought::before {
  content: "玩家心声" !important;
  color: #3a5878 !important;
  background: #edf2f8 !important;
  border: 1px solid #d8e4f0 !important;
}
p.role-danlan-thought:hover { border-color: #d8e4f0 !important; }

/* 内功 · 松绿 */
p.role-lan {
  border-left-color: #3a7a5a !important;
  color: #2a3d30 !important;
  background: #f5faf7 !important;
}
p.role-lan::before {
  content: "心声" !important;
  color: #2e6448 !important;
  background: #eaf5ef !important;
  border: 1px solid #d0e8da !important;
}
p.role-lan:hover { border-color: #d0e8da !important; }

/* 剑客 · 铁灰 */
p.role-zon { border-left-color: #5a5048 !important; color: #3a3028 !important; }
p.role-zon::before {
  content: "男" !important;
  color: #4a4038 !important;
  background: #f2ede8 !important;
  border: 1px solid #e0d8d0 !important;
}
p.role-zon:hover { border-color: #e0d8d0 !important; background: #faf7f4 !important; }

/* 佳人 · 胭脂 */
p.role-qianhon { border-left-color: #b04870 !important; color: #4a2838 !important; }
p.role-qianhon::before {
  content: "女" !important;
  color: #983860 !important;
  background: #fdf0f4 !important;
  border: 1px solid #f0d8e4 !important;
}
p.role-qianhon:hover { border-color: #f0d8e4 !important; background: #fffbfc !important; }

/* 门派 · 琥珀 */
p.role-hui { border-left-color: #a07020 !important; color: #4a3820 !important; }
p.role-hui::before {
  content: "职业角色" !important;
  color: #886018 !important;
  background: #fdf5e0 !important;
  border: 1px solid #f0e0b0 !important;
}
p.role-hui:hover { border-color: #f0e0b0 !important; background: #fffdf5 !important; }

p.role-danlan strong, p.role-danlan-thought strong,
p.role-lan strong, p.role-zon strong,
p.role-qianhon strong, p.role-hui strong {
  color: #2c1810 !important;
  font-weight: 600 !important;
}
p.role-danlan code, p.role-danlan-thought code,
p.role-lan code, p.role-zon code,
p.role-qianhon code, p.role-hui code {
  background: #f5ede0 !important;
  color: #6b1212 !important;
  border: 1px solid #e0d4c0 !important;
  border-radius: 4px !important;
  padding: 1px 6px !important;
}

@media (max-width: 640px) {
  .markdown-body { font-size: 14px !important; line-height: 1.78 !important; }
  p.role-danlan, p.role-danlan-thought, p.role-lan,
  p.role-zon, p.role-qianhon, p.role-hui {
    padding: 10px 12px !important;
    margin: 10px 0 !important;
    font-size: 14px !important;
  }
}

/* ===================== 低动效偏好 ===================== */
@media (prefers-reduced-motion: reduce) {
  .flex.items-center.justify-center.w-6.h-5::before {
    animation: none !important;
    left: 42% !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .flex.items-center.justify-center.w-6.h-5::after { animation: none !important; }
  details > summary::before,
  details[open] > summary::before { transition: none !important; }
  details tbody tr { transition: none !important; }
}
