css
/* 容器初始化 */
ai {
    display: block;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', serif;
    color: #4A3728;
    background: #FDFBF7;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.6;
    border: 1px solid #E8DCC4;
    box-shadow: 0 4px 15px rgba(166, 123, 84, 0.1);
    background-image: radial-gradient(#E8DCC4 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

/* 顶部状态栏 */
ai hd {
    display: block;
    font-size: 12px;
    text-align: center;
    color: #8B5A2B;
    border-bottom: 1px solid #D4AF37;
    padding-bottom: 6px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* 正文区域 */
ai article {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 5px;
    color: #2C1E16;
    text-align: justify;
}

ai article p {
    margin-bottom: 12px;
    text-indent: 2em;
}

/* 折叠面板通用样式 */
ai details {
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 1px solid #F0E6D2;
    overflow: hidden;
    transition: all 0.3s ease;
}

ai details[open] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

ai summary {
    padding: 8px 12px;
    background: linear-gradient(90deg, #F5F0EB, #FDFBF7);
    font-weight: bold;
    color: #8B5A2B;
    cursor: pointer;
    outline: none;
    border-bottom: 1px solid #F0E6D2;
    list-style: none;
}

ai summary::-webkit-details-marker { display: none; }

/* 内部信息布局 */
ai p[t] {
    padding: 8px 12px;
    margin: 0;
    font-size: 14px;
    border-bottom: 1px dashed #E8DCC4;
}

ai p[t]:last-child { border-bottom: none; }

ai d {
    display: block;
    margin-bottom: 4px;
}

ai d b { color: #D4AF37; margin-right: 4px; }

/* 姓名标签设计 */
ai f {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #FFF;
    background: linear-gradient(135deg, #A67B54, #D4AF37);
    padding: 2px 12px;
    border-radius: 20px 4px 20px 4px;
    margin-bottom: 8px;
    box-shadow: 2px 2px 5px rgba(166, 123, 84, 0.3);
}

/* 绝望值进度条 */
ai bar {
    display: inline-block;
    vertical-align: middle;
    width: 120px;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-left: 5px;
}

ai bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%;
    background: linear-gradient(90deg, #D4AF37, #9B3A3A);
    /* 通过属性映射宽度，这里仅展示逻辑，CSS需手动列出常用区间 */
    width: 50%; /* 默认值 */
}

/* 绝望值映射 - 增加常用数值映射 */
ai bar[v^="1"]::after { width: 15%; }
ai bar[v^="2"]::after { width: 25%; }
ai bar[v^="3"]::after { width: 35%; }
ai bar[v^="4"]::after { width: 45%; }
ai bar[v^="5"]::after { width: 55%; }
ai bar[v^="6"]::after { width: 65%; }
ai bar[v^="7"]::after { width: 75%; animation: pulse 2s infinite; }
ai bar[v^="8"]::after { width: 85%; animation: pulse 1s infinite; }
ai bar[v^="9"]::after { width: 95%; animation: pulse 0.5s infinite; }
ai bar[v="100"]::after { width: 100%; background: #9B3A3A; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 内心想法 */
ai blockquote {
    margin: 10px 0 5px 0;
    padding: 8px 12px;
    background: rgba(166, 123, 84, 0.05);
    border-left: 3px solid #D4AF37;
    font-style: italic;
    color: #6D5B4B;
    font-size: 13px;
    border-radius: 0 4px 4px 0;
}

/* 行动推荐列表 */
ai ul {
    margin: 0;
    padding: 10px 12px;
    list-style: none;
}

ai li {
    padding: 6px 10px;
    margin-bottom: 6px;
    background: #FFF;
    border: 1px solid #E8DCC4;
    border-radius: 4px;
    font-size: 14px;
    color: #8B5A2B;
    transition: all 0.2s;
}

ai li:hover {
    background: #FDFBF7;
    border-color: #D4AF37;
    transform: translateX(5px);
}

/* 记忆区表格模拟 */
ai p[t="mem"] {
    font-size: 12px;
    color: #7D6B5D;
    background: #F9F7F2;
}

/* --- 基础清理：移除顶部装饰条 --- */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* --- 日记本主体：象牙质感纸张 --- */
.bg-gray-100\/90.relative.inline-block {
    background-color: #fdfcf0 !important; 
    background-image: 
        linear-gradient(#e5d9c6 1px, transparent 1px) !important;
    background-size: 100% 1.8rem !important; /* 配合新行高微调线距 */
    border-left: 12px solid #5d4037 !important; 
    border-radius: 4px 15px 15px 4px !important;
    box-shadow: 8px 8px 25px rgba(0,0,0,0.12), 1px 0px 4px rgba(0,0,0,0.05) inset !important;
    padding: 30px 25px 25px 35px !important;
    margin-bottom: 20px !important;
    isolation: isolate !important;
}

/* --- 文字美化：柔和排版核心 --- */
.markdown-body {
    /* 优先使用圆润、温和的字体栈 */
    font-family: "Quicksand", "PingFang SC", "Lantinghei SC", "Microsoft YaHei UI", sans-serif !important;
    color: #4a3a35 !important; /* 柔和的墨褐色 */
    line-height: 1.8 !important; /* 增加行距，更有呼吸感 */
    letter-spacing: 0.03em !important; /* 微调字间距，让排版更舒展 */
    font-weight: 450 !important; /* 介于常规与中粗之间，视觉更丰盈 */
    z-index: 1 !important;
}

/* 强调文字也保持柔和 */
.markdown-body strong, .markdown-body b {
    color: #800020 !important; /* 勃艮第红强调，呼应红酒主题 */
    font-weight: 600 !important;
}

/* --- 底部元素：优雅微调 --- */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #a1887f !important;
    font-family: "Quicksand", sans-serif !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    opacity: 0.8 !important;
}

/* --- 隐藏默认加载圆点 --- */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text {
    display: none !important;
}

/* --- 华丽红酒倒酒加载动画 (SVG SMIL) --- */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
}

.flex.items-center.justify-center.w-6.h-5::after {
    content: "" !important;
    position: absolute !important;
    width: 50px !important;
    height: 50px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 15 L42 15 L38 35 C36 43 28 43 26 35 Z' fill='none' stroke='%235d4037' stroke-width='1.5'/%3E%3Cpath d='M32 41 L32 54 M24 54 L40 54' fill='none' stroke='%235d4037' stroke-width='1.5'/%3E%3CclipPath id='wineFill'%3E%3Crect x='20' y='15' width='24' height='30'%3E%3Canimate attributeName='y' values='40;18;40' dur='3s' repeatCount='indefinite'/%3E%3C/rect%3E%3C/clipPath%3E%3Cpath d='M22 15 L42 15 L38 35 C36 43 28 43 26 35 Z' fill='%23800020' clip-path='url(%23wineFill)'/%3E%3Crect x='31.5' y='0' width='1.5' height='20' fill='%23800020'%3E%3Canimate attributeName='opacity' values='0;1;1;0' dur='3s' repeatCount='indefinite'/%3E%3Canimate attributeName='height' values='0;25;25;25' dur='3s' repeatCount='indefinite'/%3E%3C/rect%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* --- 移动端适配 --- */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 20px 15px 15px 22px !important;
        border-left-width: 8px !important;
    }
    .markdown-body {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
}