/* ===== 消息通知 ===== */
.notif-bell {
  position: relative;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .2s;
  color: #666;
  display: inline-flex;
  align-items: center;
}
.notif-bell:hover { background: #f0f0f0; color: var(--primary); }
.notif-badge {
  position: absolute;
  top: 2px; right: 0;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.notif-panel {
  position: absolute;
  top: 52px;
  right: 28px;
  width: 380px;
  max-height: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notifSlideIn .2s ease-out;
}
@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.notif-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .15s;
}
.notif-mark-all:hover { background: var(--primary-light); }
.notif-panel-body {
  overflow-y: auto;
  flex: 1;
  max-height: 420px;
}
.notif-item {
  padding: 14px 18px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.notif-item:hover { background: #fafbfc; }
.notif-item.unread { background: #f0f7ff; }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.notif-item.unread:hover { background: #e6f0ff; }
.notif-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.notif-item-time {
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
}
.notif-item-content {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-item-actions {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}
.notif-empty {
  text-align: center;
  padding: 40px 20px;
  color: #bbb;
  font-size: 14px;
}
@media (max-width: 768px) {
  .notif-panel { width: calc(100vw - 20px); right: 10px; }
}
