/* Re:Zero UI Theme CSS - 冰结之绊·浅色版 */

/* ===== 1. 基础容器 (改为清爽的淡蓝浅色风格) ===== */
.rezero-ui-container {
    /* --- 核心颜色变量重定义 (Light Theme) --- */
    /* 背景改为极淡的冷调白/蓝 */
    --color-bg-dark: 91bef0; 
    /* 纸张背景改为纯白 */
    --color-bg-paper: ebf8ff; 
    /* 主文字改为深板岩蓝，保证浅色背景下的阅读体验 */
    --color-text-main: #334155; 
    /* 原本的浅色文字变量，现在改为深灰蓝，用于通用文本 */
    --color-text-light: #475569; 
    /* 强调色(紫) -> 改为静谧的冰蓝色 */
    --color-accent-purple: #7dd3fc; 
    /* 强调色(金) -> 改为低饱和度的钢蓝色/灰蓝色 */
    --color-accent-gold: #64748b; 
    /* 暗金 -> 改为淡蓝灰 */
    --color-accent-gold-dim: #94a3b8; 
    /* 边框 -> 改为柔和的浅蓝 */
    --color-border: #cbd5e1; 
    
    /* [保护] 悬浮窗背景保持深色，提供视觉反差，不破坏原有逻辑 */
    --color-bg-popup: #1e293b; 
    
    /* 光晕 -> 改为极其微弱的天蓝光晕 */
    --color-glow-purple: rgba(14, 165, 233, 0.15); 
    --color-shadow-dark: rgba(148, 163, 184, 0.2); 
    
    font-family: 'Segoe UI', 'Georgia', serif;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-dark);
    /* 边框改为单实线或柔和双线，颜色变浅 */
    border: 1px solid #e2e8f0;
    /* 阴影改为扩散柔和的淡蓝光 */
    box-shadow: 0 4px 30px var(--color-glow-purple);
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5px;
    border-radius: 6px; /* 浅色风格稍微加一点圆角更舒适 */
}

