/* =========================================
   「午夜SPA」- 顶部栏与开场白美化
   ========================================= */
/* 顶部栏主容器：幽暗的深紫红渐变背景，模拟昏暗放松的按摩室光线 */
.sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(135deg, #160e14, #2a1625) !important;
    border-bottom: 1px solid #4a253b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7) !important;
}

/* 模型选择器：半透明的琥珀色边框包裹 */
#ai-model-selector .group.flex.items-center {
    background: rgba(74, 37, 59, 0.5) !important;
    border: 1px solid #d4af37 !important;
    border-radius: 20px !important;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1) !important;
}

/* 模型名称文字：烛光金 */
#ai-model-selector .truncate.text-\[13px\] {
    color: #f3e5ab !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
}

/* 顶部各类图标（设置、历史记录、音乐等）：点亮为琥珀金并增加柔和光晕 */
.sticky.w-full.top-0 svg,
#ai-model-selector .shrink-0.flex.items-center svg,
#header-setting-button svg {
    color: #d4af37 !important;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.6)) !important;
}

/* 开场白选择器：深色丝绒质感 */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
    background: #20111c !important;
    border: 1px solid #6b4056 !important;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5) !important;
}
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"],
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
    color: #d4af37 !important;
}

/* =========================================
   「午夜SPA」- 按钮栏与底部输入区
   ========================================= */
/* 功能按钮：如同精油瓶贴般的质感 */
#ai-mod-button2 button.MuiButton-root {
    background: linear-gradient(145deg, #3d1f2f, #23121b) !important;
    border: 1px solid #d4af37 !important;
    color: #f3e5ab !important;
    border-radius: 25px !important;
    transition: all 0.4s ease !important;
}
#ai-mod-button2 button.MuiButton-root:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4) !important;
    background: linear-gradient(145deg, #4a253b, #2a1625) !important;
}
#ai-mod-button2 button.MuiButton-root svg {
    color: #d4af37 !important;
}

/* 底部输入框容器：幽暗背景 */
#ai-chat-bottom-input {
    background: rgba(22, 14, 20, 0.95) !important;
    backdrop-filter: blur(8px) !important;
}

/* 主输入框：深邃的按摩床质感，柔和圆角 */
#ai-chat-input {
    background: #1c1118 !important;
    color: #f3e5ab !important;
    border: 1px solid #4a253b !important;
    border-radius: 16px !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5) !important;
}
#ai-chat-input::placeholder {
    color: #8a6a7a !important; /* 降低对比度但不失可读性 */
}
#ai-chat-input::selection {
    background: #d4af37 !important;
    color: #160e14 !important;
}

/* =========================================
   「午夜SPA」- 分页栏（纯视觉重绘）
   ========================================= */
.MuiPaginationItem-root {
    color: #d4af37 !important;
    border-color: #4a253b !important;
}
.MuiPaginationItem-root.Mui-selected {
    background: #d4af37 !important;
    color: #160e14 !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6) !important;
}
.MuiPaginationItem-icon {
    color: #d4af37 !important;
}
.MuiStack-root.css-1uwir8f .MuiBox-root {
    color: #f3e5ab !important;
}
.MuiInputBase-input {
    color: #f3e5ab !important;
    background: #2a1625 !important;
    border-radius: 4px !important;
}

/* =========================================
   「午夜SPA」- 评论区沉浸式美化
   ========================================= */
/* 评论区主背景：维持平台布局，强制覆盖深色调 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background-color: #160e14 !important;
    background-image: linear-gradient(to bottom, #160e14, #0d080c) !important;
}

/* 顶部标题与文本可读性 */
div.text-lg.font-bold {
    color: #d4af37 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
}
p.MuiTypography-body1.text-grey-600 {
    color: #a88a9c !important;
}

