/* 分享弹窗样式 */
.share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}
.share-popup.show {
    display: flex;
}
.share-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.share-popup-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    width: 92%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: sharePopupSlideIn 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* 优化弹窗在不同屏幕尺寸下的显示 */
@media (max-width: 320px) {
    .share-popup-content {
        width: 95%;
    }
    
    .share-product-image img {
        width: 100px;
        height: 100px;
    }
    
    .share-qrcode img {
        width: 130px;
        height: 130px;
    }
}

@media (min-width: 414px) {
    .share-popup-content {
        max-width: 380px;
    }
}

@media (min-width: 768px) {
    .share-popup-content {
        max-width: 400px;
    }
}
@keyframes sharePopupSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.share-popup-header {
    padding: 12px 15px;
    background: linear-gradient(to right,#fed788,#ffbc39) !important;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.share-popup-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.share-popup-close {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.share-popup-close:hover {
    color: #fff;
    opacity: 0.8;
}
.share-popup-body {
    padding: 0;
}
.share-invite-banner {
    background: linear-gradient(to right,#fed788,#ffbc39) !important;
    padding: 15px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.share-invite-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}
.share-invite-text h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.share-invite-text p {
    margin: 0;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.share-product-info {
    margin: 15px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.share-product-image {
    margin-bottom: 12px;
}
.share-product-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #fed788;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}
.share-product-name {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: bold;
}
.share-qrcode {
    text-align: center;
    margin: 0 15px 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.share-qrcode-inner {
    margin-bottom: 12px;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
    display: inline-block;
}
.share-qrcode img {
    width: 150px;
    height: 150px;
    margin-bottom: 0;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.share-qrcode-text {
    font-size: 14px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: bold;
}
.share-invite-code {
    font-size: 13px;
    color: #ff8901;
    margin: 0;
    font-weight: bold;
}
.share-tips {
    text-align: center;
    padding: 0 15px 15px;
}
.share-tips-text {
    margin: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}