/* --- 全局基调与色彩定义 --- */
/*
  背景色: #1e1e1e (一种非常深的炭灰色)
  主文字色: #d4d4d4 (柔和的灰白色，不刺眼)
  边框/点缀色: #a68e65 (一种沉稳的暗金色)
  区块背景色: #252526 (比主背景稍亮的灰色，用于区分)
  危险/警告色: #c84949 (暗红色，用于业力等)
*/

/* --- 顶部核心状态栏 --- */
.status-bar {
  background-color: #252526;
  border-bottom: 2px solid #a68e65;
  padding: 8px 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: #d4d4d4;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.status-bar strong {
  color: #a68e65;
  font-weight: 600;
}

/* --- 核心叙事正文 --- */
.main-text {
  font-family: Georgia, "Times New Roman", "KaiTi", "楷体", serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d4d4d4;
  padding: 0 10px;
  text-align: justify;
}

.main-text p {
    margin-bottom: 1em; /* 段落间距 */
}

/* --- 人格化彩色弹幕系统 --- */
.danmaku-container {
  margin-top: 25px;
  padding: 15px;
  background-color: rgba(37, 37, 38, 0.5); /* 半透明背景 */
  border-left: 4px solid #a68e65;
  border-radius: 0 8px 8px 0;
}

.danmaku-c1, .danmaku-c2, .danmaku-c3, .danmaku-c4, .danmaku-c5 {
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  margin: 5px 10px;
  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); /* 悬停时轻微放大 */
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8); /* 辉光增强 */
}

/* 弹幕颜色 */
.danmaku-c1 { color: #87CEFA; } /* 天蓝 */
.danmaku-c2 { color: #98FB98; } /* 柔绿 */
.danmaku-c3 { color: #FFD700; } /* 金色 */
.danmaku-c4 { color: #FFB6C1; } /* 浅粉 */
.danmaku-c5 { color: #DDA0DD; } /* 紫罗兰 */


/* --- 可折叠信息模块 (记忆/状态/行动) --- */
.memory-module, .status-panel, .action-guide {
  border: 1px solid #444;
  border-radius: 8px;
  margin: 20px 0;
  overflow: hidden; /* 保证圆角效果 */
  background-color: #252526;
  transition: all 0.3s ease;
}

.memory-module:hover, .status-panel:hover, .action-guide:hover {
    border-color: #a68e65;
}

details > summary {
  padding: 12px 20px;
  font-weight: bold;
  background-color: #333;
  color: #d4d4d4;
  cursor: pointer;
  list-style: none; /* 隐藏默认三角 */
  position: relative;
  transition: background-color 0.3s ease;
}

details > summary:hover {
  background-color: #444;
}

/* 自定义折叠图标 */
details > summary::before {
  content: '▶';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 0.8em;
  color: #a68e65;
  transition: transform 0.3s ease;
}

details[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.memory-content, .status-content {
  padding: 15px;
  border-top: 1px solid #444;
  font-size: 0.95rem;
  color: #ccc;
}

/* --- 角色状态面板内部样式 --- */
.char-status {
  background-color: rgba(0,0,0,0.2);
  border: 1px solid #555;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}

.char-status strong {
  color: #a68e65;
}

.char-status hr {
  border: none;
  border-top: 1px dashed #555;
  margin: 15px 0;
}

/* 内心独白特殊样式 */
.char-status .inner-thoughts { /* 假设内心独白被这个class包裹 */
  font-style: italic;
  color: #999;
  padding-left: 15px;
  border-left: 3px solid #c84949;
  margin-top: 10px;
}


/* --- 行动指南样式 --- */
.action-guide ol {
  list-style: none;
  padding: 15px 20px;
  margin: 0;
  counter-reset: action-counter;
}

.action-guide li {
  counter-increment: action-counter;
  margin-bottom: 12px;
  padding: 10px 15px;
  background-color: #333;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  padding-left: 45px;
}

.action-guide li::before {
  content: counter(action-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 100%;
  background-color: #a68e65;
  color: #1e1e1e;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 0 0 4px;
}

.action-guide li:hover {
  background-color: #444;
  transform: translateX(5px);
}

.action-guide li b {
  color: #a68e65;
}