/* ============================================================
   ✦ 灵异推演面板 · 幽夜月华美化样式 (中元节·微甜轻灵异)
   ============================================================ */

/* ── 顶级主面板容器 ── */
details {
  background: linear-gradient(150deg, rgba(24, 20, 38, 0.92) 0%, rgba(15, 20, 32, 0.95) 100%);
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 10px 0;
  box-shadow: 0 8px 24px -4px rgba(10, 8, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.6;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* ── 顶级主折叠标题 ── */
details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 10px;
  margin: -2px -4px 6px -4px;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.18), rgba(103, 232, 249, 0.08), transparent);
  border-left: 3px solid #c084fc;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  cursor: pointer;
  user-select: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

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

details > summary:hover {
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.28), rgba(103, 232, 249, 0.15), transparent);
  border-left-color: #67e8f9;
}

/* ── 嵌套子级折叠面板（人物状态/异象/记忆/建议） ── */
details details {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2.5px solid rgba(147, 197, 253, 0.4);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px 0;
  box-shadow: none;
}

details details[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(192, 132, 252, 0.18);
  border-left-color: #c084fc;
}

/* 贞子专属区块着色联动（匹配带有🖤或玩偶的模块） */
details details:nth-of-type(2) {
  border-left-color: rgba(244, 114, 182, 0.5);
}
details details:nth-of-type(2)[open] {
  border-left-color: #f472b6;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.05), transparent);
}

/* ── 子级折叠标题 ── */
details details > summary {
  font-size: 13px;
  font-weight: 500;
  padding: 3px 6px;
  margin: 0 0 4px 0;
  background: transparent;
  border-left: none;
  border-radius: 4px;
  color: #cbd5e1;
}

details details > summary:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

/* ── 记忆区等三级超深层折叠 ── */
details details details {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-left: 2px solid rgba(103, 232, 249, 0.4);
  margin: 4px 0;
  padding: 4px 8px;
}

details details details[open] {
  border-left-color: #67e8f9;
}

details details details > summary {
  font-size: 12px;
  color: #94a3b8;
}

/* ── 段落与文字细节 ── */
details p {
  margin: 3px 0;
  padding: 2px 0;
  color: #cbd5e1;
  word-break: break-word;
}

/* 强调文字（字段名/数值） */
details b {
  color: #e0e7ff;
  font-weight: 600;
}

/* 说明小字（理智判定、阶段说明等） */
details i {
  display: inline;
  font-style: normal;
  font-size: 11.5px;
  color: #94a3b8;
  opacity: 0.85;
}

/* ── 分割线 ── */
details hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.35), rgba(103, 232, 249, 0.35), transparent);
  margin: 8px 0 6px 0;
}

/* ── 列表/行动建议/状态微动交互 ── */
details p:hover {
  color: #f8fafc;
  transition: color 0.2s ease;
}