/* ============================================================
 * 平台消息通知中心 + 个人中心 · 浅色主题组件（复用首页导航配色）
 * 由 notification-widget.js 自动注入（挂载到 #nav-login）
 * 配色变量复用 index.html :root：--primary/--secondary/--surface/--border/--text/--muted
 * ============================================================ */

/* ---------- 右上角入口（头像 + 铃铛胶囊） ---------- */
.ntf-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- 展开模式（首页）：铃铛 + 快捷操作按钮行 ---------- */
.ntf-entry-expanded {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ntf-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ntf-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.ntf-quick-btn .ntf-row-icon { font-size: 14px; }
.ntf-quick-btn:hover {
  transform: translateY(-1px);
  border-color: var(--secondary);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.16);
}
.ntf-quick-btn:active { transform: translateY(0); }
.ntf-quick-danger { color: #dc2626; }
.ntf-quick-danger:hover {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12);
}
@media (max-width: 760px) {
  .ntf-quick-btn { padding: 7px 11px; font-size: 12px; gap: 4px; }
}

/* 头像按钮（放大 1.2 倍：38 → 46px，清晰显示头像图片） */
.ntf-avatar-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.22), 0 0 0 1px rgba(30, 64, 175, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ntf-avatar-btn:hover {
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.32), 0 0 14px rgba(37, 99, 235, 0.28);
}
.ntf-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ntf-avatar-btn .ntf-avatar-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(30, 64, 175, 0.35);
}

