/* 整体外层容器 */
.wrap {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  background: #120e1a;
  color: #d8cde8;
  border-radius: 8px;
  padding: 10px;
  line-height: 1.6;
  box-shadow: 0 4px 18px rgba(0,0,0,0.7);
}

/* 顶部场景栏 */
.scene-head {
  display: block;
  background: linear-gradient(90deg, #35244b, #221a33);
  color: #ff9ebb;
  padding: 10px 14px;
  font-weight: bold;
  font-size: 14px;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid #483263;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

/* 通用折叠面板 */
details {
  background: #1c1429;
  border: 1px solid #483263;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}
details[open] {
  box-shadow: 0 2px 14px rgba(255, 118, 170, 0.1);
  border-color: #604280;
}

/* 折叠面板标题 */
summary {
  background: linear-gradient(90deg, #35244b, #221a33);
  color: #ff9ebb;
  padding: 9px 14px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-bottom: 1px solid transparent;
}
details[open] summary {
  border-bottom: 1px solid #483263;
  color: #ffc2d6;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: '✦';
  margin-right: 6px;
  color: #c7a4ff;
  transition: transform 0.3s;
  display: inline-block;
}
details[open] summary::before {
  transform: rotate(90deg);
}

/* 面板内容：单行布局，每个信息项独占一行 */
details > div,
details > p {
  padding: 10px 16px;
  font-size: 14px;
  color: #f0e6fa;
  margin: 0;
}
details p {
  display: block;
  margin: 4px 0;
  white-space: normal;
}

/* 人物档案卡片 */
.user-block {
  border-left: 3px solid #ff7a9c;
  background: linear-gradient(90deg, #281d3a, #1c1429);
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}

/* 标签文字样式 */
.data-label {
  color: #c7a4ff;
  font-weight: 600;
  margin-right: 6px;
}

/* 内心独白专属样式 */
.inner-talk {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255, 122, 156, 0.08);
  border-radius: 4px;
  border-left: 2px dashed #ff7a9c;
  color: #ffb8cc;
  font-style: italic;
  font-size: 13px;
}

/* 危机面板特殊样式 */
details:nth-of-type(3) {
  border-color: rgba(255, 80, 80, 0.5);
}
details:nth-of-type(3) summary {
  color: #ff5555;
}
details:nth-of-type(3) summary::before {
  color: #ff5555;
}

/* 记忆区表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}
th, td {
  border: 1px solid #483263;
  padding: 8px 10px;
  text-align: left;
}
th {
  background: #35244b;
  color: #ff9ebb;
}
td {
  background: #1a1226;
  color: #d8cde8;
  line-height: 1.7;
}
