/* ===================== 通知中心（卡片式列表） ===================== */
.notif-page { max-width: 780px; margin: 0 auto; padding: 14px 0 40px; }

/* 顶部：铃铛标题 + 全部已读 */
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 4px 2px 14px;
  border-bottom: 1px solid var(--hairline, rgba(0,0,0,.10));
}
.notif-heading {
  display: flex; align-items: center; gap: 9px;
  margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .01em;
  color: var(--text, #1d1d1f);
}
.notif-heading-ico { display: inline-flex; color: var(--primary, #0071e3); }
.notif-heading-ico svg { width: 22px; height: 22px; }
.notif-readall-form { margin: 0; }
.notif-readall {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--hairline, rgba(0,0,0,.10));
  background: var(--surface, #fff); color: var(--text-2, #424245);
  font-size: 13px; cursor: pointer; transition: .18s ease;
}
.notif-readall svg { width: 15px; height: 15px; }
.notif-readall:hover:not(:disabled) { border-color: var(--primary, #0071e3); color: var(--primary, #0071e3); }
.notif-readall:disabled { opacity: .45; cursor: not-allowed; }

/* 临时提示 */
.notif-flash {
  margin: 12px 0 0; padding: 9px 14px; border-radius: 10px; font-size: 13.5px;
}
.notif-flash.ok  { background: var(--ok-bg, rgba(52,199,89,.14)); color: var(--ok-ink, #248a3d); }
.notif-flash.err { background: var(--danger-bg, rgba(255,59,48,.12)); color: var(--danger-ink, #d70015); }

/* 全部 / 未读 分段 */
.notif-tabs {
  display: inline-flex; gap: 3px; padding: 4px; margin: 16px 0 14px;
  background: var(--surface-2, #f2f2f7); border-radius: 10px;
}
.notif-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: var(--muted, #86868b); transition: .18s ease;
}
.notif-tab:hover { color: var(--text, #1d1d1f); }
.notif-tab.active {
  background: var(--surface, #fff); color: var(--text, #1d1d1f);
  font-weight: 600; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.08));
}
.notif-tab-count {
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 700;
  color: #fff; background: #ff3b30;
}

/* 卡片列表 */
.notif-list { display: flex; flex-direction: column; gap: 12px; }
.notif-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: 13px;
  background: var(--surface, #fff);
  border: 1px solid var(--hairline, rgba(0,0,0,.10));
  box-shadow: 0 1px 3px rgba(0,0,0,.025);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.notif-card:hover { border-color: rgba(10,132,255,.35); box-shadow: var(--shadow-md, 0 6px 18px rgba(0,0,0,.06)); }
.notif-card.is-unread { border-color: rgba(10,132,255,.28); background: linear-gradient(90deg, rgba(10,132,255,.045), transparent 40%), var(--surface, #fff); }

.notif-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
}
.notif-ico svg { width: 18px; height: 18px; }
.notif-ico.is-ok     { background: rgba(52,199,89,.14);  color: #16a34a; }
.notif-ico.is-danger { background: rgba(255,59,48,.12);  color: #ef4444; }
.notif-ico.is-info   { background: rgba(10,132,255,.13); color: #0a84ff; }
[data-theme="dark"] .notif-ico.is-ok     { background: rgba(48,209,88,.16);  color: #30d158; }
[data-theme="dark"] .notif-ico.is-danger { background: rgba(255,69,58,.18);  color: #ff6961; }
[data-theme="dark"] .notif-ico.is-info   { background: rgba(10,132,255,.22); color: #64d2ff; }

.notif-main { flex: 1; min-width: 0; }
.notif-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.notif-name {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  margin: 0; font-size: 14.5px; font-weight: 650; color: var(--text, #1d1d1f);
}
.notif-name a { color: inherit; }
.notif-name a:hover { color: var(--primary, #0071e3); }
.notif-dot {
  flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
  background: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.16);
}
.notif-time {
  flex: 0 0 auto; font-size: 12.5px; color: var(--muted, #86868b);
  white-space: nowrap;
}
.notif-body {
  margin: 7px 0 0; font-size: 13px; line-height: 1.65;
  color: var(--text-2, #424245); word-break: break-word;
}
.notif-cat { margin-top: 8px; font-size: 12px; color: var(--muted, #86868b); }
.notif-mark {
  display: inline-flex; align-items: center; margin-top: 9px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--hairline, rgba(0,0,0,.10));
  background: var(--surface-2, #f2f2f7); color: var(--text-2, #424245);
}
.notif-mark:hover { color: var(--primary, #0071e3); border-color: var(--primary, #0071e3); }

.notif-empty {
  padding: 54px 20px; text-align: center;
  border: 1px dashed var(--hairline, rgba(0,0,0,.14)); border-radius: 13px;
  color: var(--muted, #86868b);
}
.notif-empty-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2, #f2f2f7); color: var(--muted, #86868b);
}
.notif-empty-ico svg { width: 26px; height: 26px; }
.notif-empty p { margin: 0; font-size: 14px; }

/* 顶栏铃铛 + 未读小红点 */
.notif-bell { position: relative; text-decoration: none; }
.notif-bell-badge {
  position: absolute; top: 1px; right: -1px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  color: #fff; background: #ff3b30; border: 2px solid var(--surface, #fff);
  line-height: 1;
}

@media (max-width: 600px) {
  .notif-page { padding-top: 8px; }
  .notif-heading { font-size: 18px; }
  .notif-card { padding: 14px; gap: 11px; }
  .notif-time { font-size: 11.5px; }
  .notif-tab { padding: 7px 14px; }
}
