css
/* ===== 修仙主题UI - 完整CSS ===== */
/* 主题色: 墨底(#1c1b1b) | 朱砂(#c44536) | 符纸黄(#e3d5a3) | 淡金半透明(#d4af37) */

/* 外部容器 - 模拟古卷底色层 */
ai {
  display: block;
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 20px;
  font-family: 'Noto Serif SC', 'Source Han Serif CN', '华文宋体', 'Songti SC', Georgia, serif;
  font-size: 15px;
  line-height: 1.65;
  color: #dcd4c0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 69, 54, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    #1c1b1b;
  background-blend-mode: overlay;
  position: relative;
  z-index: 1;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(212,175,55,0.08);
}

/* 古卷纹理覆盖（SVG背景） */
ai::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 10 Q 30 5 50 15 T 90 10' fill='none' stroke='%23e3d5a3' stroke-width='0.2'/%3E%3Cpath d='M20 30 Q 40 25 60 35 T 80 30' fill='none' stroke='%23d4af37' stroke-width='0.2'/%3E%3Cpath d='M5 60 Q 25 55 45 65 T 95 60' fill='none' stroke='%23e3d5a3' stroke-width='0.2'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  z-index: 0;
}

/* 所有子元素在卷纹理之上 */
ai > * { position: relative; z-index: 1; }

/* 标题行：天道日志 */
ai > hd {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #e3d5a3;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 4px rgba(212, 175, 55, 0.3);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

/* === details 折叠面板 === */
ai details {
  margin: 6px 0;
  border-left: 2px solid rgba(196, 69, 54, 0.45);
  padding-left: 10px;
  transition: border-color 0.25s;
}
ai details[open] {
  border-left-color: #c44536;
}

/* summary 标题（带莲花/竖线装饰） */
ai summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #e3d5a3;
  padding: 4px 0 4px 22px;
  margin: 0 0 2px -10px;
  position: relative;
  transition: all 0.2s;
  border-radius: 2px;
  display: flex;
  align-items: center;
  user-select: none;
}
/* 伪元素：朱砂竖线与莲纹 */
ai summary::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #c44536 0%, #d4af37 60%, #e3d5a3 100%);
  border-radius: 1px;
}
ai summary::after {
  content: '❁';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #c44536;
  opacity: 0.7;
  transition: transform 0.3s;
}
/* 展开时莲花旋转 */
ai details[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
  opacity: 1;
}

/* summary 悬停效果 */
ai summary:hover {
  background: rgba(227, 213, 163, 0.06);
  color: #f0e6c5;
}

/* 隐藏浏览器默认三角 */
ai summary::-webkit-details-marker { display: none; }
ai summary::marker { display: none; }

/* 正文 / 行内信息 d（每条信息一行） */
ai d {
  display: block;
  padding: 2px 0 2px 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #0f0f0f;
  border-bottom: 1px dotted rgba(227, 213, 163, 0.08);
  margin: 1px 0;
  word-break: break-word;
}
/* 最后一行取消下划线 */
ai d:last-of-type { border-bottom: none; }

/* 属性标签 t（朱砂色加粗） */
ai t {
  font-weight: 700;
  color: #c44536;
  margin-right: 2px;
  text-shadow: 0 0 3px rgba(196, 69, 54, 0.2);
}

/* 强调标签 f（淡金色） */
ai f {
  color: #d4af37;
  font-weight: 500;
}

/* 剧情正文段落（<d>直接包裹剧情文本，但保留原始换行） */
ai > d:first-of-type {
  margin: 8px 0;
  padding: 10px 12px;
  background: rgba(212, 175, 55, 0.03);
  border-left: 2px solid #d4af37;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #131313;
  white-space: pre-wrap;
}

/* 记忆区表格（没有用表格标签，保持原样即可，但给内部序列加点样式） */
ai details d:has(> table) { /* 如果存在table则特殊处理，但原始是Markdown，实际输出时平台转成表格可能不是d内，忽略 */ }

/* 选项列表（如果选项内单独d，默认已有样式） */

/* 所有details内的第一条d与summary之间增加间距 */
ai summary + d {
  margin-top: 4px;
}

/* 内联注释隐藏（原始注释我们保留，但使其淡出不影响视觉） */
ai d:has(> comment), 
ai comment { display: none; }
/* 原始html注释（<!-- -->）依然可见但低调 */
ai details d { /* 注释在文本中是可见的，不改动 */ }

/* 间隔与滚动 */
ai summary ~ * {
  margin-left: 2px;
}

/* 极窄屏幕优化（< 480px） */
@media (max-width: 480px) {
  ai {
    padding: 10px 12px;
    font-size: 14px;
  }
  ai summary {
    font-size: 14px;
  }
  ai d {
    font-size: 13px;
  }