/* —— 推理泄漏兜底屏蔽·置顶 —— */
thinking, think, reasoning, internal-thought {
  display: none !important;
}

/* ═══════════════ 神话大陆·大理石金箔主题 ═══════════════ */

/* —— 主容器 —— */
.scroll-body {
  background: linear-gradient(135deg, #1a1428 0%, #2d1f3d 50%, #1a1428 100%);
  color: #e8dcc4;
  padding: 20px 24px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 8px;
  box-shadow: inset 0 0 40px rgba(201, 169, 97, 0.08), 0 4px 20px rgba(0, 0, 0, 0.5);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  line-height: 1.9;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.scroll-body::before, .scroll-body::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a961 20%, #f4e4a8 50%, #c9a961 80%, transparent);
  animation: goldFlow 8s linear infinite;
}
.scroll-body::before { top: 0; }
.scroll-body::after { bottom: 0; animation-direction: reverse; }

@keyframes goldFlow {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.scroll-body p {
  margin: 0 0 1em 0;
  text-indent: 2em;
  text-shadow: 0 0 8px rgba(201, 169, 97, 0.2);
}

.scroll-body p:first-letter {
  color: #f4e4a8;
  font-size: 1.15em;
  text-shadow: 0 0 12px rgba(244, 228, 168, 0.5);
}

/* —— details 折叠容器 —— */
details {
  background: linear-gradient(145deg, rgba(30, 22, 44, 0.85), rgba(45, 31, 61, 0.75));
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 6px;
  margin: 10px 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(244, 228, 168, 0.1);
  transition: all 0.3s ease;
}

details:hover {
  border-color: rgba(244, 228, 168, 0.6);
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.25);
}

details[open] {
  background: linear-gradient(145deg, rgba(35, 25, 50, 0.9), rgba(50, 35, 70, 0.8));
}

/* —— summary 标题 —— */
summary {
  padding: 10px 16px;
  cursor: pointer;
  font-weight: bold;
  color: #f4e4a8;
  background: linear-gradient(90deg, rgba(201, 169, 97, 0.15) 0%, rgba(244, 228, 168, 0.08) 50%, rgba(201, 169, 97, 0.15) 100%);
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  list-style: none;
  position: relative;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(244, 228, 168, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 1.02em;
  user-select: none;
  transition: all 0.25s ease;
}

summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }

summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: #c9a961;
  transition: transform 0.3s ease;
  font-size: 0.9em;
}

details[open] > summary::before {
  transform: rotate(90deg);
  color: #f4e4a8;
}

summary:hover {
  background: linear-gradient(90deg, rgba(244, 228, 168, 0.25) 0%, rgba(201, 169, 97, 0.15) 50%, rgba(244, 228, 168, 0.25) 100%);
  color: #ffeeb8;
  text-shadow: 0 0 14px rgba(255, 238, 184, 0.7);
}

summary::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f4e4a8, transparent);
  transition: width 0.4s ease;
}

summary:hover::after {
  width: 100%;
}

/* —— details 内部 —— */
details > *:not(summary) {
  padding: 12px 16px;
  animation: contentFadeIn 0.4s ease;
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— 嵌套 details —— */
details details {
  background: rgba(20, 15, 30, 0.6);
  border: 1px solid rgba(201, 169, 97, 0.2);
  margin: 8px 0;
}

details details > summary {
  background: linear-gradient(90deg, rgba(70, 45, 90, 0.4), rgba(45, 31, 61, 0.3));
  font-size: 0.98em;
  padding: 8px 14px;
}

/* —— 表格 —— */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0;
  background: rgba(15, 10, 25, 0.5);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.25);
  font-size: 0.94em;
}

table th, table td {
  padding: 8px 12px;
  border: 1px solid rgba(201, 169, 97, 0.2);
  text-align: left;
  vertical-align: middle;
  line-height: 1.6;
}

table th {
  background: linear-gradient(135deg, rgba(70, 45, 100, 0.5), rgba(45, 31, 61, 0.4));
  color: #f4e4a8;
  font-weight: bold;
  font-family: "STKaiti", "KaiTi", serif;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(244, 228, 168, 0.3);
  white-space: nowrap;
  min-width: 60px;
}

table td {
  color: #e8dcc4;
  background: rgba(25, 18, 38, 0.4);
}

table tr:hover td {
  background: rgba(70, 45, 100, 0.2);
  color: #ffeeb8;
  transition: all 0.2s ease;
}

table td b {
  color: #f4e4a8;
  text-shadow: 0 0 10px rgba(244, 228, 168, 0.6);
  font-size: 1.08em;
}

/* —— 列表 —— */
ol, ul {
  padding-left: 1.6em;
  margin: 8px 0;
}

ol li, ul li {
  margin: 6px 0;
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(70, 45, 100, 0.15), rgba(45, 31, 61, 0.08));
  border-left: 2px solid #c9a961;
  border-radius: 0 4px 4px 0;
  color: #e8dcc4;
  transition: all 0.25s ease;
}

ol li::marker {
  color: #f4e4a8;
  font-weight: bold;
}

ol li:hover, ul li:hover {
  background: linear-gradient(90deg, rgba(244, 228, 168, 0.2), rgba(201, 169, 97, 0.1));
  border-left-color: #f4e4a8;
  transform: translateX(4px);
  color: #ffeeb8;
  box-shadow: 0 2px 8px rgba(201, 169, 97, 0.2);
}

/* —— 思维链特化 —— */
details:first-of-type {
  background: linear-gradient(145deg, rgba(20, 15, 30, 0.9), rgba(35, 25, 50, 0.85));
  border-left: 3px solid #8b6cbf;
  border-right: 3px solid #8b6cbf;
}

/* —— 滚动条 —— */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 10, 25, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a961, #8b6cbf);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f4e4a8, #a683d4);
}

/* —— 分割线 —— */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a961 20%, #f4e4a8 50%, #c9a961 80%, transparent);
  margin: 16px 0;
  opacity: 0.6;
}

/* —— code / 强调 / 链接 —— */
code {
  background: rgba(15, 10, 25, 0.7);
  color: #f4e4a8;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

strong, b {
  color: #f4e4a8;
  text-shadow: 0 0 8px rgba(244, 228, 168, 0.4);
}

em, i {
  color: #d4b5f4;
  font-style: italic;
}

a {
  color: #a683d4;
  text-decoration: none;
  border-bottom: 1px dashed rgba(166, 131, 212, 0.5);
  transition: all 0.2s ease;
}

a:hover {
  color: #f4e4a8;
  border-bottom-color: #f4e4a8;
  text-shadow: 0 0 8px rgba(244, 228, 168, 0.6);
}

/* —— 移动端 —— */
@media (max-width: 768px) {
  .scroll-body {
    padding: 14px 12px;
    font-size: 0.96em;
    line-height: 1.75;
  }
  summary {
    padding: 9px 12px;
    font-size: 0.98em;
    letter-spacing: 0.06em;
  }
  table th, table td {
    padding: 6px 8px;
    font-size: 0.88em;
  }
  table th { min-width: 50px; }
  details > *:not(summary) { padding: 10px 12px; }
  ol li, ul li { padding: 5px 8px; margin: 5px 0; }
  .scroll-body p { text-indent: 1.8em; }
}

@media (max-width: 480px) {
  .scroll-body { padding: 12px 8px; }
  table { font-size: 0.86em; }
  table th, table td { padding: 5px 6px; }
  summary { font-size: 0.94em; padding: 8px 10px; }
}