/* 容器：绢帛底纹与墨渍边缘 */
ai {
  --silk: #fcfaf2;
  --ink: #2c3e50;
  --rouge: #a7535a; /* 胭脂红 */
  --mist: rgba(44, 62, 80, 0.05);
  display: block;
  background-color: var(--silk);
  background-image: 
    repeating-linear-gradient(90deg, rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 4px);
  padding: 15px;
  border: 1px solid #dcd5c5;
  box-shadow: 0 0 20px rgba(0,0,0,0.05), inset 0 0 60px rgba(210,180,140,0.1);
  font-family: "Noto Serif SC", "STSong", serif;
  color: var(--ink);
  position: relative;
}

/* 顶部：烟雨长廊状态栏 */
hd {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7f8c8d;
  border-bottom: 1px solid #e0dcd0;
  padding-bottom: 8px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* 正文：竖版书写感 */
ai > p {
  line-height: 1.8;
  text-indent: 2em;
  margin-bottom: 20px;
  font-size: 16px;
  text-align: justify;
  color: #1a1a1a;
}

/* 档案卷轴：轻盈的丝绸折叠感 */
q {
  display: block;
  margin-bottom: 12px;
  border-left: 2px solid var(--ink);
  background: linear-gradient(to right, var(--mist), transparent);
  transition: all 0.3s ease;
}

/* 标题：胭脂扣（朱砂点红） */
sm {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  list-style: none;
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

sm::before {
  content: "🏮"; /* 胭脂扣装饰 */
  margin-right: 8px;
  font-size: 12px;
  opacity: 0.8;
}

sm:hover {
  background: rgba(167, 83, 90, 0.05);
  color: var(--rouge);
}

/* 身体细节与隐秘字段：胭脂色高亮 */
p[t="body"] {
  background: rgba(167, 83, 90, 0.03);
  padding: 10px;
  border-radius: 4px;
  margin: 5px 12px;
  border: 1px dashed rgba(167, 83, 90, 0.2);
}

p[t="body"] f {
  color: var(--rouge);
  font-style: italic;
}

p[t="body"] d {
  color: #8e44ad; /* 略带紫色的深红，增加暧昧感 */
  font-weight: 500;
}

/* 字段与数据排版 */
f {
  font-size: 13px;
  font-weight: bold;
  color: #5d6d7e;
  margin-right: 4px;
}

d {
  font-size: 14px;
  margin-right: 15px;
}

/* 好感度心形动效 */
d[lv] {
  color: var(--rouge);
  text-shadow: 0 0 5px rgba(167, 83, 90, 0.2);
}

/* 记忆区域：墨迹晕染 */
q[t="memo"] ul {
  list-style: none;
  padding: 5px 15px;
  font-size: 13px;
  color: #7f8c8d;
}

q[t="memo"] li::before {
  content: "⚓";
  margin-right: 8px;
  font-size: 10px;
}

/* 行动推荐：信笺落款风格 */
q[t="act"] ol {
  padding: 10px 15px 10px 30px;
  margin: 0;
}

q[t="act"] li {
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s;
}

q[t="act"] li:hover {
  color: var(--rouge);
  transform: translateX(5px);
}

/* 展开动画 */
q[open] {
  animation: silkUnfold 0.5s ease-out;
}

@keyframes silkUnfold {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}