/* 隐藏顶部默认颜色装饰条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
/* =========================================
   拳皇风格 - 聊天框主容器
========================================= */
.bg-gray-100\/90.relative.inline-block {
    /* 经典KOF暗色渐变背景 */
    background: linear-gradient(135deg, #1a0505 0%, #0d0d0d 50%, #2b0000 100%) !important;
    /* 金色与红色的双重边框发光效果 */
    border: 2px solid #ffaa00 !important;
    box-shadow: 0 0 12px #ff0000, inset 0 0 20px rgba(255, 0, 0, 0.6) !important;
    border-radius: 2px !important; /* 街机硬朗直角风格 */
    position: relative !important;
    isolation: isolate !important; /* 建立层叠上下文，保护文本 */
    padding: 16px 20px !important;
    overflow: hidden !important;
}
/* 街机UI内嵌修饰线 */
.bg-gray-100\/90.relative.inline-block::after {
    content: "" !important;
    position: absolute !important;
    top: 4px !important; 
    left: 4px !important; 
    right: 4px !important; 
    bottom: 4px !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}
/* 拳皇华丽开局动态图案 (SVG SMIL驱动，防CSS动画屏蔽) */
.bg-gray-100\/90.relative.inline-block::before {
    /* 包含：动态呼吸的红色火焰光晕 + 缓慢旋转且脉冲的金色格斗星芒 */
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="100%" height="100%"><defs><radialGradient id="fire" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ff3300" stop-opacity="0.6"><animate attributeName="stop-opacity" values="0.6;0.1;0.6" dur="2.5s" repeatCount="indefinite"/></stop><stop offset="100%" stop-color="%232b0000" stop-opacity="0"/></radialGradient></defs><circle cx="100" cy="100" r="100" fill="url(%23fire)"><animateTransform attributeName="transform" type="scale" values="1;1.3;1" dur="2.5s" repeatCount="indefinite" additive="sum" transform-origin="100 100"/></circle><path d="M100 10 L115 85 L190 100 L115 115 L100 190 L85 115 L10 100 L85 85 Z" fill="%23ffd700" opacity="0.12"><animateTransform attributeName="transform" type="rotate" values="0 100 100;360 100 100" dur="12s" repeatCount="indefinite" additive="sum"/><animateTransform attributeName="transform" type="scale" values="1;1.15;1" dur="1.2s" repeatCount="indefinite" additive="sum" transform-origin="100 100"/></path></svg>') !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 200% !important;
    height: 200% !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
/* =========================================
   绝对可读性保障 - 主文本与附加元素
========================================= */
.markdown-body {
    color: #FFFFFF !important; /* 深色背景强制纯白字体 */
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: bold !important;
    text-shadow: none !important; /* 绝对禁止文本阴影影响阅读 */
    position: relative !important;
    z-index: 3 !important; /* 确保文本在动态背景之上 */
    background: transparent !important;
}
/* 底部附加元素 (按钮、模型名、Token) 统一金色高亮 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #FFD700 !important; 
    font-weight: bold !important;
    z-index: 3 !important;
    position: relative !important;
    text-shadow: 1px 1px 2px #000000 !important; /* 仅给小字加轻微描边增加对比度 */
}
/* =========================================
   拳皇风格 - 动态加载动画
========================================= */
/* 1. 隐藏平台默认的三个点加载 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}
/* 2. 重置加载容器尺寸 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 60px !important; 
    height: 30px !important;
}
/* 3. 插入自定义 "VS" 闪烁与能量槽 SVG (SMIL驱动) */
.flex.items-center.justify-center.w-6.h-5::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="60" height="30"><text x="50%" y="65%" font-family="Impact, sans-serif" font-size="22" font-style="italic" font-weight="bold" fill="%23ff0000" text-anchor="middle" stroke="%23ffd700" stroke-width="1.5">VS<animate attributeName="opacity" values="1;0.1;1" dur="0.5s" repeatCount="indefinite"/></text><rect x="5" y="25" width="50" height="4" fill="%23222222" stroke="%23ff0000" stroke-width="0.5"/><rect x="5" y="25" width="50" height="4" fill="%23ffaa00"><animate attributeName="width" values="0;50;0" dur="1.2s" repeatCount="indefinite"/></rect></svg>') !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 4 !important;
}
/* =========================================
   移动端与低动效兼容调整
========================================= */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 12px 14px !important;
    }
}