/* ========== 全局消息通知弹窗（右上角） ========== */
.gn-container {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}
.gn-card {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.21,1.02,.73,1), opacity .35s ease;
  animation: gn-slide-in .4s cubic-bezier(.21,1.02,.73,1) both;
  position: relative;
  overflow: hidden;
}
.gn-card.gn-leaving {
  transform: translateX(120%);
  opacity: 0;
}
.gn-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff6b35, #f7931e);
  border-radius: 12px 0 0 12px;
}
.gn-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, #ffe0cc, #ffb88c);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #ff6b35;
  overflow: hidden;
}
.gn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gn-body { flex: 1; min-width: 0; }
.gn-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 3px;
}
.gn-name {
  font-size: 13px; font-weight: 600; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 180px;
}
.gn-time { font-size: 11px; color: #aaa; flex-shrink: 0; }
.gn-msg {
  font-size: 13px; color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  word-break: break-all;
}
.gn-close {
  position: absolute; top: 6px; right: 8px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #ccc; font-size: 14px;
  transition: all .15s;
}
.gn-close:hover { background: #f5f5f5; color: #999; }
@keyframes gn-slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@media (max-width: 600px) {
  .gn-container { top: 64px; right: 8px; left: 8px; max-width: none; }
  .gn-name { max-width: 120px; }
}