.container {
  padding: 16px;
  padding-bottom: 100px;
  background: #f3f4f6;
  min-height: 100vh;
  position: relative;
}

.syncOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.syncContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 32px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.syncText {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

.loadingContainer,
.emptyContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.emptyText {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 24px;
}

.backButton {
  padding: 8px 16px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.moreButton {
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: color 0.2s;

  &:hover {
    color: #111827;
  }
}

// 群组信息卡片
.groupInfoCard {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.groupIconLarge {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 0 auto 16px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  font-weight: 600;
  letter-spacing: 1px;
}

.groupTitle {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 4px 0;
}

.createTimeInfo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.createTimeIcon {
  font-size: 16px;
}

.actionButtons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.actionButton {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;

  &:active {
    background: rgba(59, 130, 246, 0.2);
  }
}

.actionButtonIcon {
  font-size: 18px;
}

// 基本信息
.basicInfoCard {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sectionTitleDot {
  width: 4px;
  height: 16px;
  background: #3b82f6;
  border-radius: 2px;
}

.basicInfoList {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.basicInfoItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.basicInfoLabel {
  font-size: 14px;
  color: #6b7280;
}

.basicInfoValue {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 4px;
}

.planIcon {
  font-size: 16px;
  color: #3b82f6;
  margin-right: 4px;
}

.adminAvatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fef3c7;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-right: 8px;
  position: relative;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.adminAvatarText {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

.basicInfoDivider {
  height: 1px;
  background: #f3f4f6;
}

.noAnnouncement {
  color: #9ca3af;
  display: flex;
  align-items: center;
}

.chevronIcon {
  font-size: 16px;
  margin-left: 4px;
}

// 群成员
.membersCard {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.membersHeader {
  padding: 20px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.memberCountBadge {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 9999px;
}

.searchButton {
  padding: 6px;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;

  &:active {
    background: #f3f4f6;
  }
}

.searchBox {
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.searchInput {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;

  &:focus {
    border-color: #3b82f6;
  }
}

.membersList {
  max-height: 320px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.memberItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f9fafb;
  transition: background 0.2s;

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

  &:active {
    background: #f9fafb;
  }
}

.memberInfo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.memberInfoText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.memberNameRow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.memberAvatarWrapper {
  position: relative;
}

.memberAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.memberAvatarPlaceholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9d5ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.adminBadge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fbbf24;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adminBadgeIcon {
  font-size: 10px;
  color: #fff;
}

.memberInfoText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.memberNameRow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.memberName {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.memberWechatId {
  font-size: 12px;
  color: #6b7280;
}

.quitTag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.joinStatusTag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.memberExtraInfo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  flex-wrap: wrap;
}

.divider {
  color: #d1d5db;
}

.memberJoinTime {
  font-size: 12px;
  color: #9ca3af;
}

.memberActions {
  display: flex;
  align-items: center;
}

.adminTag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.3);
}

.removeButton {
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: color 0.2s;

  &:active {
    color: #ef4444;
  }
}

.emptyMembers {
  padding: 40px 20px;
  text-align: center;
}

.emptyMembersText {
  font-size: 14px;
  color: #9ca3af;
}

// 操作按钮
.actionsSection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.actionCard {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;

  &:active {
    background: #f9fafb;
  }
}

.actionCardIcon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.actionCard:hover .actionCardIcon {
  background: #dbeafe;
  color: #3b82f6;
}

.actionCardText {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.actionCardDanger {
  &:active {
    background: #fef2f2;
  }
}

.actionCardIconDanger {
  background: #fee2e2;
  color: #ef4444;
}

.actionCardTextDanger {
  color: #dc2626;
}
