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

.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;
}

// 基本信息卡片
.infoCard {
  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;
}

.infoHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.infoTitle {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.infoSubtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.statusRunning {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.statusStopped {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.statusDot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.infoMeta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.metaItem {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.metaValue {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.metaIcon {
  font-size: 16px;
  color: #9ca3af;
  margin-right: 4px;
}

// 统计信息
.statsSection {
  margin-bottom: 24px;
}

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

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

.statsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.statCard {
  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;
  justify-content: center;
  text-align: center;
}

.statIcon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
}

.statIconBlue {
  background: #dbeafe;
  color: #3b82f6;
}

.statIconGreen {
  background: #d1fae5;
  color: #10b981;
}

.statIconPurple {
  background: #f3e8ff;
  color: #8b5cf6;
}

.statNumber {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

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

// 配置信息
.configCard {
  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;
}

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

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

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

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

.deviceIcon {
  font-size: 16px;
  margin-right: 4px;
}

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

.wechatTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.wechatTag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.wechatTagAdmin {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.adminBadge {
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid rgba(146, 64, 14, 0.3);
  background: rgba(254, 243, 199, 0.5);
}

// 群列表
.groupsSection {
  margin-bottom: 24px;
}

.groupsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.viewAllButton {
  font-size: 12px;
  font-weight: 500;
  color: #3b82f6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.groupsList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.groupCard {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  cursor: pointer;

  &:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }

  &:hover {
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
  }
}

.groupCardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.groupCardLeft {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.groupIconWrapper {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.groupIconImg,
.groupIconFallback {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
}

.groupIconImg {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.groupIconFallback {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  background-size: cover;
  background-position: center;
  letter-spacing: 0.5px;
}

.groupName {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.groupMeta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
}

.groupMemberCount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.4;
}

.groupDate {
  color: #6b7280;
  font-weight: 400;
}

.chevronIcon {
  font-size: 24px;
  color: #d1d5db;
  flex-shrink: 0;
}

.groupMembers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  margin-left: 20px;
  border-top: 1px solid #f3f4f6;
}

.memberAvatars {
  display: flex;
  align-items: center;
  margin-left: -10px;
}

.memberAvatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  object-fit: cover;
  position: relative;
}

.memberMore {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
  margin-left: -10px;
  position: relative;
  z-index: 0;
}

.viewDetailText {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

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

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