/* 铃铛胶囊按钮（长圆角，与导航按钮同渐变） */
.ntf-bell {
  position: relative;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ntf-bell:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.38), 0 0 16px rgba(37, 99, 235, 0.3);
}
.ntf-bell svg {
  width: 19px;
  height: 19px;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.25));
}
.ntf-bell-text { line-height: 1; }
/* 新消息到达闪烁动画 */
.ntf-bell.ntf-shake { animation: ntf-bell-shake 0.5s ease 2; }
@keyframes ntf-bell-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg) scale(1.05); }
  40% { transform: rotate(11deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}

/* 未读红点 + 数字角标（胶囊右上角） */
.ntf-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  letter-spacing: 0.2px;
  box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(225, 29, 72, 0.45);
  animation: ntf-badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ntf-badge.ntf-dot {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  top: -2px;
  right: -2px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(225, 29, 72, 0.7);
  animation: ntf-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes ntf-badge-pop { 0% { transform: scale(0.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ntf-dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ============================================================
 * 消息面板（右侧滑出 · 浅色磨砂）
 * ============================================================ */
.ntf-mask {
  position: fixed;
  inset: 0;
  z-index: 99991;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.ntf-mask.ntf-show { opacity: 1; pointer-events: auto; }

.ntf-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99992;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transform: translateX(102%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.ntf-panel.ntf-show { transform: translateX(0); }

/* 顶部标题栏 */
.ntf-panel-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.ntf-panel-head .ntf-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.4px;
}
.ntf-panel-head .ntf-title svg { width: 18px; height: 18px; color: var(--secondary); }
.ntf-panel-head .ntf-title .ntf-title-grad {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ntf-head-actions { margin-left: auto; display: flex; gap: 8px; }
.ntf-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ntf-btn:hover { color: var(--primary); border-color: rgba(30, 64, 175, 0.4); background: rgba(30, 64, 175, 0.06); }
.ntf-btn.ntf-danger:hover { color: #dc2626; border-color: rgba(220, 38, 38, 0.4); background: rgba(220, 38, 38, 0.06); }
.ntf-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.ntf-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ntf-close:hover { color: var(--text); background: rgba(15, 23, 42, 0.06); }

/* 消息列表 */
.ntf-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
}
.ntf-list::-webkit-scrollbar { width: 5px; }
.ntf-list::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, 0.3); border-radius: 4px; }
.ntf-list::-webkit-scrollbar-track { background: transparent; }

/* 单条消息 */
.ntf-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 13px 13px 13px 16px;
  margin-bottom: 9px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.ntf-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ntf-item:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(30, 64, 175, 0.25);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1), 0 0 12px rgba(37, 99, 235, 0.12);
}
.ntf-item.ntf-unread { background: #fff; border-color: rgba(30, 64, 175, 0.18); }
.ntf-item.ntf-unread::before { opacity: 1; }
.ntf-item.ntf-unread:hover { border-color: rgba(37, 99, 235, 0.4); }
.ntf-item.ntf-read { opacity: 0.8; }
.ntf-item.ntf-read .ntf-item-title { color: var(--muted); font-weight: 600; }
.ntf-item.ntf-read .ntf-item-content { color: #94a3b8; }

.ntf-item-body { flex: 1; min-width: 0; }
.ntf-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ntf-item-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.4; word-break: break-all; }
.ntf-item.ntf-unread .ntf-item-title { color: var(--primary); }
.ntf-item-content { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 7px; word-break: break-all; }
.ntf-item-meta { display: flex; align-items: center; gap: 8px; }
.ntf-time { font-size: 11px; color: #94a3b8; }

/* 类型标签（浅色系） */
.ntf-tag {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}
.ntf-tag-club { color: #059669; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.28); }
.ntf-tag-grind_plan, .ntf-tag-grind_evaluate { color: #b45309; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
.ntf-tag-competition { color: #e11d48; background: rgba(244, 63, 94, 0.09); border-color: rgba(244, 63, 94, 0.28); }
.ntf-tag-survey_publish { color: #1d4ed8; background: rgba(59, 130, 246, 0.09); border-color: rgba(59, 130, 246, 0.28); }
.ntf-tag-study_video, .ntf-tag-study_plan, .ntf-tag-study_assessment { color: #0e7490; background: rgba(6, 182, 212, 0.09); border-color: rgba(6, 182, 212, 0.28); }
.ntf-tag-weekly_report { color: #a16207; background: rgba(234, 179, 8, 0.1); border-color: rgba(234, 179, 8, 0.3); }
.ntf-tag-meeting { color: #0d9488; background: rgba(20, 184, 166, 0.1); border-color: rgba(20, 184, 166, 0.3); }
.ntf-tag-student_inventory { color: #6d28d9; background: rgba(139, 92, 246, 0.09); border-color: rgba(139, 92, 246, 0.28); }
.ntf-tag-monthly_star { color: #be185d; background: rgba(236, 72, 153, 0.09); border-color: rgba(236, 72, 153, 0.28); }
.ntf-tag-default { color: #64748b; background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.28); }

/* 已读状态点 */
.ntf-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 6px rgba(37, 99, 235, 0.6); flex: none; }
.ntf-item.ntf-read .ntf-status-dot { background: #cbd5e1; box-shadow: none; }

/* 加载更多 */
.ntf-loadmore {
  display: block;
  width: 100%;
  margin: 4px 0 10px;
  padding: 9px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ntf-loadmore:hover { color: var(--secondary); border-color: rgba(37, 99, 235, 0.5); background: rgba(37, 99, 235, 0.05); }
.ntf-loadmore:disabled { opacity: 0.4; cursor: not-allowed; }

/* 空状态 */
.ntf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}
.ntf-empty .ntf-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 28px;
  margin-bottom: 14px;
}
.ntf-empty .ntf-empty-t { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.ntf-empty .ntf-empty-d { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 底部提示 */
.ntf-panel-foot {
  flex: none;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

/* ============================================================
 * 个人中心下拉面板（复用首页导航用户菜单配色）
 * ============================================================ */
.ntf-profile {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 99993;
  width: 260px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  transform-origin: top right;
  animation: ntf-profile-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.ntf-profile::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
@keyframes ntf-profile-in { 0% { opacity: 0; transform: scale(0.92) translateY(-8px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

.ntf-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.ntf-profile-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(30, 64, 175, 0.16),
    0 4px 14px rgba(30, 64, 175, 0.24),
    0 0 18px rgba(37, 99, 235, 0.18);
}
.ntf-profile-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 48%);
  pointer-events: none;
}
.ntf-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ntf-profile-avatar .ntf-avatar-letter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 800; text-shadow: 0 1px 3px rgba(30, 64, 175, 0.4); }
.ntf-profile-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.ntf-profile-body {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ntf-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer !important;
  font-family: inherit;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.ntf-profile-btn:active { transform: scale(0.97); }
.ntf-profile-btn .ntf-row-icon { font-size: 15px; }

.ntf-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.24);
}
.ntf-btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.36);
}

.ntf-btn-danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.24);
}
.ntf-btn-danger:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.36);
}

/* ============================================================
 * 弹窗（复用首页登录弹窗配色）
 * ============================================================ */
.ntf-modal {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.ntf-modal.ntf-show { opacity: 1; pointer-events: auto; }
.ntf-modal-card {
  width: 400px;
  max-width: 92vw;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
  animation: ntf-profile-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.ntf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.ntf-modal-head .ntf-modal-title { font-size: 16px; font-weight: 800; color: var(--text); }
.ntf-modal-body { padding: 20px; }
.ntf-field { margin-bottom: 15px; }
.ntf-field > label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.3px; }
.ntf-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}
.ntf-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1); }
.ntf-input::placeholder { color: #94a3b8; }
.ntf-input:disabled { background: var(--bg); color: var(--muted); }

/* ---------- 账号管理弹窗 ---------- */
.ntf-acct-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.ntf-acct-head .ntf-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px var(--border), 0 4px 12px rgba(30, 64, 175, 0.2);
}
.ntf-acct-head .ntf-preview img { width: 100%; height: 100%; object-fit: cover; }
.ntf-acct-head .ntf-preview .ntf-avatar-letter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 800; }
.ntf-acct-info { min-width: 0; }
.ntf-acct-name { font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-acct-role { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ntf-acct-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ntf-acct-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.ntf-acct-btn:hover {
  background: #fff;
  border-color: rgba(30, 64, 175, 0.35);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.ntf-acct-btn .ntf-row-icon { width: 24px; text-align: center; font-size: 16px; }

/* ---------- 头像编辑（裁剪） ---------- */
.ntf-avatar-edit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ntf-crop-area {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08), transparent 70%),
    repeating-conic-gradient(#f1f5f9 0% 25%, #e2e8f0 0% 50%) 0 0 / 22px 22px;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 30px rgba(15, 23, 42, 0.06);
}
.ntf-crop-area img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2);
}
.ntf-crop-area img.ntf-dragging { cursor: grabbing; }
.ntf-crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.ntf-crop-zoom input[type='range'] { flex: 1; accent-color: var(--primary); height: 4px; cursor: pointer; }
.ntf-crop-zoom span { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--secondary); }
.ntf-avatar-edit .ntf-avatar-hint { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.ntf-upload-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(30, 64, 175, 0.35);
  background: rgba(30, 64, 175, 0.07);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.ntf-upload-btn:hover { background: rgba(30, 64, 175, 0.14); color: var(--primary); box-shadow: 0 0 12px rgba(30, 64, 175, 0.2); }
.ntf-modal-actions { display: flex; gap: 10px; padding-top: 6px; }
.ntf-modal-actions .ntf-btn { flex: 1; padding: 10px; font-size: 13px; border-radius: 10px; }
.ntf-btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}
.ntf-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
  color: #fff !important;
}

/* 旧预览（编辑资料/账号管理头部共用） */
.ntf-preview {
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ---------- Toast ---------- */
.ntf-toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%) translateY(16px);
  z-index: 99999;
  padding: 11px 22px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
}
.ntf-toast.ntf-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ntf-toast.ntf-error { background: rgba(220, 38, 38, 0.94); }
