/* ====== 全局状态栏容器美化 ====== */
details {
  background: linear-gradient(145deg, rgba(20, 20, 32, 0.92), rgba(12, 12, 20, 0.96));
  border: 1px solid rgba(255, 120, 160, 0.15);
  border-radius: 14px;
  margin: 12px 0;
  padding: 10px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: #e0e0e8;
}

details:hover {
  border-color: rgba(255, 140, 170, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ====== 标题行 summary 美化 ====== */
details > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 4px 6px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(255, 130, 160, 0.12), transparent 80%);
  transition: background 0.3s;
  margin: -6px -8px 4px;
  color: #ffdbe6;
  letter-spacing: 0.3px;
}

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

details > summary::before {
  content: "▶";
  font-size: 0.75em;
  transition: transform 0.3s;
  background: linear-gradient(135deg, #ff8ea0, #ffb86b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform-origin: center;
}

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

details > summary:hover {
  background: linear-gradient(90deg, rgba(255, 130, 160, 0.25), transparent);
}

/* ====== 内部段落 p 美化 ====== */
details p {
  margin: 6px 0;
  line-height: 1.65;
  font-size: 0.9rem;
  color: #c6c6d0;
  border-left: 2px solid rgba(255, 140, 160, 0.25);
  padding-left: 12px;
}

details p:first-of-type {
  margin-top: 10px;
}

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

/* ====== 内嵌表格美化（记忆区用） ====== */
details table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 4px;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

details th,
details td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

details th {
  background: rgba(255, 130, 160, 0.12);
  color: #ffbdd0;
  font-weight: 600;
  white-space: nowrap;
}

details td {
  color: #bdbdcc;
}

details tr:last-child th,
details tr:last-child td {
  border-bottom: none;
}

/* ====== 分隔线、补充信息美化 ====== */
details hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 160, 180, 0.3), transparent);
  margin: 8px 0;
}

details ul,
details ol {
  margin: 4px 0;
  padding-left: 1.4em;
}

details li {
  margin: 4px 0;
  line-height: 1.5;
}

/* ====== 推荐栏特殊点缀 ====== */
details:has(> summary:first-child) {
  position: relative;
}

/* 加个右上角小光点，逼格直接起飞 */
details::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(255, 180, 140, 0.8), transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 0.3s;
  pointer-events: none;
}

details:hover::after {
  opacity: 1;
}

/* ====== 移动端适配 ====== */
@media (max-width: 768px) {
  details {
    margin: 8px 0;
    padding: 8px 10px;
    border-radius: 12px;
  }

  details > summary {
    font-size: 0.9rem;
    padding: 5px 2px 5px 8px;
  }

  details p {
    font-size: 0.85rem;
    padding-left: 8px;
  }

  details table,
  details th,
  details td {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}
```

---

## ✨ 额外建议：让正文也变好看

上面这套 CSS 基本都压在 `details` 内部，所以很安全，不会污染聊天主体。如果你希望**正文**也有高级排版（比如段落间距、角色对话颜色），我建议你在主提示词中将正文用 `<div class="story-text">...</div>` 包起来，然后配合下面这段 CSS 使用（同样加到内置CSS尾部）：

```css
.story-text {
  font-size: 1em;
  line-height: 1.8;
  color: #dcdce4;
  letter-spacing: 0.2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: 12px;
  padding: 12px 8px;
}

.story-text p {
  margin: 0.8em 0;
  text-indent: 0;
}

.story-text strong {
  color: #ff9eb0;
}