/* 对话美化CSS */
.story-container {
    font-family: 'Georgia', serif;
    background-color: #f8f4e3; /* 浅米色背景 */
    color: #333;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 20px auto;
}
.time-section {
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
    color: #666;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}
.think-details, .user-details, .npc-details, .memory-details, .options-details {
    background-color: #fffaf0; /* 更浅的米色 */
    border: 1px solid #e0d8c0;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.think-details summary, .user-details summary, .npc-details summary, .memory-details summary, .options-details summary {
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f0e6d2; /* 浅黄色调 */
    border-bottom: 1px solid #e0d8c0;
    border-radius: 10px 10px 0 0;
    list-style: none; /* 隐藏默认箭头 */
    position: relative;
}
.think-details summary::before, .user-details summary::before, .npc-details summary::before, .memory-details summary::before, .options-details summary::before {
    content: '▶'; /* 自定义箭头 */
    position: absolute;
    left: 10px;
    transition: transform 0.2s;
}
.think-details[open] summary::before, .user-details[open] summary::before, .npc-details[open] summary::before, .memory-details[open] summary::before, .options-details[open] summary::before {
    transform: rotate(90deg);
}
.status-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 15px;
    padding: 15px 20px;
}
.status-grid span:nth-child(odd) {
    font-weight: bold;
    color: #5a5a5a;
}
.story-box {
    color: #000000; /* 纯黑色字体 */
    font-family: "Microsoft YaHei", "SimHei", sans-serif; /* 黑体 */
    word-wrap: break-word; /* 保证长文本可以自动换行 */
    font-size: 1.05em; /* 适中字号 */
    line-height: 1.7;
    margin-bottom: 15px;
    padding: 10px 0;
}
.story-box p {
    margin: 0 0 15px 0; /* 段落只保留下方间距，上下无多余空白 */
    padding: 0; /* 清除段落默认内边距 */
}
.talk1-box {
    background-color: #f3f3f3; /* 浅灰色背景 */
    border: 1px solid #dcdcdc; /* 浅色边框 */
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    font-size: 1.05em; /* 适中字号 */
    line-height: 1.7;
    color: #000000; /* 纯黑色字体 */
    font-family: "Microsoft YaHei", "SimHei", sans-serif; /* 黑体 */
    word-wrap: break-word; /* 保证长文本可以自动换行 */
}
/* 悬停效果 */
.talk1-box:hover {
    border-color: #c0c0c0; /* 边框颜色加深 */
    box-shadow: 
        0 0 0 6px rgba(200, 200, 200, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px); /* 轻微上浮 */
}
/* 更精致的花边装饰效果 */
.talk1-box::before {
    content: "";
    display: block;
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #b0c4de, #add8e6); /* 蓝色渐变 */
    border-radius: 2px;
    margin: -20px auto 15px; /* 定位到盒子顶部中间 */
}
.story-wrapper {
    background-color: #ffffff; /* 不同于story-container的浅色背景 */
    border: 1px solid #dcdcdc; /* 浅色边框 */
    border-radius: 10px; /* 只给外层加圆角，避免每个div都有圆角导致衔接处不自然 */
    overflow: hidden; /* 隐藏内部div超出外层圆角的部分 */
    margin-bottom: 15px; /* 整个组和其他元素的间距 */
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}
.npc-status-card {
    background-color: #fff8dc;
    border: 1px solid #e0d8c0;
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px 15px;
}
.npc-name {
    font-weight: bold;
    color: #7a5230;
    margin-bottom: 5px;
}
.memory-section {
    padding: 15px 20px;
}
.memory-section pre {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
.options-list {
    padding: 15px 20px;
    list-style: none;
    margin: 0;
}
.options-list p {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    background-color: #e6f7ff; /* 浅蓝色选项 */
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
}
.options-list p:hover {
    background-color: #cceeff;
    transform: translateX(5px);
}