/* 外部群组预览模态框样式 */
.external-group-preview-modal .ant-modal-content {
  overflow: hidden;
}

.external-group-preview-modal .ant-modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 16px;
}

/* 群组头部信息 */
.group-header-card {
  border: none;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.group-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.group-avatar {
  flex-shrink: 0;
}

.group-info {
  flex: 1;
  min-width: 0;
}

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

.group-meta {
  color: #8c8c8c;
  font-size: 14px;
}

.group-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 加载状态 */
.loading-placeholder {
  text-align: center;
  padding: 20px;
}

.loading-placeholder .anticon {
  margin-bottom: 16px;
}

/* 错误状态 */
.error-placeholder {
  text-align: center;
  padding: 20px;
}

.error-placeholder .anticon {
  margin-bottom: 16px;
}

/* 群组内容区域 */
.group-preview-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 群组操作按钮 */
.group-actions {
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}

.group-actions .ant-btn {
  min-width: 120px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .external-group-preview-modal {
    width: 95% !important;
    max-width: none !important;
  }
  
  .group-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .group-title-section {
    justify-content: center;
  }
  
  .group-actions .ant-space {
    flex-direction: column;
    width: 100%;
  }
  
  .group-actions .ant-btn {
    width: 100%;
  }
}

/* 验证状态徽章 */
.ant-badge-status-text {
  font-size: 12px;
  margin-left: 4px;
}

/* 群组统计卡片 */
.ant-card-body > .ant-space > .ant-space-item > div {
  text-align: center;
  min-width: 80px;
}

/* 警告信息卡片 */
.ant-card[style*="background-color: rgb(255, 247, 230)"] .ant-space {
  width: 100%;
}

/* 模态框头部图标 */
.external-group-preview-modal .ant-modal-header .ant-modal-title > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 群组描述段落 */
.group-preview-content .ant-typography {
  margin-bottom: 0;
}

/* 动画效果 */
.group-header-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 按钮悬停效果 */
.group-actions .ant-btn:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* 群组元信息样式优化 */
.group-meta .ant-space-item {
  display: flex;
  align-items: center;
}

/* 加载动画 */
.loading-placeholder .anticon {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}