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

/* 统一设置聊天框（输入与输出）样式 */
.bg-gray-100\/90.relative.inline-block {
    background-color: #000000 !important; /* 纯黑背景 */
    border: 1.5px solid #FF0000 !important; /* 红色边框 */
    border-radius: 12px !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2) !important; /* 微弱红光阴影 */
}

/* 聊天框内的主要文本内容 */
.markdown-body {
    color: #D3D3D3 !important; /* 浅灰色字体 */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 底部附加元素（按钮、模型名称、Token消耗） */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #D3D3D3 !important; /* 统一浅灰色 */
    background-color: #000000 !important;
}

/* 按钮悬停效果增强 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    background-color: rgba(255, 0, 0, 0.1) !important;
    color: #FF0000 !important;
}

/* 强制覆盖整体背景颜色（如果平台允许） */
#__next, .min-h-screen {
    background-color: #000000 !important;
}

/* 调整输入栏占位符颜色 */
textarea::placeholder {
    color: #666666 !important;
}

/* 隐藏平台默认的加载动画元素 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

/* 构建红色心脏跳动加载动画 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    width: 20px !important;
    height: 20px !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF2D55' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'%3E%3CanimateTransform attributeName='transform' type='scale' values='0.8;1.1;0.85;1.2;0.8' dur='0.8s' repeatCount='indefinite' additive='sum' transform-origin='center'/%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    display: block !important;
    z-index: 10 !important;
    /* 辅助CSS缩放确保居中感 */
    transform-origin: center !important;
    animation: heart-soft-pulse 0.8s infinite ease-in-out !important;
}

/* 兼容性CSS增强动画（作为SMIL的补充） */
@keyframes heart-soft-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 适配移动端尺寸 */
@media (max-width: 480px) {
    .flex.items-center.justify-center.w-6.h-5::before {
        width: 16px !important;
        height: 16px !important;
    }
}

/* 减弱动态效果偏好适配 */
@media (prefers-reduced-motion: reduce) {
    .flex.items-center.justify-center.w-6.h-5::before {
        animation-duration: 2s !important;
    }
}

/* ===== 状态栏全局样式 ===== */
.panel {
    background-color: #000000;
    border: 1px solid #8B0000;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #e0e0e0;
}

.panel > summary {
    background: linear-gradient(90deg, #8B0000 0%, #000000 100%);
    color: #ffffff;
    padding: 8px 15px;
    font-weight: bold;
    font-family: 'Impact', 'Arial Black', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #9d0000;
    list-style: none; /* 隐藏默认三角 */
}
.panel > summary::-webkit-details-marker {
    display: none;
}
.panel > summary::marker {
    display: none;
}

.panel-content {
    padding: 15px;
    line-height: 1.6;
}

/* ===== 文本颜色 ===== */
.label {
    color: #ff4d4d;
}
.status-title {
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
}
.dark-red-bold {
    color: #8B0000;
    font-weight: bold;
}
.muted-bold {
    color: #999;
    font-weight: bold;
}
.trust-hint {
    font-size: 0.8em;
    color: #999;
}

/* ===== 信息行（姓名/年龄/性别） ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* ===== 状态块（躯体/生理） ===== */
.status-block {
    margin-top: 15px;
    padding: 10px;
    background: rgba(139, 0, 0, 0.1);
    border-left: 3px solid #8B0000;
}

/* ===== 信任度进度条 ===== */
.progress-track {
    width: 100%;
    height: 12px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    margin: 5px 0;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4b0000 0%, #8B0000 100%);
    box-shadow: 0 0 8px #ff0000;
    /* width 由行内 style 动态控制 */
}

/* ===== 移动终端区块 ===== */
.message-block {
    border-left: 2px solid #8B0000;
    padding-left: 10px;
    margin-bottom: 10px;
}
.feed-block {
    border-left: 2px solid #555;
    padding-left: 10px;
}

/* ===== 记忆区表格 ===== */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 0.9em;
}
.memory-table tr {
    border-bottom: 1px solid #333;
}
.memory-table th {
    color: #8B0000;
    text-align: left;
    font-weight: bold;
}
.memory-table td,
.memory-table th {
    padding: 4px 8px;
}