.forwardedPreview {
  margin: 8px 0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.forwardedPreview:hover {
  border-color: #1890ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

.forwardedPreview.compact {
  margin: 4px 0;
  border-radius: 4px;
}

.forwardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #e8e8e8;
  background: #f5f5f5;
  cursor: pointer;
  user-select: none;
}

.forwardHeader:hover {
  background: #f0f0f0;
}

.forwardBadge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1890ff;
  font-size: 12px;
  font-weight: 500;
}

.forwardBadge .icon {
  font-size: 14px;
}

.forwardSource {
  color: #666;
  font-size: 12px;
  margin-left: 8px;
}

.forwardActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expandButton {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.expandButton:hover {
  color: #1890ff;
  background: #e6f7ff;
}

.jumpButton {
  background: #1890ff;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jumpButton:hover {
  background: #40a9ff;
  transform: translateY(-1px);
}

.jumpButton:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
  transform: none;
}

.previewContent {
  padding: 12px;
  background: white;
  border-radius: 0 0 8px 8px;
}

.previewContent.compact {
  padding: 8px;
}

.originalMessage {
  border-left: 3px solid #1890ff;
  padding-left: 12px;
  margin: 8px 0;
}

.originalMessage.compact {
  padding-left: 8px;
  margin: 4px 0;
}

.originalHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.originalSender {
  font-weight: 500;
  color: #1890ff;
  font-size: 13px;
}

.originalTime {
  color: #999;
  font-size: 11px;
}

.originalContent {
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.originalContent.compact {
  font-size: 13px;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
}

.error {
  color: #ff4d4f;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.unavailable {
  color: #999;
  font-style: italic;
  padding: 8px 12px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 4px;
}

/* 转发消息内容样式 */
.forwardedContent {
  background: white;
  border-radius: 0 0 8px 8px;
}

.contentContainer {
  padding: 12px;
}

.contentHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}

.contentLabel {
  font-weight: 500;
  color: #1890ff;
  font-size: 13px;
}

.contentBody {
  padding: 8px 0;
}

.contentBody.compact {
  padding: 4px 0;
}

.textContent {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  margin-bottom: 8px;
}

.mediaInfo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.filename {
  color: #666;
  font-size: 12px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.senderInfo {
  color: #666;
  font-size: 12px;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.historyButton,
.enhancedButton {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.historyButton:hover,
.enhancedButton:hover {
  color: #1890ff;
  background: #e6f7ff;
}

.historyFloatingButton {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.historyFloatingButton:hover {
  opacity: 1;
}

/* 跳转历史记录样式 */
.jumpHistoryList {
  max-height: 300px;
  overflow-y: auto;
}

.jumpHistoryItem {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jumpHistoryItem:hover {
  background: #f0f0f0;
}

.jumpHistoryIcon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #1890ff;
}

.jumpHistoryContent {
  flex: 1;
}

.jumpHistoryType {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.jumpHistoryTitle {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.jumpHistoryArrow {
  margin-left: 10px;
  color: #ccc;
}

.emptyHistory {
  padding: 20px;
  text-align: center;
  color: #999;
}

/* 增强预览模态框样式 */
.previewModalContent {
  background: #fff;
  border-radius: 6px;
}

.previewModalHeader {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.previewModalTitle {
  font-weight: 500;
  font-size: 14px;
}

.previewModalTime {
  color: #999;
  font-size: 12px;
}

.previewModalBody {
  padding: 10px 0;
}

.previewModalText {
  background: #f9f9f9;
  border-radius: 4px;
  padding: 10px;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.previewModalMedia {
  margin: 10px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mediaTypeTag {
  margin-right: 8px;
}

.mediaFilename {
  color: #666;
  font-size: 13px;
}

.previewModalFooter {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .forwardHeader {
    padding: 6px 8px;
  }

  .forwardBadge {
    font-size: 11px;
  }

  .forwardSource {
    font-size: 11px;
  }

  .contentContainer {
    padding: 8px;
  }

  .textContent {
    font-size: 13px;
  }

  .filename {
    max-width: 150px;
  }

  .jumpHistoryTitle {
    max-width: 180px;
  }

  .previewModalText {
    max-height: 200px;
  }
}