/* 正文区域排版：强调文学质感与压抑感 */
.story-content {
    background: rgba(15, 15, 15, 0.85);
    border-left: 4px solid #444;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.story-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #d8d8d8;
    text-indent: 2em;
    margin-bottom: 12px;
}

/* 状态栏折叠标题（Summary）美化 */
details {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}
details summary {
    padding: 12px 15px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(90deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #e0e0e0;
    list-style: none;
    user-select: none;
    border-bottom: 1px solid transparent;
}
details[open] summary {
    border-bottom: 1px dashed #444;
}
details summary::-webkit-details-marker {
    display: none;
}

/* 基础Box样式 */
.player-box, .npc-box, .memory-box {
    padding: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #aaa;
}
/* =========================================
   角色专属对话颜色渲染 (语义化标签匹配)
========================================= */

/* 🐺 玩家对话：锋刃冷银，加粗显示力量感 */
u-say {
    color: #C0C0C0;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ❄️ 璃纱对话：幽寒冰蓝，微弱的透明度与倾斜代表战栗与虚弱 */
r-say {
    color: #87CEFA;
    font-style: italic;
    opacity: 0.9;
}

/* 🩸 雅人对话：凝血猩红，自带微弱的红色发光，凸显病态压迫感 */
m-say {
    color: #DC143C;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(220, 20, 60, 0.4);
}
.player-box p, .npc-box p, .memory-box p {
    margin: 0 0 8px 0;
}

/* 🐺 玩家面板：沉稳冷酷灰钢色 */
.player-box {
    background: repeating-linear-gradient(45deg, rgba(30,30,30,0.4), rgba(30,30,30,0.4) 10px, rgba(20,20,20,0.4) 10px, rgba(20,20,20,0.4) 20px);
    border-left: 3px solid #708090;
}

/* 🩸 铃木璃纱面板：冰山碎裂的微光蓝 */
details summary:contains('铃木璃纱') { /* 若平台不支持contains可忽略 */ }
.npc-box:has(p:contains('璃纱')), .npc-box:has(p:contains('同桌')) {
    background: rgba(10, 20, 30, 0.5);
    border-left: 3px solid #87CEFA;
    box-shadow: inset 0 0 20px rgba(135, 206, 250, 0.05);
}

/* 💀 铃木雅人面板：危险扭曲的血红 */
.npc-box:has(p:contains('雅人')), .npc-box:has(p:contains('施虐狂')) {
    background: rgba(30, 10, 10, 0.5);
    border-left: 3px solid #8B0000;
    box-shadow: inset 0 0 20px rgba(139, 0, 0, 0.1);
}

/* 🧠 记忆区排版 */
.memory-box {
    background: #0a0a0a;
    border-top: 1px solid #333;
}
.memory-box p {
    padding-left: 10px;
    border-left: 2px dashed #555;
    margin-bottom: 10px;
}

/* 骰子行动区 */
p:has(strong:contains('打算')), p:has(contains('打算：')) {
    background: #111;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
    color: #ccc;
    font-family: monospace;
}