/* 对话美化CSS */
.story-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
}
.time-section {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #dee2e6;
}
.time-text {
    font-size: 1.1em;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 1px;
}
.think-details, .user-details, .npc-details, .memory-details, .options-details {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.think-details:hover, .user-details:hover, .npc-details:hover, .memory-details:hover, .options-details:hover {
    border-color: #c0c0c0;
}
.think-details summary, .user-details summary, .npc-details summary, .memory-details summary, .options-details summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.think-details summary:hover, .user-details summary:hover, .npc-details summary:hover, .memory-details summary:hover, .options-details summary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #212529;
}
.think-details summary::after, .user-details summary::after, .npc-details summary::after, .memory-details summary::after, .options-details summary::after {
    content: "▼";
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
    font-size: 0.8em;
}
.think-details[open] summary::after, .user-details[open] summary::after, .npc-details[open] summary::after, .memory-details[open] summary::after, .options-details[open] summary::after {
    transform: rotate(180deg);
}
.status-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px 15px;
    padding: 15px;
    font-size: 0.95em;
}
.status-grid span:nth-child(odd) {
    font-weight: 600;
    color: #495057;
    text-align: right;
}
.status-grid span:nth-child(even) {
    color: #6c757d;
    word-break: break-word;
}
.story-box {
    color: #000000;
    font-family: "Georgia", "SimSun", serif;
    word-wrap: break-word;
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 0;
}
.story-box p {
    margin: 0 0 15px 0;
    padding: 0;
}
.talk1-box {
    background-color: #f0f7ff;
    border: 1px solid #c5d9f1;
    border-left: 4px solid #4a90e2;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 15px 0;
    color: #2c3e50;
    font-family: "Segoe UI", sans-serif;
    font-size: 1em;
    line-height: 1.6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}
.talk1-box:hover {
    border-color: #357abd;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15), 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.talk1-box::before {
    content: "";
    display: block;
    height: 3px;
    width: 40px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
    margin: -15px auto 10px;
}
.story-wrapper {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.npc-status-card {
    background-color: #fff9f0;
    border: 1px solid #f0e0c0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}
.npc-name {
    font-weight: bold;
    color: #d35400;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.memory-section {
    font-size: 0.9em;
}
.memory-section pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.options-list {
    padding: 15px;
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
    border-radius: 8px;
}
.options-list p {
    margin: 0 0 10px 0;
    padding: 10px 15px;
    background-color: white;
    border-left: 4px solid #28a745;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}
.options-list p:hover {
    background-color: #e8f5e9;
    transform: translateX(5px);
    border-left-color: #1e7e34;
}