/* 评分星星：精油蜡烛发光效果 */
span.MuiRating-iconEmpty svg { color: #3d1f2f !important; }
span.MuiRating-iconFilled svg { 
    color: #ffc107 !important; 
    filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.8)) !important; 
}
span.text-orange-500 { color: #ffc107 !important; }

/* 评论输入区 */
div.flex.flex-col.border-gray-200 { border-color: #3d1f2f !important; }
textarea.rc-textarea {
    background: #1c1118 !important;
    color: #f3e5ab !important;
    border: 1px solid #4a253b !important;
}
div.bg-gray-100.text-gray-500 {
    background: #160e14 !important;
    color: #8a6a7a !important;
}
div.cursor-pointer.group.flex.items-center.justify-center svg[data-icon="Send03"] {
    color: #d4af37 !important;
}

/* 评论列表区域细节 */
div.style_divider__mW0YX { border-color: #3d1f2f !important; }
div.p-3.overflow-y-auto { scrollbar-color: #4a253b #160e14 !important; }

/* 单个评论块：按摩水疗馆的私密隔间质感 */
div.group.ml-0 {
    background: rgba(30, 17, 25, 0.6) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(107, 64, 86, 0.3) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3) !important;
}

/* 用户名与内容 */
div.text-sm.text-grey-600 span.font-bold { color: #d4af37 !important; }
span.text-\[10px\] { color: #a88a9c !important; }
div.break-all { color: #e8d5c4 !important; line-height: 1.6 !important; }
div.text-xs.text-grey-600 { color: #6b4056 !important; }

/* 互动按钮：点赞与回复 */
button.text-gray-400 svg { color: #8a6a7a !important; transition: all 0.3s !important; }
button.text-gray-400:hover svg { color: #d4af37 !important; transform: scale(1.1) !important; }
span.cursor-pointer { color: #d4af37 !important; text-decoration: underline !important; text-decoration-color: #6b4056 !important;}
div.ml-8.border-l { border-color: #4a253b !important; }

/* 排序按钮 */
button.MuiButton-containedPrimary {
    background: #4a253b !important;
    color: #d4af37 !important;
    border: 1px solid #d4af37 !important;
}
button.MuiButton-outlinedPrimary {
    color: #a88a9c !important;
    border: 1px solid #4a253b !important;
}

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

/* 统一聊天框基础样式：温润精油质感与呼吸微动效 */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(135deg, #FFF5F5, #FDF3E9) !important;
    border: 1px solid #F5E6E6 !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 25px rgba(139, 115, 115, 0.12), inset 0 2px 10px rgba(255,255,255,0.9) !important;
    padding: 22px 24px !important;
    backdrop-filter: blur(12px) !important;
    position: relative !important;
    isolation: isolate !important;
    transition: all 0.3s ease !important;
}

/* 模拟按摩呼吸节奏的背景光晕动效 */
.bg-gray-100\/90.relative.inline-block::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit !important;
    background: radial-gradient(circle at 50% 50%, rgba(255, 218, 185, 0.25), transparent 70%) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    animation: massageBreath 5s ease-in-out infinite alternate !important;
}

@keyframes massageBreath {
    0% { opacity: 0.2; transform: scale(0.98); }
    100% { opacity: 0.8; transform: scale(1.02); }
}

/* 聊天框内的主要文本内容：高对比度深暖棕色，确保绝对可读 */
.markdown-body {
    color: #4A3B3B !important; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: bold !important;
    line-height: 1.75 !important;
    z-index: 1 !important;
    background: transparent !important;
    text-shadow: none !important; /* 严禁文字阴影以保可读性 */
}

/* 底部附加元素：操作按钮、模型名称、Token消耗 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #8D6E63 !important; 
    font-weight: bold !important;
    transition: color 0.2s ease !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #5D4037 !important;
    background-color: rgba(141, 110, 99, 0.1) !important;
    border-radius: 8px !important;
}

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

/* 自定义SVG加载动效：舒缓的指压扩散波纹 (SMIL动画) */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><circle cx="12" cy="12" r="3" fill="%238D6E63"><animate attributeName="r" values="2;6;2" dur="2.5s" repeatCount="indefinite" /><animate attributeName="opacity" values="0.8;0;0.8" dur="2.5s" repeatCount="indefinite" /></circle><circle cx="12" cy="12" r="2" fill="%235D4037"><animate attributeName="opacity" values="0;1;0" dur="2.5s" repeatCount="indefinite" /></circle></svg>') !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* 移动端与低动效适配 */
@media(max-width:480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 16px !important;
        border-radius: 18px !important;
    }
}

@media(prefers-reduced-motion:reduce) {
    .bg-gray-100\/90.relative.inline-block::before {
        animation-duration: 15s !important;
        transform: none !important;
    }
}