/* 折叠框基础样式：暗蓝渐变底 + 鲜辣椒红边框 */
/* 兼容所有前端的正文折叠框，去掉了会导致失效的 [q] */
details {
  background: linear-gradient(145deg, #060e1a 0%, #0d1e36 100%);
  border: 1px solid #e62b2b;
  border-radius: 6px;
  padding: 0 12px 12px 12px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.5);
  color: #a8b8d0; /* 配合暗蓝底色的浅冷灰蓝色 */
  font-size: 14px;
  line-height: 1.6;
  font-family: "Microsoft YaHei", sans-serif;
  transition: all 0.3s ease;
}

/* 展开状态的折叠框：高光反馈 */
details[open] {
  border-color: #ff3333;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 0 12px rgba(230, 43, 43, 0.3);
}

/* 标题栏：危险警示红 */
details > summary {
  color: #ff4d4d;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 0 10px 0;
  cursor: pointer;
  border-bottom: 1px dashed #7a1717;
  margin-bottom: 10px;
  list-style: none; /* 隐藏原生三角 */
  display: flex;
  align-items: center;
  text-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
}
details > summary::-webkit-details-marker {
  display: none;
}

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

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

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

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

/* 表格美化：赛博审查终端风格 */
details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
  background: #030811; /* 更深的暗蓝色作为表格底色 */
}
details th, details td {
  border: 1px solid #7a1717;
  padding: 6px 8px;
  text-align: left;
}
details th {
  background: rgba(230, 43, 43, 0.15);
  color: #ff4d4d;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(255, 77, 77, 0.4);
}

/* NPC立绘图片美化（备用） */
details img {
  border: 2px solid #e62b2b;
  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 img:hover {
  transform: scale(1.02);
  border-color: #ff3333;
  box-shadow: 0 0 15px rgba(230, 43, 43, 0.5);
}