/* ==========================================================================
   HT-社区主题 互动增强样式（收藏 / 关注用户 / 通知）
   ========================================================================== */

/* ---------- 通知铃铛 ---------- */
.ht-notification-bell {
    position: relative;
    margin-right: 8px;
    display: flex;
    align-items: center;
}
.ht-notification-bell a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    transition: background .2s;
}
.ht-notification-bell a:hover { background: rgba(255,255,255,.12); }
.ht-bell-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #e04040;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
}

/* 用户中心导航角标 */
.ht-nav-badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    margin-left: 4px;
    background: #e04040;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    vertical-align: middle;
}

/* ---------- 收藏按钮 ---------- */
.ht-bookmark-btn {
    background: none;
    border: 1px solid var(--ht-border);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--ht-text-muted);
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ht-bookmark-btn:hover { border-color: #f0b429; color: #f0b429; }
.ht-bookmark-btn.bookmarked { background: #fff8e6; border-color: #f0b429; color: #d4950a; }
.ht-bookmark-btn-large {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 8px;
}

/* ---------- 关注用户按钮 ---------- */
.ht-follow-user-btn {
    background: var(--ht-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity .2s;
}
.ht-follow-user-btn:hover { opacity: .85; }
.ht-follow-user-btn.following {
    background: #f0f2f8;
    color: var(--ht-text-muted);
    border: 1px solid var(--ht-border);
}

/* ---------- 帖子作者区（关注按钮） ---------- */
.ht-forum-author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--ht-bg-card);
    border-radius: var(--ht-radius);
    box-shadow: var(--ht-shadow);
    margin-bottom: 20px;
}
.ht-forum-author-bar img.avatar { border-radius: 50%; }
.ht-forum-author-info { flex: 1; }
.ht-forum-author-name { font-weight: 600; font-size: 15px; }
.ht-forum-author-meta { font-size: 12px; color: var(--ht-text-muted); margin-top: 2px; }

/* ---------- 通知列表 ---------- */
.ht-notification-list { list-style: none; margin: 0; padding: 0; }
.ht-notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--ht-border);
    align-items: flex-start;
}
.ht-notification-item:last-child { border-bottom: none; }
.ht-notification-item.unread { background: #f8faff; margin: 0 -12px; padding: 14px 12px; border-radius: 8px; }
.ht-notification-avatar { flex-shrink: 0; }
.ht-notification-avatar img.avatar { border-radius: 50%; }
.ht-notification-body { flex: 1; min-width: 0; }
.ht-notification-text { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.ht-notification-text a { color: var(--ht-primary); font-weight: 500; }
.ht-notification-time { font-size: 12px; color: var(--ht-text-muted); }
.ht-notification-type {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 6px;
}
.ht-notification-type.reply   { background: #e8f0fe; color: #1a73e8; }
.ht-notification-type.adopt   { background: #e6f7ed; color: #2b8a52; }
.ht-notification-type.follow  { background: #f3e8fe; color: #7c3aed; }
.ht-notification-type.like    { background: #fde8ec; color: #c5304e; }
.ht-notification-type.feature { background: #fff4e5; color: #b8741a; }
.ht-notification-mark-read {
    background: none;
    border: none;
    color: var(--ht-text-muted);
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px;
}
.ht-notification-mark-read:hover { color: var(--ht-primary); }
.ht-notification-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ht-notification-count { font-size: 14px; color: var(--ht-text-muted); }

/* ---------- 用户列表（关注/粉丝） ---------- */
.ht-user-list { list-style: none; margin: 0; padding: 0; }
.ht-user-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--ht-border);
}
.ht-user-list-item:last-child { border-bottom: none; }
.ht-user-list-item img.avatar { border-radius: 50%; flex-shrink: 0; }
.ht-user-list-info { flex: 1; }
.ht-user-list-name { font-weight: 600; font-size: 14px; }
.ht-user-list-meta { font-size: 12px; color: var(--ht-text-muted); margin-top: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .ht-notification-bell { margin-right: 4px; }
    .ht-notification-bell a { width: 32px; height: 32px; font-size: 16px; }
}
