/* --- [魔尊之窍] 聊天框美化方案 --- */

/* 1. 隐藏平台自带的违和装饰条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 2. 聊天框整体风格：深邃暗黑与金属质感 */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d) !important;
    border: 1px solid #333 !important;
    border-radius: 0px !important; /* 拒绝圆润，追求棱角 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(139, 0, 0, 0.2) !important;
    color: #e0e0e0 !important;
    padding: 15px !important;
    isolation: isolate !important;
}

/* 3. 核心文本：确保冷冽清晰 */
.markdown-body {
    color: #e0e0e0 !important;
    font-family: 'Segoe UI', Roboto, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* 4. 底部附加元素：统一色调，不干扰视线 */
.MuiButtonBase-root, 
.MuiTypography-body2, 
.text-orange-500 {
    color: #888 !important;
    font-size: 12px !important;
}

/* 5. 蛊虫波动动效 (加载动画替换) */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    width: 10px !important;
    height: 10px !important;
    background: radial-gradient(circle, #ff4500, #8b0000) !important;
    border-radius: 50% !important;
    animation: pulse 1.5s infinite !important;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 5px #ff4500; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px #ff4500; }
    100% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 5px #ff4500; }
}

/* 6. 强制覆盖输入框样式 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    border-left: 3px solid #8b0000 !important; /* 象征血色契约 */
}

/* ----------------------------------
   【蛊道·噬心】 黑暗修仙专属 UI 
----------------------------------- */

/* 核心容器：深渊底色，不可名状的压迫感 */
ai.gu-world {
    display: block;
    background: linear-gradient(180deg, #050505 0%, #0f0f0f 100%); /* 极暗渐变 */
    border: 1px solid #1f1f1f;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #b0b0b0; /* 骨灰般的文字色 */
    font-family: 'Georgia', 'SimSun', serif; /* 肃杀的衬线体 */
    padding: 1rem;
    border-radius: 2px; /* 锐利边缘 */
    margin-top: 1.5rem;
    position: relative;
}

/* 装饰：背景隐约的血色阵纹 */
ai.gu-world::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 0, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 状态栏区块：坚韧且相互倾轧 */
ai.gu-world details {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid #222;
    border-left: 4px solid #5a0000; /* 干涸的血线作为左侧支撑 */
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 交互：真元流转，血线复苏 */
ai.gu-world details:hover {
    border-left-color: #a50000; /* 鲜血涌动 */
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 2px 2px 10px rgba(139, 0, 0, 0.15);
    transform: translateX(3px); /* 狂傲的前倾 */
}

/* 标题：暗金色的欲望与权力 */
ai.gu-world summary {
    color: #c5a365; /* 腐朽的暗金 */
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* 隐藏默认丑陋箭头 */
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* 隐藏部分浏览器的默认marker */
ai.gu-world summary::-webkit-details-marker {
    display: none;
}

/* 自定义蛊阵符号 */
ai.gu-world summary::before {
    content: '◈'; /* 菱形蛊纹 */
    color: #5a0000;
    margin-right: 0.6rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* 展开时的状态 */
ai.gu-world details[open] summary::before {
    transform: rotate(90deg);
    color: #c5a365; /* 展开时符号化为暗金 */
    text-shadow: 0 0 5px rgba(197, 163, 101, 0.5);
}

/* 兼容AI生成的代码块（因为你在提示词里用了 ``` 包裹状态栏内容） */
ai.gu-world pre, 
ai.gu-world code {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    font-family: inherit !important;
    white-space: pre-wrap;
    padding: 0;
    margin: 0;
}

/* 兼容Markdown列表解析 */
ai.gu-world ul {
    padding-left: 0.5rem;
    margin: 0;
    list-style-type: none;
}

/* 列表项：冰冷的情报罗列 */
ai.gu-world li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
    font-size: 0.9rem;
    border-bottom: 1px dashed #1a1a1a;
    padding-bottom: 0.3rem;
    color: #a8a8a8;
}

ai.gu-world li:last-child {
    border-bottom: none;
}

/* 强调文字：猩红的警示 */
ai.gu-world strong, 
ai.gu-world b {
    color: #8b0000;
    font-weight: normal;
}