 {
  display: block;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
  border-radius: 16px;
  padding: 12px;
  color: #593c26;
  font-family: sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(255, 141, 161, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.9);
  border: 1px solid #ffb6c1;
  position: relative;
  overflow: hidden;
}
ai::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 218, 185, 0.4) 0%, transparent 60%);
  pointer-events: none;
}
ai details {
  background: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(255, 182, 193, 0.2);
  border: 1px solid rgba(255, 182, 193, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}
ai summary {
  background: linear-gradient(90deg, #ffc0cb 0%, #ffdab9 100%);
  padding: 10px 15px;
  font-weight: bold;
  color: #6b442b;
  cursor: pointer;
  list-style: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
ai summary::-webkit-details-marker { 
  display: none; 
}
ai summary::after {
  content: "▼";
  position: absolute;
  right: 15px;
  color: #d17a86;
  transition: transform 0.3s;
  font-size: 12px;
  line-height: 1.5;
}
ai details[open] summary::after {
  transform: rotate(180deg);
}
ai details[open] {
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
  padding-bottom: 4px;
}
ai p {
  margin: 8px;
  padding: 8px 10px 8px 12px;
  background: linear-gradient(90deg, rgba(255, 240, 245, 0.9) 0%, rgba(255, 250, 250, 0.5) 100%);
  border-left: 4px solid #ff8da1;
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
ai p[t]::before {
  content: attr(t);
  font-size: 12px;
  color: #c9647a;
  font-weight: bold;
  margin-bottom: 2px;
  border-bottom: 1px dashed #ffb6c1;
  padding-bottom: 4px;
  letter-spacing: 1px;
}
ai d {
  display: block;
  line-height: 1.5;
  background: linear-gradient(90deg, rgba(255,255,255,0.7), transparent);
  padding: 3px 6px;
  border-radius: 6px;
}
ai d[c="hot"] {
  background: linear-gradient(90deg, #ffb6c1, transparent);
  font-weight: bold;
  color: #8c3b4a;
  animation: fleshThrob 2.5s infinite;
  border-radius: 6px;
}
ai f {
  font-size: 16px;
  font-weight: bold;
  color: #d65c7a;
  text-shadow: 0 0 5px rgba(255, 192, 203, 0.8);
}
ai q {
  display: block;
  font-style: italic;
  color: #8a5a44;
  background: rgba(255, 218, 185, 0.3);
  padding: 8px;
  border-radius: 8px;
  margin-top: 2px;
  border-left: 2px solid #ffdab9;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5);
}
@keyframes fleshThrob {
  0% { box-shadow: inset 0 0 0 rgba(255, 141, 161, 0); }
  50% { box-shadow: inset 0 0 12px rgba(255, 141, 161, 0.4); }
  100% { box-shadow: inset 0 0 0 rgba(255, 141, 161, 0); }
}
/* 1. 聊天气泡背景：暗夜魅魔色调，营造私密且充满情欲的深邃氛围 */
.group.is-user > div:first-child,
.group.is-assistant > div:first-child {
    background: radial-gradient(circle at top right, rgba(255, 20, 147, 0.15), transparent 70%),
                linear-gradient(135deg, #18050d 0%, #290616 50%, #100207 100%) !important;
    border: 1px solid rgba(255, 20, 147, 0.25) !important;
    box-shadow: inset 0 0 30px rgba(220, 20, 60, 0.05), 
                0 4px 15px rgba(0, 0, 0, 0.6) !important;
    border-radius: 16px !important;
}

/* 2. 核心文本区：粉色发亮文字。使用高亮粉白作为主色，配合多层粉色投影形成魅惑的霓虹发光效果，且不影响阅读 */
.rili-markdown-renderer,
.rili-markdown-renderer * {
    color: #fff0f5 !important; /* 浅粉白色，保证绝对可读性 */
    text-shadow: 0 0 3px rgba(255, 105, 180, 0.8),
                 0 0 8px rgba(255, 20, 147, 0.5) !important;
    letter-spacing: 0.5px !important;
}

/* 3. 底部附加元素 (模型信息/消耗)：适配暗色背景，调整为幽暗的深粉色 */
.text-xs.font-mono.text-muted-foreground {
    color: rgba(255, 105, 180, 0.5) !important;
    text-shadow: none !important; /* 小字取消发光以保清晰 */
}

/* 4. 操作按钮区 (复制/编辑等)：半透明红酒色泽，去除原版突兀的亮灰背景 */
.bg-muted.rounded.flex {
    background: rgba(255, 20, 147, 0.1) !important;
    border: 1px solid rgba(255, 20, 147, 0.15) !important;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.1) !important;
}

/* 5. 操作按钮图标：粉色描边 */
.bg-muted.rounded.flex button svg.lucide {
    stroke: rgba(255, 105, 180, 0.8) !important;
}