/* ── 朋友圈容器 ── */
.mo-wrap { width: 100%; margin: 0; padding: 20px 0 60px; }
.mo-list { display: flex; flex-direction: column; }
.mo-item { display: flex; gap: 12px; padding: 16px 0; }

/* 头像 */
.mo-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--bg-secondary, #eee); }
.mo-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 右侧内容 */
.mo-body { flex: 1; min-width: 0; overflow: hidden; }
.mo-name { font-size: 14px; font-weight: 600; color: #4a8fd4; margin-bottom: 5px; }
.mo-content { font-size: 15px; color: var(--text-primary, #1e293b); line-height: 1.75; word-break: break-word; white-space: pre-wrap; margin-bottom: 8px; }
.mo-content.is-collapsed { display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.mo-expand-btn { display: inline-block; font-size: 13px; color: #4a8fd4; cursor: pointer; margin-bottom: 8px; user-select: none; }
.mo-expand-btn:hover { opacity: .8; }

/* 图片宫格 */
.mo-images { display: grid; gap: 4px; margin-bottom: 8px; border-radius: 6px; overflow: hidden; }
.mo-images--1 { grid-template-columns: 1fr; max-width: min(360px, 100%); }
.mo-images--1 .mo-img-wrap { aspect-ratio: unset; height: auto; }
.mo-images--1 .mo-img-wrap img { height: auto; max-height: 480px; object-fit: contain; width: auto; max-width: 100%; }
.mo-images--2 { grid-template-columns: repeat(2, 120px); }
.mo-images--3, .mo-images--4, .mo-images--5,
.mo-images--6, .mo-images--7, .mo-images--8,
.mo-images--9 { grid-template-columns: repeat(3, 120px); }
.mo-img-wrap { aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--bg-secondary, #eee); border-radius: 3px; -webkit-tap-highlight-color: transparent; }
.mo-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.mo-img-wrap:hover img { transform: scale(1.05); }
.mo-body-images:empty { display: none; }

/* 位置 */
.mo-location { font-size: 12px; color: #4a8fd4; display: flex; align-items: center; gap: 3px; margin-bottom: 4px; }

/* 时间 */
.mo-time { font-size: 12px; color: var(--text-tertiary, #b0b8c8); margin-top: 6px; }

/* 空状态 */
.mo-empty { text-align: center; padding: 60px 0; color: var(--text-tertiary, #94a3b8); font-size: 15px; }

/* 加载更多 */
.mo-load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.mo-load-more {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 28px; height: 40px; border-radius: 20px;
    border: 1.5px solid #3b82f6; color: #3b82f6;
    background: transparent; font-size: 14px; cursor: pointer;
    transition: background .2s, color .2s;
    user-select: none;
}
.mo-load-more:hover { background: #3b82f6; color: #fff; }
.mo-load-more.loading { opacity: .6; pointer-events: none; }
.mo-load-more svg { width: 14px; height: 14px; }
.mo-load-more.loading svg { animation: mo-spin .8s linear infinite; }
@keyframes mo-spin { to { transform: rotate(360deg); } }

/* ── 灯箱 ── */
.mo-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 99999; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; overflow: hidden; }
.mo-lightbox.active { display: flex; }
.mo-lightbox-img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.4); user-select: none; pointer-events: auto; touch-action: none; transition: opacity .2s ease; opacity: 0; -webkit-tap-highlight-color: transparent; transform-origin: center center; cursor: zoom-in; will-change: transform; }
.mo-lightbox-img.zoomed { cursor: grab; }
.mo-lightbox-img.dragging { cursor: grabbing; transition: none; }
.mo-lb-zoom-reset { position: fixed; top: 16px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; cursor: pointer; color: #fff; font-size: 13px; font-weight: 600; line-height: 1; z-index: 2; white-space: nowrap; padding: 0 8px; width: auto; min-width: 32px; border-radius: 16px; }
.mo-lb-zoom-reset.visible { display: flex; }
.mo-lb-close { position: fixed; top: 16px; right: 20px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; font-size: 20px; line-height: 1; z-index: 2; }
.mo-lightbox-prev,
.mo-lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; z-index: 1; user-select: none; }
.mo-lightbox-prev { left: 16px; }
.mo-lightbox-next { right: 16px; }
.mo-lightbox-prev:hover,
.mo-lightbox-next:hover { background: rgba(255,255,255,.3); }
.mo-lightbox-prev svg,
.mo-lightbox-next svg { width: 20px; height: 20px; }
.mo-lightbox-prev.hidden,
.mo-lightbox-next.hidden { display: none; }
.mo-lightbox-counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 13px; }

/* 平板 */
@media (max-width: 1024px) {
    .mo-wrap { padding: 16px 24px 48px; }
    .mo-lightbox-prev,
    .mo-lightbox-next { display: none; }
}

/* 手机 */
@media (max-width: 640px) {
    .mo-wrap { padding: 12px 0 32px; }
    .mo-avatar { width: 38px; height: 38px; }
    .mo-name { font-size: 13px; }
    .mo-content { font-size: 14px; }
    .mo-item { gap: 10px; padding: 14px 12px; }
    .mo-images--1 { max-width: 100%; }
    .mo-images--2 { grid-template-columns: repeat(2, 1fr); }
    .mo-images--3, .mo-images--4, .mo-images--5,
    .mo-images--6, .mo-images--7, .mo-images--8,
    .mo-images--9 { grid-template-columns: repeat(3, 1fr); }
    /* 去掉框架容器内边距，让动态卡片撑满屏幕宽度 */
    .child-page__main { padding-left: 0 !important; padding-right: 0 !important; }
    .mo-load-more-wrap { padding: 0 12px; }
}
