/* 站内信提醒（铃铛下拉 + 右下角轻提示）2026-11-18 */
#page-topbar .nc-wrap { position: relative; }

/* ---------- 铃铛下拉外壳 ---------- */
#page-topbar .nc-drop {
  position: absolute; top: calc(100% + 2px); right: -8px; width: 344px;
  background: #fff; border: 1px solid #e9ecef; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(28, 22, 40, .12); z-index: 1060;
  display: none; overflow: hidden;
}
#page-topbar .nc-drop.show { display: block; }
#page-topbar .nc-drop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px 9px; border-bottom: 1px solid #f1f3f5;
}
#page-topbar .nc-drop-head b { color: #b074d1; font-weight: 500; }
#page-topbar .nc-drop-t { font-size: 13px; color: #2b313c; }
#page-topbar .nc-link {
  border: 0; background: none; padding: 0; font-size: 12px; color: #8a94a6; cursor: pointer;
}
#page-topbar .nc-link:hover { color: #7a3fa0; }
#page-topbar .nc-drop-body { max-height: 322px; overflow-y: auto; }
#page-topbar .nc-drop-foot {
  display: block; padding: 10px; text-align: center; font-size: 12.5px;
  color: #7a3fa0; background: #fcfbfe; border-top: 1px solid #f1f3f5; text-decoration: none;
}
#page-topbar .nc-drop-foot:hover { background: #f7f3fb; color: #7a3fa0; }

/* ---------- 消息条目（下拉与弹窗共用） ---------- */
.nc-item {
  display: flex; gap: 9px; padding: 10px 14px; text-decoration: none;
  border-bottom: 1px solid #f6f7f9; transition: background .12s;
}
.nc-item:last-child { border-bottom: 0; }
.nc-item:hover { background: #fbf9fd; text-decoration: none; }
.nc-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; background: #ced4da; }
.nc-dot.ty1 { background: #378add; }
.nc-dot.ty2 { background: #7f77dd; }
.nc-dot.ty3 { background: #e5484d; }
.nc-dot.ty4, .nc-dot.mk { background: #b4b2a9; }
.nc-txt { min-width: 0; flex: 1 1 auto; display: block; }
.nc-title {
  display: block; font-size: 12.8px; color: #2b313c; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nc-item.is-unread .nc-title { font-weight: 500; }
.nc-sub {
  display: block; font-size: 11.5px; color: #98a0ad; line-height: 1.5; margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nc-time { flex: 0 0 auto; font-size: 11px; color: #a8b0bc; margin-top: 2px; white-space: nowrap; }
.nc-empty { padding: 26px 0; text-align: center; font-size: 12px; color: #b6bdc8; }

/* ---------- 右下角轻提示 ---------- */
.nc-pop {
  position: fixed; right: 20px; bottom: 20px; width: 340px; z-index: 1080;
  background: #fff; border: 1px solid #e9ecef; border-radius: 14px;
  box-shadow: 0 12px 34px rgba(28, 22, 40, .16);
  opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease;
}
.nc-pop.show { opacity: 1; transform: translateY(0); }
.nc-pop[hidden] { display: none; }
.nc-pop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px; border-bottom: 1px solid #f1f3f5;
}
.nc-pop-t { font-size: 13.5px; color: #2b313c; }
.nc-pop-t b { color: #b074d1; font-weight: 500; }
.nc-pop-x {
  border: 0; background: none; font-size: 17px; line-height: 1; color: #b6bdc8;
  cursor: pointer; padding: 0 2px;
}
.nc-pop-x:hover { color: #7a3fa0; }
.nc-pop-body { max-height: 210px; overflow-y: auto; }
.nc-pop-more { padding: 6px 14px 0; font-size: 11.5px; color: #b6bdc8; }
.nc-pop-foot { display: flex; gap: 8px; padding: 10px 14px 12px; }
.nc-pop-foot .nc-btn {
  flex: 1 1 0; height: 30px; border-radius: 7px; font-size: 12.5px; cursor: pointer;
  border: 1px solid #e2e6ea; background: #fff; color: #5b6472; text-align: center;
  line-height: 28px; text-decoration: none;
}
.nc-pop-foot .nc-btn.primary { background: #b074d1; border-color: #b074d1; color: #fff; }
.nc-pop-foot .nc-btn.primary:hover { background: #9c5cc0; color: #fff; }
.nc-pop-foot .nc-btn.ghost { flex: 0 0 62px; color: #98a0ad; }
.nc-pop-foot .nc-btn:hover { color: #7a3fa0; border-color: #d8c2ea; }
.nc-pop-foot .nc-btn.primary:hover { color: #fff; }

@media (max-width: 991px) {
  #page-topbar .nc-drop { display: none !important; }
  .nc-pop { display: none !important; }
}
