/* 
   ★ 星瞳系统沉浸式主题 (Starry Eye Immersive Theme) ★
   设计理念：护眼深色系、舞台光影感、独家星型加载动画
*/
/* 1. 隐藏默认的顶部颜色装饰条，减少视觉干扰，更沉浸 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
/* 2. 统一聊天框美化 (输入与输出) - 深邃舞台背景 */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(145deg, #1e1b2e 0%, #252238 100%) !important; /* 深紫灰色渐变，护眼且高级 */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* 极淡的边框 */
    border-radius: 16px !important; /* 圆润的现代感 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important; /* 悬浮阴影 */
    backdrop-filter: blur(10px) !important; /* 磨砂玻璃质感 */
}
/* 3. 针对输入框的特殊高亮 - 模拟聚光灯下的期待感 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    background: linear-gradient(145deg, #2a2640 0%, #322d4a 100%) !important;
    border: 1px solid rgba(255, 105, 180, 0.3) !important; /* 淡淡的粉色边框，致敬星野爱 */
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.1) !important;
}
/* 4. 核心文本内容 - 极致护眼的高对比度 */
.markdown-body {
    color: #E6E6FA !important; /* 薰衣草白，比纯白更护眼 */
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important; /* 增加行高，提升阅读舒适度 */
    letter-spacing: 0.02em !important;
    text-shadow: none !important; /* 严禁阴影，确保清晰 */
}
/* 强调文本加粗时的颜色，模拟星星的光芒 */
.markdown-body strong {
    color: #FFD1DC !important; /* 淡粉色高亮 */
    font-weight: 700 !important;
}
/* 5. 底部附加元素 (按钮、模型名、Token) - 确保在深色背景下可见 */
/* 操作按钮 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #A9A9C9 !important; /* 淡紫灰色 */
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
/* 模型名称 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #787890 !important; /* 低调的灰色 */
    font-size: 0.75rem !important;
}
/* Token消耗 */
.text-orange-500 {
    color: #FFB7B2 !important; /* 柔和的珊瑚色，不刺眼 */
}
/* 6. 【独家新颖功能】双星闪烁加载动画 */
/* 首先隐藏默认的三个点 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}
/* 设置动画容器 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 40px !important; /* 稍微加宽给星星空间 */
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* 使用伪元素绘制旋转的双星 (SVG) */
.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    position: absolute !important;
    width: 28px !important;
    height: 28px !important;
    /* 这是一个六芒星SVG，紫色调 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D8BFD8'%3E%3Cpath d='M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z' /%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    animation: starSpin 2s linear infinite !important;
    opacity: 0.9 !important;
}
/* 添加第二层星星，营造光晕感 */
.flex.items-center.justify-center.w-6.h-5::after {
    content: "" !important;
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    /* 这是一个粉色小星星 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF69B4'%3E%3Cpath d='M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z' /%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    animation: starPulse 1.5s ease-in-out infinite alternate !important;
}
/* 定义动画关键帧 */
@keyframes starSpin {
    0% { transform: rotate(0deg) scale(0.8); opacity: 0.7; }
    50% { transform: rotate(180deg) scale(1); opacity: 1; }
    100% { transform: rotate(360deg) scale(0.8); opacity: 0.7; }
}
@keyframes starPulse {
    0% { transform: scale(0.5); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.9; }
}