/* 对话美化CSS */
.story-container {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.time-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 12px;
    background: rgba(255, 182, 193, 0.15); /* 浅粉背景 */
    border-radius: 12px;
    border-left: 5px solid #ff8fa3;
    border-right: 5px solid #ff8fa3;
}
.time-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #e63946;
    margin: 0;
}
.think-details, .user-details, .npc-details, .memory-details, .options-details {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.think-details:hover, .user-details:hover, .npc-details:hover, .memory-details:hover, .options-details:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #ffb6c1;
}
.think-details summary, .user-details summary, .npc-details summary, .memory-details summary, .options-details summary {
    padding: 18px 20px;
    font-weight: 700;
    font-size: 1.2em;
    cursor: pointer;
    background: linear-gradient(to right, #ffccd5, #ff8fa3);
    color: #780016;
    border-bottom: 1px solid #ffccd5;
    user-select: none;
    position: relative;
}
.think-details summary::after, .user-details summary::after, .npc-details summary::after, .memory-details summary::after, .options-details summary::after {
    content: '▼';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}
.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: minmax(120px, auto) 1fr;
    gap: 12px 20px;
    padding: 25px;
}
.status-grid span:nth-child(odd) {
    font-weight: 600;
    color: #e63946;
    text-align: right;
    padding-right: 10px;
    border-right: 2px dotted #ffccd5;
}
.story-box  {
    color: #000000;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    word-wrap: break-word;
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 0 5px;
}
.story-box p {
    margin: 0 0 15px 0;
    padding: 0;
}
.talk1-box {
    background: linear-gradient(145deg, #fff5f7, #ffeef2);
    border: 2px solid #ffb6c1;
    border-radius: 20px 20px 20px 5px;
    padding: 18px 25px;
    margin: 22px auto;
    max-width: 85%;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.25);
    font-style: italic;
    color: #5a0030;
    font-weight: 500;
    transition: all 0.25s ease;
}
.talk1-box:hover {
    border-color: #e63946;
    box-shadow: 0 0 0 6px rgba(230, 57, 70, 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, #e63946, #ff8fa3);
    border-radius: 2px;
    margin: -20px auto 15px;
}
.story-wrapper {
    background-color: #fefefe;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #f0d6dd;
    padding: 25px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}
.npc-status-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    border-left: 6px solid #ff8fa3;
}
.npc-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #c2185b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px dashed #ffccd5;
}
.memory-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}
.memory-section pre {
    background: white;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    border: 1px solid #ddd;
}
.options-list {
    padding: 20px;
    background: linear-gradient(to bottom right, #fff, #fff9fb);
}
.options-list p {
    margin: 0 0 15px 0;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 500;
    color: #444;
}
.options-list p:hover {
    border-color: #ff8fa3;
    background-color: #fff5f7;
    transform: translateX(5px);
}
.options-list p:last-child {
    background: linear-gradient(135deg, #ffccd5, #ffb6c1);
    color: #780016;
    font-weight: bold;
}