/* 社交 + 聊天 · 与主站动态玻璃 UI 统一 */
.social-panel { margin-top: 32px; }
.social-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
}
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.45);
  box-shadow: 0 8px 24px rgba(56,189,248,0.12);
}
.social-btn.active {
  color: #fb7185;
  border-color: rgba(251,113,133,0.45);
  background: rgba(251,113,133,0.1);
  box-shadow: 0 0 20px rgba(251,113,133,0.15);
}
.social-meta { margin-left: auto; font-size: 13px; color: var(--muted); }
.social-comments { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.social-comment {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
}
.social-comment-body { flex: 1; min-width: 0; }
.social-comment-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; font-size: 13px; }
.social-comment-head time { color: var(--muted); font-size: 12px; }
.social-comment p { margin: 0; font-size: 14px; line-height: 1.55; word-break: break-word; }
.social-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(56,189,248,0.25);
}
.social-avatar-ph {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, #38bdf8, #6366f1);
}
.social-compose {
  display: flex; gap: 12px; align-items: flex-end;
  padding: 14px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--glass-border);
}
.social-compose textarea { flex: 1; min-height: 56px; resize: vertical; }

.profile-card {
  display: flex; gap: 20px; align-items: center; margin-bottom: 28px;
  padding: 24px !important;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(99,102,241,0.06)) !important;
}
.profile-card .avatar-wrap { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.profile-card .avatar-wrap img, .profile-card .avatar-wrap .avatar-ph {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(56,189,248,0.35);
  box-shadow: 0 8px 32px rgba(56,189,248,0.2);
}
.profile-card .avatar-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}
.profile-card .avatar-edit {
  position: absolute; right: -2px; bottom: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: 2px solid var(--bg); color: #fff;
  font-size: 16px; cursor: pointer; line-height: 1;
  box-shadow: 0 4px 12px rgba(56,189,248,0.4);
  transition: transform 0.2s;
}
.profile-card .avatar-edit:hover { transform: scale(1.08); }
.profile-card .profile-meta h2 { margin: 0 0 6px; font-size: 20px; font-family: var(--font-display); }
.profile-card .profile-meta p { margin: 0; font-size: 13px; color: var(--muted); }

.chat-room { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.chat-online {
  display: flex; flex-wrap: wrap; gap: 20px; padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(99,102,241,0.08));
  border: 1px solid rgba(56,189,248,0.22);
  font-size: 13px; animation: chat-glow 4s ease-in-out infinite;
}
@keyframes chat-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(56,189,248,0); }
  50% { box-shadow: 0 0 24px rgba(56,189,248,0.12); }
}
.chat-online strong { color: var(--accent); margin-right: 4px; font-variant-numeric: tabular-nums; }
.chat-messages {
  min-height: 340px; max-height: 54vh; overflow-y: auto;
  padding: 18px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex; gap: 12px; align-items: flex-start;
  animation: msg-in 0.35s var(--ease) both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-head { display: flex; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.chat-msg-head time { color: var(--muted); font-size: 12px; }
.chat-msg p { margin: 0; font-size: 14px; line-height: 1.55; word-break: break-word; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(99,102,241,0.3);
}
.chat-avatar-ph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  font-size: 13px; font-weight: 700;
}
.chat-compose {
  display: flex; gap: 12px; align-items: flex-end;
  padding: 14px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--glass-border);
}
.chat-compose textarea { flex: 1; min-height: 56px; }

.register-code-row { display: flex; gap: 10px; }
.register-code-row input { flex: 1; }
.register-code-row button { flex-shrink: 0; white-space: nowrap; }
