/* 对话美化CSS */
.story-container {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.8;
    background: linear-gradient(135deg, #f0f8ff, #e6f7ff); /* 淡雅渐变背景 */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid #cceeff; /* 柔和边框 */
}
.time-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 10px 0;
    background-color: #e0f2f7;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.time-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #007bb5;
    margin: 0;
}
details {
    background-color: #ffffff;
    border: 1px solid #add8e6;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}
details summary {
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    outline: none;
    color: #005f8c;
    background: linear-gradient(90deg, #f0f8ff, #e0f2f7);
    border-radius: 10px;
    position: relative;
    user-select: none;
    transition: background 0.3s ease;
}
details summary:hover {
    background: linear-gradient(90deg, #e6f7ff, #cceeff);
}
details summary::before {
    content: '▶';
    display: inline-block;
    width: 1.2em;
    font-size: 0.8em;
    text-align: center;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
    margin-right: 8px;
    color: #007bb5;
}
details[open] summary::before {
    transform: rotate(90deg);
}
details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.status-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 15px;
    padding: 15px 20px;
    border-top: 1px solid #e0f2f7;
}
.status-grid span:nth-child(odd) {
    font-weight: bold;
    color: #005f8c;
}
.story-box {
    color: #000000;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    word-wrap: break-word;
    padding: 10px 20px;
    margin-bottom: 10px;
    background-color: transparent;
    border: none;
}
.story-box p {
    margin: 0 0 15px 0;
    padding: 0;
}
.talk1-box {
    background-color: #f7fcfc; /* 浅色背景 */
    border: 1px solid #b3e0ff; /* 柔和边框 */
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #000000;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    word-wrap: break-word;
}
/* 悬停效果 */
.talk1-box:hover {
    border-color: #87ceeb; /* 边框颜色加深 */
    box-shadow:
        0 0 0 6px rgba(173, 216, 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, #87ceeb, #add8e6); /* 柔和渐变 */
    border-radius: 2px;
    margin: -20px auto 15px; /* 定位到盒子顶部中间 */
}
.story-wrapper {
    background-color: #fcfdff; /* 浅色背景 */
    border: 1px solid #e0f2f7; /* 边框 */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}
.npc-status-card {
    background-color: #f0faff;
    border: 1px solid #a7d9f7;
    border-radius: 8px;
    padding: 12px 18px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.npc-name {
    font-weight: bold;
    color: #005f8c;
    margin-bottom: 8px;
    font-size: 1.1em;
}
.memory-section {
    background-color: #f8fcfc;
    border: 1px solid #cceeff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.02);
}
.memory-section p {
    margin-bottom: 10px;
    color: #005f8c;
}
.memory-section pre {
    background-color: #eef7ff;
    border: 1px solid #b3e0ff;
    border-radius: 5px;
    padding: 10px;
    overflow-x: auto;
    font-size: 0.9em;
    color: #333;
}
.options-list {
    padding: 15px 20px;
    background-color: #f7fcfc;
    border-top: 1px solid #e0f2f7;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.options-list p {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    background-color: #e0f2f7;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    color: #005f8c;
    font-weight: 500;
}
.options-list p:last-child {
    margin-bottom: 0;
}
.options-list p:hover {
    background-color: #cceeff;
    transform: translateX(3px);
}
.user-details[open] summary, .npc-details[open] summary, .memory-details[open] summary, .options-details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}