/* ===== 2. HUD 顶部状态栏 (浅色磨砂玻璃感) ===== */
.rezero-ui-container .hud-panel {
    /* 背景改为从白到极淡蓝的渐变 */
    background: linear-gradient(to bottom, #ffffff, #eff6ff);
    padding: 12px;
    /* 底部边框改为清新的天蓝色 */
    border-bottom: 2px solid #bae6fd;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    letter-spacing: 0.5px;
    /* 阴影变浅 */
    box-shadow: 0 2px 10px rgba(148, 163, 184, 0.1);
    color: var(--color-text-main);
}

.rezero-ui-container .hud-item { 
    display: inline-flex; 
    align-items: center; 
}

/* 标签文字颜色适配 */
.rezero-ui-container .hud-label { 
    /* 改为较深的天蓝色，突出显示但刺眼 */
    color: #0284c7; 
    font-weight: bold; 
    margin-right: 6px; 
}

/* ===== 3. 正文区域（保持原版羊皮纸风格）===== */
.story-container { 
    margin: 15px 0;
}
.parchment-paper { 
    position: relative; 
    /* 已修改：背景色调更改为指定的淡蓝色号 */
    background-color: #ebf8ff; 
    padding: 25px 20px; 
    box-shadow: 
        0 0 5px rgba(139, 95, 191, 0.05),
        inset 0 0 15px rgba(184, 154, 107, 0.1);
    border-radius: 3px; 
    border: 1px solid #d4c9b8;
    border-top: 2px solid #e6c37e;
    border-bottom: 2px solid #b89a6b;
    overflow: hidden;
}
.story-content { 
    font-size: 1em; 
    color: #3a2c1e; 
    text-align: justify; 
    line-height: 1.7;
    white-space: normal;
    word-wrap: break-word;
    text-shadow: 
        0.5px 0.5px 0.5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* ===== 4. Modules 交互模块（【修改】清新淡蓝配色）===== */
.rezero-ui-container .status-module {
    margin: 10px 5px;
    /* 边框改为柔和的湖蓝色 */
    border: 1px solid #aed6f1;
    /* 背景改为极淡的蓝色，高不透明度以覆盖底色 */
    background: #ebf8ff;
    border-radius: 4px;
    /* 【重要】强制模块内文字为深色 */
    color: #2c3e50;
}
.rezero-ui-container .module-header {
    /* 标题栏改为淡蓝渐变 */
    background: linear-gradient(90deg, #d6eaf8, #ebf5fb);
    /* 标题文字改为深蓝灰色 */
    color: #1a5276;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.8px;
    /* 左侧装饰条改为明亮的深蓝色 */
    border-left: 3px solid #3498db;
    list-style: none;
    transition: background 0.3s;
    font-size: 12px;
    border-bottom: 1px solid #d6eaf8;
}
.rezero-ui-container .module-header:hover { 
    /* 悬停时稍微加深背景 */
    background: #d4e6f1; 
}
.rezero-ui-container .module-header::-webkit-details-marker { 
    display: none; 
}
.rezero-ui-container .module-header::after {
    content: '✦';
    float: right;
    font-size: 11px;
    transition: transform 0.3s;
    /* 箭头颜色适配 */
    color: #3498db;
}
.rezero-ui-container details[open] .module-header::after { 
    transform: rotate(180deg); 
}

/* [4] Interactive Tooltips - 悬浮窗位置范围修改 */
.rezero-ui-container .sl-tooltip {
    display: inline-block;
    color: var(--color-accent-gold);
    border-bottom: 1px dashed rgba(230, 195, 126, 0.6);
    cursor: help;
    margin: 0 8px 4px 0;
    position: relative;
    transition: all 0.2s ease;
    padding-bottom: 2px;
    z-index: 1;
    touch-action: manipulation;
}
.rezero-ui-container .sl-tooltip:hover,
.rezero-ui-container .sl-tooltip:focus-within {
    color: #fff;
    border-bottom-color: var(--color-accent-gold);
    text-shadow: 0 0 8px var(--color-accent-purple);
    z-index: 100000;
}

.rezero-ui-container .sl-popup {
    display: none;
    /* [修改核心] 改为绝对定位，贴紧触发文字 */
    position: absolute;
    /* 定位在文字正下方 */
    top: calc(100% + 8px); 
    left: 50%;
    /* 仅做横向居中偏移 */
    transform: translateX(-50%) scale(0.95);
    width: 280px;
    max-width: 85vw;
    background: var(--color-bg-popup);
    border: 2px solid var(--color-accent-gold);
    padding: 0;
    z-index: 999999;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(139, 95, 191, 0.6);
    color: #f0e9dd;
    font-size: 12px;
    border-radius: 6px;
    pointer-events: auto;
    opacity: 0;
    overflow: hidden;
}

.rezero-ui-container .sl-tooltip:hover .sl-popup,
.rezero-ui-container .sl-tooltip:focus-within .sl-popup {
    display: block;
    opacity: 1;
    /* [修改] 同步去除Y轴偏移量 */
    transform: translateX(-50%) scale(1);
    animation: sl-fade-popup 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.rezero-ui-container .sl-popup-header {
    background: linear-gradient(135deg, var(--color-accent-purple), #5a2d8c);
    padding: 8px 12px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-accent-gold);
}
.rezero-ui-container .sl-rank-badge {
    font-size: 9px;
    background: rgba(0,0,0,0.4);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(230, 195, 126, 0.3);
    color: var(--color-accent-gold);
}

.rezero-ui-container .sl-popup-content {
    padding: 12px;
    line-height: 1.5;
    background: var(--color-bg-popup);
    text-align: justify;
}

/* [修改] 动画部分同步去除Y轴偏移 */
@keyframes sl-fade-popup {
    0% { opacity: 0; transform: translateX(-50%) scale(0.95); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
}


/* ===== 5. 内部列表与网格（【修改】适配淡蓝背景）===== */
.rezero-ui-container .char-info-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 12px;
}
.rezero-ui-container .info-pair b { 
    /* 属性名改为深蓝色 */
    color: #154360; 
    margin-right: 4px; 
    font-size: 0.85em; 
}

.rezero-ui-container .section-padding { 
    padding: 12px; 
}
.rezero-ui-container .sub-title {
    font-size: 11px;
    /* 副标题改为深灰色 */
    color: #7f8c8d;
    /* 分割线改为浅蓝 */
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    margin-bottom: 8px;
    display: block;
}

.rezero-ui-container .npc-card {
    /* 卡片改为白色半透明，边框浅蓝 */
    border: 1px solid rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    /* 确保卡片内文字深色 */
    color: #2c3e50;
}

.rezero-ui-container .action-btn {
    display: block;
    /* 按钮背景改为淡蓝渐变 */
    background: linear-gradient(90deg, rgba(214, 234, 248, 0.8), transparent);
    padding: 8px 12px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    /* 按钮文字改为深色 */
    color: #154360;
    text-decoration: none;
    font-size: 12px;
}
.rezero-ui-container .action-btn:hover {
    /* 悬停左边框改为亮蓝 */
    border-left: 4px solid #3498db;
    background: linear-gradient(90deg, rgba(174, 214, 241, 0.6), transparent);
    padding-left: 16px;
}

/* 响应式断点 */
@media (max-width: 600px) {
    .rezero-ui-container .sl-popup { 
        width: 80vw; 
        max-width: 260px; 
    }
    .story-content { 
        font-size: 13px; 
        line-height: 1.6;
    }
}
@media (max-width: 375px) {
    .rezero-ui-container .hud-panel {
        gap: 6px 8px;
        font-size: 11px;
    }
    .parchment-paper {
        padding: 20px 15px;
    }
}

/* 选项按钮 (雷姆蓝背景 & 深蓝交互版) */
.ygg-opts { 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    /* 容器背景：保持原有的雷姆蓝 */
    background: #91bef0; 
    border-radius: 8px; /* 轻微圆角美化 */
}

.opt-btn {
    padding: 12px 20px; 
    /* 按钮常态背景：极浅蓝白色 */
    background: #f0f8ff; 
    /* 边框：调整为淡靛青色，过渡更自然 */
    border: 1px solid #7986cb;
    /* 字体：常态保持深紫色，保留原有风格的基调 */
    color: #4b0082; 
    font-weight: bold; 
    font-size: 14px; 
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    /* 左侧装饰条：深蓝紫色 */
    border-left: 5px solid #4b0082;
    position: relative;
    overflow: hidden;
}

/* === 修改核心：悬停 (Hover) 变为深蓝色 === */
.opt-btn:hover {
    /* 背景：改为深海蓝 (Deep Sea Blue) */
    background: #003366; 
    /* 字体：反转为纯白 */
    color: #ffffff; 
    /* 边框：跟随背景变色 */
    border-color: #003366;
    border-left-color: #002244; /* 左侧条变得更深 */
    
    transform: translateX(5px);
    /* 阴影：改为深蓝色的冷光晕 */
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
}

/* === 新增：点击 (Active) 按压效果 === */
.opt-btn:active {
    /* 点击时颜色加深 */
    background: #002244; 
    /* 模拟按压下去的位移 */
    transform: translateX(3px) scale(0.98);
    /* 阴影收缩 */
    box-shadow: 0 2px 5px rgba(0, 34, 68, 0.5);
}

/* === 极寒冰原 (Frozen Sky) 风格思维链样式 === */
/* 融合了极地冰川的冷冽与晴空水晶的通透感 */

.cot-container details {
    /* -- 核心配色板 (冰蓝/天蓝适配) -- */
    --ice-bg-void: #081018;         /* 深渊蓝黑（背景基础） */
    --ice-bg-glacier: #0f1c2e;      /* 冰川深蓝（内容底色） */
    --ice-border-frost: #4fc3f7;    /* 霜冻天蓝（边框/高亮） */
    --ice-text-snow: #e1f5fe;       /* 雪原白（正文） */
    --ice-text-sky: #81d4fa;        /* 晴空蓝（标题/次级高亮） */
    --ice-text-aurora: #00e5ff;     /* 极光青（强调色/链接） */
    --ice-glow: rgba(0, 229, 255, 0.2); /* 寒冰魔力光辉 */

    background-color: var(--ice-bg-glacier);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-left: 4px solid var(--ice-border-frost); /* 冰柱书脊设计 */
    border-radius: 6px;
    font-family: 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif;
    color: var(--ice-text-snow);
    line-height: 1.7;
    margin: 18px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 10, 20, 0.6), 0 0 15px var(--ice-glow);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 悬停时寒气凝结效果 */
.cot-container details:hover {
    border-color: var(--ice-text-aurora);
    box-shadow: 0 6px 16px rgba(0, 15, 30, 0.7), 0 0 25px rgba(0, 229, 255, 0.3);
}

/* 顶部与底部的冰晶装饰线 */
.cot-container details::before,
.cot-container details::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ice-text-sky), transparent);
    opacity: 0.5;
    pointer-events: none;
}

.cot-container details::before { top: 1px; }
.cot-container details::after { bottom: 1px; }

/* === 标题栏 (冻土封层) === */
.cot-container summary {
    background: linear-gradient(135deg, #162840 0%, #0a1724 100%);
    color: var(--ice-text-sky);
    padding: 16px 24px;
    font-weight: bold;
    font-size: 1.15em;
    cursor: pointer;
    list-style: none;
    user-select: none;
    border-bottom: 1px solid rgba(129, 212, 250, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

/* 标题栏悬停 - 极光漫射 */
.cot-container summary:hover {
    background: linear-gradient(135deg, #1e3a5c 0%, #0f2035 100%);
    color: #fff;
    text-shadow: 0 0 8px var(--ice-text-aurora);
}

/* 展开/折叠标记 - 替换为冰晶符号 */
.cot-container summary::before {
    content: '❄'; /* 雪花/冰晶 */
    color: var(--ice-text-aurora);
    margin-right: 14px;
    font-size: 1.2em;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), color 0.3s ease;
    vertical-align: middle;
    opacity: 0.8;
}

/* 展开状态下的标记 */
.cot-container details[open] summary::before {
    transform: rotate(180deg) scale(1.1);
    color: #fff;
    text-shadow: 0 0 8px var(--ice-text-aurora);
}

/* 标题高亮装饰 - 寒冰射线 */
.cot-container summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--ice-text-aurora);
    box-shadow: 0 0 5px var(--ice-text-aurora);
    transition: width 0.4s ease;
}

.cot-container details[open] summary::after {
    width: 100%;
}

/* === 内容区域 === */
.cot-container details > div {
    padding: 24px 28px;
    /* 模拟冰层下的深邃感 */
    background-image: radial-gradient(circle at 50% 0%, rgba(79, 195, 247, 0.08) 0%, transparent 70%);
}

/* 分割线 - 冻结线 */
.cot-container hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ice-text-aurora), var(--ice-text-sky), var(--ice-text-aurora), transparent);
    margin: 25px 0;
    opacity: 0.7;
}

