/* 隐藏顶部装饰条，让聊天框更清爽 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
/* 聊天框背景：暖米色 + 细腻颗粒 + 旧纸质感，营造母子共居的怀旧温馨感 */
.bg-gray-100\/90.relative.inline-block {
    background: #FAF0E6 !important; /* 亚麻色基底 */
    background-image: 
        url('data:image/svg+xml;charset=UTF-8,%3Csvg width="100%25" height="100%25" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3CfeColorMatrix type="saturate" values="0"/%3E%3CfeComponentTransfer%3E%3CfeFuncA type="linear" slope="0.08"/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.5"/%3E%3C/svg%3E'),
        url('data:image/svg+xml;charset=UTF-8,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0 L100 0 L100 100 L0 100 Z" fill="%23FAF0E6"/%3E%3Cg opacity="0.15"%3E%3Cpath d="M0 0 Q25 10 50 0 Q75 10 100 0 L100 100 Q75 90 50 100 Q25 90 0 100 Z" fill="%23D2B48C"/%3E%3C/g%3E%3C/svg%3E');
    background-size: cover, cover !important;
    background-blend-mode: overlay, normal !important;
    border: 6px solid #C49A6C !important; /* 暖棕色边框 */
    border-radius: 24px !important;
    box-shadow: 0 10px 25px rgba(100, 60, 20, 0.15), inset 0 1px 0 rgba(255,255,240,0.6) !important;
    padding: 18px !important;
    transition: all 0.2s ease;
}
/* 聊天框内文本：深褐色，宋体/楷体，增加一丝丝慵懒与暧昧 */
.markdown-body {
    color: #4E3B28 !important;
    font-family: "Georgia", "Times New Roman", "KaiTi", "SimSun", serif !important;
    line-height: 1.65 !important;
    font-size: 15px !important;
    background: transparent !important;
    text-shadow: 0 1px 0 rgba(255,255,240,0.3) !important;
}
/* 按钮、底部文字颜色：咖啡色，呼应木质 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #A55D35 !important;
    font-weight: 600 !important;
}
/* 隐藏默认加载点动画 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}
/* 加载动画：替换为“跳动的心”或“母子剪影”，这里用心形跳动+轻微放大，暗示情感升温 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    overflow: visible !important;
    width: 32px !important;
    height: 32px !important;
    margin-left: 8px !important;
}
.flex.items-center.justify-center.w-6.h-5::before {
    content: '❤️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    line-height: 1;
    animation: heartbeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    z-index: 1;
}
/* 也可以使用SVG心形，确保兼容性；直接用emoji简单且表现力强 */
@keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
}
/* 可选：增加一个“母亲与儿子”剪影的悬浮小装饰（仅在鼠标悬停时显示，不干扰阅读） */
.bg-gray-100\/90.relative.inline-block:hover::after {
    content: "👩‍👦";
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 22px;
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 0;
}
/* 移动端适配 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        border-width: 4px !important;
        border-radius: 18px !important;
        padding: 12px !important;
    }
    .markdown-body {
        font-size: 14px !important;
    }
    .flex.items-center.justify-center.w-6.h-5 {
        width: 28px !important;
        height: 28px !important;
    }
    .flex.items-center.justify-center.w-6.h-5::before {
        font-size: 24px;
    }
}
/* 尊重用户的减动效偏好 */
@media (prefers-reduced-motion: reduce) {
    .flex.items-center.justify-center.w-6.h-5::before {
        animation: none;
        content: '❤️';
        transform: translate(-50%, -50%) scale(1);
    }
}