```css
/* =========================================
   拉格朗日 - 军用档案级 UI 覆写
========================================= */

/* 1. 根容器隔离，绝对防止污染网站全局 */
.lagrange-ui {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    margin-top: 20px;
}

/* 2. 状态栏外部大框 (对应图片中带绿色粗边框的部分) */
.lagrange-ui .status-wrapper {
    background-color: #f6f7f2; /* 淡绿灰纸张底色 */
    border: 2px solid #849884; /* 灰绿色装甲边框 */
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 3. 去除 details 原本的边距，让排列更紧凑 */
.lagrange-ui details {
    margin: 0 0 10px 0;
    background: transparent;
    border: none;
}
.lagrange-ui details:last-child {
    margin-bottom: 0;
}

/* 4. 折叠面板头部 (带图标的按钮区域) */
.lagrange-ui summary {
    background-color: #fdfbf7; /* 米白底色 */
    border: 1px solid #e3decb;
    border-radius: 8px;
    padding: 12px 16px;
    color: #3b453b;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
/* 抹除默认的小黑三角 */
.lagrange-ui summary::-webkit-details-marker {
    display: none; 
}
.lagrange-ui summary:hover {
    background-color: #f4efdf;
    border-color: #d1c8b3;
}

/* 5. 内部 Markdown 表格和代码块的底色微调，使其融入整体UI */
.lagrange-ui details > pre, 
.lagrange-ui details > div.markdown-body {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #e3decb;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
}

/* 6. 行动选项区域 */
.lagrange-ui .action-title {
    color: #667;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 6px;
}

/* 🌟 核心魔法：点击全选的行动选项模块 */
.lagrange-ui .action-item {
    background-color: #f2f3f5;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    
    /* 下面这三行是真正的黑魔法：用户轻触即可一键全选文字 */
    user-select: all;
    -webkit-user-select: all;
    cursor: pointer;
    
    transition: all 0.2s ease;
}
.lagrange-ui .action-item:hover {
    background-color: #e8eaed;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
}
/* =========================================
   全局聊天气泡终极美化 (拉格朗日/星际战术终端风)
========================================= */

/* 1. 靶向锁定：星区数据链气泡终端 */
.chat-container .group .relative.inline-block {
    background-color: #F4F5F7 !important; /* 冷色调的舰船内壁灰白 */
    /* 🌟 核心科技魔法：全息战术网格底纹 */
    background-image: 
        linear-gradient(rgba(132, 152, 132, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(132, 152, 132, 0.06) 1px, transparent 1px) !important;
    background-size: 16px 16px !important; 
    
    /* 不规则机械切角感 (左上角锐利，其他角圆润) */
    border-radius: 2px 14px 14px 14px !important; 
    border: 1px solid #D1D5DB !important;
    /* 左侧主装甲条 (阵营识别色) */
    border-left: 5px solid #849884 !important; 
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), inset 0 0 20px rgba(255,255,255,0.6) !important;
    padding: 12px 10px 15px 10px;
    overflow: hidden;
    position: relative;
}

/* 2. 隐藏平台默认组件(防穿模) */
.chat-container .group .relative.inline-block > .MuiBox-root.css-0 {
    display: none !important;
}

/* 3. 字体变为冷峻的科幻排版 */
.markdown-body text, 
.markdown-body p {
    color: #374151 !important; /* 深空灰，冷酷清晰 */
    line-height: 1.75 !important;
    font-size: 14.5px;
    padding: 0 6px;
    letter-spacing: 0.5px; /* 科幻界面的字间距通常略微拉开 */
    position: relative;
    z-index: 2;
}

/* =========================================
   联动优化：让状态栏与全息网格底色完美嵌合
========================================= */

/* 内部大框采用半透明+毛玻璃(Backdrop-filter)光效 */
.lagrange-ui .status-wrapper {
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(4px) !important; /* 赛博朋克/科幻UI标配毛玻璃 */
    -webkit-backdrop-filter: blur(4px) !important;
    border-color: rgba(132, 152, 132, 0.4) !important;
    box-shadow: 0 2px 10px rgba(132, 152, 132, 0.08) !important;
    position: relative;
    z-index: 2;
}

/* 折叠面板头部：机甲按键质感 */
.lagrange-ui summary {
    background-color: rgba(246, 247, 242, 0.85) !important;
    border-color: rgba(132, 152, 132, 0.2) !important;
    color: #2F3E2F !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8); /* 微微的字体发光感 */
}

/* 行动选项框：微透全息按钮，hover时科技冷光高亮 */
.lagrange-ui .action-item {
    background-color: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(132, 152, 132, 0.2) !important;
    border-left: 3px solid transparent !important; /* 预留高亮边框位置 */
    position: relative;
    z-index: 2;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lagrange-ui .action-item:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(132, 152, 132, 0.4) !important;
    border-left: 3px solid #849884 !important; /* Hover时左侧亮起数据条 */
    transform: translateX(2px); /* 悬浮时按钮微微向右滑出 */
}