/* ===== 外部容器 scene ===== */
scene {
  display: block;
  position: relative;
  margin: 10px 0;
  padding: 22px 16px 16px;
  background: linear-gradient(160deg, #f2f0ed 0%, #e8e4df 35%, #ddd8d2 100%);
  border: 1px solid #b8b0a5;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1a1714;
  line-height: 1.8;
  overflow: hidden;
}

scene::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c43a31, #d45a3a, #e07a2f, #d45a3a, #c43a31);
}

scene::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8a8078, transparent);
}

/* ===== 场景定位栏 loc ===== */
loc {
  display: block;
  margin: 0 0 14px;
  padding: 7px 12px;
  background: #2c2825;
  border-left: 3px solid #c43a31;
  border-radius: 0 3px 3px 0;
  font-size: 0.84em;
  color: #bfb8ae;
  letter-spacing: 0.8px;
}

/* ===== 思维链隐藏 ===== */
think {
  display: none;
}

/* ===== 正文区域 text ===== */
text {
  display: block;
  margin: 0 0 14px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  border-left: 2px solid #9a9185;
  font-size: 1em;
  line-height: 1.9;
  color: #1a1714;
}

text p {
  margin: 0 0 10px;
  text-indent: 2em;
}

text p:last-child {
  margin-bottom: 0;
}

/* ===== 玩家台词 mc ===== */
mc {
  color: #1a5fb4;
  font-weight: 600;
}

/* ===== NPC台词 npc ===== */
npc {
  color: #c43a31;
  font-weight: 600;
}

/* ===== 状态面板 & 附近地点 & 记忆区 (details/summary) ===== */
scene details {
  margin: 8px 0;
  border: 1px solid #a89e92;
  border-radius: 3px;
  overflow: hidden;
  background: #eae6e1;
}

scene details summary {
  padding: 9px 14px 9px 30px;
  font-weight: bold;
  font-size: 0.93em;
  color: #2c2825;
  cursor: pointer;
  background: linear-gradient(180deg, #dfd9d1 0%, #d4cdc4 100%);
  border-bottom: 1px solid #a89e92;
  transition: background 0.15s ease;
  list-style: none;
  position: relative;
}

scene details summary::-webkit-details-marker {
  display: none;
}

scene details summary::before {
  content: "▪";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  color: #c43a31;
  transition: transform 0.2s ease;
}

scene details[open] summary::before {
  content: "▾";
}

scene details summary:hover {
  background: linear-gradient(180deg, #d6cfc6 0%, #cbc3b9 100%);
}

scene details .panel-content {
  padding: 10px 14px;
}

scene details .panel-content p {
  margin: 3px 0;
  font-size: 0.87em;
  color: #302b26;
  line-height: 1.7;
}

scene details .panel-content b {
  color: #1a1714;
}

/* ===== 分隔线 ===== */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, #8a8078 50%, transparent 95%);
  margin: 10px 0;
}

/* ===== 行动建议 suggested_questions ===== */
suggested_questions {
  display: block;
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #e4dfd9;
  border: 1px solid #a89e92;
  border-radius: 3px;
}

suggested_questions::before {
  content: "💡 下一步你可以……";
  display: block;
  font-weight: bold;
  font-size: 0.88em;
  color: #5a524a;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #a89e92;
}

suggested_questions p {
  margin: 5px 0;
  padding: 7px 10px;
  font-size: 0.87em;
  color: #2c2825;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  border: 1px solid rgba(168, 158, 146, 0.5);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
  line-height: 1.6;
}

suggested_questions p:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: #c43a31;
  box-shadow: inset 2px 0 0 #c43a31;
}