/* 段落样式 */
.cot-container p {
    margin-bottom: 1.4em;
    text-align: justify;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 首字下沉 - 冰雕风格 */
.cot-container p:first-of-type::first-letter {
    font-family: 'Times New Roman', serif;
    font-size: 2.4em;
    color: var(--ice-text-sky);
    float: left;
    line-height: 0.85;
    margin-right: 10px;
    margin-top: 4px;
    text-shadow: 0 0 10px rgba(129, 212, 250, 0.4);
    border: 1px solid rgba(129, 212, 250, 0.3);
    padding: 2px 6px;
    background: rgba(15, 28, 46, 0.6);
    border-radius: 4px;
}

/* 列表样式 */
.cot-container ul, .cot-container ol {
    padding-left: 20px;
    margin: 15px 0;
    border-left: 1px dashed rgba(129, 212, 250, 0.3);
}

.cot-container li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 8px;
}

/* 列表项标记 - 碎冰 */
.cot-container ul li::before {
    content: '◆'; /* 菱形冰晶 */
    color: var(--ice-text-aurora);
    position: absolute;
    left: -26px;
    font-size: 0.8em;
    top: 3px;
}

/* 代码块/引用 - 封印石板 */
.cot-container pre, .cot-container code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 195, 247, 0.4);
    border-radius: 4px;
    padding: 4px 8px;
    color: #b3e5fc;
    font-size: 0.9em;
}

