.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

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

.title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.searchWrapper {
  padding: 12px 16px;
  background: #f9fafb;

  :global(.adm-search-bar) {
    --background: #fff;
    --border-radius: 12px;
    --height: 44px;
  }
}

.selectedBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f0f7ff;
  border-bottom: 1px solid #e0efff;
}

.selectedCount {
  font-size: 14px;
  color: #007aff;
  font-weight: 600;
}

.listHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.totalCount {
  font-size: 13px;
  color: #9ca3af;
}

.friendList {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 12px;
  color: #9ca3af;
  font-size: 14px;
}

.friendItem {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;

  &:active {
    background: #f9fafb;
  }

  &.selected {
    background: #f0f7ff;
    border-color: #007aff;
  }
}

.avatar {
  --size: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

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

.friendName {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechatId {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.tag {
  font-size: 10px;
  padding: 2px 6px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 4px;
}

.footer {
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #f3f4f6;
}

.confirmBtn {
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}
