/* 1. 移除顶部颜色装饰条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 2. 统一聊天框主体 (输出与输入共有) - 羊皮纸卡片风格 */
.bg-gray-100\/90.relative.inline-block {
    /* 背景：羊皮纸色 + 极淡的粉色光晕 */
    background-color: #fffdf9 !important;
    background-image: linear-gradient(135deg, #fffdf9 0%, #fff0f5 100%) !important;
    
    /* 边框：金色双线，模拟高级卡片 */
    border: 3px double #d4af37 !important;
    border-radius: 12px !important;
    
    /* 阴影：柔和的暖色阴影，增加悬浮感 */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15) !important;
    
    /* 内边距微调 */
    padding: 15px !important;
    position: relative !important;
    isolation: isolate !important; /* 建立层叠上下文 */
}

/* 装饰：在聊天框右下角添加一个淡淡的星芒印记 (纯CSS装饰) */
.bg-gray-100\/90.relative.inline-block::after {
    content: '✦' !important;
    position: absolute !important;
    bottom: 5px !important;
    right: 8px !important;
    font-size: 1.2rem !important;
    color: rgba(212, 175, 55, 0.2) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* 3. 单独的输入聊天框 - 纯白信纸风格 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    background: #ffffff !important;
    /* 输入框使用单线粉色边框，区分于输出框 */
    border: 2px solid #ff8fa3 !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02) !important;
}

/* 4. 聊天框内的主要文本内容 - 绝对可读性 */
.markdown-body {
    /* 深褐色文字，在羊皮纸背景上对比度极高，阅读舒适 */
    color: #5a4a42 !important;
    
    /* 字体优先使用衬线体，契合文学氛围 */
    font-family: 'PingFang SC', 'Microsoft YaHei', serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    
    /* 严禁文字阴影，保证清晰 */
    text-shadow: none !important;
    z-index: 1 !important;
    position: relative !important;
    background: transparent !important;
}

/* 粗体文字强调色 - 深粉色 */
.markdown-body strong {
    color: #d65db1 !important;
}

/* 5. 聊天框底部附加元素 (按钮、Token等) */

/* 底部操作按钮 (复制, 编辑等) */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #b08d55 !important; /* 暗金色 */
    transition: all 0.3s ease !important;
}

/* 按钮悬停效果 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #d65db1 !important; /* 悬停变粉 */
    background: rgba(255, 175, 189, 0.1) !important;
}

/* 模型名称文本 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #c0a080 !important; /* 浅棕色 */
    font-size: 0.8rem !important;
}

/* Token消耗文本 */
.text-orange-500 {
    color: #d65db1 !important; /* 统一使用深粉色 */
}

/* 6. 输出聊天框的加载动画 - 华丽旋转魔法阵 */

/* 隐藏默认的三个点 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

/* 加载容器设置 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 30px !important;
    height: 30px !important;
}

/* 注入SVG SMIL动画 (旋转的金色星芒) */
.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    /* 使用内联SVG数据URI，绘制一个旋转的金色魔法阵/星芒 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='%23d4af37' d='M25 0L28 17L45 17L31 27L36 44L25 34L14 44L19 27L5 17L22 17Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='2s' repeatCount='indefinite'/%3E%3C/path%3E%3Ccircle cx='25' cy='25' r='5' fill='%23ff8fa3'%3E%3Canimate attributeName='opacity' values='0.5;1;0.5' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    opacity: 0.8 !important;
}

/* 移动端适配微调 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 12px !important;
        border-width: 2px !important; /* 移动端边框稍细 */
    }
    .markdown-body {
        font-size: 14px !important;
    }
}
css
/* --- 状态栏专用样式开始 --- */

/* 1. 容器：多层羊皮纸效果 */
.status-panel-container {
    font-family: 'PingFang SC', 'Microsoft YaHei', serif; /* 强制衬线感 */
    background-color: #fffdf9;
    color: #5a4a42;
    padding: 25px;
    margin: 20px auto;
    max-width: 900px;
    border: 3px double #d4af37; /* 金色双线边框 */
    border-radius: 8px;
    /* 模拟多层纸张堆叠的阴影 */
    box-shadow: 
        0 0 0 4px #fff,
        0 0 0 6px #d4af37,
        5px 5px 15px rgba(0,0,0,0.1);
    position: relative;
    line-height: 1.6;
}

