/* 右侧固定分享栏 */
.share-bar {
    position: fixed;
    right: 0;
    top: 260px;
    z-index: 9999;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 1px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px 0 0 4px;
    overflow: hidden;
}
.share-bar-title {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 50px;
    height: 44px;
    padding-top: 4px;
    background: #333;
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    border-radius: 4px 0 0 0;
    gap: 4px;
    cursor: default;
}
.share-bar-title i {
    font-size: 14px;
    -webkit-animation: share-pulse 2s ease-in-out infinite;
    animation: share-pulse 2s ease-in-out infinite;
}
@-webkit-keyframes share-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes share-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.share-bar .share-btn {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-transition: width 0.2s, opacity 0.2s;
    transition: width 0.2s, opacity 0.2s;
    position: relative;
}
.share-bar .share-btn:hover {
    width: 58px;
    opacity: 0.9;
}
.share-bar .share-btn i {
    font-size: 20px;
    margin-bottom: 1px;
}
.share-bar .share-btn .share-label {
    font-size: 11px;
    line-height: 1;
}
.share-bar .share-weibo  { background: #e6162d; }
.share-bar .share-qq     { background: #12b7f5; }
.share-bar .share-qzone  { background: #f5b81b; }
.share-bar .share-wechat { background: #09bb07; }

/* 微信二维码弹窗 */
.share-qr-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
}
.share-qr-overlay.active {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.share-qr-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px 20px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}
.share-qr-dialog h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #333;
    font-weight: normal;
}
.share-qr-dialog .qr-tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin: 14px 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.share-qr-dialog .qr-tab {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    padding: 7px 0;
    cursor: pointer;
    font-size: 13px;
    background: #f5f5f5;
    color: #666;
    border: none;
    outline: none;
    -webkit-transition: background 0.2s, color 0.2s;
    transition: background 0.2s, color 0.2s;
}
.share-qr-dialog .qr-tab.active {
    background: #09bb07;
    color: #fff;
}
.share-qr-dialog .qr-tab:first-child {
    border-right: 1px solid #ddd;
}
.share-qr-dialog .qr-img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: block;
    border: 1px solid #eee;
    padding: 4px;
    box-sizing: content-box;
}
.share-qr-dialog .qr-tip {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.5;
}
.share-qr-dialog .qr-copy-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-top: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.share-qr-dialog .qr-copy-input {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    border: none;
    padding: 6px 8px;
    font-size: 12px;
    color: #666;
    background: #f9f9f9;
    outline: none;
    min-width: 0;
}
.share-qr-dialog .qr-copy-btn {
    border: none;
    background: #09bb07;
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}
.share-qr-dialog .qr-copy-btn:hover {
    background: #07a006;
}
.share-qr-dialog .qr-close {
    margin-top: 16px;
    padding: 6px 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}
.share-qr-dialog .qr-close:hover {
    background: #f0f0f0;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .share-bar {
        right: 2px;
    }
    .share-bar .share-btn {
        width: 40px;
        height: 40px;
    }
    .share-bar .share-btn i {
        font-size: 16px;
        margin-bottom: 0;
    }
    .share-bar .share-btn .share-label {
        font-size: 10px;
    }
    .share-bar .share-btn:hover {
        width: 44px;
    }
    .share-qr-dialog {
        width: 260px;
        padding: 20px 16px 16px;
    }
    .share-qr-dialog .qr-img {
        width: 160px;
        height: 160px;
    }
}
