/* 文章分享模块 */
.article-share {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.article-share-title {
    font-size: 16px;
    color: #374151;
    margin-bottom: 20px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    min-width: 60px;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.share-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn-text {
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

/* 各平台颜色 */
.share-wechat-moments .share-btn-icon { background: #07C160; }
.share-wechat-friend .share-btn-icon { background: #1AAD19; }
.share-weibo .share-btn-icon { background: #E6162D; }
.share-qq .share-btn-icon { background: #12B7F5; }
.share-link .share-btn-icon { background: #6b7280; }
.share-qrcode .share-btn-icon { background: #d4af37; }

/* 分享弹窗 */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.share-modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
}

.share-modal-close:hover {
    color: #374151;
}

.share-modal-title {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 20px;
    font-weight: 600;
}

.share-modal-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 10px;
}

.share-modal-qr img {
    max-width: 100%;
    max-height: 100%;
}

.share-modal-tip {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.share-modal-tip strong {
    color: #d4af37;
    font-weight: 600;
}

/* 微信内分享指引 */
.wechat-share-guide {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 15px;
    text-align: left;
    display: none;
}

.wechat-share-guide.active {
    display: block;
}

.wechat-share-guide p {
    margin: 0;
    font-size: 13px;
    color: #166534;
    line-height: 1.7;
}

.wechat-share-guide strong {
    color: #15803d;
}

/* 复制链接提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
}

/* 移动端适配 - 分享按钮 */
@media (max-width: 768px) {
    .article-share {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .article-share-title {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .share-buttons {
        gap: 12px;
        justify-content: space-around;
    }
    
    .share-btn {
        min-width: 50px;
        flex: 0 0 auto;
    }
    
    .share-btn-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .share-btn-text {
        font-size: 11px;
    }
    
    .share-modal {
        padding: 25px 20px;
        max-width: 300px;
    }
    
    .share-modal-qr {
        width: 180px;
        height: 180px;
    }
}
