/* --- 基础背景：伦敦雾灰侦探风格 --- */
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] { display: none !important; }

.bg-gray-100\/90.relative.inline-block {
    background-color: #e5e9f0 !important;
    background-image: none !important;
    border: 4px solid #1e3a8a !important;
    border-radius: 4px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

/* 背景元素：放大镜水印 (保持静止，不干扰阅读) */
.bg-gray-100\/90.relative.inline-block::after {
    content: "";
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 280px;
    height: 280px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%231e3a8a' stroke-width='1.5' opacity='0.04'><circle cx='40' cy='40' r='30'/><line x1='62' y1='62' x2='95' y2='95' stroke-linecap='round' stroke-width='6'/></svg>") no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* --- 正文系统：无特效纯净模式 --- */
ai { display: block; padding: 25px; position: relative; z-index: 2; }

.markdown-body {
    color: #0f172a !important;
    font-weight: 800 !important; /* 正文全局加粗 */
    line-height: 1.85 !important;
    text-shadow: none !important; /* 彻底移除正文阴影 */
    animation: none !important; /* 彻底移除正文动画 */
}

/* 重要文字：静态真相红 */
.markdown-body strong {
    color: #b91c1c !important;
    font-weight: 900 !important;
    position: relative !important;
    padding: 0 2px !important;
    border-bottom: 2px solid #b91c1c !important; /* 稳定的单底线 */
    text-shadow: none !important;
    animation: none !important;
}

/* 顶部标题：档案索引 */
hd {
    display: inline-block;
    background: #1e3a8a;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8em;
    font-weight: 900;
    margin-bottom: 20px;
    border-radius: 2px;
    box-shadow: 4px 4px 0px rgba(185, 28, 28, 0.3);
}

/* --- 状态栏：仅在此处保留特效 --- */
details {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid #1e3a8a;
    border-radius: 2px;
    margin-top: 30px;
    backdrop-filter: blur(5px);
}

summary {
    background: #1e3a8a;
    color: #ffffff;
    padding: 10px 15px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

section {
    padding: 15px;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

section[t]::before {
    content: "◈ " attr(t);
    display: block;
    color: #b91c1c;
    font-size: 0.75em;
    font-weight: 900;
    margin-bottom: 10px;
}

/* --- 行动推荐特效：亮光与交互 --- */
.action-btn, section[t*="推理行动"] d {
    display: inline-block !important;
    margin: 5px 8px !important;
    padding: 8px 16px !important;
    background: rgba(30, 58, 138, 0.08) !important;
    border: 1px solid rgba(30, 58, 138, 0.4) !important;
    color: #1e3a8a !important;
    font-weight: 900 !important;
    font-size: 0.85em !important;
    border-radius: 4px !important;
    cursor: pointer;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    /* 弱呼吸灯亮光 */
    animation: action-glow 2.5s infinite alternate ease-in-out !important;
}

@keyframes action-glow {
    from { box-shadow: 0 0 2px rgba(30, 58, 138, 0.1); }
    to { box-shadow: 0 0 10px rgba(30, 58, 138, 0.4); }
}

/* 悬停时的扫描线亮光特效 */
.action-btn:hover, section[t*="推理行动"] d:hover {
    background: #1e3a8a !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.5) !important;
}

.action-btn:hover::after, section[t*="推理行动"] d:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: scan-light 0.8s forwards;
}

@keyframes scan-light {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- 底部输入区配套 --- */
textarea, .MuiInputBase-root {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 2px solid #1e3a8a !important;
    font-weight: 600 !important;
}