/* ===== 仓库 · 帖子样式（js/38-store-post.js） ===== */
.sp-feed{display:flex;flex-direction:column;gap:12px;padding-bottom:110px}
.sp-card{background:var(--paper,#fff);border-radius:18px;padding:14px 14px 10px;cursor:pointer;border:1px solid var(--line,#ececee)}
.sp-au{display:flex;align-items:center;gap:10px;min-width:0}
.sp-au>span{flex:1;min-width:0;display:flex;flex-direction:column}
.sp-au b{font-size:13.5px;font-weight:500;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-au small{font-size:11.5px;color:var(--sub,#8a8a8e);margin-top:1px}
.sp-av{flex:0 0 32px;width:32px;height:32px;border-radius:50%;border:1px solid var(--line,#e4e4e6);background:#f4f4f5;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:13px;color:#6e6e73}
.sp-av.sm{flex:0 0 26px;width:26px;height:26px;font-size:11.5px}
.sp-tag{font-style:normal;font-size:11px;color:#6e6e73;border:1px solid var(--line,#e4e4e6);border-radius:99px;padding:3px 9px;white-space:nowrap}
.sp-card .sp-tt{display:block;font-size:15.5px;font-weight:600;color:var(--ink);margin:12px 0 0;line-height:1.4}
.sp-ex{font-size:13px;color:var(--sub,#8a8a8e);line-height:1.6;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sp-ims{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.sp-tl{position:relative;display:block;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:#f2f2f3;box-shadow:inset 0 0 0 1px var(--line,#ececee)}
.sp-tl img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.sp-one{display:flex;align-items:flex-start;margin-top:10px}
.sp-one>.sp-tl{width:62%;aspect-ratio:4/3;max-height:360px}
.sp-one>.sp-tl img{object-fit:contain;opacity:0;transition:opacity .2s}.sp-one>.sp-tl.on img{opacity:1;object-fit:cover}
.sp-tl .sp-pl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.sp-tl .sp-pl svg{width:26px;height:26px;fill:rgba(0,0,0,.18);stroke:#fff;stroke-width:1.1;stroke-linejoin:round}
.sp-more{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(20,20,22,.38);color:#fff;font-style:normal;font-size:15px;font-weight:500;letter-spacing:.02em}
.sp-appic{margin-top:10px;display:flex}
.sp-appic>.as-ico{width:56px;height:56px;border-radius:15px;background:#f4f4f5;box-shadow:inset 0 0 0 1px var(--line,#e6e6e8)}
.sp-appic>.as-ico svg{width:50%;height:50%;fill:none;stroke:#8a8a8e;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sp-appic>img,.sp-appic .as-ico img{width:56px;height:56px;border-radius:15px;object-fit:cover}
.phone.night .sp-appic>.as-ico{background:#2a2a2a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.sp-ft{display:flex;gap:18px;margin-top:10px;padding-top:9px;border-top:1px solid var(--line,#efeff1)}
.sp-ft span{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--sub,#8a8a8e)}
.sp-ft small{font-size:11px;color:var(--faint,#b0b0b4);margin-left:1px}
.sp-ft svg,.sp-bar svg,.sp-f i svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
/* 详情 */
.sp-files{margin-top:12px;border-top:1px solid var(--line,#efeff1);padding-top:10px}
.sp-fh{font-size:12px;color:var(--sub);margin-bottom:4px}.sp-fh small,.sp-cmts small.en{font-size:10px;letter-spacing:.12em;color:var(--faint);margin-left:6px}
.sp-f span{flex:1;min-width:0}.sp-f b{display:block;font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sp-f small{font-size:11.5px;color:var(--sub)}
.sp-f em{font-style:normal;font-size:12.5px;color:var(--ink);border:1px solid var(--line);border-radius:99px;padding:5px 12px;cursor:pointer}
.sp-bar b{font-weight:500}.sp-bar small{font-size:12px;color:var(--sub)}
.sp-like.on svg{fill:currentColor}.sp-c:last-child{border-bottom:none}
.sp-c>div{flex:1;min-width:0}.sp-c b{font-size:12.5px;font-weight:500;color:var(--sub)}.sp-c b small{font-size:10px;border:1px solid var(--line);border-radius:4px;padding:0 4px;margin-left:6px;color:var(--sub);font-weight:400}
.sp-c p{font-size:14px;line-height:1.6;margin:2px 0;white-space:pre-wrap;word-break:break-word}.sp-c>div>small{font-size:11px;color:var(--faint,#b0b0b4)}.sp-c a{color:var(--sub);cursor:pointer}
.sp-cempty{font-size:12.5px;color:var(--sub);text-align:center;padding:18px 0}
.sp-in input{flex:1;height:40px;border-radius:20px;border:1px solid var(--line,#e4e4e6);background:var(--paper,#fff);padding:0 14px;font:inherit;font-size:14px;color:var(--ink);outline:none}
.sp-in span{font-size:13.5px;color:var(--ink);padding:0 6px;cursor:pointer}
.sp-meter{margin-top:8px}
/* 美化库 */
.lk-list{display:flex;flex-direction:column;gap:10px}
.lk-it{display:flex;align-items:center;gap:12px;background:var(--paper,#fff);border-radius:16px;padding:10px 12px;border:1px solid var(--line,#ececee)}
.lk-cv{flex:0 0 52px;width:52px;height:52px;border-radius:12px;overflow:hidden;background:#f2f2f3;display:flex;align-items:center;justify-content:center}
.lk-cv img{width:100%;height:100%;object-fit:cover}.lk-cv svg{width:20px;height:20px;fill:none;stroke:#9a9aa0;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.lk-m{flex:1;min-width:0;display:flex;flex-direction:column}.lk-m b{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lk-m small{font-size:11.5px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.lk-a{display:flex;flex-direction:column;gap:6px}
.lk-a em{font-style:normal;font-size:12.5px;text-align:center;padding:5px 14px;border-radius:99px;background:var(--ink,#1d1d1f);color:var(--bg,#fff);cursor:pointer}
.lk-a em.d{background:none;color:var(--sub);padding:2px 14px}
/* 夜间 */
.phone.night .sp-card,.phone.night .lk-it{background:#222;border-color:rgba(255,255,255,.06)}
.phone.night .sp-av{background:#2c2c2c;border-color:rgba(255,255,255,.08);color:#bdbbb8}
.phone.night .sp-tag,.phone.night .sp-f em,.phone.night .sp-f i{border-color:rgba(255,255,255,.12);color:#bdbbb8}
.phone.night .sp-ft,.phone.night .sp-files,.phone.night .sp-c,.phone.night .sp-bar,.phone.night .sp-cmts,.phone.night .sp-stat{border-color:rgba(255,255,255,.07)}
.phone.night .sp-tl,.phone.night .lk-cv{background:#2a2a2a}
.phone.night .sp-tl{box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.phone.night .lk-a em{background:#ecebe9;color:#161616}.phone.night .lk-a em.d{background:none;color:#a9a7a4}
/* 视频 */
.sp-vx svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sp-view{position:absolute;inset:0;z-index:390;background:rgba(0,0,0,0);display:flex;align-items:center;justify-content:center;transition:background .2s;cursor:zoom-out}
.sp-view.on{background:rgba(0,0,0,.94)}
.sp-view img,.sp-view video{max-width:100%;max-height:86%;object-fit:contain;opacity:0;transition:opacity .2s}
.sp-view.on img,.sp-view.on video{opacity:1}
.sp-vx{position:absolute;right:16px;top:calc(env(safe-area-inset-top) + 16px);width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center}

/* ===== 详情：旧版一张大卡片（.st-det）=====
   作者 · 封面 · 标题 · 介绍 · 虚线 · 内容预览 · 附件 · 次数 · 点赞评论 · 评论列表；按钮在卡片下面 */
.st-det{background:var(--paper);border-radius:18px;padding:16px;margin-bottom:12px}
.st-det .sp-au{margin-bottom:12px}
.st-det h3{font-size:19px;margin:4px 0;font-weight:600;line-height:1.4}
.st-det p{font-size:14px;line-height:1.7;margin-top:8px;white-space:pre-wrap}
.sp-av.img{overflow:hidden;background:none}.sp-av img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.sp-stat{font-size:12px;color:var(--sub,#8a8a8e);margin-top:12px;border-top:1px solid var(--line,#efeff1);padding-top:10px}
.sp-bar b{font-weight:500}.sp-bar small{font-size:12px;color:var(--sub)}.sp-bar>span{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--ink);cursor:pointer;padding:2px 0;align-self:center}
.sp-bar .sp-dl{margin-left:auto;align-self:center;font-style:normal;font-size:12px;color:var(--sub,#8a8a8e);white-space:nowrap}
.st-acts{padding-bottom:4px}
.st-acts>.btn:first-child{margin-top:4px}
/* 评论输入条：钉在 App 窗口最底下（不在滚动区里） */
#appWin>.sp-in{position:absolute;left:0;right:0;bottom:0;z-index:6;display:flex;align-items:center;gap:8px;padding:8px 16px calc(env(safe-area-inset-bottom) + 8px);background:var(--bg,#f4f4f6);border-top:1px solid var(--line,#ececee)}
#appWin>.sp-in input{flex:1;min-width:0;height:40px;border-radius:20px;border:1px solid var(--line,#e4e4e6);background:var(--paper,#fff);padding:0 14px;font:inherit;font-size:16px;color:var(--ink);outline:none}
#appWin>.sp-in span{font-size:14px;color:var(--ink);padding:8px 4px 8px 6px;cursor:pointer}
#appWin:not(.show)>.sp-in{pointer-events:none}
.sp-insp{height:calc(env(safe-area-inset-bottom) + 58px)}
.phone.night #appWin>.sp-in{border-color:rgba(255,255,255,.07)}
.phone.night #appWin>.sp-in input{background:#222;border-color:rgba(255,255,255,.08);color:#ecebe9}
/* 上传表单：选好的东西列表里的「作品内容 / 附件」小标签 */
.sx-picked .sx-fx i img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.sx-tag{font-style:normal;font-size:10px;line-height:1;padding:2px 5px;border-radius:4px;border:1px solid var(--line,#e4e4e6);color:var(--ink);margin-right:6px;vertical-align:1px}
.sx-tag.att{color:var(--sub)}
.phone.night .sx-tag{border-color:rgba(255,255,255,.14)}
/* 预览视频：第一帧 + 细线播放键，轻点就地播放 */
.sp-vpv{position:relative;cursor:pointer;background:#111}
.sp-vpv .sp-pl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.sp-vpv .sp-pl svg{width:44px;height:44px;fill:rgba(0,0,0,.22);stroke:#fff;stroke-width:1;stroke-linejoin:round}
.sp-vpv.det{border-radius:12px;overflow:hidden;margin:0 0 12px;aspect-ratio:16/10}
.sp-vpv.det video{width:100%;height:100%;object-fit:contain;display:block;background:#111}
.sp-vpv.on .sp-pl{display:none}
.sx-cv i.vid{position:relative;background:#111}.sx-cv i.vid .sp-pl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.sx-cv i.vid .sp-pl svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.3}
.sx-local .sx-lh{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--paper)}
.sx-local .sx-lh b{font-size:15px;font-weight:600}.sx-local .sx-lh span{font-size:14px;color:var(--ink);cursor:pointer;padding:4px 2px 4px 10px}
.sx-local .sx-lb{max-height:62vh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 12px 14px;background:var(--bg)}
.sx-local .sx-lb>.grp:first-child{margin-top:8px}

/* 详情页封面：完整显示，不裁切 */
#wBody .st-big{display:block;height:auto;max-height:none;object-fit:contain}

/* 详情 · 文件列表 */
.sp-f{display:flex;align-items:center;gap:10px;padding:8px 0;cursor:pointer}
.sp-f i{flex:0 0 32px;height:32px;border-radius:9px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--sub);overflow:hidden}.sp-f i img{width:100%;height:100%;object-fit:cover;display:block}
.sp-f em+em{margin-left:-2px}
.sp-f em.g{color:var(--sub,#8a8a8e)}
/* 列表卡片 · 文件数 */
.sp-ft .sp-fc{margin-left:auto}
/* 详情 · 效果预览图（完整显示，不裁切） */
.sp-galw{position:relative;margin:0 0 12px}
.sp-gal{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;align-items:center;border-radius:12px}
.sp-gal::-webkit-scrollbar{display:none}
.sp-gal img{flex:0 0 100%;display:block;width:100%;height:auto;max-height:440px;object-fit:contain;scroll-snap-align:center;border-radius:12px;background:#f2f2f3;cursor:zoom-in}
.sp-galn{position:absolute;right:8px;bottom:8px;font-style:normal;font-size:11px;color:#fff;background:rgba(20,20,22,.42);border-radius:99px;padding:3px 8px;pointer-events:none}
.phone.night .sp-gal img{background:#2a2a2a}
/* 文件查看弹层 */
.sp-fv{padding:4px 2px 2px}
.sp-fv-h{display:flex;align-items:center;gap:10px;padding:2px 0 12px}
.sp-fv-h i,.sp-fv-na i{flex:0 0 32px;height:32px;border-radius:9px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--sub)}
.sp-fv-h i svg,.sp-fv-na i svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.sp-fv-h span{flex:1;min-width:0}.sp-fv-h b{display:block;font-size:14px;font-weight:500;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sp-fv-h small{font-size:11.5px;color:var(--sub)}
.sp-fv-h em{font-style:normal;font-size:13px;color:var(--sub);padding:6px 4px;cursor:pointer}
.sp-fv-pre{margin:0;max-height:52vh;overflow:auto;-webkit-overflow-scrolling:touch;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink);background:#f6f6f7;border:1px solid var(--line,#ececee);border-radius:12px;padding:12px;white-space:pre-wrap;word-break:break-all;user-select:text;-webkit-user-select:text}
.sp-fv-imgs{max-height:58vh;overflow:auto;display:flex;flex-direction:column;gap:8px}
.sp-fv-imgs img{display:block;width:100%;height:auto;border-radius:12px;background:#f2f2f3}
.sp-fv-vid{display:block;width:100%;max-height:52vh;border-radius:12px;background:#111}
.sp-fv-na{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 0;color:var(--sub);font-size:13px;text-align:center}
.sp-fv-a{display:flex;gap:10px;margin-top:14px}.sp-fv-a .btn{flex:1;margin:0;white-space:nowrap;padding-left:6px;padding-right:6px}
.phone.night .sp-fv-pre{background:#1c1c1c;border-color:rgba(255,255,255,.07);color:#dcdad7}
.phone.night .sp-fv-h i,.phone.night .sp-fv-na i{border-color:rgba(255,255,255,.12);color:#bdbbb8}
.phone.night .sp-fv-imgs img{background:#2a2a2a}
/* 上传表单 · 预览图行的说明 */
.sx-pvadd small{display:block;font-size:11.5px;color:var(--sub,#8a8a8e);margin-top:3px;line-height:1.5}
.sbox .sp-fv{background:var(--paper,#fff);padding:16px}
.mempty .lk-go{display:inline-block;margin-top:12px;font-size:13px;color:var(--ink,#1d1d1f);border-bottom:1px solid currentColor;cursor:pointer}
/* 评论回复：轻点评论或「回复」进入回复状态；名字为灰色，「回复」二字更浅 */
.sp-c b .sp-rt{font-style:normal;font-weight:400;color:var(--faint,#b0b0b4);margin:0 4px}
.sp-c b small+.sp-rt{margin-left:6px}
#appWin>.sp-in .sp-rx{display:none;flex:0 0 22px;width:22px;height:22px;margin-left:-2px;border-radius:50%;background:var(--line,#ececee);align-items:center;justify-content:center;cursor:pointer}
#appWin>.sp-in .sp-rx svg{width:12px;height:12px;fill:none;stroke:var(--sub);stroke-width:1.8;stroke-linecap:round}
#appWin>.sp-in.re .sp-rx{display:flex}
.phone.night #appWin>.sp-in .sp-rx{background:rgba(255,255,255,.1)}
/* 详情页减少分隔线：点赞行下方与评论之间、评论之间不再画线 */
.sp-c{display:flex;gap:10px;padding:12px 0;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;border-bottom:none!important;padding:10px 0}
/* 点赞评论行：淡色圆角方框，不用横线 */
.sp-bar{display:flex;gap:22px;margin-top:10px;padding-top:10px;align-items:baseline;border-top:none!important;border:1px solid var(--line,#ececef)!important;border-radius:12px;padding:9px 14px!important;margin-top:14px}
.phone.night .sp-bar{border-color:rgba(255,255,255,.08)!important}
.sp-cmts{margin-top:8px;border-top:none!important;margin-top:4px;margin-top:6px}
