/* 
 * 主题：《8番出口》 (The Exit 8)
 * 风格：阈限空间、地下通道、冷色调日光灯、警示黄黑配色
 * 核心原则：强制覆盖，绝对可读
 */

/* ==========================================
   全局变量与通用设定 (利用伪元素注入氛围)
   ========================================== */
:root {
    --exit-yellow: #FFD700; /* 标志性的8号出口黄 */
    --subway-tile-bg: #f0f2f5; /* 偏冷的地铁瓷砖灰白 */
    --fluorescent-light: #ffffff; /* 刺眼的日光灯白 */
    --warning-black: #1a1a1a;
    --text-main: #2d3748;
    --border-subtle: #cbd5e1;
}

/* 强制应用更系统化、冷峻的字体 */
* {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif !important;
}

/* ==========================================
   顶部栏 (模拟地下通道顶部结构)
   ========================================== */
.sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(to bottom, var(--subway-tile-bg) 0%, var(--fluorescent-light) 100%) !important;
    border-bottom: 2px solid var(--warning-black) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* 模型选择器 (模拟站牌指示) */
#ai-model-selector .group.flex.items-center {
    background-color: var(--warning-black) !important;
    color: var(--exit-yellow) !important;
    border-radius: 4px !important;
    padding: 4px 12px !important;
    border: 1px solid var(--exit-yellow) !important;
    transition: all 0.2s ease !important;
}

#ai-model-selector .group.flex.items-center:hover {
    background-color: var(--exit-yellow) !important;
    color: var(--warning-black) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5) !important;
}

#ai-model-selector .truncate.text-\[13px\] {
    font-weight: bold !important;
    letter-spacing: 1px !important;
}

#ai-model-selector .shrink-0.flex.items-center svg {
    color: currentColor !important;
}

/* 顶部图标统一冷峻化 */
.sticky.w-full.top-0 svg.lucide-clock-8,
.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2,
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]),
#header-setting-button svg {
    color: var(--warning-black) !important;
    filter: drop-shadow(1px 1px 0px rgba(255,255,255,0.8)) !important;
}

/* ==========================================
   开场白选择器 (模拟控制面板)
   ========================================== */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
    background-color: var(--subway-tile-bg) !important;
    border: 1px solid var(--warning-black) !important;
    border-radius: 2px !important; /* 更硬朗的边角 */
}

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover {
    background-color: var(--exit-yellow) !important;
    color: var(--warning-black) !important;
}

/* ==========================================
   底部按钮栏 (Mod按钮等 - 警示风格)
   ========================================== */
#ai-mod-button2 button.MuiButton-root {
    background-color: var(--subway-tile-bg) !important;
    color: var(--warning-black) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 0px !important; /* 绝对方正 */
    text-transform: uppercase !important;
    font-weight: bold !important;
    position: relative !important;
    overflow: hidden !important;
}

#ai-mod-button2 button.MuiButton-root:hover {
    background-color: var(--warning-black) !important;
    color: var(--exit-yellow) !important;
    border-color: var(--warning-black) !important;
}

/* ==========================================
   底部输入栏
   ========================================== */
#ai-chat-bottom-input {
    background: var(--subway-tile-bg) !important;
    border-top: 2px solid var(--warning-black) !important;
    padding: 10px !important;
}

#ai-chat-input {
    background-color: var(--fluorescent-light) !important;
    color: var(--text-main) !important;
    border: 2px solid var(--border-subtle) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
}

#ai-chat-input:focus {
    border-color: var(--exit-yellow) !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05), 0 0 0 2px rgba(255, 215, 0, 0.3) !important;
}

#ai-chat-input::placeholder {
    color: #94a3b8 !important;
    font-style: italic !important;
}

#ai-chat-input::selection {
    background: var(--warning-black) !important;
    color: var(--exit-yellow) !important;
}

/* ==========================================
   分页栏 (模拟站台编号)
   ========================================== */
.MuiPaginationItem-root {
    color: var(--text-main) !important;
    border-radius: 2px !important;
    font-weight: bold !important;
}

.MuiPaginationItem-root.Mui-selected {
    background-color: var(--exit-yellow) !important;
    color: var(--warning-black) !important;
    border: 1px solid var(--warning-black) !important;
}

.MuiPaginationItem-root:hover:not(.Mui-selected) {
    background-color: rgba(26, 26, 26, 0.1) !important;
}

