/* 通知中心页面增量样式（复用 campus-ui.css / weekly-match.css 的卡片与按钮） */
.notif-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.notif{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid #e7e7dd}
.notif:last-child{border-bottom:0}
.notif-icon{flex:0 0 auto;width:30px;height:30px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#eceee4;font-size:15px}
.notif-body{flex:1;min-width:0}
.notif-body b{display:block;font-size:15px}
.notif-body p{margin:2px 0 0;color:#55726a;font-size:13px;line-height:1.5}
.notif-meta{display:flex;align-items:center;gap:8px;margin-top:6px}
.notif-meta time{color:#8b9a92;font-size:12px}
.notif.open .notif-body b{font-weight:700}
.notif.unread b::after{content:'';display:inline-block;width:7px;height:7px;margin-left:6px;border-radius:999px;background:#a6372d;vertical-align:middle}
.notif a.notif-link{color:#265a48;font-size:13px;font-weight:600;text-decoration:none}
.muted.small{font-size:12px}

/* 通知偏好开关（2026-11-16） */
.prefs{display:grid;gap:4px;margin-top:10px}
.pref-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px;border-bottom:1px solid var(--line-hair,#dedfd6);cursor:pointer}
.pref-row:last-child{border-bottom:0}
.pref-text{font-size:15px;color:var(--text,#073b32)}
.pref-row input[type="checkbox"]{width:22px;height:22px;min-height:22px;accent-color:#265a48;cursor:pointer}

/* 系统通知开关 */
.push-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:4px;cursor:pointer}
.push-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.push-copy strong{font-size:15px}
.push-control{position:relative;flex:0 0 auto;width:48px;height:28px}
.push-control input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.push-control input:disabled{cursor:not-allowed}
.push-ui{display:block;width:48px;height:28px;border-radius:999px;background:#d7ddd4;position:relative}
.push-ui::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(7,59,50,.18);transition:transform .18s ease}
.push-control input:checked + .push-ui{background:#265a48}
.push-control input:checked + .push-ui::after{transform:translateX(20px)}
.push-control input:disabled + .push-ui{opacity:.5}
.push-control input:focus-visible + .push-ui{outline:2px solid #265a48;outline-offset:3px}
html[data-theme="dark"] .push-ui{background:#3c4a44}
html[data-theme="dark"] .push-control input:checked + .push-ui{background:#3f8f72}
#pushNeedInstall{margin:10px 0 0}
#pushNeedInstall a{color:#265a48;font-weight:600;margin-left:6px}
@media (prefers-reduced-motion: reduce){
  .push-ui::after{transition:none}
}
