.detailContainer {
  padding: 16px;
}

.detailCard {
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

  :global(.ant-card-head) {
    border-bottom: 1px solid #f0f0f0;
  }

  :global(.ant-card-head-title) {
    font-size: 16px;
    font-weight: 600;
  }
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;

  h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
  }
}

.groupList,
.robotList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.groupItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e5e6eb;
}

.groupAvatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.groupInfo {
  flex: 1;
  min-width: 0;
}

.groupName {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  word-break: break-all;
}

.groupOwner {
  font-size: 13px;
  color: #666;
  word-break: break-all;
}

.messageList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.messageItem {
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
}

.messageHeader {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.messageContent {
  margin-top: 8px;
}

.textContent {
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

.fileContent {
  padding: 12px;
  background: #fff;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .detailContainer {
    padding: 12px;
  }

  .cardHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