.MuiStack-root.css-1uwir8f .MuiInputBase-input {
    background-color: var(--fluorescent-light) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 2px !important;
    color: var(--warning-black) !important;
}

/* ==========================================
   评论区 (冰冷的监控记录感)
   ========================================== */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background-color: var(--subway-tile-bg) !important;
    border-top: 3px solid var(--warning-black) !important;
}

div.text-lg.font-bold {
    color: var(--warning-black) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border-bottom: 2px dashed var(--border-subtle) !important;
    padding-bottom: 8px !important;
}

/* 评论输入框 */
div.flex.flex-col.border-gray-200 {
    border-color: var(--warning-black) !important;
    border-radius: 0 !important;
}

textarea.rc-textarea {
    background-color: var(--fluorescent-light) !important;
    color: var(--text-main) !important;
}

textarea.rc-textarea:focus {
    background-color: #fffde7 !important; /* 聚焦时泛起微弱的黄色 */
}

/* 发送按钮 - 警示黄 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background-color: var(--exit-yellow) !important;
    border-left: 1px solid var(--warning-black) !important;
}

div[data-state="closed"] svg[data-icon="Send03"] {
    color: var(--warning-black) !important;
}

/* 评论列表项 */
div.group.ml-0 {
    background-color: var(--fluorescent-light) !important;
    border: 1px solid var(--border-subtle) !important;
    margin-bottom: 8px !important;
    padding: 10px !important;
    border-left: 4px solid var(--border-subtle) !important; /* 默认左侧灰边 */
    transition: border-color 0.3s ease !important;
}

div.group.ml-0:hover {
    border-left: 4px solid var(--exit-yellow) !important; /* 悬浮时亮起黄边，暗示“异变” */
}

div.text-sm.text-grey-600 span.font-bold {
    color: var(--warning-black) !important;
}

div.break-all {
    color: var(--text-main) !important;
    line-height: 1.6 !important;
}

div.text-xs.text-grey-600 {
    color: #64748b !important;
    font-family: monospace !important; /* 时间戳使用等宽字体，增加监控感 */
}

/* 排序按钮 */
button.MuiButton-containedPrimary {
    background-color: var(--warning-black) !important;
    color: var(--exit-yellow) !important;
    border-radius: 0 !important;
}

button.MuiButton-outlinedPrimary {
    color: var(--warning-black) !important;
    border-color: var(--warning-black) !important;
    border-radius: 0 !important;
}

