/* ============================================================
   站内通知 / 消息中心样式
   依赖 --ui-* 视觉变量（enhancements.css v3 主题系统）
   ============================================================ */

.navbar-icon-btn { position: relative; }

/* 顶部铃铛未读角标 */
.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--ui-danger, #ef4444);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    transform: translate(30%, -30%);
    box-sizing: border-box;
}

/* 下拉面板 */
.notif-panel {
    position: fixed;
    top: 56px;
    right: 18px;
    z-index: 1000;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
    overflow: hidden;
}
.notif-panel[hidden] { display: none; }

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ui-border);
    flex-shrink: 0;
}
.notif-panel-title { font-size: 14px; font-weight: 700; color: var(--ui-text); }
.notif-read-all {
    font-size: 12px;
    color: var(--ui-brand);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}
.notif-read-all:hover { background: var(--ui-brand-soft); }
.notif-read-all:disabled { opacity: .4; cursor: default; }

.notif-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.notif-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--ui-text-muted);
    font-size: 13px;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ui-border);
    cursor: pointer;
    transition: background .12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--ui-surface-soft); }
.notif-item.is-unread { background: var(--ui-brand-soft); }
.notif-item.is-unread:hover { background: var(--ui-brand-soft); }

.notif-item-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
}
.notif-item-body { flex: 1 1 auto; min-width: 0; }
.notif-item-title { font-size: 13px; font-weight: 700; color: var(--ui-text); margin: 0 0 2px; }
.notif-item-content {
    font-size: 12px;
    color: var(--ui-text-secondary);
    margin: 0 0 4px;
    line-height: 1.5;
    word-break: break-word;
}
.notif-item-time { font-size: 11px; color: var(--ui-text-muted); }

/* 未读小圆点 */
.notif-item .notif-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ui-danger, #ef4444);
    margin-top: 7px;
}

/* 分页底栏 / 加载更多 */
.notif-panel-foot {
    flex-shrink: 0;
    padding: 8px 12px;
    border-top: 1px solid var(--ui-border);
}
.notif-panel-foot[hidden] { display: none; }
.notif-load-more {
    width: 100%;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: var(--ui-surface-soft);
    color: var(--ui-brand);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.notif-load-more:hover { background: var(--ui-brand-soft); }
.notif-load-more:disabled { opacity: .5; cursor: default; }

@media (max-width: 640px) {
    .notif-panel { right: 8px; width: calc(100vw - 16px); }
}