/* --- 黑金帝王 (最终解决方案) CSS 代码 开始 --- */
/* 全局样式 */
body {
    background-color: #0c101c;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #e0e5f0;
    line-height: 1.8;
    padding: 20px;
}
/* 通用内容块 */
.content-block {
    background-color: #1f2937;
    border: 1px solid #b8860b;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), inset 0 0 15px rgba(0,0,0,0.4);
    color: #e0e5f0;
}
/* 正文小说内容 */
.novel-content {
    font-size: 1.15em;
    text-align: justify;
    margin: 25px 0;
    padding: 0 10px;
}
/* 通用strong标签样式 */
.content-block strong {
    color: #d4af37;
    font-weight: bold;
}
/* 状态栏大标题 */
.content-block .block-title {
    font-size: 1.6em;
    color: #ffd700;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
/* 状态栏角色名 */
.content-block .char-name {
    font-size: 1.3em;
    color: #e0e5f0;
    margin-top: 15px;
    display: block;
}
/* 心声栏特别设定 */
.content-block:has(.narrator) {
    color: #d4af37;
    font-weight: bold;
}
.content-block:has(.narrator) strong {
    color: #FFFFFF;
    font-weight: normal;
    font-style: normal;
}
.content-block:has(.narrator) > strong:first-child {
    color: #d4af37;
    font-weight: bold;
}
/* 可伸缩区域 (通用) */
.collapsible-container {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #b8860b;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.collapsible-container summary {
    background: linear-gradient(135deg, #1f2937, #0c101c);
    border-bottom: 2px solid #ffd700;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    padding: 18px 25px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.collapsible-container summary:hover {
    background: linear-gradient(135deg, #2d3d52, #1f2937);
}
.collapsible-container summary::-webkit-details-marker {
    display: none;
}
.collapsible-container summary::before {
    content: '▶ ';
    color: #ffd700;
    margin-right: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.collapsible-container[open] > summary::before {
    transform: rotate(90deg);
}
/* --- 【本次核心修正区域】 --- */
/* 1. 记忆区/剧情事件内的代码块样式 */
.memory-code-wrapper {
    padding: 25px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    background-color: #080a12;
    color: #e0e5f0;
}
/* 2. 【修正】让作为折叠内容的【状态栏】，保持其原有的 .content-block 样式，仅调整边角和阴影以适应容器 */
.collapsible-container > .content-block {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: none;
    border-left: none;
    border-right: none;
    /* 不再修改背景颜色和字体颜色，让它保持原样 */
}
/* --- 【核心修正区域结束】 --- */
/* 选项美化 */
.options-box {
    margin-top: 30px;
    border-top: 1px solid #b8860b;
    padding-top: 25px;
}
.options-box .options-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 15px;
}
.option-item {
    display: block;
    background-color: #1f2937;
    border: 2px solid #b8860b;
    border-radius: 5px;
    padding: 12px 25px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #e0e5f0;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    text-align: center;
}
.option-item:hover {
    background-color: #b8860b;
    color: #0c101c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}
/* --- 黑金帝王 (最终解决方案) CSS 代码 结束 --- */