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

/* 2. 通用聊天框基础样式 (胶片质感) */
.bg-gray-100\/90.relative.inline-block {
    background: #1a1a1b !important; /* 胶片暗黑色 */
    border: 1px solid #333 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    padding: 15px 20px !important;
    position: relative !important;
    overflow: visible !important;
    transition: all 0.3s ease !important;
}

/* 3. 输出聊天框特定造型 (展开的胶卷底片) */
.chat-answer-container .bg-gray-100\/90.relative.inline-block {
    border-left: 12px dashed #2c2c2c !important; /* 模拟侧边胶卷编号区 */
    border-radius: 4px !important;
    margin-left: 10px !important;
}

/* 胶卷齿孔效果 - 顶部 */
.chat-answer-container .bg-gray-100\/90.relative.inline-block::before {
    content: "" !important;
    position: absolute !important;
    top: -8px !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    background-image: repeating-linear-gradient(to right, #ddd 0, #ddd 10px, transparent 10px, transparent 20px) !important;
    z-index: 2 !important;
}

/* 胶卷齿孔效果 - 底部 */
.chat-answer-container .bg-gray-100\/90.relative.inline-block::after {
    content: "" !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    background-image: repeating-linear-gradient(to right, #ddd 0, #ddd 10px, transparent 10px, transparent 20px) !important;
    z-index: 2 !important;
}

/* 4. 输入聊天框特定造型 (复古相机取景窗) */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    border: 2px solid #4a3728 !important; /* 复古皮革/木质色边框 */
    border-radius: 20px !important;
    background: linear-gradient(145deg, #1e1e1e, #141414) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.4) !important;
}

/* 5. 核心文字可读性 (最高优先级) */
.markdown-body {
    color: #f5f5dc !important; /* 复古米白色，极高对比度 */
    font-family: "Georgia", serif !important;
    line-height: 1.6 !important;
    text-shadow: none !important;
    background: transparent !important;
    z-index: 1 !important;
}

/* 6. 底部附加元素 (按钮与Token) */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #a0a0a0 !important;
    opacity: 0.8 !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1) !important;
}

/* 7. 加载动画替换 (自定义GIF) */
/* 隐藏原始动画点 */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text {
    display: none !important;
}

/* 在容器内插入指定GIF */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 40px !important; /* 适当放大以适应GIF */
    height: 30px !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('https://img.remit.ee/api/file/BQACAgUAAyEGAASHRsPbAAEYSJFqbNgVP4nMHTr2WayfXjENnYHkjAAC5SgAAhvBaVf9V7y-Ds05aj0E.gif') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* 适配移动端 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 10px 12px !important;
        max-width: 95% !important;
    }
}