/* 对话美化CSS */
.story-container {
    font-family: 'Georgia', serif;
    background-color: #f8f0e3; /* 浅米色背景 */
    color: #333;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 30px auto;
    line-height: 1.8;
}
.time-section {
    text-align: center;
    font-style: italic;
    color: #888;
    margin-bottom: 25px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
}
.think-details, .user-details, .npc-details, .memory-details, .options-details {
    background-color: #fffaf0; /* 更浅的米色 */
    border: 1px solid #e0d8cc;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.think-details summary, .user-details summary, .npc-details summary, .memory-details summary, .options-details summary {
    font-weight: bold;
    font-size: 1.1em;
    padding: 15px 20px;
    cursor: pointer;
    color: #5d4037; /* 深棕色标题 */
    background-color: #f5f0e6;
    border-bottom: 1px solid #e0d8cc;
    border-radius: 10px 10px 0 0;
    list-style: none; /* 隐藏默认箭头 */
    position: relative;
}
.think-details summary::marker, .user-details summary::marker, .npc-details summary::marker, .memory-details summary::marker, .options-details summary::marker {
    display: none;
}
.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;
    color: #a1887f;
    transition: transform 0.3s ease;
}
details[open] summary::before {
    transform: rotate(90deg);
}
.status-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 15px;
    padding: 15px 20px;
    font-size: 0.95em;
    color: #555;
}
.status-grid span:nth-child(odd) {
    font-weight: bold;
    color: #444;
}
.story-box {
    color: #000000; /* 纯黑色字体 */
    font-family: "Microsoft YaHei", "SimHei", sans-serif; /* 黑体 */
    word-wrap: break-word; /* 保证长文本可以自动换行 */
    padding: 10px 15px;
    margin: 0;
    font-size: 1.05em; /* 字号适中 */
}
.story-box p {
    margin: 0 0 15px 0; /* 段落只保留下方间距，上下无多余空白 */
    padding: 0; /* 清除段落默认内边距 */
}
.talk1-box {
    background-color: #e6f7ff; /* 浅蓝色背景 */
    border: 1px solid #91d5ff; /* 蓝色边框 */
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    color: #000000; /* 纯黑色字体 */
    font-family: "Microsoft YaHei", "SimHei", sans-serif; /* 黑体 */
    font-size: 1.05em; /* 字号适中 */
}
/* 悬停效果 */
.talk1-box:hover {
    border-color: #40a9ff; /* 边框颜色加深 */
    box-shadow: 
        0 0 0 6px rgba(145, 213, 255, 0.2),
        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, #40a9ff, #91d5ff);
    border-radius: 2px;
    margin: -20px auto 15px; /* 定位到盒子顶部中间 */
}
.story-wrapper {
    background-color: #fdfdfd; /* 不同于story-container的浅色背景 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 10px; /* 只给外层加圆角，避免每个div都有圆角导致衔接处不自然 */
    overflow: hidden; /* 隐藏内部div超出外层圆角的部分 */
    margin-bottom: 25px; /* 整个组和其他元素的间距 */
    padding: 10px 0;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05); /* 内阴影增加层次感 */
}
.npc-status-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.npc-name {
    font-weight: bold;
    color: #6a1b9a; /* 紫色 */
    margin-bottom: 10px;
    border-bottom: 1px dashed #e1bee7;
    padding-bottom: 5px;
}
.memory-section {
    padding: 15px 20px;
    background-color: #fcfcfc;
    border-radius: 0 0 10px 10px;
}
.memory-section strong {
    color: #6a1b9a;
}
.memory-section pre {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap; /* 允许换行 */
    word-wrap: break-word; /* 保证长文本可以自动换行 */
}
.options-list {
    padding: 15px;
    background-color: #fefefe;
    border-radius: 0 0 10px 10px;
}
.options-list p {
    margin: 0 0 8px 0;
    padding: 8px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    cursor: pointer;
}
.options-list p:hover {
    background-color: #e0f2f7;
    border-color: #a7d9ed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}
/* 响应式设计 */
@media (max-width: 768px) {
    .story-container {
        margin: 15px auto;
        padding: 15px;
    }
    .think-details summary, .user-details summary, .npc-details summary, .memory-details summary, .options-details summary {
        font-size: 1em;
        padding: 12px 15px;
    }
    .status-grid {
        grid-template-columns: 1fr; /* 小屏幕下堆叠 */
        gap: 8px;
        padding: 12px 15px;
    }
    .story-box, .talk1-box {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    .talk1-box::before {
        width: 40px;
        margin: -15px auto 10px;
    }
    .options-list p {
        padding: 6px 10px;
    }
}