/* 对话美化CSS */
body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.story-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}
.story-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23f0f0f0" fill-opacity="0.4"><path d="M0 40L40 0H20L0 20Z"/><path d="M40 40H20L40 20Z"/></g></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

.time-section {
    font-style: italic;
    color: #666;
    text-align: right;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(240, 240, 240, 0.7);
    border-radius: 8px;
    border-left: 5px solid #a8dadc;
    position: relative;
    z-index: 1;
}

details {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

summary {
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    outline: none;
    background: linear-gradient(to right, #e0e0e0, #f0f0f0);
    border-radius: 10px;
    color: #555;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    user-select: none;
}

summary:hover {
    background: linear-gradient(to right, #d0d0d0, #e0e0e0);
}

summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.2s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

.status-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 15px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 0 0 10px 10px;
}

.status-grid span:nth-child(odd) {
    font-weight: bold;
    color: #777;
}

.story-wrapper {
    background-color: rgba(255, 255, 255, 0.9); /* 浅色背景 */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ccc; /* 边框 */
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.story-box {
    color: #000000; /* 纯黑色字体 */
    font-family: "Microsoft YaHei", "SimHei", sans-serif; /* 黑体 */
    word-wrap: break-word; /* 保证长文本可以自动换行 */
    font-size: 1.05em; /* 字号适中 */
    padding: 10px 0;
    margin-bottom: 10px;
}
.story-box p {
    margin: 0 0 15px 0; /* 段落只保留下方间距，上下无多余空白 */
    padding: 0; /* 清除段落默认内边距 */
}

.talk1-box {
    background-color: #f0f8ff; /* 浅色背景，淡蓝色 */
    border: 1px solid #b0e0e6; /* 边框 */
    border-radius: 12px;
    padding: 12px 18px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #000000; /* 纯黑色字体 */
    font-family: "Microsoft YaHei", "SimHei", sans-serif; /* 黑体 */
    font-size: 1.05em; /* 字号适中 */
}

/* 悬停效果 */
.talk1-box:hover {
    border-color: #87ceeb; /* 边框颜色加深 */
    box-shadow: 
        0 0 0 6px rgba(176, 224, 230, 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, #a8dadc, #457b9d);
    border-radius: 2px;
    margin: -20px auto 15px; /* 定位到盒子顶部中间 */
}

.npc-status-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.npc-name {
    font-weight: bold;
    color: #444;
    margin-bottom: 10px;
    border-bottom: 2px solid #a8dadc;
    padding-bottom: 5px;
}

.memory-section {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 0 0 10px 10px;
}

.memory-section pre {
    background: #eee;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9em;
    color: #555;
    border: 1px dashed #ccc;
}

.options-list {
    padding: 15px;
    background: #fdfdfd;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #eee;
}

.options-list p {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    background: #e9f7ef;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.options-list p:hover {
    background: #d4edda;
    border-color: #a7d9b5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}