/* ═══════════ v2.03 商品分享海报弹窗（zcmuban1 设计基准：苹果蓝 #0071e3 / 价格橙 #ff7b34 / 行动红橙渐变 #ff6540→#e64d28） ═══════════ */
.zcs-share-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.zcs-share-mask.show {
    opacity: 1;
    visibility: visible;
}
.zcs-share-dialog {
    background: #fff;
    border-radius: 16px;
    width: 400px;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(20, 44, 78, .25);
    transform: translateY(16px) scale(.98);
    transition: transform .22s ease;
    overflow: hidden;
}
.zcs-share-mask.show .zcs-share-dialog {
    transform: none;
}
.zcs-share-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
}
.zcs-share-head-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zcs-share-head-title i {
    color: #0071e3;
}
.zcs-share-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-size: 15px;
    background: #f2f5f9;
    transition: .18s;
    text-decoration: none;
}
.zcs-share-close:hover {
    background: #e6ebf2;
    color: #1d1d1f;
}
.zcs-share-body {
    overflow-y: auto;
    padding: 16px 16px 10px;
    background: linear-gradient(180deg, #f2f8ff, #eaf3ff);
    -webkit-overflow-scrolling: touch;
}
.zcs-share-poster {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zcs-share-poster-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(20, 44, 78, .14);
    display: block;
}
.zcs-share-loading {
    color: #86868b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zcs-share-loading .fa-spinner {
    color: #0071e3;
}
.zcs-share-tip {
    text-align: center;
    color: #86868b;
    font-size: 12px;
    margin: 10px 0 4px;
    line-height: 1.6;
}
.zcs-share-tip i {
    margin-right: 4px;
    color: #ff9d5c;
}
.zcs-share-foot {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid #eef2f7;
    flex-shrink: 0;
    background: #fff;
}
.zcs-shbtn {
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.zcs-shbtn:active {
    transform: scale(.97);
}
.zcs-shbtn-copy {
    background: #e8f2ff;
    color: #0071e3;
}
.zcs-shbtn-copy:hover {
    background: #d8e9ff;
}
.zcs-shbtn-down {
    background: linear-gradient(135deg, #ff6540, #e64d28);
    color: #fff;
    box-shadow: 0 6px 16px rgba(230, 77, 40, .28);
}
.zcs-shbtn-down:hover {
    opacity: .92;
}

/* 手机端：贴底弹层 */
@media (max-width: 768px) {
    .zcs-share-mask {
        align-items: flex-end;
    }
    .zcs-share-dialog {
        width: 100%;
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        max-height: 92vh;
    }
    .zcs-share-foot {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

/* 暗色主题 */
html[data-theme="dark"] .zcs-share-dialog,
html.dark-mode .zcs-share-dialog {
    background: #1d2430;
}
html[data-theme="dark"] .zcs-share-head,
html.dark-mode .zcs-share-head,
html[data-theme="dark"] .zcs-share-foot,
html.dark-mode .zcs-share-foot {
    border-color: #2c3546;
    background: transparent;
}
html[data-theme="dark"] .zcs-share-head-title,
html.dark-mode .zcs-share-head-title {
    color: #e8ecf3;
}
html[data-theme="dark"] .zcs-share-close,
html.dark-mode .zcs-share-close {
    background: #2c3546;
    color: #9aa5b5;
}
html[data-theme="dark"] .zcs-share-body,
html.dark-mode .zcs-share-body {
    background: linear-gradient(180deg, #202939, #1b2331);
}
html[data-theme="dark"] .zcs-shbtn-copy,
html.dark-mode .zcs-shbtn-copy {
    background: #24354d;
    color: #5aa9ff;
}
