/* 对话美化CSS */
.story-container {
    font-family: 'Georgia', serif; /* 更优雅的字体 */
    max-width: 900px; /* 限制最大宽度 */
    margin: 20px auto; /* 居中显示 */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); /* 浅色渐变背景 */
    border-radius: 15px; /* 圆角边框 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 柔和阴影 */
    padding: 25px; /* 内边距 */
    border: 1px solid #e0e0e0; /* 细边框 */
}
.time-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 10px 15px;
    background-color: #f8f8f8; /* 浅灰色背景 */
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 0.95em;
    color: #666;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.time-text {
    margin: 0;
    font-style: italic;
}
.think-details, .user-details, .npc-details, .memory-details, .options-details {
    background-color: #ffffff; /* 白色背景 */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px 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;
    padding: 15px 20px;
    cursor: pointer;
    outline: none;
    color: #333;
    font-size: 1.1em;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fcfcfc; /* 浅色背景 */
    border-radius: 10px 10px 0 0;
    transition: background-color 0.3s ease;
}
.think-details summary:hover, .user-details summary:hover, .npc-details summary:hover, .memory-details summary:hover, .options-details summary:hover {
    background-color: #f5f5f5; /* 悬停变色 */
}
.status-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 15px;
    padding: 15px 20px;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}
.status-grid span:nth-child(odd) {
    font-weight: bold;
    color: #333;
}
.story-box {
    color: #000000; /* 纯黑色字体 */
    font-family: "Georgia", serif; /* 优雅字体 */
    font-size: 1.05em; /* 字号适中 */
    line-height: 1.8; /* 行高 */
    word-wrap: break-word; /* 保证长文本可以自动换行 */
    padding: 15px 20px; /* 内边距 */
    margin-bottom: 15px; /* 段落间距 */
    background-color: transparent; /* 无背景颜色 */
    border: none; /* 无边框 */
}
.story-box p {
    margin: 0 0 15px 0; /* 段落只保留下方间距，上下无多余空白 */
    padding: 0; /* 清除段落默认内边距 */
}
.talk1-box {
    background-color: #f9f9f9; /* 浅色背景 */
    border: 1px solid #e0e0e0; /* 边框 */
    border-radius: 12px; /* 圆角 */
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 柔和阴影 */
    transition: all 0.3s ease; /* 过渡效果 */
    position: relative; /* 用于伪元素定位 */
}
/* 悬停效果 */
.talk1-box:hover {
    border-color: #c0c0c0; /* 边框颜色加深 */
    box-shadow: 
        0 0 0 6px rgba(230, 57, 70, 0.08), /* 浅红色光晕 */
        0 6px 16px rgba(0, 0, 0, 0.08); /* 更明显的阴影 */
    transform: translateY(-3px); /* 轻微上浮 */
}
/* 更精致的花边装饰效果 */
.talk1-box::before {
    content: "";
    display: block;
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #e63946, #ff8fa3); /* 渐变色花边 */
    border-radius: 2px;
    margin: -20px auto 15px; /* 定位到盒子顶部中间 */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
}
.story-wrapper {
    background-color: #f5f5f5; /* 不同于story-container的浅色背景 */
    border: 1px solid #d0d0d0; /* 边框 */
    border-radius: 10px; /* 只给外层加圆角，避免每个div都有圆角导致衔接处不自然 */
    overflow: hidden; /* 隐藏内部div超出外层圆角的部分 */
    margin-bottom: 20px; /* 整个组和其他元素的间距 */
    padding: 10px;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.03); /* 轻微内阴影 */
}
.npc-status-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.npc-name {
    font-weight: bold;
    color: #4a4a4a;
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 8px;
}
.memory-section {
    padding: 15px 20px;
    background-color: #fdfdfd;
    border-radius: 0 0 10px 10px;
    color: #666;
}
.memory-section strong {
    color: #444;
}
.memory-section pre {
    background-color: #f0f0f0;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 10px;
    white-space: pre-wrap; /* 允许文本换行 */
    word-break: break-word; /* 单词内部换行 */
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.5;
    overflow-x: auto; /* 水平滚动 */
}
.options-list {
    padding: 15px 20px;
    background-color: #fcfcfc;
    border-radius: 0 0 10px 10px;
}
.options-list p {
    margin: 0 0 10px 0; /* 选项间距 */
    padding: 8px 12px;
    background-color: #e8f0fe; /* 浅蓝色背景 */
    border: 1px solid #d0e0fb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c5ba7;
    font-weight: 500;
}
.options-list p:hover {
    background-color: #d0e0fb; /* 悬停变色 */
    border-color: #a0c0f0;
    box-shadow: 0 2px 8px rgba(44, 91, 167, 0.1);
    transform: translateX(5px); /* 悬停右移 */
}
/* 移动端适配 */
@media (max-width: 768px) {
    .story-container {
        margin: 10px;
        padding: 15px;
        border-radius: 10px;
    }
    .status-grid {
        grid-template-columns: 1fr; /* 小屏幕下改为单列 */
        gap: 5px;
    }
    .think-details summary, .user-details summary, .npc-details summary, .memory-details summary, .options-details summary {
        padding: 12px 15px;
        font-size: 1em;
    }
    .story-box, .talk1-box {
        padding: 12px 15px;
        font-size: 1em;
        line-height: 1.6;
    }
    .talk1-box::before {
        height: 3px;
        width: 40px;
        margin-top: -15px;
    }
    .options-list p {
        padding: 6px 10px;
        font-size: 0.95em;
    }
}