/* ===== 思维链隐藏 ===== */
think {
  display: none;
}

/* ===== 顶部场景状态栏 ===== */
scene {
  display: block;
  margin: 0 0 24px 0;
}

scene header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  border-top: 1px solid #5d6d7e;
  border-bottom: 1px solid #5d6d7e;
  position: relative;
  overflow: hidden;
}

scene header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(93, 109, 126, 0.15), transparent);
  animation: shimmer 8s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

scene header span {
  font-size: 12px;
  color: #7f8c8d;
  letter-spacing: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
}

scene header span.mood {
  color: #8e6f6f;
  font-style: italic;
  letter-spacing: 1px;
}

/* ===== 正文区域 ===== */
text {
  display: block;
  margin: 0 0 28px 0;
  padding: 16px 12px;
  line-height: 2;
  font-size: 15px;
  color: #4a5568;
  background: #ecf0f1;
  border-radius: 6px;
  border-left: 3px solid #5d6d7e;
  font-family: Georgia, 'Songti SC', 'SimSun', serif;
}

text p {
  margin: 0 0 16px 0;
  text-indent: 2em;
  text-align: justify;
}

text p:last-child {
  margin-bottom: 0;
}

/* 纪景桓心理活动斜体 */
text em,
text i {
  color: #5d6d7e;
  font-style: italic;
  border-left: 2px solid #5d6d7e;
  padding-left: 8px;
  display: inline;
}

/* ===== 折叠状态栏 ===== */
details {
  margin: 12px 0;
  background: linear-gradient(180deg, #dce4e8 0%, #d5dfe3 100%);
  border: 1px solid #b0bec5;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

details[open] {
  border-color: #5d6d7e;
  box-shadow: 0 0 12px rgba(93, 109, 126, 0.12);
}

details summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #2c3e50;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #cfd8dc 0%, #b0bec5 100%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "";
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #5d6d7e;
  border-bottom: 1.5px solid #5d6d7e;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] summary {
  border-bottom: 1px solid #b0bec5;
  background: linear-gradient(90deg, #b0bec5 0%, #cfd8dc 100%);
}

details summary:hover {
  color: #1a252f;
  background: linear-gradient(90deg, #b0bec5 0%, #90a4ae 100%);
}

details p {
  margin: 0;
  padding: 6px 16px;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.8;
  border-bottom: 1px solid #cfd8dc;
}

details p:last-child {
  border-bottom: none;
  padding-bottom: 12px;
}

details p b {
  color: #2c3e50;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ===== 各状态栏专属点缀 ===== */

/* 玩家档案 - 暖灰紫调 */
details:nth-of-type(1) summary {
  border-left: 3px solid #8b7a8a;
}

details:nth-of-type(1) summary:hover {
  border-left-color: #6f5f6e;
}

/* 纪景桓状态 - 深青蓝调 */
details:nth-of-type(2) summary {
  border-left: 3px solid #5d6d7e;
}

details:nth-of-type(2) summary:hover {
  border-left-color: #4a5f6f;
}

/* 娱乐圈情报 - 青灰调 */
details:nth-of-type(3) summary {
  border-left: 3px solid #7a8c99;
}

details:nth-of-type(3) summary:hover {
  border-left-color: #5f7380;
}

/* 记忆区 - 深灰蓝调 */
details:nth-of-type(4) summary {
  border-left: 3px solid #546e7a;
}

details:nth-of-type(4) summary:hover {
  border-left-color: #3f5561;
}

/* 行动建议 - 深蓝绿调 */
details:nth-of-type(5) summary {
  border-left: 3px solid #5f7a7a;
}

details:nth-of-type(5) summary:hover {
  border-left-color: #4a6161;
}

/* ===== 行动建议选项悬浮效果 ===== */
details:nth-of-type(5) p {
  transition: all 0.2s ease;
  border-radius: 4px;
  padding-left: 20px;
}

details:nth-of-type(5) p:hover {
  background: rgba(93, 109, 126, 0.08);
  color: #2c3e50;
  padding-left: 24px;
}

/* ===== 滚动条美化 ===== */
details::-webkit-scrollbar {
  width: 4px;
}

details::-webkit-scrollbar-track {
  background: #cfd8dc;
}

details::-webkit-scrollbar-thumb {
  background: #5d6d7e;
  border-radius: 2px;
}