/* --- 全局基调与色彩定义 --- */
/*
  背景色: #0c0d14 (深邃藏青)
  区块背景色: #1a1c2c (暗夜蓝灰)
  面板背景色: #25273a (深空蓝紫)
  主文字色: #dcdde8 (月灰白)
  点缀/边框色: #8a9fff (冰晶蓝)
  高亮/内心独白: #c792ea (淡雅紫)
  危险/警告色: #ff5370 (珊瑚红)
*/

/* --- 顶部核心状态栏 --- */
.status-bar {
  background-color: rgba(26, 28, 44, 0.8);
  border-bottom: 1px solid #8a9fff;
  padding: 8px 15px;
  font-family: sans-serif;
  font-size: 0.9em;
  color: #dcdde8;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  backdrop-filter: blur(3px); /* 毛玻璃效果，增加层次感 */
}
.status-bar strong {
  color: #8a9fff;
  font-weight: 600;
}

/* --- 核心叙事正文 --- */
.main-text {
  font-family: "Georgia", "KaiTi", "楷体", serif;
  font-size: 1.1em;
  line-height: 1.8;
  color: #dcdde8;
  padding: 0 10px;
  text-align: justify;
}
.main-text p {
  margin-bottom: 1.2em;
}
/* 对话/行动高亮 */
.char-speaker {
  color: #82aaff; /* 比普通文字更亮的蓝色 */
  font-weight: bold;
}

/* --- 人格化彩色弹幕系统 --- */
.danmaku-container {
  margin: 25px 0;
  padding: 15px;
  background-color: rgba(26, 28, 44, 0.6);
  border-left: 3px solid #8a9fff;
  border-radius: 0 8px 8px 0;
}
.danmaku-c1, .danmaku-c2, .danmaku-c3, .danmaku-c4, .danmaku-c5 {
  font-weight: bold;
  text-shadow: 0 0 8px currentColor; /* 核心：用当前颜色给自己加辉光 */
  margin: 5px 10px;
  padding: 2px 6px;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: default;
}
.danmaku-c1:hover, .danmaku-c2:hover, .danmaku-c3:hover, .danmaku-c4:hover, .danmaku-c5:hover {
  transform: scale(1.05) translateY(-2px);
  text-shadow: 0 0 12px currentColor, 0 0 16px currentColor;
}
/* 弹幕颜色 */
.danmaku-c1 { color: #82aaff; } /* 柔和蓝 */
.danmaku-c2 { color: #c3e88d; } /* 嫩绿 */
.danmaku-c3 { color: #ffcb6b; } /* 暖阳黄 */
.danmaku-c4 { color: #f07178; } /* 淡绯红 */
.danmaku-c5 { color: #c792ea; } /* 丁香紫 */

/* --- 可折叠信息模块 (状态/记忆/行动) --- */
.status-panel, .memory-module, .action-guide {
  border: 1px solid #33364d;
  border-radius: 8px;
  margin: 20px 0;
  overflow: hidden;
  background-color: #1a1c2c;
  transition: all 0.3s ease-in-out;
}
.status-panel:hover, .memory-module:hover, .action-guide:hover {
  border-color: #8a9fff;
  box-shadow: 0 0 15px rgba(138, 159, 255, 0.2);
}
details > summary {
  padding: 12px 20px 12px 45px;
  font-weight: bold;
  background-color: #25273a;
  color: #dcdde8;
  cursor: pointer;
  list-style: none; /* 隐藏默认三角 */
  position: relative;
  transition: background-color 0.3s ease;
}
details > summary::-webkit-details-marker { display: none; } /* 兼容性 */
details > summary:hover {
  background-color: #33364d;
}
/* 自定义折叠图标 */
details > summary::before {
  content: '▶';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 0.9em;
  color: #8a9fff;
  transition: transform 0.3s ease;
}
details[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}
.status-content, .memory-content {
  padding: 15px 20px;
  border-top: 1px solid #33364d;
  font-size: 0.95em;
  color: #b0b2c3;
}

/* --- 角色状态面板内部样式 --- */
.char-status { padding: 10px; }
.char-status p { margin: 10px 0; }
.char-status strong { color: #8a9fff; }
.char-appearance { color: #89ddff; font-style: italic; }
.char-soul { color: #ff9cac; font-style: italic; }
.char-thoughts {
  font-style: italic;
  color: #c792ea; /* 紫色代表内心/灵魂 */
  padding-left: 15px;
  border-left: 3px solid #c792ea;
  margin-top: 10px;
  background: rgba(199, 146, 234, 0.05);
}
/* 性器状态面板 */
.sex-status-content { padding: 0 15px; }
.sex-status-content hr { border: none; border-top: 1px dashed #4a4e69; margin: 15px 0; }
.sex-status-content ul { list-style: none; padding-left: 10px; }
.sex-status-content b { color: #dcdde8; }

/* --- 记忆模块 --- */
.memory-core {
  background: rgba(138, 159, 255, 0.1);
  border: 1px solid #8a9fff;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 15px;
}
.memory-content p {
  border-left: 2px solid #4a4e69;
  padding-left: 10px;
  margin-bottom: 10px;
}

/* --- 行动指南样式 --- */
.action-guide ol {
  list-style: none;
  padding: 15px 20px;
  margin: 0;
}
.action-guide li {
  margin-bottom: 12px;
  padding: 12px 18px;
  background-color: #25273a;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.action-guide li:hover {
  background-color: #33364d;
  border-left-color: #8a9fff;
  transform: translateX(5px);
}