/* 性爱气象人生模拟器 · 淫乱霓虹风格 */
.bg-gray-100\/90.relative.inline-block {
    background: #0f0f1a !important;
    border: 1px solid #ff3b6f80 !important;
    border-radius: 24px !important;
    box-shadow: 0 0 20px rgba(255,59,111,0.2), inset 0 0 15px rgba(0,229,255,0.05) !important;
    padding: 18px !important;
}
.markdown-body {
    color: #f0eef7 !important;
    font-family: 'Inter', 'PingFang SC', sans-serif !important;
    line-height: 1.7 !important;
    font-size: 15px !important;
}
.markdown-body strong {
    color: #ff69b4 !important;
    text-shadow: 0 0 5px #ff3b6f;
}
.markdown-body details {
    background: rgba(255,255,255,0.03) !important;
    border-left: 3px solid #ff3b6f !important;
    border-radius: 16px !important;
    padding: 12px !important;
    margin: 12px 0 !important;
}
.markdown-body summary {
    color: #ffb3ba !important;
    font-weight: bold;
}
.markdown-body summary::before {
    content: "🌩️ ";
}
/* 模仿天气波纹 */
.bg-gray-100\/90.relative.inline-block::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: repeating-linear-gradient(45deg, rgba(255,59,111,0.03) 0px, rgba(255,59,111,0.03) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
}
/* 按钮统一 */
button, .btn-primary {
    background: linear-gradient(95deg, #ff3b6f, #b83bff) !important;
    border: none !important;
    border-radius: 40px !important;
    color: white !important;
    font-weight: bold !important;
}
/* 移动端适配 */
@media (max-width: 480px) {
    .markdown-body { font-size: 13px; }
    .bg-gray-100\/90.relative.inline-block { padding: 12px; }
}
/* 自定义滚动条 */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: #ff3b6f; border-radius: 10px; }
/* 天气标签高亮 */
.weather-highlight {
    background: linear-gradient(120deg, #ff3b6f30, #b83bff30);
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
}

/* ========== 对话美化框（自动识别姓名） ========== */
/* 使用方法：AI输出时用以下HTML结构包裹对话 */
/* <div class="speech-box" data-name="角色名"><span class="speaker">角色名</span><span class="speech-text">“对话内容”</span></div> */
.speech-box {
    background: linear-gradient(135deg, rgba(59, 59, 89, 0.4), rgba(30, 20, 50, 0.6));
    border-left: 4px solid #ff69b4;
    border-radius: 16px;
    margin: 12px 0;
    padding: 8px 0 8px 0;
    backdrop-filter: blur(4px);
    position: relative;
    transition: 0.2s;
}
.speech-box .speaker {
    display: inline-block;
    background: linear-gradient(95deg, #ff3b6f, #b83bff);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    margin-left: 12px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.speech-box .speech-text {
    display: block;
    padding: 8px 16px 12px 16px;
    color: #f0eef7;
    line-height: 1.6;
    font-style: normal;
}
/* 女性角色对话边框偏红 */
.speech-box[data-gender="female"] {
    border-left-color: #ff88aa;
    background: linear-gradient(135deg, rgba(80, 40, 60, 0.4), rgba(40, 20, 50, 0.6));
}
/* 男性角色对话边框偏蓝 */
.speech-box[data-gender="male"] {
    border-left-color: #66ccff;
    background: linear-gradient(135deg, rgba(40, 60, 80, 0.4), rgba(30, 30, 60, 0.6));
}
/* 用户自己的对话边框偏橙 */
.speech-box[data-gender="user"] {
    border-left-color: #ffaa44;
    background: linear-gradient(135deg, rgba(80, 60, 30, 0.4), rgba(50, 40, 30, 0.6));
}

/* ========== 心理活动美化框 ========== */
.thought-box {
    background: rgba(20, 15, 40, 0.7);
    border-left: 3px dashed #b83bff;
    border-radius: 20px;
    margin: 12px 0;
    padding: 8px 0 8px 0;
    backdrop-filter: blur(4px);
    font-style: italic;
    color: #cbb8ff;
}
.thought-box .speaker {
    display: inline-block;
    background: #2a1a3e;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #e0b0ff;
    margin-left: 12px;
    margin-bottom: 6px;
    border: 1px solid #b83bff;
}
.thought-box .thought-text {
    display: block;
    padding: 8px 16px 12px 16px;
    color: #d9c8ff;
    line-height: 1.6;
    font-style: italic;
}

/* 对话/心理框内高亮 */
.speech-text strong, .thought-text strong {
    color: #ff88aa;
}