/* 基础容器美化：模拟民国档案纸张质感 */
.text-container, .p-wrapper, text {
    background-color: #1a1a1a; /* 深墨色背景 */
    color: #d1d1d1; /* 浅灰色文字，减少视觉疲劳 */
    font-family: "Source Han Serif CN", "Songti SC", "SimSun", serif;
    line-height: 1.8;
    padding: 20px;
    border: 2px solid #8b0000; /* 暗红血色边框 */
    box-shadow: inset 0 0 50px #000; /* 内部阴影增加深邃感 */
}

/* 正文段落美化：首行缩进与文字间距 */
p {
    margin-bottom: 1.2em;
    text-indent: 2em;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* 状态栏折叠组件美化 */
details {
    margin-bottom: 10px;
    background: linear-gradient(145deg, #252525, #151515);
    border: 1px solid #c5a059; /* 暗金色边框 */
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    border: 1px solid #ff4500; /* 开启后变为明亮的橙红色，提示警示 */
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
}

/* 状态栏标题美化：明亮显眼的暗金色 */
summary {
    padding: 12px 15px;
    color: #c5a059; /* 显眼的暗金色 */
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    outline: none;
    background: rgba(197, 160, 89, 0.1);
    border-bottom: 1px transparent;
    transition: color 0.3s ease;
}

summary:hover {
    color: #ffcc00; /* 悬停时变为更明亮的纯金 */
    background: rgba(197, 160, 89, 0.2);
}

/* 状态栏内部内容美化 */
details > *:not(summary) {
    padding: 15px;
    font-size: 0.95em;
    color: #b0b0b0;
    border-top: 1px solid #333;
    animation: fadeIn 0.5s ease;
}

/* 强力强调色：用于占位符或关键信息 */
strong {
    color: #ff4500; /* 鲜艳的朱砂红 */
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.3);
}

/* 引用块美化：用于旁白或系统提示 */
blockquote {
    border-left: 4px solid #c5a059;
    background: rgba(197, 160, 89, 0.05);
    padding: 10px 20px;
    margin: 10px 0;
    font-style: italic;
}

/* 动画效果：展开时的淡入 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 针对移动端的适配优化 */
@media (max-width: 768px) {
    .text-container, text {
        padding: 15px;
        font-size: 16px;
    }
}
/* 聊天界面总容器 */
.chat-container {
    background-color: #f0f0f0; /* 2000年代经典的浅灰背景 */
    padding: 10px;
    border: 2px solid #0055aa; /* 经典的Windows蓝 */
    font-family: "SimSun", "MS Sans Serif", sans-serif;
    color: #000;
}

/* 消息基础样式 */
.chat-msg {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

/* 系统提示（时间线） */
.system {
    justify-content: center;
    font-size: 12px;
    color: #888;
}

/* 对方消息（左侧） */
.remote { flex-direction: row; }
.remote .bubble {
    background-color: #fff;
    border: 1px solid #ccc;
    margin-left: 8px;
    border-radius: 0 10px 10px 10px;
    color: #333;
}

/* 我方消息（右侧） */
.local { flex-direction: row-reverse; }
.local .bubble {
    background-color: #95ec69; /* 经典的社交绿 */
    margin-right: 8px;
    border-radius: 10px 0 10px 10px;
    color: #000;
}

/* 气泡通用 */
.bubble {
    padding: 8px 12px;
    max-width: 70%;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    word-break: break-all;
}

/* 头像模拟 */
.avatar {
    width: 35px;
    height: 35px;
    background: #0055aa;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}