/* 极致优化版粉白主题 CSS */
ai {
  display: block;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #4a3f44;
  background: linear-gradient(145deg, #fffafa 0%, #fff0f5 100%);
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(255, 182, 193, 0.25);
  box-sizing: border-box;
  width: 100%;
}

/* 折叠面板基础卡片样式 */
ai details {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ffe4e1;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* 面板展开时的浮出效果 */
ai details[open] {
  background: #ffffff;
  border-color: #ffb6c1;
  box-shadow: 0 4px 14px rgba(255, 182, 193, 0.3);
  margin-bottom: 12px;
}

/* 标题栏精美化 */
ai summary {
  background: linear-gradient(90deg, #fff5f7 0%, #ffffff 100%);
  padding: 10px 14px;
  font-weight: 700;
  color: #d64571;
  cursor: pointer;
  user-select: none;
  border-left: 5px solid #ff8da1;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

ai summary:hover {
  background: #ffeeef;
}

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

ai details[open] summary {
  border-bottom: 1px dashed #ffe4e1;
}

/* 独立行数据样式，确保每行对齐且美观 */
ai d {
  display: flex;
  padding: 7px 14px;
  border-bottom: 1px dashed #fff0f5;
  align-items: flex-start;
  word-break: break-word;
  transition: background-color 0.2s ease;
}

ai d:hover {
  background-color: #fffafb;
}

ai d:last-child {
  border-bottom: none;
}

/* 字段名标签（固定宽度，对齐冒号） */
ai d b {
  display: inline-block;
  min-width: 75px;
  color: #c05a7a;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

ai d b::after {
  content: ":";
  opacity: 0.6;
  margin-left: 2px;
}

/* 记忆区子标题特效 */
ai d[c="t"] {
  background: linear-gradient(90deg, #ffe4e1 0%, transparent 100%);
  font-weight: bold;
  color: #c05a7a;
  border-bottom: 2px solid #ffb6c1;
  padding: 6px 14px;
  margin-top: 4px;
}

/* 记忆列表项样式 */
ai d[c="ltm"], ai d[c="stm"] {
  display: block;
  padding-left: 26px;
  position: relative;
  color: #5c4d53;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* 记忆点修饰符 */
ai d[c="ltm"]::before, ai d[c="stm"]::before {
  content: "✦";
  position: absolute;
  left: 10px;
  color: #ffb6c1;
  font-size: 11px;
  top: 9px;
}

/* 互动选项专属特效 */
ai d[c="a"] {
  display: block;
  padding-left: 26px;
  position: relative;
  color: #6a5a60;
  cursor: pointer;
  transition: all 0.2s;
}

ai d[c="a"]:hover {
  color: #d64571;
  background: #fff5f7;
  font-weight: 600;
}

/* 互动选项爱心指示符 */
ai d[c="a"]::before {
  content: "❥";
  position: absolute;
  left: 10px;
  color: #ffb6c1;
  font-size: 12px;
  top: 8px;
}

/* 正文小说沉浸式阅读区 */
ai article {
  display: block;
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #ffe4e1;
  border-left: 5px solid #ffb6c1;
  margin: 14px 0;
  box-shadow: inset 0 0 15px rgba(255, 182, 193, 0.08);
  color: #333333;
  line-height: 1.8;
  font-size: 14.5px;
}

/* 女主角对话（浅粉红） */
ai g {
  display: inline;
  color: #e64980;
  font-weight: 600;
}

/* 用户对话（浅蓝色） */
ai y {
  display: inline;
  color: #339af0;
  font-weight: 600;
}