/* === 暗夜出租车主题 - 聊天框美化 === */
/* 统一聊天框容器（输入与输出） */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(145deg, #151518 0%, #0c0c0e 100%) !important;
    border: 1px solid #2a2a2d !important;
    border-radius: 8px !important;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.8),
        0 4px 20px rgba(0,0,0,0.6),
        0 0 40px rgba(245,179,1,0.03) !important;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
    transition: all 0.3s ease !important;
}
/* 聊天框顶部装饰条 - 隐藏 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
/* 主要文本内容 */
.markdown-body {
    color: #e0e0e0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    background: transparent !important;
    padding: 12px !important;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
}
/* 标题样式 - 模拟仪表盘数据 */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #f5b301 !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 8px rgba(245,179,1,0.3) !important;
    border-bottom: 1px dashed #2a2a2d !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
}
.markdown-body h1 { font-size: 1.1em !important; }
.markdown-body h2 { font-size: 1em !important; }
.markdown-body h3 { font-size: 0.95em !important; }
/* 强调文本 */
.markdown-body strong,
.markdown-body b {
    color: #a61111 !important;
    font-weight: bold !important;
    text-shadow: 0 0 6px rgba(166,17,17,0.4) !important;
}
/* 引用块 - 模拟后视镜信息 */
.markdown-body blockquote {
    background: linear-gradient(90deg, rgba(245,179,1,0.05), transparent) !important;
    border-left: 3px solid #f5b301 !important;
    border-radius: 0 4px 4px 0 !important;
    color: #aaa !important;
    padding: 10px 14px !important;
    margin: 10px 0 !important;
    font-style: normal !important;
}
/* 代码块 - 车载导航屏 */
.markdown-body pre {
    background: #0a0a0c !important;
    border: 1px solid #1a1a1d !important;
    border-radius: 4px !important;
    padding: 12px !important;
    overflow-x: auto !important;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9) !important;
}
.markdown-body code {
    background: rgba(245,179,1,0.1) !important;
    color: #f5b301 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.9em !important;
}
.markdown-body pre code {
    background: transparent !important;
    color: #ccc !important;
    padding: 0 !important;
}
/* 列表项 - 路线选择风格 */
.markdown-body ul,
.markdown-body ol {
    padding-left: 20px !important;
    margin: 10px 0 !important;
}
.markdown-body li {
    color: #bbb !important;
    margin-bottom: 6px !important;
    line-height: 1.6 !important;
}
.markdown-body li::marker {
    color: #f5b301 !important;
}
/* 链接 - 仪表盘警示 */
.markdown-body a {
    color: #f5b301 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #f5b301 !important;
    transition: all 0.2s ease !important;
}
.markdown-body a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(245,179,1,0.6) !important;
    border-bottom-color: #fff !important;
}
/* 水平线 - 路段分隔 */
.markdown-body hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, #2a2a2d, #f5b301, #2a2a2d, transparent) !important;
    margin: 16px 0 !important;
}
/* 表格 - 行车记录 */
.markdown-body table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 12px 0 !important;
    font-size: 0.9em !important;
}
.markdown-body th {
    background: linear-gradient(90deg, #1a1a1d, #0c0c0e) !important;
    color: #f5b301 !important;
    padding: 10px 12px !important;
    text-align: left !important;
    border-bottom: 2px solid #f5b301 !important;
    font-weight: bold !important;
}
.markdown-body td {
    padding: 8px 12px !important;
    border-bottom: 1px dashed #1a1a1d !important;
    color: #aaa !important;
}
.markdown-body tr:hover td {
    background: rgba(245,179,1,0.05) !important;
}
/* === 底部附加元素 === */
/* 操作按钮 - 车内控制按钮 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    background: linear-gradient(145deg, #1a1a1d, #0c0c0e) !important;
    color: #aaa !important;
    border: 1px solid #2a2a2d !important;
    border-radius: 4px !important;
    font-size: 0.8em !important;
    padding: 4px 10px !important;
    transition: all 0.2s ease !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    border-color: #f5b301 !important;
    color: #f5b301 !important;
    box-shadow: 0 0 10px rgba(245,179,1,0.2) !important;
}
/* 模型名称 - 仪表盘标签 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #777 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.75em !important;
    letter-spacing: 1px !important;
}
/* Token消耗 - 里程计 */
.text-orange-500 {
    color: #a61111 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.8em !important;
    font-weight: bold !important;
}
/* === 加载动画 - 仪表盘脉冲 === */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text {
    display: none !important;
}
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 20px !important;
}
.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    position: absolute !important;
    width: 8px !important;
    height: 8px !important;
    background: #f5b301 !important;
    border-radius: 50% !important;
    box-shadow: 
        0 0 6px #f5b301,
        0 0 12px #f5b301,
        16px 0 0 #a61111,
        16px 0 6px #a61111,
        16px 0 12px #a61111 !important;
    animation: dashboardPulse 1.2s ease-in-out infinite !important;
}
@keyframes dashboardPulse {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(0.9);
    }
    50% { 
        opacity: 1;
        transform: scale(1);
    }
}
/* === 响应式适配 === */
@media (max-width: 480px) {
    .markdown-body {
        font-size: 13px !important;
        padding: 10px !important;
    }
    .markdown-body h1 { font-size: 1em !important; }
    .markdown-body h2 { font-size: 0.95em !important; }
    .markdown-body table {
        font-size: 0.8em !important;
    }
}
/* === 减少动画偏好 === */
@media (prefers-reduced-motion: reduce) {
    .flex.items-center.justify-center.w-6.h-5::before {
        animation: none !important;
        opacity: 1 !important;
    }
    .bg-gray-100\/90.relative.inline-block {
        transition: none !important;
    }
}
/* 基础容器：暗夜黑与柏油灰的基调，模拟车载环境 */
ai {
    display: block;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: #d0d0d0;
    line-height: 1.5;
    background: #0c0c0e;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #1a1a1d;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
    --taxi-yellow: #f5b301;
    --blood-red: #a61111;
    --dark-bg: #151518;
    --border-color: #2a2a2d;
    --text-muted: #777;
}
/* 状态栏头部：仪表盘信息 */
ai hd {
    display: block;
    text-align: center;
    color: var(--taxi-yellow);
    font-size: 0.85em;
    font-family: monospace;
    letter-spacing: 1px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(245, 179, 1, 0.4);
}
/* 正文区域 */
ai article {
    display: block;
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.7;
}
/* 档案袋/面板容器 */
ai details {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}
/* 猎物与战利品面板：黄黑警戒线与暗黑警戒线 */
ai details:nth-of-type(2) {
    border-top: 3px solid transparent;
    border-image: repeating-linear-gradient(45deg, #f5b301, #f5b301 10px, #000 10px, #000 20px) 1;
}
ai details:nth-of-type(3) {
    border-top: 3px solid transparent;
    border-image: repeating-linear-gradient(45deg, #444, #444 10px, #000 10px, #000 20px) 1;
}
/* 面板标题栏 */
ai summary {
    background: linear-gradient(90deg, #1a1a1d, #0c0c0e);
    color: #aaa;
    padding: 8px 10px;
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    outline: none;
    display: flex;
    align-items: center;
}
ai details[open] summary {
    border-bottom: 1px solid var(--border-color);
    color: var(--taxi-yellow);
}
ai details:nth-of-type(2)[open] summary,
ai details:nth-of-type(3)[open] summary {
    color: var(--blood-red);
}
/* 猎物面板展开时的危险呼吸光晕 */
@keyframes pulseGlow {
    0% { box-shadow: inset 0 0 10px rgba(166, 17, 17, 0.05); }
    50% { box-shadow: inset 0 0 25px rgba(166, 17, 17, 0.2); }
    100% { box-shadow: inset 0 0 10px rgba(166, 17, 17, 0.05); }
}
ai details:nth-of-type(2)[open] {
    animation: pulseGlow 3s infinite;
    border-color: #3a1010;
}
/* 分类区块标题 (t属性) */
ai p {
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #1a1a1c;
}
ai p:last-of-type {
    border-bottom: none;
}
ai p::before {
    content: attr(t);
    display: block;
    font-size: 0.75em;
    color: var(--text-muted);
    font-weight: bold;
    margin-bottom: 6px;
    border-left: 2px solid var(--taxi-yellow);
    padding-left: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent);
}
ai details:nth-of-type(2) p::before,
ai details:nth-of-type(3) p::before {
    border-left-color: var(--blood-red);
}
/* 数据条目排版：紧凑对齐 */
ai d {
    display: flex;
    align-items: baseline;
    font-size: 0.9em;
    margin-bottom: 4px;
    color: #bbb;
    line-height: 1.4;
}
ai f {
    color: #666;
    margin-right: 8px;
    min-width: 65px; /* 确保字段名对齐 */
    flex-shrink: 0;
    text-align: right;
}
ai f::after {
    content: ':';
}
/* 强调数值/危险度 */
ai v {
    color: var(--blood-red);
    font-family: monospace;
    font-weight: bold;
    background: rgba(166, 17, 17, 0.1);
    padding: 0 4px;
    border-radius: 2px;
}
/* 记忆表格样式 */
ai table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    margin: 4px 0 10px 0;
}
ai th {
    background: #111;
    color: var(--text-muted);
    padding: 6px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-weight: normal;
}
ai td {
    padding: 6px;
    border-bottom: 1px dashed #222;
    color: #999;
}
/* 路线/行动选择 */
ai ul {
    list-style: none;
    padding: 8px;
    margin: 0;
    display: grid;
    gap: 8px;
}
ai li {
    background: #111;
    border: 1px solid #222;
    padding: 8px 12px;
    border-radius: 3px;
    color: #ccc;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
ai li::before {
    content: '►';
    color: var(--taxi-yellow);
    font-size: 0.7em;
    margin-right: 8px;
    opacity: 0.5;
    transition: all 0.2s;
}
ai li:hover {
    border-color: var(--taxi-yellow);
    background: #1a1a12;
    color: #fff;
    transform: translateX(4px);
}
ai li:hover::before {
    opacity: 1;
    text-shadow: 0 0 5px var(--taxi-yellow);
}