/* ============================================================
   NM_SKELETON: 「我的动态」列表骨架屏
   独立文件（新文件名绕开旧缓存）；视觉对齐真实 .nm-item 卡片：
   左头像+昵称+时间 / 右日期块(日+年月) / 正文两行 / 单图格。
   微光动画复用评论骨架屏 cs-shimmer 的 transform 合成层方案。
   ============================================================ */

/* 骨架卡片容器：继承真实卡片的底色/圆角/内距 */
.nm-item.nm-skel{
    pointer-events:none;                 /* 骨架期间不可点 */
    user-select:none;
}

/* 头像：36px 圆形，对齐 .nm-avatar */
.nmsk-avatar{
    display:block; flex:0 0 auto;
    width:36px; height:36px; border-radius:50%;
    background-color:#ececec;
    position:relative; overflow:hidden;
}

/* 通用占位条 */
.nmsk-line{
    display:block; height:11px; border-radius:5px;
    background-color:#e6e6e6;
    position:relative; overflow:hidden;
}

/* 昵称 / 时间（对齐 .nm-author-meta 两行） */
.nmsk-name{ width:76px; height:13px; }
.nmsk-time{ width:42px; height:9px; margin-top:4px; background-color:#efefef; }

/* 右上日期块：大号“日” + 年月小字（对齐 .nm-date-block，最终日字号 22px） */
.nmsk-day{ width:34px; height:22px; border-radius:6px; margin-left:auto; }
.nmsk-ym { width:52px; height:9px;  border-radius:4px; margin-top:4px; margin-left:auto; background-color:#efefef; }

/* 正文两行（对齐 .nm-content-frame/.nm-content 区域） */
.nmsk-t1{ width:92%; height:12px; margin-bottom:8px; }
.nmsk-t2{ width:56%; height:12px; background-color:#efefef; }

/* 单图格：对齐 .nm-gallery[data-count=1] 的 66% 宽、1:1 比例 */
.nmsk-cell{
    display:block; width:66%; max-width:230px;
    aspect-ratio:1/1; border-radius:8px;
    background-color:#ececec;
    position:relative; overflow:hidden;
    margin-top:2px;
}

/* 微光扫过动画（transform 合成层，低掉帧），覆盖所有占位块 */
.nmsk-avatar::after, .nmsk-line::after, .nmsk-cell::after{
    content:""; position:absolute; inset:0; transform:translateX(-100%);
    background-image:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%);
    animation:cs-shimmer 1.4s ease infinite; will-change:transform;
}

/* 深色模式：占位底色与微光 */
html[data-theme="dark"] .nmsk-avatar,
html[data-theme="dark"] .nmsk-cell{ background-color:#2a2a2c; }
html[data-theme="dark"] .nmsk-line{ background-color:#2e2e30; }
html[data-theme="dark"] .nmsk-time,
html[data-theme="dark"] .nmsk-ym,
html[data-theme="dark"] .nmsk-t2{ background-color:#262628; }
html[data-theme="dark"] .nmsk-avatar::after,
html[data-theme="dark"] .nmsk-line::after,
html[data-theme="dark"] .nmsk-cell::after{
    background-image:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 50%, rgba(255,255,255,0) 100%);
}

/* 尊重减弱动画偏好 */
@media (prefers-reduced-motion: reduce){
    .nmsk-avatar::after, .nmsk-line::after, .nmsk-cell::after{ animation:none; }
}
