/* 折叠框基础样式：深渊黑底 + 黯金边框 */
details[q] {
  background: linear-gradient(145deg, #0a0a0a 0%, #141414 100%);
  border: 1px solid #8c7335;
  border-radius: 6px;
  padding: 0 12px 12px 12px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.5);
  color: #d4c5a9; 
  font-size: 14px;
  line-height: 1.6;
  font-family: "Microsoft YaHei", sans-serif;
  transition: all 0.3s ease;
}

/* 展开状态的折叠框：高光反馈 */
details[q][open] {
  border-color: #cca53f;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 12px rgba(204, 165, 63, 0.2);
}

/* 标题栏：璀璨金 */
details[q] summary {
  color: #ffd700;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 0 10px 0;
  cursor: pointer;
  border-bottom: 1px dashed #55441a;
  margin-bottom: 10px;
  list-style: none; /* 隐藏原生三角 */
  display: flex;
  align-items: center;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}
details[q] summary::-webkit-details-marker {
  display: none;
}

/* 自定义展开箭头：金色四角星 */
details[q] summary::before {
  content: "✦";
  margin-right: 8px;
  color: #cca53f;
  font-size: 16px;
  transition: transform 0.3s ease, color 0.3s;
}
details[q][open] summary::before {
  transform: rotate(90deg);
  color: #ffd700;
  text-shadow: 0 0 8px #ffd700;
}

/* Markdown 生成元素的美化接管 */
/* 粗体字：亮金强调 */
details[q] strong {
  color: #e6c875;
  font-weight: bold;
}

/* 列表符号美化 */
details[q] ul {
  padding-left: 20px;
  margin: 5px 0;
}
details[q] li::marker {
  color: #cca53f;
  content: "» ";
}

/* 分割线美化：渐变金线 */
details[q] hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cca53f, transparent);
  margin: 15px 0;
  opacity: 0.6;
}

/* 表格美化：废土数据终端风格 */
details[q] table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
  background: #000;
}
details[q] th, details[q] td {
  border: 1px solid #55441a;
  padding: 6px 8px;
  text-align: left;
}
details[q] th {
  background: rgba(204, 165, 63, 0.15);
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(255,215,0,0.5);
}

/* NPC立绘图片美化 */
details[q] img {
  border: 2px solid #8c7335;
  border-radius: 4px;
  max-width: 180px;
  display: block;
  margin: 5px 0 10px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.8);
  transition: transform 0.3s, border-color 0.3s;
}
details[q] img:hover {
  transform: scale(1.02);
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(204,165,63,0.4);
}