.im-group-join-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.im-group-join-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.im-group-join-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 58vh;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #f7f8fa;
  animation: imGroupJoinUp 0.22s ease-out;
}

@keyframes imGroupJoinUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.im-group-join-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 48px;
  background: #fff;
}

.im-group-join-header h3 {
  margin: 0;
  color: #222;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.im-group-join-back {
  height: 44px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 32px;
  line-height: 1;
}

.im-group-join-search {
  display: grid;
  grid-template-columns: 48px 1fr 58px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff;
}

.im-group-join-search label {
  color: #333;
  font-size: 14px;
}

.im-group-join-search input {
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  outline: none;
  background: #f7f8fa;
  color: #222;
  font-size: 14px;
}

.im-group-search-button,
.im-group-join-button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: #22a886;
  color: #fff;
  font-size: 13px;
}

.im-group-search-button:disabled,
.im-group-join-button:disabled {
  opacity: 0.62;
}

.im-group-join-content {
  padding: 16px;
}

.im-group-join-tip,
.im-group-join-error {
  margin: 42px 0 0;
  color: #999;
  font-size: 14px;
  text-align: center;
}

.im-group-join-error {
  color: #ee0a24;
}

.im-group-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.im-group-result-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
}

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

.im-group-result-info strong,
.im-group-result-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.im-group-result-info strong {
  color: #222;
  font-size: 16px;
}

.im-group-result-info small {
  margin-top: 5px;
  color: #999;
  font-size: 12px;
}

.im-group-result-status {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
}

.im-group-result-status.success { color: #22a886; }
.im-group-result-status.error { color: #ee0a24; }
