/* 分享弹窗样式 */
.share-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.share-modal-overlay.active {
    display: flex;
}

.share-modal-container {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 50%;
}

.share-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.share-modal-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
    font-weight: bold;
}

.share-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.share-preview-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
}

.share-preview-description {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.share-platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-platform-btn.wechat {
    background: #f0fdf4;
    border-color: #07c160;
}

.share-platform-btn.wechat i {
    color: #07c160;
}

.share-platform-btn.qq {
    background: #e0f2fe;
    border-color: #12b7f5;
}

.share-platform-btn.qq i {
    color: #12b7f5;
}

.share-platform-btn.weibo {
    background: #fef2f2;
    border-color: #e6162d;
}

.share-platform-btn.weibo i {
    color: #e6162d;
}

.share-platform-btn.qzone {
    background: #fefce8;
    border-color: #fdbd02;
}

.share-platform-btn.qzone i {
    color: #fdbd02;
}

.share-platform-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.share-platform-name {
    font-size: 13px;
    color: #333;
}

.share-copy-link-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.share-copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.share-qrcode-container {
    display: none;
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.share-qrcode-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.share-qrcode-text {
    color: #999;
    font-size: 13px;
}

.share-qrcode-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* 分享按钮样式 */
.share-btn {
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    color: #667eea !important;
}

/* Toast提示样式 */
.share-toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    z-index: 100000;
    font-size: 14px;
    animation: shareToastFadeIn 0.3s ease;
}

@keyframes shareToastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .share-modal-container {
        width: 95%;
        padding: 20px;
    }

    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .share-platform-btn {
        padding: 12px 8px;
    }

    .share-platform-icon {
        font-size: 24px;
    }
}
