/* =========================================
   Anti-NTR Club: 界面全局暗黑复仇化
   ========================================= */

/* 1. 强制隐藏默认的顶部彩色装饰条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* =========================================
   聊天框核心美化 (深渊与血光)
   ========================================= */
/* 统一聊天框基础设定 */
.bg-gray-100\/90.relative.inline-block {
    /* 极暗的炭黑到暗血色渐变背景 */
    background: linear-gradient(135deg, #0a0a0a 0%, #170505 100%) !important;
    border: 1px solid #4a0000 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(139, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease !important;
}

/* 聊天框悬浮时的怒火微光响应 */
.bg-gray-100\/90.relative.inline-block:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 1), inset 0 0 25px rgba(200, 0, 0, 0.2) !important;
    border-color: #8b0000 !important;
}

/* 【强制可读性】主要文本 - 高对比度纯白/亮灰 */
.markdown-body {
    color: #F0F0F0 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-weight: 500 !important; 
}
.markdown-body p, .markdown-body li, .markdown-body strong {
    color: #F0F0F0 !important;
}
/* 强调文本使用刺眼的血色 */
.markdown-body strong {
    color: #ff4444 !important;
    font-weight: 800 !important;
}

/* 底部附加元素 (按钮、Token、模型名) - 柔和的浅灰色以区分主文本 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #A0A0A0 !important;
}

/* =========================================
   加载动画重构 (深渊凝视/心跳)
   ========================================= */
/* 隐藏原生加载点 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}
/* 注入SMIL纯SVG血色心跳动画，无视CSS动画禁用 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
}
.flex.items-center.justify-center.w-6.h-5::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 24 20"><circle cx="12" cy="10" r="4" fill="%23aa0000"><animate attributeName="r" values="3;6;3" dur="1.2s" repeatCount="indefinite"/><animate attributeName="opacity" values="1;0.2;1" dur="1.2s" repeatCount="indefinite"/></circle></svg>') !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* =========================================
   顶部导航栏与控制台 (俱乐部元老院视角)
   ========================================= */
.sticky.w-full.top-0.flex.items-center {
    background: rgba(8, 8, 8, 0.95) !important;
    border-bottom: 2px solid #5a0000 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.9) !important;
}
#ai-model-selector .group.flex.items-center {
    background: #111111 !important;
    border: 1px solid #4a0000 !important;
}
#ai-model-selector .truncate.text-\[13px\] {
    color: #ffcccc !important; 
    font-weight: bold !important;
}
/* 顶部所有SVG图标染血 */
.sticky.w-full.top-0 svg {
    color: #aa0000 !important;
}

/* 开场白选择器 */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"],
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]) {
    background: #0f0f0f !important;
    border: 1px solid #5a0000 !important;
    color: #e0e0e0 !important;
}

/* =========================================
   底部输入区 (处刑指令下达区)
   ========================================= */
/* 底部渐变遮罩加深 */
.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 50%, transparent 100%) !important;
}
#ai-chat-bottom-input {
    background: transparent !important;
}
/* 输入框暗黑化 */
#ai-chat-input {
    background: rgba(15, 5, 5, 0.95) !important;
    border: 1px solid #4a0000 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(100, 0, 0, 0.3) !important;
}
/* 输入聚焦时的狂热红光 */
#ai-chat-input:focus {
    border-color: #cc0000 !important;
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.5) !important;
    outline: none !important;
}
#ai-chat-input::placeholder {
    color: #666666 !important;
}
/* 选中文字的血色高亮 */
#ai-chat-input::selection {
    background: #8b0000 !important;
    color: #ffffff !important;
}

/* 快捷按钮栏 */
#ai-mod-button2 button.MuiButton-root {
    background: #110505 !important;
    border: 1px solid #4a0000 !important;
    color: #ffaaaa !important;
}
#ai-mod-button2 button.MuiButton-root:hover {
    background: #330000 !important;
    border-color: #ff0000 !important;
}

/* =========================================
   评论区全面暗黑化 (地下情报网)
   ========================================= */
/* 主背景覆盖 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background-color: #080808 !important;
    border-top: 2px solid #5a0000 !important;
}
/* 评论标题 */
div.text-lg.font-bold {
    color: #ff3333 !important;
    text-shadow: 0 0 8px rgba(255,0,0,0.4) !important;
}
p.MuiTypography-body1.text-grey-600 {
    color: #888888 !important;
}
/* 评论输入框 */
textarea.rc-textarea {
    background: #121212 !important;
    border: 1px solid #3a0000 !important;
    color: #e0e0e0 !important;
}
textarea.rc-textarea:focus {
    border-color: #aa0000 !important;
}
div.bg-gray-100.text-gray-500 {
    background: #000000 !important;
    color: #666666 !important;
    border: 1px solid #2a0000 !important;
}
/* 评论列表与分割线 */
div.style_divider__mW0YX {
    border-color: #2a0000 !important;
}
div.group.ml-0 {
    background: transparent !important;
    border-bottom: 1px solid #1a0000 !important;
}
div.group.ml-0:hover {
    background: rgba(30, 0, 0, 0.6) !important;
}
div.text-sm.text-grey-600 span.font-bold {
    color: #cc4444 !important; /* 用户名染红 */
}
div.break-all {
    color: #cccccc !important; /* 评论内容高对比灰白 */
}
div.text-xs.text-grey-600 {
    color: #555555 !important;
}
button.text-gray-400 {
    color: #666666 !important;
}
button.text-gray-400:hover {
    color: #ff0000 !important;
}
div.ml-8.border-l {
    border-color: #4a0000 !important;
}
/* 评论区排序按钮 */
button.MuiButton-containedPrimary {
    background-color: #5a0000 !important;
    color: #ffffff !important;
}
button.MuiButton-outlinedPrimary {
    border-color: #4a0000 !important;
    color: #ffaaaa !important;
}
/* 评分系统 (堕落指数) */
span.MuiRating-iconEmpty svg {
    color: #333333 !important;
}
span.MuiRating-iconFilled svg {
    color: #cc0000 !important;
}
span.text-orange-500 {
    color: #ff3333 !important;
}

/* =========================================
   分页栏 (猎物名册翻页)
   ========================================= */
.MuiPaginationItem-root {
    color: #aaaaaa !important;
    border-color: #3a0000 !important;
}
.MuiPaginationItem-root.Mui-selected {
    background-color: #5a0000 !important;
    color: #ffffff !important;
}
.MuiStack-root.css-1uwir8f .MuiBox-root {
    color: #aaaaaa !important;
}
.MuiInputBase-input {
    color: #ffffff !important;
}