/* ---------- 顶部消息通知（小喇叭） ---------- */
.notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
}
.notif-bell:hover { background: rgba(255, 255, 255, 0.28); }
.notif-bell:active { background: rgba(255, 255, 255, 0.35); }

.notif-icon { display: inline-block; }

/* 未读数量徽标 */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--primary);
}

/* 下拉面板 */
.notif-panel {
  position: absolute;
  top: 46px;
  right: 0;
  width: 340px;
  max-height: 70vh;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.notif-panel-title { font-weight: 600; color: var(--text); font-size: 14px; }
.notif-readall {
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
}
.notif-readall:hover { text-decoration: underline; }

.notif-list {
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px; /* 消息之间分割间距 */
}

.notif-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 40px 0;
}

/* 单条消息 */
.notif-item {
  position: relative;
  padding: 10px 12px 10px 14px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: #f8fafc; }

/* 未读高亮 */
.notif-item.unread {
  background: #eff6ff;
  border-left-color: var(--primary);
}
.notif-item.unread .notif-title { color: var(--text); font-weight: 600; }
/* 已读弱化区分 */
.notif-item.read { opacity: 0.7; }

.notif-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.notif-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}
.notif-item.read .notif-tag { background: #cbd5e1; }
.notif-time { font-size: 11px; color: var(--muted); }

.notif-title {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
  word-break: break-all;
}
.notif-content {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  word-break: break-all;
}
