/* 
   🎨 主题：听雪剑意·寒梅傲雪
   ✨ 效果：去除顶部色条，输出框化为雪山琉璃风格，输入框化为深邃剑气风格，附带飘雪动态
*/

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

/* 2. 💬 统一聊天框基础设置 (圆角与阴影) */
.bg-gray-100\/90.relative.inline-block {
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease !important;
}

/* 3. 📤 输出聊天框 (谢清璇/天枢 - 雪山风格) */
.chat-answer-container .bg-gray-100\/90 {
    /* 冰雪渐变背景 */
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%) !important;
    border-left: 4px solid #a1c4fd !important; /* 冰蓝侧边条 */
    color: #2c3e50 !important; /* 深灰蓝字体，确保极高可读性 */
}

/* 输出框文本样式 */
.chat-answer-container .markdown-body {
    color: #2c3e50 !important;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    text-shadow: none !important; /* 禁止模糊文本 */
}

/* 输出框底部信息 (Token/模型名) 适配浅色背景 */
.chat-answer-container .text-orange-500,
.chat-answer-container .MuiTypography-root {
    color: #7f8c8d !important;
    font-size: 0.85rem !important;
}

/* 输出框操作按钮适配 */
.chat-answer-container .MuiButtonBase-root {
    color: #5d6d7e !important;
}

/* ❄️ 输出框背景动态：飘雪氛围 (使用伪元素) */
.chat-answer-container .bg-gray-100\/90::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none !important;
    background-image: radial-gradient(circle, #a1c4fd 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    opacity: 0.1 !important;
    z-index: 0 !important;
}

/* 4. 📥 输入聊天框 (用户 - 夜色剑气风格) */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    /* 深邃夜空渐变 */
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%) !important;
    border: 1px solid #4ca1af !important;
    color: #ffffff !important;
}

/* 输入框文本样式 - 强制反白 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .markdown-body {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* 输入框底部信息适配深色背景 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .text-orange-500,
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .MuiTypography-root,
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .MuiButtonBase-root {
    color: #e0e0e0 !important; /* 浅灰白 */
}

/* 5. ⏳ 加载动画自定义 (剑意流转) */
/* 隐藏默认点 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

/* 自定义加载图标容器 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 30px !important;
    height: 30px !important;
}

/* 使用SVG绘制一把旋转的小剑 */
.flex.items-center.justify-center.w-6.h-5::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a1c4fd'%3E%3Cpath d='M12 2L15 20L12 22L9 20L12 2Z' /%3E%3C/svg%3E") !important;
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    animation: swordSpin 1.5s infinite linear !important;
    filter: drop-shadow(0 0 2px #4ca1af) !important;
}

/* 剑意旋转动画 */
@keyframes swordSpin {
    0% { transform: rotate(0deg) scale(0.8); opacity: 0.8; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
    100% { transform: rotate(360deg) scale(0.8); opacity: 0.8; }
}