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

/* Details通用样式 - 淡米色毛玻璃质感 */
details {
  background: rgba(250, 248, 245, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 220, 210, 0.4);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 4px 16px rgba(210, 190, 170, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

details:hover {
  background: rgba(252, 250, 247, 0.85);
  box-shadow: 0 6px 24px rgba(210, 190, 170, 0.25);
  transform: translateY(-2px);
}

details[open] {
  background: rgba(255, 253, 250, 0.9);
  border-color: rgba(210, 190, 170, 0.6);
}

/* Summary标题样式 - 首字大写 */
summary {
  font-weight: 600;
  font-size: 1.05em;
  color: #6b5d52;
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

summary::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.3s ease;
  color: #a89080;
  font-size: 0.9em;
}

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

summary:hover {
  background: rgba(230, 220, 210, 0.3);
  color: #5a4d42;
}

/* 正文区域 */
.story-content {
  background: rgba(255, 253, 250, 0.6);
  border-left: 3px solid rgba(210, 190, 170, 0.5);
  padding: 20px;
  margin: 16px 0;
  border-radius: 8px;
  line-height: 1.8;
  color: #4a4038;
  box-shadow: inset 0 2px 8px rgba(210, 190, 170, 0.1);
}

.story-content p {
  margin: 14px 0;
  text-indent: 2em;
}

/* NPC面板特殊样式 */
.npc-panel {
  background: linear-gradient(135deg, rgba(255, 253, 250, 0.4) 0%, rgba(250, 245, 240, 0.4) 100%);
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed rgba(210, 190, 170, 0.3);
}

.npc-panel p {
  margin: 8px 0;
  color: #5a4d42;
  line-height: 1.6;
}

.npc-panel strong {
  color: #6b5d52;
  font-weight: 600;
}

/* 表格样式 - 记忆档案 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: rgba(255, 253, 250, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

table th {
  background: rgba(230, 220, 210, 0.6);
  color: #6b5d52;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  text-transform: capitalize;
  border-bottom: 2px solid rgba(210, 190, 170, 0.4);
}

table td {
  padding: 10px;
  border-bottom: 1px solid rgba(230, 220, 210, 0.3);
  color: #5a4d42;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover {
  background: rgba(250, 245, 240, 0.5);
}

/* 记忆注释 */
.memory-note {
  font-size: 0.9em;
  color: #8a7a6a;
  font-style: italic;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(240, 235, 230, 0.4);
  border-radius: 6px;
  border-left: 3px solid rgba(210, 190, 170, 0.5);
}

/* 行动推荐列表 */
details:has(summary:contains("行动推荐")) p {
  padding: 10px 12px;
  margin: 8px 0;
  background: rgba(250, 245, 240, 0.5);
  border-radius: 8px;
  border-left: 3px solid rgba(210, 190, 170, 0.6);
  transition: all 0.25s ease;
  color: #5a4d42;
}

details:has(summary:contains("行动推荐")) p:hover {
  background: rgba(245, 240, 235, 0.7);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(210, 190, 170, 0.2);
}

/* 响应式优化 */
@media (max-width: 768px) {
  details {
    padding: 12px;
    margin: 10px 0;
  }
  
  .story-content {
    padding: 16px;
  }
  
  table {
    font-size: 0.9em;
  }
  
  table th, table td {
    padding: 8px;
  }
}