.notif-page { min-height: 100vh; } .notif-header-bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px; backdrop-filter: blur(12px); } .notif-title { font-size: 20px; font-weight: 700; color: var(--text-h); margin: 0; } .notif-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 48px 16px; color: var(--text); font-size: 15px; } .notif-error { padding: 12px 16px; margin: 12px 16px; border-radius: 8px; background: #fed7d7; color: #c53030; font-size: 14px; } .notif-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px; color: var(--text); gap: 12px; } .notif-empty-icon { font-size: 48px; opacity: 0.3; } .notif-empty p { font-size: 16px; margin: 0; } .notif-list { display: flex; flex-direction: column; } .notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: none; border: none; border-bottom: 1px solid var(--border); cursor: pointer; width: 100%; text-align: left; color: inherit; transition: background 0.1s; position: relative; } .notif-item:hover { background: var(--hover-bg); } .notif-item--unread { background: color-mix(in srgb, var(--accent) 5%, var(--bg)); } .notif-item--unread:hover { background: color-mix(in srgb, var(--accent) 8%, var(--hover-bg)); } .notif-reason-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--hover-bg); flex-shrink: 0; font-size: 14px; } .notif-content { flex: 1; min-width: 0; } .notif-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .notif-header-text { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .notif-time { font-size: 13px; color: var(--text); opacity: 0.6; white-space: nowrap; flex-shrink: 0; } .notif-avatar-stack { display: flex; flex-shrink: 0; } .notif-avatar-stack-item { margin-left: -6px; border-radius: 50%; border: 2px solid var(--bg); overflow: hidden; } .notif-avatar-stack-item:first-child { margin-left: 0; } .notif-avatar-stack-overflow { margin-left: -6px; border-radius: 50%; border: 2px solid var(--bg); background: var(--hover-bg); color: var(--text); font-size: 10px; font-weight: 700; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; } .notif-actors { display: inline; } .notif-author-name { font-weight: 600; font-size: 14px; color: var(--text-h); cursor: pointer; } .notif-author-name:hover { text-decoration: underline; } .notif-others { font-size: 14px; color: var(--text); opacity: 0.8; } .notif-action { font-size: 14px; color: var(--text); } .notif-avatar { flex-shrink: 0; } .notif-avatar-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; } .notif-avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; } .notif-post-preview { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--hover-bg); border: 1px solid var(--border); max-width: 100%; } .notif-post-preview--loading { opacity: 0.5; } .notif-post-preview-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; } .notif-post-preview-avatar { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; } .notif-post-preview-avatar-placeholder { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; } .notif-post-preview-name { font-size: 12px; font-weight: 600; color: var(--text-h); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .notif-post-preview-text { font-size: 13px; color: var(--text); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .notif-replies { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; } .notif-reply-preview { font-size: 13px; color: var(--text); line-height: 1.4; padding: 6px 10px; border-radius: 8px; background: var(--hover-bg); border: 1px solid var(--border); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 14px; } .notif-sentinel { padding: 16px; } .notif-loading-more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; color: var(--text); font-size: 14px; } @media (prefers-color-scheme: dark) { .notif-item--unread { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); } .notif-item--unread:hover { background: color-mix(in srgb, var(--accent) 12%, var(--hover-bg)); } .notif-post-preview { border-color: color-mix(in srgb, var(--border) 60%, transparent); } .notif-reply-preview { border-color: color-mix(in srgb, var(--border) 60%, transparent); } }