/* ============================================================
 * 社区动态分享：海报预览 + 分享面板
 * ============================================================ */
.sc-mask{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:3000;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;}
.sc-mask.show{opacity:1;visibility:visible;}
.sc-sheet{position:fixed;left:50%;bottom:0;transform:translate(-50%,100%);width:100%;max-width:430px;max-height:92vh;background:var(--bg);border-radius:24px 24px 0 0;z-index:3001;display:flex;flex-direction:column;box-shadow:0 -10px 40px rgba(0,0,0,.28);transition:transform .24s cubic-bezier(.2,.8,.2,1);padding-bottom:env(safe-area-inset-bottom);}
.sc-sheet.show{transform:translate(-50%,0);}
.sc-head{display:flex;align-items:center;justify-content:space-between;padding:12px 20px 4px;flex-shrink:0;}
.sc-title{font-size:15px;font-weight:800;color:var(--tm);letter-spacing:.5px;}
.sc-close{width:28px;height:28px;border-radius:50%;border:none;background:var(--ib);color:var(--ts);font-size:15px;line-height:1;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;}
.sc-body{flex:1;min-height:0;overflow-y:auto;padding:0 18px;display:flex;flex-direction:column;align-items:center;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.sc-loading{width:100%;height:42vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--ts);font-size:12px;}
.sc-spinner{width:26px;height:26px;border-radius:50%;border:2px solid var(--bd);border-top-color:var(--ac);animation:scSpin .8s linear infinite;}
@keyframes scSpin{to{transform:rotate(360deg);}}
.sc-preview{width:100%;display:flex;justify-content:center;padding:8px 0 2px;}
.sc-preview img{max-width:100%;max-height:44vh;border-radius:14px;border:1px solid var(--bd);box-shadow:0 8px 26px rgba(0,0,0,.16);background:#fff;display:block;cursor:zoom-in;}
.sc-tip{font-size:11px;color:var(--ts);text-align:center;line-height:1.7;padding:6px 8px 8px;}
.sc-targets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:4px 14px 6px;flex-shrink:0;}
.sc-target{border:none;background:none;font-family:inherit;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--tm);font-size:11px;padding:4px 0;cursor:pointer;}
.sc-target:disabled{opacity:.45;cursor:not-allowed;}
.sc-ic{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.14);}
.sc-ic svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.sc-ic.moments{background:linear-gradient(135deg,#31C46D,#0E9E4F);}
.sc-ic.wechat{background:linear-gradient(135deg,#2BC45E,#0B9B48);}
.sc-ic.xhs{background:linear-gradient(135deg,#FF4D6D,#D91E3A);}
.sc-ic.save{background:linear-gradient(135deg,#C8161D,#8E1C1C);}
.sc-foot{display:flex;justify-content:center;gap:22px;padding:2px 16px 12px;font-size:12px;color:var(--ts);flex-shrink:0;}
.sc-link{color:var(--ac);cursor:pointer;}
.sc-error{width:100%;padding:34px 10px;text-align:center;font-size:12px;color:var(--ts);line-height:1.8;}
