/* ═══ 整体容器 ═══ */
.reply {
  font-family: "Noto Serif SC", "Source Han Serif CN", serif;
  line-height: 1.8;
  color: #e0d6cc;
  padding: 0;
}

/* ═══ 思维链 - 完全锁死 ═══ */
details.tc {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(20, 0, 0, 0.85), rgba(30, 10, 15, 0.9));
  overflow: hidden;
}

details.tc > summary {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.75em;
  letter-spacing: 2px;
  color: rgba(180, 60, 60, 0.7);
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  list-style: none;
  cursor: default;
}

details.tc > summary::-webkit-details-marker,
details.tc > summary::marker {
  display: none;
}

details.tc > summary::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: rgba(180, 60, 60, 0.6);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-lock 2s ease-in-out infinite;
}

@keyframes pulse-lock {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 3px rgba(180, 60, 60, 0.3); }
  50% { opacity: 1; box-shadow: 0 0 8px rgba(180, 60, 60, 0.6); }
}

/* 思维链内容即使被展开也隐藏 */
details.tc[open] > *:not(summary) {
  display: none;
}

/* ═══ Header 信息栏 ═══ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 2px;
  background: linear-gradient(90deg, rgba(25, 5, 10, 0.9), rgba(40, 15, 20, 0.85), rgba(25, 5, 10, 0.9));
  border-left: 3px solid rgba(200, 80, 100, 0.6);
  border-radius: 0 6px 6px 0;
  font-size: 0.82em;
  letter-spacing: 0.5px;
}

header .loc {
  color: rgba(200, 180, 160, 0.9);
}

header .time {
  color: rgba(160, 140, 130, 0.8);
}

header .mood {
  color: rgba(220, 100, 120, 0.85);
  font-style: italic;
}

/* ═══ 正文区域 ═══ */
text {
  display: block;
  padding: 20px 16px;
  line-height: 2;
  font-size: 1em;
  color: #e8e0d8;
}

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

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

/* ═══ 角色对白颜色 ═══ */
span.swn {
  color: #ff8fa3;
  text-shadow: 0 0 6px rgba(255, 143, 163, 0.2);
}

span.cr {
  color: #d4a055;
  font-weight: 500;
}

span.zh {
  color: #8faa7b;
  opacity: 0.92;
}

span.lm {
  color: #9ab0c7;
  opacity: 0.88;
}

span.npc-d {
  color: #b8a89a;
}

/* ═══ 状态面板通用样式 ═══ */
details.sp {
  margin-top: 8px;
  border: 1px solid rgba(100, 60, 70, 0.35);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 5, 8, 0.92), rgba(25, 10, 14, 0.88));
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

details.sp:hover {
  border-color: rgba(180, 80, 100, 0.45);
  box-shadow: 0 0 12px rgba(180, 80, 100, 0.1);
}

details.sp > summary {
  padding: 10px 16px;
  font-size: 0.88em;
  font-weight: 600;
  color: #d4b8a0;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

details.sp > summary::-webkit-details-marker,
details.sp > summary::marker {
  display: none;
}

details.sp > summary::after {
  content: "▸";
  float: right;
  color: rgba(200, 100, 120, 0.6);
  transition: transform 0.3s ease;
}

details.sp[open] > summary::after {
  transform: rotate(90deg);
}

details.sp[open] > summary {
  color: #f0c8b0;
  border-bottom: 1px solid rgba(100, 60, 70, 0.3);
}

/* 面板内表格 */
details.sp table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82em;
  margin: 8px 0;
}

details.sp th {
  text-align: left;
  padding: 6px 12px;
  color: rgba(200, 150, 130, 0.8);
  border-bottom: 1px solid rgba(100, 60, 70, 0.3);
  font-weight: 500;
  font-size: 0.9em;
}

details.sp td {
  padding: 5px 12px;
  color: #d0c4b8;
  border-bottom: 1px solid rgba(60, 30, 40, 0.3);
  vertical-align: top;
}

details.sp td:first-child {
  color: rgba(180, 130, 140, 0.9);
  white-space: nowrap;
  width: 20%;
  font-size: 0.92em;
}

details.sp tr:last-child td {
  border-bottom: none;
}

/* 面板内分隔线 */
details.sp hr {
  border: none;
  border-top: 1px dashed rgba(100, 60, 70, 0.4);
  margin: 12px 16px;
}

/* 面板内加粗标题 */
details.sp strong {
  display: block;
  padding: 8px 12px 4px;
  color: rgba(220, 160, 140, 0.85);
  font-size: 0.85em;
  letter-spacing: 1px;
}

/* ═══ 推荐行动区 ═══ */
div.actions {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(120, 80, 90, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 5, 10, 0.9), rgba(35, 12, 18, 0.85));
  position: relative;
}

div.actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 80, 100, 0.5), transparent);
}

p.act-title {
  margin: 0 0 10px 0;
  font-size: 0.88em;
  font-weight: 600;
  color: #d4a8a0;
  letter-spacing: 1px;
}

p.act-item {
  margin: 0 0 6px 0;
  padding: 8px 12px;
  font-size: 0.85em;
  color: #c8b8a8;
  border-left: 2px solid rgba(180, 80, 100, 0.4);
  border-radius: 0 4px 4px 0;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

p.act-item:last-child {
  margin-bottom: 0;
}

p.act-item:hover {
  color: #f0d8c8;
  border-left-color: rgba(220, 100, 130, 0.7);
  background: rgba(180, 80, 100, 0.08);
  padding-left: 16px;
}

/* ═══ 移动端适配 ═══ */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 12px;
  }

  text {
    padding: 16px 12px;
    font-size: 0.95em;
  }

  details.sp td:first-child {
    width: 28%;
  }

  details.sp table {
    font-size: 0.78em;
  }

  p.act-item {
    padding: 7px 10px;
    font-size: 0.82em;
  }
}