/* ==========================================================================
   分享封面生成器 · 弹层样式（搭配 share-cover.js）
   复用 Pano 的 pano-mask 遮罩做基础定位与过渡，这里只补装帧特有部分
   ========================================================================== */
.sc-dialog {
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: var(--panel-2, #121a25);
    border: 1px solid var(--line-strong, #223041);
    border-radius: 16px;
    box-shadow: var(--shadow, 0 18px 50px rgba(0, 0, 0, .45));
    overflow: hidden;
    transform: translateY(10px) scale(.97);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.sc-mask.show .sc-dialog { transform: translateY(0) scale(1); }

.sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line, #1b2532);
}
.sc-head h3 { margin: 0; font-size: 15px; font-weight: 620; }

.sc-close {
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    font-size: 18px;
    color: var(--text-dim, #5f6d80);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color .16s, background .16s;
}
.sc-close:hover { color: var(--text, #e6edf5); background: var(--bg-soft, #16202c); }

.sc-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 18px 4px;
}
.sc-tabs .btn { padding: 6px 12px; font-size: 12.5px; }

.sc-body {
    position: relative;
    flex: 1;
    min-height: 180px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}
.sc-body img {
    display: block;
    max-width: 100%;
    max-height: 58vh;
    border-radius: 10px;
    border: 1px solid var(--line, #1b2532);
    background: #0a1017;
}

.sc-state {
    font-size: 13px;
    color: var(--text-dim, #5f6d80);
}
.sc-state-error { color: #ff6b6b; }

.sc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--line, #1b2532);
}
.sc-tip { font-size: 12px; color: var(--text-dim, #5f6d80); }
.sc-actions { display: flex; gap: 10px; flex-shrink: 0; }
.sc-actions .btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 640px) {
    .sc-foot { flex-direction: column; align-items: stretch; }
    .sc-actions { justify-content: flex-end; }
    .sc-tip { text-align: center; }
}
