/* ═══════════════════════════════════════
   女友模拟器·沙雕版 — 清新粉系CSS
   ═══════════════════════════════════════ */

/* ── 思维链隐藏 ── */
think {
  display: none;
}

/* ═══════════════════════════════════════
   捏人菜单 <setup>
   ═══════════════════════════════════════ */
setup {
  display: block;
  background: linear-gradient(135deg, #fff0f3 0%, #fce4ec 100%);
  border: 1.5px solid #f8bbd0;
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  color: #5d4e60;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 2px 12px rgba(244, 143, 177, 0.12);
}

sttl {
  display: block;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #e91e63;
  margin-bottom: 16px;
}

sgrp {
  display: block;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #f8bbd0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

sgrp sh {
  display: block;
  font-weight: 600;
  color: #ad1457;
  margin-bottom: 6px;
  font-size: 14px;
}

sline {
  display: block;
  color: #7a6b7d;
  font-size: 13px;
  line-height: 1.6;
}

sopt {
  display: inline-block;
  background: #fce4ec;
  border: 1px solid #f48fb1;
  border-radius: 20px;
  padding: 4px 14px;
  margin: 3px 4px;
  font-size: 12px;
  color: #c2185b;
  transition: all 0.2s ease;
}

sopt:hover {
  background: #f8bbd0;
  border-color: #e91e63;
  color: #880e4f;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
}

stip {
  display: block;
  text-align: center;
  color: #b39dba;
  font-size: 12px;
  margin-top: 12px;
  font-style: italic;
}

/* ═══════════════════════════════════════
   顶部状态栏 <topbar>
   ═══════════════════════════════════════ */
topbar {
  display: block;
  position: relative;
  background: linear-gradient(180deg, #fce4ec 0%, #fff0f3 40%, #ffffff 100%);
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0;
  padding-bottom: 8px;
  border: 1.5px solid #f8bbd0;
  box-shadow: 0 2px 16px rgba(244, 143, 177, 0.1);
}

/* 天空层 — 清新版：柔粉渐变+浮云 */
skylane {
  display: block;
  position: relative;
  height: 50px;
  overflow: hidden;
  background: linear-gradient(180deg, #fce4ec 0%, #fff9fb 100%);
}

horizon {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}

nebula {
  display: block;
  position: absolute;
  top: 10px;
  right: 18%;
  width: 60px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(206, 147, 216, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: cloud-float 10s ease-in-out infinite alternate;
}

@keyframes cloud-float {
  0% { transform: translateX(0); opacity: 0.5; }
  100% { transform: translateX(15px); opacity: 0.8; }
}

/* 屋顶层 */
rooflane {
  display: block;
  position: relative;
}

gridmesh {
  display: none;
}

/* 信息胶囊 */
chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  justify-content: center;
}

chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f8bbd0;
  border-radius: 10px;
  padding: 6px 10px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(244, 143, 177, 0.08);
}

chip:hover {
  background: #fff0f3;
  border-color: #f48fb1;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(244, 143, 177, 0.15);
}

emj {
  font-size: 16px;
}

col {
  display: flex;
  flex-direction: column;
}

lab {
  font-size: 9px;
  color: #b39dba;
  text-transform: uppercase;
  letter-spacing: 1px;
}

val {
  font-size: 12px;
  color: #5d4e60;
  font-weight: 500;
}

vibe {
  font-size: 12px;
  color: #e91e63;
  font-weight: 600;
}

/* 天际线建筑 — 清新版：浅色剪影 */
skyline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 45px;
  padding: 0 10px;
  gap: 3px;
  position: relative;
}

bld {
  display: block;
  background: linear-gradient(180deg, #f8bbd0 0%, #fce4ec 100%);
  border-radius: 3px 3px 0 0;
  border: 1px solid rgba(244, 143, 177, 0.3);
  border-bottom: none;
  position: relative;
}

bld::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

bld.t1 { width: 18px; height: 24px; }
bld.t1::after { top: 5px; left: 4px; }
bld.t2 { width: 22px; height: 38px; }
bld.t2::after { top: 8px; left: 6px; }
bld.t3 { width: 16px; height: 18px; }
bld.t3::after { top: 4px; left: 5px; }
bld.t4 { width: 26px; height: 44px; }
bld.t4::after { top: 12px; left: 10px; }
bld.t5 { width: 20px; height: 30px; }
bld.t5::after { top: 6px; left: 7px; }
bld.t6 { width: 14px; height: 16px; }
bld.t6::after { top: 3px; left: 4px; }
bld.t7 { width: 24px; height: 34px; }
bld.t7::after { top: 10px; left: 8px; }

sign {
  position: absolute;
  font-size: 8px;
  white-space: nowrap;
  font-weight: 600;
}

sign.sg1 { bottom: 26px; left: 15%; color: #e91e63; }
sign.sg2 { bottom: 34px; left: 50%; transform: translateX(-50%); color: #80cbc4; }
sign.sg3 { bottom: 22px; right: 15%; color: #ce93d8; }

/* 角色头像 */
rolecall {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 4px;
}

face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 11px;
  transition: all 0.3s ease;
  position: relative;
}

face::after {
  content: attr(title);
  font-size: 9px;
  position: absolute;
  margin-top: 48px;
  color: #b39dba;
}

face.r-you {
  background: linear-gradient(135deg, #b2dfdb, #80cbc4);
  border: 2px solid #80cbc4;
}

face.r-her {
  background: linear-gradient(135deg, #f8bbd0, #f48fb1);
  border: 2px solid #f48fb1;
}

face:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(244, 143, 177, 0.3);
}

/* ═══════════════════════════════════════
   正文 <text>
   ═══════════════════════════════════════ */
text {
  display: block;
  background: #ffffff;
  border: 1.5px solid #f8bbd0;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 12px 0;
  color: #4a3f4e;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 12px rgba(244, 143, 177, 0.08);
}

text p {
  margin: 0 0 14px 0;
  text-indent: 2em;
}

text p:last-child {
  margin-bottom: 0;
}

say {
  color: #e91e63;
  font-weight: 500;
}

text i {
  color: #ab47bc;
  font-style: italic;
  opacity: 0.9;
}

/* ═══════════════════════════════════════
   下方信息区 <info> — 通用 details
   ═══════════════════════════════════════ */
info {
  display: block;
  margin: 12px 0;
}

info details {
  background: #ffffff;
  border: 1.5px solid #f3e5f5;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 8px rgba(244, 143, 177, 0.06);
}

info details:hover {
  border-color: #f48fb1;
  box-shadow: 0 2px 16px rgba(244, 143, 177, 0.12);
}

info details[open] {
  border-color: #f48fb1;
}

info summary {
  padding: 12px 16px;
  color: #5d4e60;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(90deg, #fff0f3 0%, #ffffff 100%);
  border-bottom: 1px solid #fce4ec;
  transition: all 0.2s ease;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

info summary::after {
  content: '♡';
  margin-left: auto;
  font-size: 12px;
  color: #f8bbd0;
  transition: all 0.3s ease;
}

info details[open] summary::after {
  content: '♥';
  color: #e91e63;
}

info summary:hover {
  background: linear-gradient(90deg, #fce4ec 0%, #fff0f3 100%);
}

/* ── dock 通用容器 ── */
dock {
  display: block;
  padding: 12px 14px;
}

/* ── grp 分组 ── */
grp {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #f3e5f5;
}

grp:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

ttl {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ad1457;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid #f48fb1;
}

/* ── ln 行 ── */
ln {
  display: flex;
  align-items: flex-start;
  padding: 4px 0;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

lbl {
  flex-shrink: 0;
  min-width: 80px;
  color: #b39dba;
  font-size: 12px;
  font-weight: 500;
}

dt {
  color: #5d4e60;
  flex: 1;
}

/* ── pill 胶囊标签 ── */
pill {
  display: inline-block;
  background: #fce4ec;
  border: 1px solid #f8bbd0;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  color: #c2185b;
  margin: 2px 3px;
  transition: all 0.2s ease;
}

pill:hover {
  background: #f8bbd0;
  border-color: #f48fb1;
  box-shadow: 0 1px 6px rgba(244, 143, 177, 0.2);
}

/* ── mood 情绪标签 ── */
mood {
  display: inline-block;
  background: #f3e5f5;
  border: 1px solid #ce93d8;
  border-radius: 8px;
  padding: 2px 12px;
  font-size: 12px;
  color: #7b1fa2;
  animation: mood-breathe 3s ease-in-out infinite;
}

@keyframes mood-breathe {
  0%, 100% { box-shadow: 0 0 0 rgba(206, 147, 216, 0); }
  50% { box-shadow: 0 0 8px rgba(206, 147, 216, 0.25); }
}

/* ── heart 心声 ── */
heart {
  display: block;
  background: #fff0f3;
  border-left: 3px solid #f48fb1;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  font-size: 13px;
  color: #ad1457;
  font-style: italic;
  line-height: 1.6;
  margin: 4px 0;
}

/* ── gauge 进度条 ── */
gauge {
  display: inline-block;
  width: 100px;
  height: 8px;
  background: #fce4ec;
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid #f8bbd0;
}

fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f48fb1, #e91e63);
  transition: width 0.5s ease;
}

num {
  font-size: 11px;
  color: #e91e63;
  font-weight: 600;
  vertical-align: middle;
}

/* ── mem 记忆标签 ── */
mem {
  display: block;
  background: #faf5fb;
  border: 1px solid #f3e5f5;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #7a6b7d;
  margin: 3px 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   性器官状态 <organs>
   ═══════════════════════════════════════ */
organs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0;
}

organ {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #fff0f3;
  border: 1px solid #f8bbd0;
  border-radius: 8px;
  padding: 6px 10px;
  transition: all 0.2s ease;
}

organ:hover {
  background: #fce4ec;
  border-color: #f48fb1;
}

oname {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #e91e63;
  min-width: 45px;
}

odesc {
  font-size: 11px;
  color: #7a6b7d;
  line-height: 1.4;
}

pose {
  display: block;
  background: #faf5fb;
  border: 1px dashed #ce93d8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #7a6b7d;
  margin-top: 8px;
  text-align: center;
}

/* ═══════════════════════════════════════
   🌆 世界动态 — 列表样式
   ═══════════════════════════════════════ */
info dock ul {
  list-style: none;
  padding: 0;
  margin: 4px 0;
}

info dock ul li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 12px;
  color: #7a6b7d;
  line-height: 1.6;
}

info dock ul li::before {
  content: '♦';
  position: absolute;
  left: 2px;
  color: #f48fb1;
  font-size: 8px;
  top: 7px;
}

/* ═══════════════════════════════════════
   📱 双手机状态栏
   ═══════════════════════════════════════ */
phones {
  display: flex;
  gap: 10px;
  padding: 12px;
}

phone {
  flex: 1;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
  position: relative;
}

phone::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  margin: 8px auto 0;
}

phone::after {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  margin: 6px auto 10px;
}

/* 玩家手机 — 薄荷绿系 */
phone.phone-player {
  border: 2px solid #b2dfdb;
  box-shadow: 0 2px 16px rgba(128, 203, 196, 0.12);
}

phone.phone-player::before {
  background: #b2dfdb;
}

phone.phone-player::after {
  background: #e0f2f1;
}

/* 女友手机 — 樱花粉系 */
phone.phone-gf {
  border: 2px solid #f8bbd0;
  box-shadow: 0 2px 16px rgba(244, 143, 177, 0.12);
}

phone.phone-gf::before {
  background: #f8bbd0;
}

phone.phone-gf::after {
  background: #fce4ec;
}

phead {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 8px 6px;
  letter-spacing: 1px;
}

phone.phone-player phead {
  color: #00897b;
  background: linear-gradient(180deg, #e0f2f1 0%, transparent 100%);
}

phone.phone-gf phead {
  color: #e91e63;
  background: linear-gradient(180deg, #fce4ec 0%, transparent 100%);
}

pgrp {
  display: block;
  padding: 4px 8px;
  margin: 0 6px 6px;
  background: rgba(0, 0, 0, 0.015);
  border-radius: 8px;
}

ptitle {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #b39dba;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0;
  border-bottom: 1px solid #f3e5f5;
  margin-bottom: 4px;
}

msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 4px;
  border-bottom: 1px solid #fce4ec;
  transition: background 0.2s ease;
}

msg:last-child {
  border-bottom: none;
}

msg:hover {
  background: #fff0f3;
  border-radius: 6px;
}

mfrom {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  color: #ad1457;
  min-width: 36px;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

mbody {
  flex: 1;
  font-size: 10px;
  color: #7a6b7d;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

mtime {
  flex-shrink: 0;
  font-size: 9px;
  color: #cbbdd0;
  white-space: nowrap;
}

/* 移动端：手机上下堆叠 */
@media (max-width: 500px) {
  phones {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════
   📓 恋爱小账本 — 表格
   ═══════════════════════════════════════ */
info table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 8px 0;
  font-size: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f3e5f5;
}

info caption {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #ad1457;
  padding: 8px 12px;
  letter-spacing: 0.5px;
}

info thead tr {
  background: #fce4ec;
}

info th {
  padding: 8px 10px;
  color: #ad1457;
  font-weight: 600;
  font-size: 11px;
  text-align: left;
  border-bottom: 1px solid #f8bbd0;
}

info td {
  padding: 8px 10px;
  color: #7a6b7d;
  border-bottom: 1px solid #fce4ec;
  line-height: 1.5;
}

info tbody tr:hover {
  background: #fff9fb;
}

info tbody tr:last-child td {
  border-bottom: none;
}

/* ═══════════════════════════════════════
   🎯 行动推荐
   ═══════════════════════════════════════ */
pick {
  display: block;
  padding: 8px 14px;
  list-style: none;
}

pick li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #fff9fb;
  border: 1px solid #fce4ec;
  border-radius: 10px;
  font-size: 13px;
  color: #5d4e60;
  line-height: 1.5;
  transition: all 0.25s ease;
  cursor: default;
}

pick li:hover {
  background: #fce4ec;
  border-color: #f48fb1;
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(244, 143, 177, 0.12);
}

pick li:last-child {
  margin-bottom: 0;
}

tg {
  flex-shrink: 0;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

pick li:nth-child(1) tg {
  background: #e0f2f1;
  color: #00897b;
  border: 1px solid #80cbc4;
}

pick li:nth-child(2) tg {
  background: #fce4ec;
  color: #e91e63;
  border: 1px solid #f48fb1;
}

pick li:nth-child(3) tg {
  background: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffcc80;
}

pick li:nth-child(4) tg {
  background: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

/* ═══════════════════════════════════════
   聊天框美化 — 清新粉系 × 新房昭之
   适配 Rili 平台
   ═══════════════════════════════════════ */

/* ── AI回复气泡（is-assistant） ── */
.group.flex.is-assistant > .is-user\:dark {
  background: linear-gradient(135deg, #ffffff 0%, #fff9fb 60%, #fce4ec 100%) !important;
  border: 1.5px solid #f8bbd0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(244, 143, 177, 0.1) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
  isolation: isolate !important;
}

.group.flex.is-assistant > .is-user\:dark:hover {
  border-color: #f48fb1 !important;
  box-shadow: 0 3px 18px rgba(244, 143, 177, 0.16) !important;
}

/* ── 用户输入气泡（is-user）— 薄荷绿区分 ── */
.group.flex.is-user > .is-user\:dark {
  background: linear-gradient(135deg, #ffffff 0%, #f5fcfb 60%, #e0f2f1 100%) !important;
  border: 1.5px solid #b2dfdb !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(128, 203, 196, 0.1) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
  isolation: isolate !important;
}

.group.flex.is-user > .is-user\:dark:hover {
  border-color: #80cbc4 !important;
  box-shadow: 0 3px 18px rgba(128, 203, 196, 0.16) !important;
}

/* ── 文本内容 ── */
.rili-markdown-renderer {
  color: #4a3f4e !important;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif !important;
  line-height: 1.85 !important;
  letter-spacing: 0.3px !important;
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}

/* ── 底部操作按钮（工具栏按钮） ── */
.bg-muted.rounded.flex button {
  color: #b39dba !important;
  transition: all 0.2s ease !important;
}

.bg-muted.rounded.flex button:hover {
  color: #e91e63 !important;
  background: rgba(252, 228, 236, 0.5) !important;
}

.bg-muted.rounded.flex button svg {
  stroke: #b39dba !important;
}

.bg-muted.rounded.flex button:hover svg {
  stroke: #e91e63 !important;
}

/* ── Token消耗信息（蓝/绿点+数字） ── */
.text-xs.font-mono.text-muted-foreground {
  color: #ce93d8 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
}

.text-xs.font-mono.text-muted-foreground .bg-blue-500\/60 {
  background: #ce93d8 !important;
}

.text-xs.font-mono.text-muted-foreground .bg-green-500\/60 {
  background: #f48fb1 !important;
}

/* ═══════════════════════════════════════
   新房昭之风格 · 加载动画
   ── 斜线切割 + 色块闪烁 + 锐角几何 ──
   ═══════════════════════════════════════ */

/* 隐藏默认加载动画圆点 */
.flex.gap-2.w-full.h-full.items-center.justify-center > span.bg-primary.rounded-full {
  display: none !important;
}

/* 加载容器 */
.flex.gap-2.w-full.h-full.items-center.justify-center {
  position: relative !important;
  width: 80px !important;
  height: 40px !important;
  overflow: visible !important;
}

/* 主体动画 — 新房式斜线切割三角 */
.flex.gap-2.w-full.h-full.items-center.justify-center::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 80px !important;
  height: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'%3E%3Cdefs%3E%3CclipPath id='shaft-cut'%3E%3Crect x='0' y='0' width='80' height='40'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23shaft-cut)'%3E%3Cline x1='8' y1='38' x2='24' y2='2' stroke='%23f48fb1' stroke-width='2.5' stroke-linecap='square'%3E%3Canimate attributeName='opacity' values='0;1;1;0;0' dur='1.6s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='stroke' values='%23f48fb1;%23e91e63;%23f48fb1' dur='1.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='32' y1='38' x2='48' y2='2' stroke='%23e91e63' stroke-width='3' stroke-linecap='square'%3E%3Canimate attributeName='opacity' values='0;0;1;1;0' dur='1.6s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='stroke' values='%23e91e63;%23ad1457;%23e91e63' dur='1.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='56' y1='38' x2='72' y2='2' stroke='%23ce93d8' stroke-width='2.5' stroke-linecap='square'%3E%3Canimate attributeName='opacity' values='0;0;0;1;1' dur='1.6s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='stroke' values='%23ce93d8;%237b1fa2;%23ce93d8' dur='1.6s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='0' y1='20' x2='80' y2='20' stroke='%23f8bbd0' stroke-width='0.5'%3E%3Canimate attributeName='opacity' values='0;0.6;0;0.6;0' dur='0.8s' repeatCount='indefinite'/%3E%3C/line%3E%3Cpolygon points='10,35 22,5 16,5' fill='%23fce4ec'%3E%3Canimate attributeName='opacity' values='0;0.7;0;0' dur='1.6s' repeatCount='indefinite' begin='0.1s'/%3E%3C/polygon%3E%3Cpolygon points='34,35 46,5 40,5' fill='%23fce4ec'%3E%3Canimate attributeName='opacity' values='0;0;0.7;0' dur='1.6s' repeatCount='indefinite' begin='0.1s'/%3E%3C/polygon%3E%3Cpolygon points='58,35 70,5 64,5' fill='%23f3e5f5'%3E%3Canimate attributeName='opacity' values='0;0;0;0.7' dur='1.6s' repeatCount='indefinite' begin='0.1s'/%3E%3C/polygon%3E%3Cline x1='0' y1='8' x2='80' y2='8' stroke='%23e91e63' stroke-width='0.8'%3E%3Canimate attributeName='x1' values='-80;80' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='x2' values='0;160' dur='0.6s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;0.8;0' dur='0.6s' repeatCount='indefinite'/%3E%3C/line%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

/* 底部装饰线 — 新房式快速扫描线 */
.flex.gap-2.w-full.h-full.items-center.justify-center::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60px !important;
  height: 2px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 2'%3E%3Crect x='0' y='0' width='60' height='2' fill='%23fce4ec'/%3E%3Crect x='0' y='0' width='20' height='2' fill='%23f48fb1'%3E%3Canimate attributeName='x' values='-20;60' dur='1.2s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;1;1;0' dur='1.2s' repeatCount='indefinite'/%3E%3C/rect%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

/* ═══════════════════════════════════════
   聊天框背景装饰 — 新房式几何点缀
   ═══════════════════════════════════════ */

/* AI回复气泡 — 右上角斜线装饰 */
.group.flex.is-assistant > .is-user\:dark::before {
  content: '' !important;
  position: absolute !important;
  top: 6px !important;
  right: 8px !important;
  width: 30px !important;
  height: 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cline x1='6' y1='18' x2='12' y2='2' stroke='%23f8bbd0' stroke-width='1'%3E%3Canimate attributeName='opacity' values='0.15;0.35;0.15' dur='4s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='14' y1='18' x2='20' y2='2' stroke='%23f3e5f5' stroke-width='1'%3E%3Canimate attributeName='opacity' values='0.1;0.3;0.1' dur='4s' repeatCount='indefinite' begin='1.3s'/%3E%3C/line%3E%3Cline x1='22' y1='18' x2='28' y2='2' stroke='%23f8bbd0' stroke-width='0.5'%3E%3Canimate attributeName='opacity' values='0.1;0.25;0.1' dur='4s' repeatCount='indefinite' begin='2.6s'/%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* AI回复气泡 — 左下角三角装饰 */
.group.flex.is-assistant > .is-user\:dark::after {
  content: '' !important;
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  width: 20px !important;
  height: 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpolygon points='2,14 10,2 18,14' fill='none' stroke='%23f8bbd0' stroke-width='0.8'%3E%3Canimate attributeName='opacity' values='0.12;0.28;0.12' dur='5s' repeatCount='indefinite'/%3E%3C/polygon%3E%3Cpolygon points='6,12 10,5 14,12' fill='%23fce4ec'%3E%3Canimate attributeName='opacity' values='0.05;0.15;0.05' dur='5s' repeatCount='indefinite' begin='1s'/%3E%3C/polygon%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* 用户输入气泡 — 右上角斜线装饰（薄荷绿色调） */
.group.flex.is-user > .is-user\:dark::before {
  content: '' !important;
  position: absolute !important;
  top: 6px !important;
  right: 8px !important;
  width: 30px !important;
  height: 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cline x1='6' y1='18' x2='12' y2='2' stroke='%23b2dfdb' stroke-width='1'%3E%3Canimate attributeName='opacity' values='0.15;0.35;0.15' dur='4s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='14' y1='18' x2='20' y2='2' stroke='%23e0f2f1' stroke-width='1'%3E%3Canimate attributeName='opacity' values='0.1;0.3;0.1' dur='4s' repeatCount='indefinite' begin='1.3s'/%3E%3C/line%3E%3Cline x1='22' y1='18' x2='28' y2='2' stroke='%23b2dfdb' stroke-width='0.5'%3E%3Canimate attributeName='opacity' values='0.1;0.25;0.1' dur='4s' repeatCount='indefinite' begin='2.6s'/%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* 用户输入气泡 — 左下角三角装饰（薄荷绿色调） */
.group.flex.is-user > .is-user\:dark::after {
  content: '' !important;
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  width: 20px !important;
  height: 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpolygon points='2,14 10,2 18,14' fill='none' stroke='%23b2dfdb' stroke-width='0.8'%3E%3Canimate attributeName='opacity' values='0.12;0.28;0.12' dur='5s' repeatCount='indefinite'/%3E%3C/polygon%3E%3Cpolygon points='6,12 10,5 14,12' fill='%23e0f2f1'%3E%3Canimate attributeName='opacity' values='0.05;0.15;0.05' dur='5s' repeatCount='indefinite' begin='1s'/%3E%3C/polygon%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* ═══════════════════════════════════════
   移动端适配
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .flex.gap-2.w-full.h-full.items-center.justify-center {
    width: 64px !important;
    height: 32px !important;
  }

  .group.flex.is-assistant > .is-user\:dark::before,
  .group.flex.is-user > .is-user\:dark::before {
    width: 24px !important;
    height: 16px !important;
    top: 4px !important;
    right: 6px !important;
  }

  .group.flex.is-assistant > .is-user\:dark::after,
  .group.flex.is-user > .is-user\:dark::after {
    width: 16px !important;
    height: 12px !important;
  }
}

/* ── 低动效偏好 ── */
@media (prefers-reduced-motion: reduce) {
  .flex.gap-2.w-full.h-full.items-center.justify-center::before,
  .flex.gap-2.w-full.h-full.items-center.justify-center::after,
  .group.flex.is-assistant > .is-user\:dark::before,
  .group.flex.is-assistant > .is-user\:dark::after,
  .group.flex.is-user > .is-user\:dark::before,
  .group.flex.is-user > .is-user\:dark::after {
    animation-duration: 8s !important;
  }
}

/* ═══════════════════════════════════════
   界面美化 — 清新粉系全家桶
   适配 Rili 平台
   ═══════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   整体聊天区域外框
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 消息行容器 */
.w-full.h-full.flex.group.scroll-mt-\[96px\].rounded-xl {
  transition: all 0.3s ease !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   工具栏容器美化
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 工具栏背景 */
.bg-muted.rounded.flex.p-0\.5 {
  background: rgba(252, 228, 236, 0.4) !important;
  border: 1px solid #f8bbd0 !important;
  border-radius: 10px !important;
  transition: all 0.25s ease !important;
}

.bg-muted.rounded.flex.p-0\.5:hover {
  background: rgba(252, 228, 236, 0.6) !important;
  border-color: #f48fb1 !important;
}