/* ==================== 分享按钮 ==================== */
.kboke-share {
    margin: 28px 0 12px;
}

.kboke-share-label {
    font-size: 13px;
    color: var(--muted, #94a3b8);
    margin-bottom: 14px;
    letter-spacing: .5px;
}

.kboke-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kboke-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all .2s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.kboke-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* 各平台品牌色 */
.kboke-share-wechat  { background: #07c160; color: #fff !important; }
.kboke-share-weibo   { background: #e6162d; color: #fff !important; }
.kboke-share-qq      { background: #1296db; color: #fff !important; }
.kboke-share-qzone   { background: #fcd535; color: #333 !important; }
/* v2.3.561：Line / X / Facebook / Telegram / Skype 五条配色已随渠道一同移除 */
.kboke-share-copy    { background: #6b7280; color: #fff !important; }

.kboke-share-btn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kboke-share-btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.kboke-share-btn-label {
    display: none;
}

/* 微信二维码弹窗（用 class 控制，避免 display 切换抖动） */
.kboke-share-wechat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.kboke-share-wechat-modal.is-open {
    display: flex;
}

.kboke-share-wechat-inner {
    position: relative;
    background: #fff;
    padding: 30px 30px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    animation: kbokeShareModalIn .25s ease;
}

@keyframes kbokeShareModalIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

.kboke-share-wechat-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    transition: color .2s, box-shadow .2s;
    /* v2.3.512：改用原生 <button> 后需清零 UA 默认样式（背景/边框/内边距/字体） */
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.kboke-share-wechat-close:hover {
    color: #1e293b;
}

/* v2.3.512：键盘聚焦时的可见焦点环（仅键盘触发，鼠标点击不显示） */
.kboke-share-wechat-close:focus-visible {
    color: #1e293b;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.kboke-share-wechat-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
    background: var(--gray-100);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    overflow: hidden;
}

.kboke-share-wechat-qrcode img {
    width: 100%;
    height: 100%;
    display: block;
}

.kboke-share-wechat-tip {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* 移动端：分享按钮 */
@media (max-width: 640px) {
    .kboke-share-btn {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    .kboke-share-btn-icon {
        width: 20px;
        height: 20px;
    }
    .kboke-share-buttons {
        gap: 8px;
    }
}

