/* ========================================
   淡蓝色主题 - 顶部栏美化
   ======================================== */

/* 顶部栏主容器 */
.sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%) !important;
    border-bottom: 1px solid #7dd3fc !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15) !important;
}

/* 模型选择器 */
#ai-model-selector .group.flex.items-center {
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    transition: all 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* 模型名称文字 */
#ai-model-selector .truncate.text-\[13px\] {
    color: #0369a1 !important;
    font-weight: 600 !important;
}

/* 下拉箭头 */
#ai-model-selector .shrink-0.flex.items-center svg {
    color: #0284c7 !important;
}

/* 设置按钮 */
#header-setting-button {
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

#header-setting-button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2) !important;
}

#header-setting-button svg {
    color: #0284c7 !important;
}

/* 历史记录图标 */
.sticky.w-full.top-0 svg.lucide-clock-8 {
    color: #0284c7 !important;
}

/* 未读角标 */
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
    background-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9) !important;
}

/* 音乐按钮 */
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2) {
    background: rgba(255, 255, 255, 0.6) !important;
    color: #0284c7 !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2):hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* ========================================
   淡蓝色主题 - 开场白选择器美化
   ======================================== */

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%) !important;
    border: 2px solid #7dd3fc !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.1) !important;
    transition: all 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* 滑块图标 */
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"] {
    color: #0284c7 !important;
    transition: transform 0.3s ease !important;
}

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

/* 下拉箭头 */
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
    color: #0284c7 !important;
}

/* ========================================
   淡蓝色主题 - 按钮栏美化
   ======================================== */

#ai-mod-button2 {
    background: transparent !important;
}

#ai-mod-button2 button.MuiButton-root {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border: 2px solid #7dd3fc !important;
    border-radius: 10px !important;
    color: #0369a1 !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.1) !important;
}

#ai-mod-button2 button.MuiButton-root:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%) !important;
    border-color: #38bdf8 !important;
    color: #0284c7 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
    transform: translateY(-2px) !important;
}

#ai-mod-button2 button.MuiButton-root svg {
    color: #0284c7 !important;
}

/* ========================================
   淡蓝色主题 - 底部栏/输入框美化
   ======================================== */

.bg-gradient-to-t {
    background: linear-gradient(to top, #e0f2fe 0%, rgba(224, 242, 254, 0.95) 100%) !important;
    border-top: 1px solid #7dd3fc !important;
}

#ai-chat-bottom-input {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 16px !important;
    border: 2px solid #7dd3fc !important;
    padding: 12px 16px !important;
    box-shadow: 0 -2px 12px rgba(14, 165, 233, 0.1) !important;
    transition: all 0.3s ease !important;
}

#ai-chat-bottom-input:focus-within {
    border-color: #38bdf8 !important;
    box-shadow: 0 -4px 16px rgba(14, 165, 233, 0.2) !important;
    background: rgba(255, 255, 255, 1) !important;
}

#ai-chat-input {
    color: #0c4a6e !important;
    font-size: 15px !important;
}

#ai-chat-input::placeholder {
    color: #7dd3fc !important;
    font-style: italic !important;
}

#ai-chat-input::selection {
    background: #7dd3fc !important;
    color: #ffffff !important;
}

/* ========================================
   淡蓝色主题 - 分页栏美化
   ======================================== */

.MuiPaginationItem-root {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border: 1px solid #7dd3fc !important;
    border-radius: 8px !important;
    color: #0369a1 !important;
    transition: all 0.3s ease !important;
}

.MuiPaginationItem-root:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%) !important;
    border-color: #38bdf8 !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2) !important;
    transform: translateY(-1px) !important;
}

.MuiPaginationItem-root.Mui-selected {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
}

.MuiPaginationItem-root.Mui-selected:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
}

.MuiPaginationItem-root.Mui-disabled {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #7dd3fc !important;
    opacity: 0.6 !important;
}

.MuiPaginationItem-icon {
    color: #0284c7 !important;
}

.MuiStack-root.css-1uwir8f .MuiBox-root {
    color: #0369a1 !important;
    font-weight: 500 !important;
}

.MuiInputBase-input {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #7dd3fc !important;
    border-radius: 6px !important;
    color: #0c4a6e !important;
    transition: all 0.3s ease !important;
}

.MuiInputBase-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2) !important;
}

/* ========================================
   淡蓝色主题 - 评论区美化
   ======================================== */

div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(to top, #e0f2fe 0%, rgba(224, 242, 254, 0.98) 100%) !important;
    border-top: 1px solid #7dd3fc !important;
}

/* 顶部标题 */
div.text-lg.font-bold {
    color: #0369a1 !important;
    text-shadow: 0 1px 2px rgba(14, 165, 233, 0.1) !important;
}

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

/* 评分星星 */
span.MuiRating-root {
    color: #7dd3fc !important;
}

span.MuiRating-iconFilled svg {
    color: #0284c7 !important;
    filter: drop-shadow(0 1px 2px rgba(2, 132, 199, 0.3)) !important;
}

/* 评分数字 */
span.text-orange-500 {
    color: #0284c7 !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 输入框容器 */
div.flex.flex-col.border-gray-200 {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #7dd3fc !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1) !important;
    transition: all 0.3s ease !important;
}

div.flex.flex-col.border-gray-200:focus-within {
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
    background: rgba(255, 255, 255, 1) !important;
}

/* 输入框 */
textarea.rc-textarea {
    background: transparent !important;
    color: #0c4a6e !important;
    font-size: 14px !important;
    border: none !important;
}

textarea.rc-textarea::placeholder {
    color: #7dd3fc !important;
}

/* 字数统计 */
div.bg-gray-100.text-gray-500 {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #0284c7 !important;
    border-radius: 6px !important;
}

/* 发送按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
    transform: translateY(-2px) !important;
}

div[data-state="closed"] svg[data-icon="Send03"] {
    color: #ffffff !important;
}

/* 分割线 */
div.style_divider__mW0YX {
    background: linear-gradient(to right, transparent, #7dd3fc, transparent) !important;
    height: 2px !important;
}

/* 排序按钮 */
button.MuiButton-containedPrimary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2) !important;
}

