/* --- 欲界深渊 (Abyssal Desire) 主题 v2.4 (跨平台兼容与渲染修正) --- */
/* --- 1. 全局与主框架样式 (紫、洋红) --- */
body {
    background-color: #120e16; /* 深渊紫黑背景 */
    color: #e0e0e0; /* 默认亮灰色文字 */
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    padding: 20px;
}
/* 通用内容块 (场景、心声) */
.content-block {
    background-color: rgba(25, 15, 35, 0.85); /* 半透明面板背景 */
    border: 1px solid #c71585; /* 洋红色边框 */
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(199, 21, 133, 0.5); /* 洋红色霓虹光晕 */
}
/* 场景信息模块 */
.scene-info {
    color: #e0e0e0;
}
.scene-info strong {
    color: #8a2be2; /* 标题使用魅惑紫色 */
    text-shadow: 0 0 4px rgba(138, 43, 226, 0.7);
}
/* 模块标题 (心声、选项) */
.module-title {
    color: #8a2be2; /* 魅惑紫色 */
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.7);
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.4);
}
/* [最终修复] 小说正文模块 */
.novel-content {
    margin: 25px 0;
    display: block; /* 确保它作为一个块级元素，独立显示，不受内联元素影响 */
    width: 100%; /* 确保它能充分利用父容器的宽度 */
    box-sizing: border-box; /* 让padding和border包含在元素的总宽度内，防止意外溢出 */
    overflow-x: auto; /* 如果内容真的超出，提供水平滚动条，而不是溢出 */
}
/* 针对novel-content内部的pre标签进行样式修正，覆盖其默认样式 */
.novel-content pre {
    font-family: 'Georgia', 'Times New Roman', serif; /* 确保字体一致 */
    font-size: 1.1em; /* 设置字体大小 */
    line-height: 1.7; /* 设置行高 */
    color: #c71585; /* 设置洋红色文字 */
    background-color: transparent; /* 背景设为透明，让外层背景透出 */
    white-space: pre-wrap; /* 强制将内容作为预格式化文本处理，自动换行 */
    word-wrap: break-word; /* 辅助换行，旧版浏览器兼容 */
    overflow-wrap: break-word; /* 现代浏览器推荐的换行属性，确保长单词也能正确断开 */
    margin: 0; /* 移除pre标签的默认外边距 */
    padding: 0; /* 移除pre标签的默认内边距 */
}
/* 心声模块特殊样式 */
.mind-voice strong { color: #8a2be2; }
.mind-voice em { color: #ccc; font-style: normal; } /* 取消斜体 */
.mind-voice .narrator { color: #c71585; font-weight: bold; }
.mind-voice p {
    border: 1px dashed rgba(199, 21, 133, 0.6);
    padding: 8px 12px;
    border-radius: 5px;
    margin: 8px 0;
}
/* --- 可折叠容器 (状态、记忆) --- */
.collapsible-container {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(138, 43, 226, 0.4);
}
.collapsible-container summary {
    background-color: rgba(25, 15, 35, 0.9);
    color: #8a2be2; /* 魅惑紫色标题 */
    font-weight: bold;
    font-size: 1.2em;
    padding: 15px 20px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
}
.collapsible-container summary:hover { background-color: rgba(45, 25, 65, 0.9); }
.collapsible-container summary::-webkit-details-marker { display: none; }
.collapsible-container summary::before {
    content: '▶';
    margin-right: 10px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
    display: inline-block;
}
.collapsible-container[open] > summary::before { transform: rotate(90deg); }
/* 状态栏和记忆区下拉内容 */
.character-status, .memory-log, .status-log {
    background-color: rgba(18, 14, 22, 0.9);
    color: #e0e0e0;
    padding: 25px;
    margin: 0;
    border: none;
    border-top: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 0;
    box-shadow: none;
}
.character-status .char-name { color: #c71585; }
.sexual-status {
    background-color: rgba(199, 21, 133, 0.08);
    border: 1px dashed #c71585;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
}
.sexual-status p { margin-bottom: 5px; }
.divider { border-color: rgba(138, 43, 226, 0.3); }
.memory-log pre, .status-log pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #c0c0c0;
    background: transparent;
    padding: 0;
    font-size: 1em;
}
/* --- 玩家选项 --- */
.options-box {
    margin-top: 30px;
    border-top: 1px solid rgba(138, 43, 226, 0.4);
    padding-top: 25px;
}
.options-title {
    color: #8a2be2;
    font-weight: bold;
    margin-bottom: 15px;
}
.option-item {
    display: block;
    background-color: rgba(138, 43, 226, 0.7); /* 半透明紫色 */
    border: 1px solid #c71585;
    border-radius: 5px;
    padding: 12px 20px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #ffffff; /* 白色字体 */
    font-weight: bold;
    transition: all 0.25s ease-in-out;
    text-align: center;
}
.option-item:hover {
    background-color: rgba(199, 21, 133, 0.8); /* 悬浮时变洋红色 */
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(199, 21, 133, 0.7);
    transform: translateY(-2px);
}
/* --- 全局斜体问题根除 --- */
.collapsible-container *,
.options-box * {
    font-style: normal !important;
}