.cot-container pre {
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 3px solid var(--ice-text-aurora);
    background: repeating-linear-gradient(
        45deg,
        rgba(10, 20, 30, 0.5),
        rgba(10, 20, 30, 0.5) 10px,
        rgba(20, 40, 60, 0.5) 10px,
        rgba(20, 40, 60, 0.5) 20px
    );
}

/* 链接样式 - 精神链接 */
.cot-container a {
    color: var(--ice-text-aurora);
    text-decoration: none;
    border-bottom: 1px dotted var(--ice-text-aurora);
    transition: all 0.2s;
}

.cot-container a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
    text-shadow: 0 0 8px var(--ice-text-aurora);
}

/* 移除WebKit默认箭头 */
.cot-container summary::-webkit-details-marker {
    display: none;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .cot-container details {
        margin: 15px 0;
        border-left-width: 3px;
    }
    
    .cot-container summary {
        padding: 14px 18px;
        font-size: 1.05em;
    }
    
    .cot-container details > div {
        padding: 18px 20px;
    }
}

/* =================================================================
   Re:Zero Theme: Satella & Emilia (Safe Logic Edition)
   安全模式：严格作用域隔离，绝不干扰悬浮窗
   ================================================================= */

/* --- 1. 顶部栏净化 (限定在顶部容器内，防止误删其他元素) --- */
/* 仅隐藏顶部栏内的特定装饰色块 */
.sticky.w-full.top-0 [class*="bg-[#F1CBCB]"], 
.sticky.w-full.top-0 [class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 顶部栏背景重构 - 深蓝黑风格 */
.sticky.w-full.top-0.flex.items-center {
    /* 替换为深岩蓝/夜空蓝渐变 */
    background: linear-gradient(180deg, rgba(15, 25, 35, 0.98) 0%, rgba(10, 20, 30, 0.95) 100%) !important;
    backdrop-filter: blur(10px) !important;
    /* 边框改为柔和的淡蓝色 */
    border-bottom: 1px solid rgba(93, 173, 226, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
    z-index: 50 !important; /* 降低层级，确保低于悬浮窗 */
}

/* 模型名称美化 - 淡蓝光晕 */
#ai-model-selector .truncate.text-\[13px\] {
    /* 字体颜色改为淡蓝色 */
    color: #AED6F1 !important;
    /* 光晕改为天蓝色 */
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
    font-family: "Segoe UI", serif !important;
    font-weight: 700 !important;
}

/* --- 2. 聊天气泡 (雷姆蓝#91bef0 主调 & 拉姆粉#FFB6C1 点缀版) --- */
/* 仅针对聊天气泡的特定类名组合 */
.bg-gray-100\/90.relative.inline-block {
    /* 背景：改为雷姆蓝 (Rem Blue) 的清新渐变 */
    background: linear-gradient(165deg, #91bef0 0%, #7db4e8 100%) !important;
    /* 边框：使用拉姆粉 (Ram Pink) 进行边缘点缀，加粗以突出装饰感 */
    border: 2px solid #FFB6C1 !important;
    border-radius: 8px !important;
    /* 阴影：外部使用柔和的蓝色投影，内部保留淡淡的粉色光晕 */
    box-shadow: 0 4px 15px rgba(145, 190, 240, 0.4), inset 0 0 20px rgba(255, 182, 193, 0.25) !important;
    /* 文字：背景变浅后，文字颜色适配为深板岩蓝，确保舒适阅读 */
    color: #2b3d52 !important; 
}

/* 气泡文字 */
.bg-gray-100\/90.relative.inline-block .markdown-body {
    color: #2b3d52 !important;
    font-family: "Segoe UI", sans-serif !important;
    /* 去除深色背景的黑阴影，改为白色高光，营造刻印感 */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* 强调文字 (拉姆粉点缀) */
.bg-gray-100\/90.relative.inline-block .markdown-body strong {
    /* 粗体文字：使用较深的玫瑰粉色以保证在蓝底上的清晰度 */
    color: #db7093 !important;
    /* 使用拉姆粉(#FFB6C1)作为文字的硬阴影/衬托，呼应边缘 */
    text-shadow: 1px 1px 0px #FFB6C1 !important;
    font-weight: 800 !important;
}

/* --- 3. 按钮组 (严格限定ID，绝不误伤悬浮窗内的按钮) --- */
/* 顶部功能按钮 */
button, .menu_button.MuiButton-root,
#nav-right button {
    /* 深蓝渐变 */
    background: linear-gradient(135deg, #1e3a8a, #0f172a) !important;
    color: #bae6fd !important; /* 淡蓝文字 */
    border: 1px solid #3b82f6 !important;
    border-bottom: 3px solid #1d4ed8 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
    font-weight: bold !important;
    transition: all 0.2s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover,
#header-setting-button:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5) !important;
    border-color: #60a5fa !important;
}

/* 分页按钮 (严格限定类名) */
.MuiPaginationItem-root {
    color: #7dd3fc !important; /* 天蓝 */
}
.MuiPaginationItem-root.Mui-selected {
    background-color: #2563eb !important; /* 选中蓝 */
    color: #fff !important;
}

/* --- 4. 底部输入框 (指定ID) --- */
textarea, input[type="text"] {
    background-color: rgba(15, 23, 42, 0.95) !important; /* Slate 900 */
    color: #f0f9ff !important;
    border: 1px solid #3b82f6 !important;
    border-left: 4px solid #7dd3fc !important; /* 左侧天蓝条 */
    border-radius: 4px !important;
}
textarea, input[type="text"]:focus {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) !important;
    border-color: #38bdf8 !important;
}
textarea, input[type="text"]::placeholder {
    color: rgba(186, 230, 253, 0.4) !important;
}

/* --- 5. 加载动画容器 (帕克/碧翠丝风格 -> 冰结风格) --- */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) {
    background: linear-gradient(135deg, #0f172a, #172554) !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    border-radius: 8px !important;
    animation: witch-miasma-pulse 4s ease-in-out infinite !important;
}

/* 动态文字 */
#ai-chat-answer .chat-answer-container .loading-text {
    color: #bae6fd !important;
    font-family: monospace !important;
}

/* 旋转图标 */
#ai-chat-answer .chat-answer-container .style_dot-flashing__8L91Q {
    border-color: rgba(96, 165, 250, 0.3) !important;
    border-top-color: #60a5fa !important;
    border-left-color: #38bdf8 !important;
    animation: spinner-rotation 1s infinite linear !important;
}

