/* 微信分享模态框样式 */
.weixin-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.weixin-modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weixin-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s;
}

.weixin-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.weixin-close:hover {
    color: #333;
}

.weixin-modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #2c3e50;
}

.weixin-modal-content p {
    color: #666;
    margin-bottom: 15px;
}

.qr-code {
    margin: 20px auto;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    display: inline-block;
}

.qr-code img {
    display: block;
    max-width: 200px;
    height: auto;
}

.weixin-tip {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

/* Toast提示样式 */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s;
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 分享按钮悬停效果优化 */
.share-btn {
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式优化 */
@media (max-width: 768px) {
    .weixin-modal-content {
        padding: 20px;
        width: 95%;
    }

    .qr-code img {
        max-width: 180px;
    }

    .share-toast {
        width: 80%;
        text-align: center;
    }
}