/* 
 * ============================================================
 * 作品名称：《💘 【ROLL嫩穴】：从随机室友开始的绝对纵欲大学生活 💘》
 * 主题风格：欲望霓虹 (Lust Neon)
 * 设计理念：高对比度、沉浸式、私密档案质感
 * ============================================================
 */

/* [1] 强制移除顶部颜色条 - 保持界面纯净 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* [2] 统一聊天框基础样式 - 打造深色沉浸式氛围 */
.bg-gray-100\/90.relative.inline-block {
    background: #0f0f13 !important; /* 极深紫色基调 */
    border: 1px solid #3d2b3d !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 105, 180, 0.05) !important;
    padding: 16px !important;
    isolation: isolate !important;
    transition: all 0.3s ease !important;
}

/* [3] 动态背景特效 - ::before 伪元素实现呼吸感霓虹 */
.bg-gray-100\/90.relative.inline-block::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(255, 20, 147, 0.1), transparent 60%),
                radial-gradient(circle at bottom left, rgba(138, 43, 226, 0.1), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

/* [4] Markdown 文本内容 - 绝对可读性保障 */
.markdown-body {
    color: #f5f5f7 !important; /* 极浅灰白，确保长时间阅读不疲劳 */
    font-family: 'Inter', 'PingFang SC', system-ui, -apple-system, sans-serif !important;
    line-height: 1.7 !important;
    font-size: 15.5px !important;
    z-index: 1 !important;
    background: transparent !important;
    text-rendering: optimizeLegibility !important;
}

/* 强调文字样式 */
.markdown-body strong {
    color: #ff69b4 !important; /* 欲望粉色强调 */
    font-weight: 800 !important;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.3) !important;
}

/* [5] 核心需求：details 折叠块美化 - 私密档案质感 */
.markdown-body details {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px dashed #ff69b4 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 15px 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.markdown-body details[open] {
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.15) !important;
    transform: scale(1.01);
}

.markdown-body summary {
    color: #ff69b4 !important;
    font-weight: bold !important;
    cursor: pointer !important;
    outline: none !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    user-select: none !important;
}

/* 自定义折叠箭头 */
.markdown-body summary::before {
    content: "🔞";
    margin-right: 10px;
    font-size: 1.1em;
    transition: transform 0.3s ease !important;
}

.markdown-body details[open] summary::before {
    transform: rotate(180deg) scale(1.2) !important;
    content: "💖";
}

/* [6] 底部附加元素 - 保持高对比度 */
/* 按钮美化 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #e0e0e0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    text-transform: none !important;
    font-size: 0.75rem !important;
    margin: 0 4px !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    background: rgba(255, 105, 180, 0.2) !important;
    color: #ff69b4 !important;
}

/* 模型名称与Token消耗 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #aaaaaa !important;
    font-family: 'Monaco', monospace !important;
    letter-spacing: 0.5px !important;
    opacity: 0.8 !important;
}

/* [7] 自定义加载动画 - 欲望脉冲 (SMIL SVG) */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    background: transparent !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ff69b4" d="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.41,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.59,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"><animate attributeName="opacity" values="0.3;1;0.3" dur="1s" repeatCount="indefinite" /><animate transform="scale" attributeName="transform" type="scale" values="0.8;1.1;0.8" dur="1s" repeatCount="indefinite" /></path></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

/* [8] 移动端适配 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 12px !important;
        margin: 5px !important;
    }
    .markdown-body {
        font-size: 14px !important;
    }
}