/* 装饰性角落 */
.status-panel-container::before {
    content: '⚜';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fffdf9;
    padding: 0 10px;
    color: #d4af37;
    font-size: 1.5rem;
}

/* 通用折叠组件样式 */
details {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

details[open] {
    background: rgba(255, 255, 255, 0.9);
    border-color: #d4af37;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.1);
}

summary {
    cursor: pointer;
    padding: 10px 15px;
    font-weight: bold;
    color: #d65db1; /* 深粉色标题 */
    list-style: none; /* 移除默认箭头 */
    display: flex;
    align-items: center;
    font-family: serif;
    font-size: 1.05rem;
    transition: color 0.3s;
}

summary:hover {
    color: #ff8fa3;
}

/* 自定义折叠箭头 (星芒) */
summary::after {
    content: '✦';
    margin-left: auto;
    font-size: 0.8rem;
    color: #d4af37;
    transition: transform 0.3s;
}

details[open] > summary::after {
    transform: rotate(90deg);
}

/* 隐藏默认的三角 (兼容性) */
summary::-webkit-details-marker {
    display: none;
}

/* 内容区域通用内边距 */
.box-content {
    padding: 15px;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    font-size: 0.95rem;
}

/* --- 各个板块特定样式 --- */

/* 1. 思维链 (CoT) - 低调处理 */
.cot-section {
    border: 1px dashed #ccc;
    background: #f9f9f9;
    opacity: 0.8;
}
.cot-header { color: #888; font-size: 0.9rem; }
.cot-content ul { padding-left: 20px; list-style-type: square; color: #666; font-size: 0.85rem; }

/* 2. 场景信息头 */
.scene-header {
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff8fa3;
    color: #d4af37;
    font-weight: bold;
    font-family: serif;
    letter-spacing: 1px;
}
.scene-divider { margin: 0 10px; color: #ccc; }

/* 3. 正文内容 */
.story-body {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #2c2c2c;
    font-size: 1.05rem;
    padding: 0 10px;
}

/* 4 & 5. 状态卡片 (Grid布局) */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.full-width { grid-column: span 2; }
.stat-item, .stat-row {
    margin-bottom: 5px;
}
.stat-item strong, .stat-row strong {
    color: #d65db1; /* 标签颜色 */
}

/* 角色卡片分割 */
.char-card {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #d4af37;
}
.char-card:last-child { border-bottom: none; margin-bottom: 0; }

/* 好感度条美化 */
.favorability-section {
    margin: 8px 0;
    background: rgba(255,255,255,0.5);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.2);
}
.fav-change { color: #ff8fa3; font-size: 0.85rem; margin-left: 5px; }
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
    border: 1px solid #fff;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffafbd, #ffc3a0); /* 粉色渐变 */
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 6. 少女心音 */
.thought-bubble {
    background: #fff0f5; /* 浅粉背景 */
    padding: 10px 15px;
    border-radius: 15px;
    border-left: 4px solid #ff8fa3;
    font-style: italic;
    color: #5a4a42;
}

/* 7. 记忆区 (嵌套折叠) */
.sub-memory {
    margin-left: 10px;
    border: none;
    background: transparent;
    box-shadow: none;
}
.sub-memory summary {
    font-size: 0.9rem;
    color: #8b7d75;
    padding: 5px 0;
}
.memory-text {
    font-family: monospace;
    font-size: 0.85rem;
    color: #666;
    background: rgba(0,0,0,0.03);
    padding: 10px;
    border-radius: 4px;
}

/* 9. 剧情选项 */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option-item {
    padding: 12px;
    background: #fff;
    border: 1px solid #d4af37;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.option-item:hover {
    background: #d4af37;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}
.option-item strong {
    color: #d65db1;
    margin-right: 10px;
}
.option-item:hover strong {
    color: #fff;
}

/* --- 状态栏样式结束 --- */