/* 
   🏰 豪门庄园主题 (Noble Estate 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: #FFF9F9 !important; 
    background: linear-gradient(135deg, #FFF9F9 0%, #F5E6E6 100%) !important;
    border: 2px solid #8B0000 !important; /* 深红边框 */
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 10px auto !important;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.2) !important;
}

/* --- 文本内容区域 --- */
.markdown-body {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    line-height: 1.8 !important;
}

/* 标题：贵族金 */
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    color: #8B0000 !important;
    border-bottom: 2px solid #D4AF37 !important; /* 金色下划线 */
    padding-bottom: 8px !important;
    font-family: "Georgia", serif !important;
}

/* --- 交互面板 (details)：复古信封风格 --- */
details {
    background-color: #FFFFFF !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 4px !important;
    margin-bottom: 12px !important;
    padding: 8px !important;
}

summary {
    color: #8B0000 !important;
    font-weight: bold !important;
    cursor: pointer !important;
    list-style: none !important;
}

summary::before {
    content: '🌹 ' !important;
    margin-right: 8px !important;
}

details[open] summary::before {
    content: '🍷 ' !important;
}

/* --- 表格：记忆账本 --- */
.markdown-body table {
    border-collapse: collapse !important;
    width: 100% !important;
    border: 1px solid #8B0000 !important;
}

.markdown-body th {
    background-color: #8B0000 !important;
    color: #FFFFFF !important;
    padding: 8px !important;
}

.markdown-body td {
    border: 1px solid #F5E6E6 !important;
    padding: 6px !important;
}

/* --- 按钮：漆皮质感 --- */
.MuiButtonBase-root.MuiButton-root {
    background: #333 !important;
    color: #D4AF37 !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* 链接 --- */
.markdown-body a {
    color: #8B0000 !important;
    text-decoration: underline !important;
}