/* 星星评分 - 替换为黄色 */
span.MuiRating-iconFilled svg {
    color: var(--exit-yellow) !important;
    filter: drop-shadow(0 0 2px rgba(255,215,0,0.8)) !important;
}
span.text-orange-500 {
    color: var(--warning-black) !important;
    font-weight: 900 !important;
}
```

### 进阶视觉发散（可选）：
如果你希望进一步增强《8号出口》那种“监控画面”或“老旧地下设施”的感觉，可以在上面的代码末尾追加以下代码。这会给评论区的背景增加一层非常微弱的横向扫描线纹理，但**完全不会影响文字的可读性**：

```css
/* 可选：增加微弱的CRT扫描线/瓷砖缝隙纹理到评论区背景 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none; /* 确保不阻挡任何点击操作 */
    z-index: 0;
}
div.p-3.overflow-y-auto {
    position: relative;
    z-index: 1; /* 确保内容在纹理上方 */
}
/* 8号出口 (The Exit 8) 风格状态栏美化 */
.elevator-status {
    background-color: #f4f4f4;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    margin-bottom: 16px;
    font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans', 'Meiryo', sans-serif;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 默认折叠状态 - 日本地铁黄色警告/指示牌风格 */
.elevator-status summary {
    background-color: #ffd700;
    color: #1a1a1a;
    font-weight: 900;
    font-size: 16px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    border-bottom: 2px solid #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    position: relative;
    user-select: none;
}

/* 隐藏默认箭头 */
.elevator-status summary::-webkit-details-marker {
    display: none;
}

/* 8号出口标志 */
.elevator-status summary::before {
    content: '8';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #ffd700;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    margin-right: 12px;
    font-size: 18px;
    font-weight: 900;
}

/* 展开状态 - 绿色紧急出口风格 */
.elevator-status[open] summary {
    background-color: #00873c;
    color: #ffffff;
}

.elevator-status[open] summary::before {
    background-color: #ffffff;
    color: #00873c;
    content: '🏃'; /* 模拟逃生小人 */
    font-size: 16px;
}

/* 内容区域 - 地下通道白瓷砖风格 */
.elevator-status .status-content {
    background-color: #ffffff;
    /* 模拟地下通道的白瓷砖墙壁缝隙 */
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 16px;
    color: #2c2c2c;
    border-left: 8px solid #ffd700; /* 模拟地面的黄色盲道 */
    position: relative;
}

/* 模拟地下通道冷色荧光灯的微弱光晕 */
.elevator-status .status-content::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* 文本条目样式 */
.elevator-status p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 6px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.elevator-status p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 记忆区面板特殊样式 */
.elevator-status .info-panel .panel-content h4 {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 4px 12px;
    margin: 12px 0 8px 0;
    font-size: 14px;
    display: inline-block;
    border-radius: 2px;
    border-left: 4px solid #00873c;
    letter-spacing: 1px;
}

/* 鼠标悬停时的轻微闪烁动画（模拟老旧灯管） */
@keyframes fluorescent-flicker {
    0% { opacity: 1; }
    95% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
    98% { opacity: 0.5; }
    99% { opacity: 1; }
    100% { opacity: 1; }
}

.elevator-status:hover {
    animation: fluorescent-flicker 3s infinite;
}
/* 隐藏顶部默认颜色条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 统一聊天框主体 - 8号出口通道风格 */
.bg-gray-100\/90.relative.inline-block {
    /* 模拟地下通道冷白瓷砖背景 */
    background: linear-gradient(135deg, #f0f4f8 25%, #e1e8ed 25%, #e1e8ed 50%, #f0f4f8 50%, #f0f4f8 75%, #e1e8ed 75%, #e1e8ed 100%) !important;
    background-size: 40px 40px !important;
    /* 标志性的警示黄边框 */
    border: 3px solid #FFD700 !important;
    border-radius: 4px !important; /* 偏方形，更像指示牌 */
    box-shadow: 
        inset 0 0 20px rgba(176, 196, 222, 0.5), /* 内部冷光晕 */
        0 4px 15px rgba(0, 0, 0, 0.15) !important; /* 外部阴影 */
    padding: 15px !important;
    position: relative !important;
    isolation: isolate !important;
    transition: all 0.3s ease !important;
}

/* 添加通道顶部冷色日光灯的反光效果 */
.bg-gray-100\/90.relative.inline-block::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 30% !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, transparent 100%) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    border-radius: 2px 2px 0 0 !important;
}

/* 主要文本内容 - 清晰的指示牌字体风格 */
.markdown-body {
    /* 浅色背景必须配深色高对比度文字 */
    color: #1a1a1a !important; 
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif !important; /* 类似公共标牌的无衬线字体 */
    font-weight: bold !important; /* 加粗以增强标牌感 */
    line-height: 1.6 !important;
    z-index: 1 !important;
    position: relative !important;
    background: transparent !important;
    text-shadow: none !important; /* 绝对禁止文字阴影，保证可读性 */
}

/* Markdown内部元素适配 */
.markdown-body p, 
.markdown-body li {
    color: #1a1a1a !important;
}
.markdown-body a {
    color: #0056b3 !important; /* 链接使用较深的冷蓝色 */
    text-decoration: underline !important;
}
.markdown-body code {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: #d32f2f !important;
    border-radius: 3px !important;
}
.markdown-body pre {
    background-color: #2b2b2b !important; /* 代码块使用深色反差 */
    border: 1px solid #FFD700 !important; /* 代码块也加上黄边 */
}
.markdown-body pre code {
    color: #e0e0e0 !important;
}

/* 底部附加元素 (按钮、模型名称、Token) - 适配浅色背景 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #4a5568 !important; /* 深灰蓝色，保证在浅底色上清晰 */
    font-weight: bold !important;
    transition: color 0.2s ease !important;
}

/* 底部按钮悬停效果 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #000000 !important;
    background-color: rgba(255, 215, 0, 0.2) !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;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    position: absolute !important;
    width: 24px !important;
    height: 24px !important;
    /* 使用SVG实现黄色警示灯闪烁动画 */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%23FFD700"><animate attributeName="opacity" values="1;0.2;1" dur="1.5s" repeatCount="indefinite"/></circle><circle cx="12" cy="12" r="10" fill="none" stroke="%23FFD700" stroke-width="2"><animate attributeName="r" values="8;12" dur="1.5s" repeatCount="indefinite"/><animate attributeName="opacity" values="0.8;0" dur="1.5s" repeatCount="indefinite"/></circle></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}