/* ===== 群组视图 ===== */
.gv-root { display: flex; flex-direction: column; height: 100%; }

.gv-topbar {
  padding: 0 0 20px;
}

.gv-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 9px 14px;
  max-width: 480px;
}

.gv-search-input {
  border: none;
  outline: none;
  font-size: 13px;
  color: #374151;
  width: 100%;
  background: none;
}
.gv-search-input::placeholder { color: #9ca3af; }

.gv-body { flex: 1; overflow-y: auto; }

.gv-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gv-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.gv-page-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.gv-create-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.gv-create-btn:hover { background: #4338ca; }

/* 卡片网格 */
.gv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.gv-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  transition: box-shadow 0.15s;
}
.gv-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.gv-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.gv-room-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.gv-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid white;
}

.gv-room-meta { flex: 1; min-width: 0; }

.gv-room-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}

.gv-room-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
}

.gv-card-actions {
  display: flex;
  gap: 4px;
}

.gv-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.gv-icon-btn:hover { background: #f3f4f6; color: #4f46e5; }

.gv-latest-msg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.gv-latest-tag {
  font-size: 11px;
  font-weight: 600;
  color: #4f46e5;
}

.gv-latest-time {
  font-size: 11px;
  color: #9ca3af;
}

.gv-latest-content {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gv-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.gv-member-avatars {
  display: flex;
  align-items: center;
}

.gv-member-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
}

.gv-enter-btn {
  padding: 5px 14px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.gv-enter-btn:hover { background: #4338ca; }

/* 探索卡片 */
.gv-explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 180px;
  background: #f9fafb;
  border-style: dashed;
}

.gv-explore-icon { margin-bottom: 4px; }

.gv-explore-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.gv-explore-sub {
  font-size: 12px;
  color: #9ca3af;
}

.gv-explore-link {
  background: none;
  border: none;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
.gv-explore-link:hover { color: #4338ca; }

/* 成员选择 */
.gv-member-select {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
}

.gv-member-item {
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.gv-member-item:hover {
  background: #f9fafb;
}

.gv-member-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gv-member-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gv-member-alias {
  font-size: 12px;
  color: #9ca3af;
  margin-left: 4px;
}

.gv-selected-count {
  margin-top: 12px;
  font-size: 13px;
  color: #4f46e5;
  font-weight: 600;
}

.gv-empty-friends {
  padding: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.gv-add-member-content {
  padding-top: 8px;
}

/* 分组标题 */
.gv-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  padding-left: 4px;
}

/* 数字员工头像 */
.gv-employee-avatar {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}

/* 数字员工徽章 */
.gv-employee-badge {
  display: inline-block;
  padding: 2px 6px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  margin-left: 6px;
}
