/* ============================================
   🎭 心声剧场 · 清晰实色版 (零模糊)
   ============================================ */

/* 基础重置：强制去模糊，去阴影 */
body {
  margin: 0;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  background: transparent !important;
  color: #e2e2f0;
}

/* 强制全局清除所有模糊源 */
body, body * {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
}

/* ---- 折叠卡片 (100%不透明实色) ---- */
details {
  position: relative;
  margin-bottom: 14px;
  background: #1a1a2e;          /* 完全不透明深紫蓝 */
  border: 1px solid #2e2e48;    /* 清晰实线边框 */
  border-radius: 12px;
  overflow: hidden;
  color: #e2e2f0;
  transition: border-color 0.3s ease;
}

/* 悬停时边框变色，代替发光 */
details:hover {
  border-color: #4ecdc4;
}

details:nth-of-type(2):hover { border-color: #ff6b8a; }
details:nth-of-type(3):hover { border-color: #d4af37; }
details:nth-of-type(4):hover { border-color: #a78bfa; }
details:nth-of-type(5):hover { border-color: #34d399; }

/* 左侧彩色实条 */
details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #4ecdc4;
}

details:nth-of-type(2)::before { background: #ff6b8a; }
details:nth-of-type(3)::before { background: #d4af37; }
details:nth-of-type(4)::before { background: #a78bfa; }
details:nth-of-type(5)::before { background: #34d399; }
details:nth-of-type(6)::before { background: #4ecdc4; }

/* ---- Summary 标题栏 ---- */
summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: #22223a;          /* 实色背景 */
  border-bottom: 1px solid #2e2e48;
  transition: background 0.2s ease;
}

summary:hover {
  background: #2a2a45;          /* 实色悬停，无半透明 */
}

/* 去掉所有伪元素特效（防止扫光残留） */
summary::after {
  display: none !important;
}

/* 自定义箭头 */
summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  font-size: 14px;
  display: inline-block;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

details:not([open]):hover summary::before {
  transform: scale(1.2);
}

details[open] summary::before {
  transform: rotate(90deg);
}

details[open] summary {
  background: #2a2a45;
  border-bottom-color: #3a3a55;
}

details:nth-of-type(2) summary::before { color: #ff6b8a; }
details:nth-of-type(3) summary::before { color: #d4af37; }
details:nth-of-type(4) summary::before { color: #a78bfa; }
details:nth-of-type(5) summary::before { color: #34d399; }

/* ---- 内容区 ---- */
details > *:not(summary) {
  padding: 0 20px;
  color: #d0d0e0;
}

details > *:last-child {
  padding-bottom: 20px;
}

details p, details li {
  color: #d0d0e0;
  margin: 8px 0;
}

details strong {
  color: #d4af37;
  font-weight: 600;
}

details em, details i {
  color: #4ecdc4;
  font-style: italic;
}

/* ---- 列表 ---- */
details ul {
  margin: 10px 0;
  padding-left: 20px;
  list-style: none;
}

details ul li {
  position: relative;
  padding-left: 16px;
  margin: 6px 0;
}

details ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #a78bfa;
  font-size: 8px;
  top: 2px;
}

/* ---- 分割线 ---- */
details hr {
  border: none;
  height: 1px;
  background: #2e2e48;
  margin: 20px 0;
  position: relative;
}

/* ---- 表格 ---- */
details table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
  color: #d0d0e0;
}

details th, details td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #2e2e48;
}

details th {
  background: #252538;
  color: #4ecdc4;
  font-weight: 600;
  font-size: 13px;
}

details tr:nth-child(even) td {
  background: #1f1f35;
}

details tr:hover td {
  background: #252540;
}

/* ---- 代码块 ---- */
details pre {
  background: #131325;
  border: 1px solid #2e2e48;
  border-left: 3px solid #34d399;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 10px 0;
  overflow-x: auto;
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e0e0e0;
}

details code {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  background: #2a2a45;
  padding: 2px 6px;
  border-radius: 4px;
  color: #4ecdc4;
  font-size: 0.92em;
}

details pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ---- 标题 ---- */
details h2, details h3, details h4 {
  margin: 16px 0 10px 0;
  font-weight: 600;
  color: #d4af37;
  border-bottom: 1px solid #2e2e48;
  padding-bottom: 6px;
}

details h2 { font-size: 18px; }
details h3 { font-size: 16px; color: #4ecdc4; }
details h4 { font-size: 14px; color: #a78bfa; border-bottom: none; }

/* ---- 滚动条 ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #3a3a55;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4ecdc4;
}

/* ---- 选中高亮 ---- */
::selection {
  background: #4ecdc4;
  color: #0f0f1a;
}