button.MuiButton-outlinedPrimary {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid #7dd3fc !important;
    border-radius: 8px !important;
    color: #0284c7 !important;
}

button.MuiButton-outlinedPrimary:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border-color: #38bdf8 !important;
}

/* ========================================
   淡蓝色主题 - 评论列表美化
   ======================================== */

div.p-3.overflow-y-auto {
    background: transparent !important;
}

div.group.ml-0 {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #e0f2fe !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
}

div.group.ml-0:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #7dd3fc !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1) !important;
    transform: translateX(4px) !important;
}

/* 用户头像 */
div.group img.rounded-full {
    border: 3px solid #7dd3fc !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2) !important;
    transition: all 0.3s ease !important;
}

div.group:hover img.rounded-full {
    border-color: #0284c7 !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3) !important;
}

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

/* "（你）" 标签 */
span.text-\[10px\] {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

/* 评论内容 */
div.break-all {
    color: #0c4a6e !important;
    line-height: 1.6 !important;
}

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

/* 点赞按钮 */
button.text-gray-400 {
    color: #7dd3fc !important;
    transition: all 0.3s ease !important;
}

button.text-gray-400:hover {
    color: #0284c7 !important;
    background: rgba(14, 165, 233, 0.1) !important;
    border-radius: 6px !important;
}

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

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

/* 回复按钮 */
span.cursor-pointer {
    color: #0284c7 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

span.cursor-pointer:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

/* 回复区域 */
div.ml-8.border-l {
    border-left: 3px solid #7dd3fc !important;
    background: rgba(224, 242, 254, 0.3) !important;
    border-radius: 0 8px 8px 0 !important;
}

/* ========================================
   淡蓝色主题 - 全局增强
   ======================================== */

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track {
    background: #f0f9ff !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
}

/* 全局悬停效果增强 */
* {
    transition-timing-function: ease !important;
}

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

/* ========== 统一聊天框基础样式 ========== */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(145deg, #f8f9fa, #eef1f4) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 4px 16px rgba(90, 110, 130, 0.12),
        0 2px 6px rgba(90, 110, 130, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(180, 195, 210, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 18px 22px !important;
    isolation: isolate;
}

/* 聊天框悬停微动效 */
.bg-gray-100\/90.relative.inline-block:hover {
    box-shadow: 
        0 6px 20px rgba(90, 110, 130, 0.15),
        0 3px 8px rgba(90, 110, 130, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-1px);
}

/* ========== 主文本内容样式 ========== */
.markdown-body {
    color: #3d4f5f !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.7 !important;
    font-size: 15px !important;
    background: transparent !important;
    z-index: 1;
    position: relative;
}

/* 标题层级 */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
}

/* 链接样式 */
.markdown-body a {
    color: #4a90d9 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: border-color 0.2s ease !important;
}

.markdown-body a:hover {
    border-bottom-color: #4a90d9 !important;
}

/* 代码块 */
.markdown-body code {
    background: rgba(74, 144, 217, 0.1) !important;
    color: #d35400 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
}

/* ========== 底部附加元素 ========== */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #5a7a8a !important;
    transition: all 0.2s ease !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #3d5a6a !important;
    background: rgba(90, 110, 130, 0.08) !important;
}

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

.text-orange-500 {
    color: #c27c4a !important;
    font-weight: 500 !important;
}

/* ========== <details><summary> 按键式美化 ========== */
.markdown-body details {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 12px 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.markdown-body summary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: linear-gradient(180deg, #ffffff, #f4f6f8) !important;
    border: 1.5px solid #c8d4de !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: #4a5d6a !important;
    box-shadow: 
        0 2px 4px rgba(90, 110, 130, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    list-style: none !important;
}

.markdown-body summary::-webkit-details-marker {
    display: none !important;
}

/* Summary 箭头图标 */
.markdown-body summary::after {
    content: "" !important;
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7a8a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: transform 0.25s ease !important;
    flex-shrink: 0 !important;
}

/* Summary 悬停效果 */
.markdown-body summary:hover {
    background: linear-gradient(180deg, #fafbfc, #eff2f5) !important;
    border-color: #a8b8c6 !important;
    color: #3a4d5a !important;
    box-shadow: 
        0 3px 6px rgba(90, 110, 130, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Summary 点击/展开状态 */
.markdown-body details[open] summary {
    background: linear-gradient(180deg, #f0f2f4, #e8ebee) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-color: #d8e0e8 !important;
    margin-bottom: 0 !important;
}

.markdown-body details[open] summary::after {
    transform: rotate(180deg) !important;
}

/* details 展开内容区 */
.markdown-body details[open] {
    background: linear-gradient(180deg, #fafbfc, #f5f7f9) !important;
    border: 1.5px solid #d8e0e8 !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    padding: 14px 16px !important;
    margin-top: -2px !important;
    box-shadow: inset 0 1px 3px rgba(90, 110, 130, 0.05) !important;
}

/* ========== 移动端适配 ========== */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }
    
    .markdown-body {
        font-size: 14px !important;
    }
    
    .markdown-body summary {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
}

/* ========== 减少动效偏好 ========== */
@media (prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block {
        transition: none !important;
    }
    
    .bg-gray-100\/90.relative.inline-block:hover {
        transform: none !important;
    }
    
    .markdown-body summary::after,
    .markdown-body details[open] summary::after {
        transition: none !important;
    }
}