/* --- 加速世界：Direct Link 稳定版 (Light-Theme Edition) --- */

/* 1. 彻底屏蔽顶部装饰条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 2. 聊天框主体：柔和淡色背景，强化实体感 */
.bg-gray-100\/90.relative.inline-block {
    background-color: #f8faff !important; /* 柔和的米白，避免纯白刺眼 */
    background-image: none !important;
    opacity: 1 !important;                /* 强制不透明，防止背景穿透 */
    border: 1.5px solid #d3dce6 !important; /* 浅色边框，提供结构感 */
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important; /* 柔和阴影，在深色背景上产生悬浮感 */
    overflow: hidden !important;
    padding: 18px !important;
    position: relative !important;
}

/* 3. 网格背景：极度淡化，仅作为微弱纹理 */
.bg-gray-100\/90.relative.inline-block::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0 !important;
    z-index: 0 !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px), /* 极浅的网格线 */
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px) !important;
    background-size: 25px 25px !important;
    pointer-events: none !important;
}

/* 4. 文本渲染：深色文字，确保高对比度与阅读舒适性 */
.markdown-body {
    color: #2d3748 !important; /* 深蓝灰色，比纯黑更柔和，适合长时间阅读 */
    z-index: 1 !important;
    position: relative !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    text-shadow: none !important; /* 淡色背景下不需要文字描边，保持清晰 */
    background: transparent !important;
}

/* 5. 标题与强调：提升色彩权重，与深色文字协调 */
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    color: #2c5282 !important; /* 沉稳的深蓝色，作为标题强调色 */
    border-bottom: 1px solid rgba(44, 82, 130, 0.2) !important; /* 柔和的下划线 */
    margin-top: 1.2em !important;
}

.markdown-body strong {
    color: #1a202c !important; /* 加粗文字使用更深的颜色，突出强调 */
    font-weight: 700 !important;
    text-shadow: none !important; /* 移除荧光感，保持简洁 */
}

/* 6. 代码块优化：浅色背景，搭配深色代码 */
.markdown-body code {
    background-color: #edf2f7 !important; /* 极浅的蓝色背景，与主体背景区分 */
    color: #c53030 !important; /* 醒目的红色代码，高亮显示 */
    padding: 2px 5px !important;
    border-radius: 4px !important;
}

/* 7. 底部信息：弱化处理，不抢主体视线 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500,
.MuiButtonBase-root.MuiButton-root {
    color: #718096 !important; /* 稍浅的灰色，保持信息可见性 */
    opacity: 0.8 !important;
}

/* 8. 扫描线动画：在淡色主题下移除，保持简洁 */
.bg-gray-100\/90.relative.inline-block::after {
    display: none !important; /* 移除扫描线动画，避免在淡色背景下显得突兀 */
}

/* 移除旧的动画定义，确保不干扰 */
@keyframes DirectLink_Scan_Ultra_Soft {
    0% { top: -100%; }
    100% { top: 100%; }
}