.conversation {
  margin: 20px 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.conversation .msg {
  display: flex;
  gap: 12px;
  line-height: 1.6;
  word-wrap: break-word;
  padding: 12px 0;
}

/* 奇数项：用户消息（第1、3、5...条）- 带avatar */
.conversation .msg:nth-child(odd) {
  flex-direction: row;
  align-items: flex-start;
  padding: 12px 0 12px 12px;
  border-radius: 8px;
  background: rgba(128, 128, 128, 0.1);
}

.conversation .msg:nth-child(odd)::before {
  content: "Me";
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tertiary);
  color: var(--content);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.conversation .msg:nth-child(odd) > * {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  max-width: calc(100% - 48px);
}

/* 偶数项：对方消息（第2、4、6...条）- 正文形式 */
.conversation .msg:nth-child(even) {
  flex-direction: column;
  max-width: 100%;
  padding: 12px 0 12px 12px;
  background: transparent;
  color: inherit;
}

.conversation .msg:nth-child(even) > * {
  margin: 0;
  background: transparent;
}

