/* --------------------------------------------------
   《万界主宰》超维折叠面板 & UI 专属全局样式库
   -------------------------------------------------- */

/* 面板外壳容器 */
.void-panel {
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  background: linear-gradient(145deg, #0f0f15, #14131d);
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

/* 折叠标题头 Base */
.void-summary {
  padding: 8px 12px;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s ease;
}

.void-summary:hover {
  background: rgba(252, 220, 107, 0.08);
}

/* 各类型标题头专属颜色 */
.summary-core { background: rgba(212, 175, 55, 0.1); color: #f3e5ab; border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
.summary-actor { background: rgba(100, 255, 218, 0.08); color: #80ebd3; border-bottom: 1px solid rgba(100, 255, 218, 0.2); }
.summary-npc { background: rgba(255, 154, 158, 0.08); color: #ffb3b5; border-bottom: 1px solid rgba(255, 154, 158, 0.2); }
.summary-news { background: rgba(168, 255, 120, 0.08); color: #c4ff9e; border-bottom: 1px solid rgba(168, 255, 120, 0.2); }
.summary-memory { background: rgba(186, 104, 200, 0.08); color: #e1bee7; border-bottom: 1px solid rgba(186, 104, 200, 0.2); }

/* 面板主体内容区 */
.void-body {
  padding: 10px 12px;
  font-size: 0.85em;
  color: #c8c5d0;
  line-height: 1.5;
}

/* 高亮行与提示文案 */
.void-row-highlight {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.gold-text { color: #ffd700; font-weight: bold; }
.badge-lock { font-size: 0.8em; background: rgba(255, 215, 0, 0.2); color: #fff8dc; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255, 215, 0, 0.4); }

/* 进度条组件 */
.void-progress-box { margin-top: 6px; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.82em; margin-bottom: 3px; }
.progress-track { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #d4af37, #ffd700); border-radius: 3px; transition: width 0.4s ease; }

/* 主角属性网格 */
.attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 6px;
  margin: 8px 0;
}
.attr-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 6px;
  text-align: center;
}
.attr-label { font-size: 0.78em; color: #a090b0; }
.attr-val { font-size: 0.95em; font-weight: bold; color: #ffffff; }

/* 锁定/强化高亮样式 */
.attr-card.locked {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
}
.attr-card.locked .attr-val { color: #ffd700; }

/* 资产及背包 */
.asset-box { margin-top: 8px; font-size: 0.85em; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 6px; }
.inventory-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag-item { background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 3px; font-size: 0.8em; color: #d0d0d0; }

/* NPC 监控卡片 */
.npc-card { background: rgba(0, 0, 0, 0.2); border-left: 3px solid #ff9a9e; padding: 6px 8px; border-radius: 0 4px 4px 0; margin-bottom: 6px; }
.npc-header { display: flex; justify-content: space-between; font-weight: bold; color: #f5f5f5; font-size: 0.9em; }
.npc-mind { margin-top: 4px; font-size: 0.85em; color: #d8c8b8; background: rgba(0, 0, 0, 0.25); padding: 4px 6px; border-radius: 3px; }

/* 子级折叠面板 */
.sub-panel { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; margin-top: 6px; background: rgba(0, 0, 0, 0.15); }
.sub-summary { padding: 4px 8px; font-size: 0.82em; cursor: pointer; color: #b8b0c8; font-weight: bold; }
.memory-text { padding: 6px 8px; font-size: 0.82em; color: #bbb; }
.memory-history { padding: 6px 8px; font-size: 0.82em; color: #d4af37; line-height: 1.6; }
