/* 苏玉博客 - 文章页分享组件 (2026-11-06) */

.suyu-share {
    background: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #f2f2f2;
}

.suyu-share-label {
    font-size: 13px;
    color: #999;
    margin-right: 2px;
}

.suyu-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 16px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background-color .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
}

.suyu-share-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    flex: none;
}

.suyu-share-btn:hover,
.suyu-share-btn.suyu-copied {
    color: #fff;
}

.suyu-share-btn[data-share="wechat"]:hover,
.suyu-share-btn[data-share="moments"]:hover {
    background: #07c160;
}

.suyu-share-btn[data-share="qzone"]:hover {
    background: #ffb400;
}

.suyu-share-btn[data-share="weibo"]:hover {
    background: #e6162d;
}

.suyu-share-btn[data-share="twitter"]:hover {
    background: #111;
}

.suyu-share-btn[data-share="email"]:hover {
    background: #2f88ff;
}

.suyu-share-btn[data-share="copy"]:hover,
.suyu-share-btn[data-share="copy"].suyu-copied {
    background: #1e9fff;
}

/* 二维码弹窗 */
.suyu-share-mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.suyu-share-mask.suyu-show {
    display: flex;
}

.suyu-share-qr {
    width: 100%;
    max-width: 270px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 36px rgba(0, 0, 0, .22);
}

.suyu-share-qr h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 14px;
}

.suyu-share-qr .suyu-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 168px;
}

.suyu-share-qr p {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    margin: 14px 0 0;
}

.suyu-share-qr .suyu-qr-close {
    margin-top: 16px;
    width: 100%;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: #1e9fff;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

/* 深色模式 */
.dark .suyu-share {
    background: #232323;
    border-top-color: #414243;
}

.dark .suyu-share-label {
    color: #777;
}

.dark .suyu-share-btn {
    background: #303030;
    color: #999;
}

/* 手机端 */
@media (max-width: 767px) {
    .suyu-share {
        padding: 14px 15px;
        gap: 8px;
    }

    .suyu-share-btn {
        height: 30px;
        padding: 0 10px;
        font-size: 12px;
    }

    .suyu-share-btn svg {
        width: 15px;
        height: 15px;
    }
}
