/* 
   🏠 温柔乡主题 (Sweet Home Style) - 移动端完美适配版
   说明：
   1. 色调：暖肤色、柔粉色、奶油白，营造家庭内部的私密与暧昧感。
   2. 视觉：圆润柔和，如同肌肤般的触感，减少锐利线条。
*/

/* --- 核心修复：强制亮色模式 & 移动端重置 --- */
:root {
    color-scheme: light !important;
}

* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
}

*:focus, *:active, *:focus-visible {
    outline: 0 !important;
    box-shadow: none !important; 
}

/* --- 容器美化：温馨私密感 --- */
.bg-gray-100\/90.relative.inline-block {
    /* 背景：极淡的奶油渐变，透着一丝肉粉色 */
    background: #FFF5F7 !important; 
    background: linear-gradient(180deg, #FFFDFD 0%, #FFF0F5 60%, #FFE4E1 100%) !important;
    
    /* 边框：柔和的玫瑰金 */
    border: 1px solid #FFB6C1 !important; 
    
    /* 圆角：大圆角，增加亲和力 */
    border-radius: 16px !important;
    
    padding: 18px !important;
    margin: 10px auto !important;
    max-width: 100% !important;
    
    /* 阴影：暖色调的柔光阴影 */
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4) !important;
}

/* --- 文本内容区域：纯净床单白 --- */
.markdown-body {
    background-color: rgba(255, 255, 255, 0.92) !important;
    color: #4A4A4A !important; /* 深暖灰色，不刺眼 */
    border-radius: 12px !important;
    padding: 15px !important;
    line-height: 1.8 !important; 
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
    
    box-shadow: inset 0 0 10px rgba(255, 240, 245, 0.5) !important;
    border: 1px solid #FFF0F5 !important;
}

/* 标题：胭脂红 */
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    color: #DB7093 !important; /* 苍紫罗兰色，偏红 */
    margin-top: 1.2em !important;
    margin-bottom: 0.6em !important;
    text-shadow: 1px 1px 2px #FFF0F5 !important;
    border-bottom: 2px dashed #FFB6C1 !important; /* 虚线更显俏皮 */
    padding-bottom: 5px !important;
}

/* --- 代码块：日记本风格 --- */
.markdown-body pre, .markdown-body code {
    border: 1px solid #FFC0CB !important; 
    border-radius: 8px !important;
    background-color: #FFFBFB !important;
    
    box-shadow: none !important;
    font-family: "Menlo", monospace !important;
    font-size: 0.95em !important; 
    padding: 10px !important;
    margin: 10px 0 !important;
    color: #8B4513 !important; /* 鞍褐色，像墨水 */
}

/* --- 交互面板 (details)：私密档案 --- */
details {
    background-color: #FFFFFF !important;
    border: 1px solid #FFDEE3 !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    padding: 10px !important;
    box-shadow: 0 2px 6px rgba(255, 192, 203, 0.2) !important;
}

/* 摘要 (summary) */
summary {
    color: #D87093 !important; 
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 5px !important;
    outline: none !important;
}

summary::-webkit-details-marker {
    display: none !important;
}

/* 图标：替换为爱心/花朵 */
summary::before {
    content: '🌹 ' !important; /* 未展开 */
    margin-right: 6px !important;
    opacity: 0.8 !important;
}

details[open] summary::before {
    content: '💋 ' !important; /* 展开 */
    opacity: 1 !important;
}

/* --- 输入框：柔软触感 --- */
textarea, input[type="text"] {
    background: #FFFAFA !important;
    border: 1px solid #FFC1C1 !important;
    border-radius: 10px !important;
    padding: 10px !important;
    color: #555 !important;
}

textarea:focus, input[type="text"]:focus {
    border-color: #FF69B4 !important; /* 聚焦变为热粉色 */
    background-color: #FFF !important;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.2) !important;
}

/* --- 按钮：糖果质感 --- */
.MuiButtonBase-root.MuiButton-root {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 100%) !important;
    color: #FFF !important;
    border-radius: 20px !important; /* 更圆润 */
    border: none !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
}

/* 隐藏多余元素 */
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 链接：红线 */
.markdown-body a {
    color: #FF1493 !important; /* 深粉色 */
    text-decoration: none !important;
    border-bottom: 1px dotted #FF1493 !important;
}