/* --- 6. 评论区 (保持原样，不进行变动) --- */
/* 主容器 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(to bottom, #f8fafc, #eff6ff) !important;
    border-top: 3px solid #a78bfa !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1) !important;
    z-index: 40 !important; /* 确保不遮挡悬浮窗 */
}

/* 评论标题 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.text-lg.font-bold {
    color: #4c1d95 !important;
}

/* 评论输入框容器 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.flex.flex-col.border-gray-200 {
    border: 1px solid #c4b5fd !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px !important;
}

/* 评论输入框本体 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] textarea.rc-textarea {
    background: transparent !important;
    color: #334155 !important;
}

/* 评论发送按钮 (特异性增强) */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    box-shadow: 0 2px 5px rgba(99, 102, 241, 0.3) !important;
}

/* 评论列表项 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.group.ml-0 {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 8px !important;
}
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.group.ml-0:hover {
    background-color: #fff !important;
    border-color: #c4b5fd !important;
}

/* 用户名 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.text-sm.text-grey-600 span.font-bold {
    color: #6d28d9 !important;
}

/* 评论内容 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.break-all {
    color: #1e293b !important;
}

/* 回复区域边框 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.ml-8.border-l {
    border-left-color: #c4b5fd !important;
}

/* --- 7. 动画定义 (颜色适配淡蓝) --- */
@keyframes witch-miasma-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3); }
    50% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); border-color: rgba(125, 211, 252, 0.6); }
}

@keyframes spinner-rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 8. 系统日志文字注入 (可选) --- */
.system-log-1 .loading-text::before { content: '[SYSTEM] 连接冰结之绊...' !important; }
.system-log-2 .loading-text::before { content: '[ANALYSIS] 玛那大气共振...' !important; }