/* ===== 我的消息 ===== */
.msg-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s var(--ease);
}
.msg-item:active { background: var(--bg-hover); }
.msg-item.unread { background: var(--accent-bg); }
.msg-item .msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.msg-item .msg-body { flex: 1; min-width: 0; }
.msg-item .msg-title { font-size: 0.92em; color: var(--text-primary); font-weight: 500; line-height: 1.5; }
.msg-item .msg-title strong { color: var(--accent); font-weight: 700; }
.msg-item .msg-desc {
    font-size: 0.86em;
    color: var(--text-secondary);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-item .msg-time { font-size: 0.76em; color: var(--text-dim); margin-top: 5px; }
.msg-item .msg-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    margin-top: 8px;
    box-shadow: 0 0 6px rgba(248,113,113,0.4);
}

.msg-empty { text-align: center; padding: 70px 24px; color: var(--text-dim); font-size: 0.92em; }

/* ===== 编辑帖子弹窗 ===== */
.edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayIn 0.15s var(--ease);
}
.edit-sheet {
    background: var(--bg-primary);
    width: 100%;
    height: 85vh;
    padding: 24px;
    overflow-y: auto;
    animation: sheetExpand 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sheetExpand {
    from { transform: scaleY(0); transform-origin: center; opacity: 0; }
    to { transform: scaleY(1); transform-origin: center; opacity: 1; }
}
.edit-sheet h3 { font-size: 1.05em; font-weight: 700; margin-bottom: 18px; text-align: center; }

/* 消息红点 */
.badge-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 6px rgba(248,113,113,0.5);
}
.menu-item { position: relative; }

