/* 分享图标区域样式 */
.share-bar {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.share-bar .share-item {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2px;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    box-sizing: content-box;
}
.share-bar .share-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.share-bar .share-item img {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    transition: filter 0.2s ease;
}

/* 钉钉：悬停变蓝色主题，图标染白 */
.share-bar .share-item[data-platform="钉钉"]:hover {
    background: #0089FF;
    border-color: #0089FF;
}
.share-bar .share-item[data-platform="钉钉"]:hover img {
    filter: brightness(0) invert(1);
}
/* QQ空间：悬停变黄色主题 */
.share-bar .share-item[data-platform="QQ空间"]:hover {
    background: #FFCE00;
    border-color: #FFCE00;
}
.share-bar .share-item[data-platform="QQ空间"]:hover img {
    /* filter: brightness(0); 图标染黑 */
    filter: brightness(0) invert(1);
}
/* 微博：悬停变红色主题，图标染白 */
.share-bar .share-item[data-platform="微博"]:hover {
    background: #E6162D;
    border-color: #E6162D;
}
.share-bar .share-item[data-platform="微博"]:hover img {
    filter: brightness(0) invert(1);
}
/* 微信：悬停变绿色主题，图标染白 */
.share-bar .share-item[data-platform="微信"]:hover {
    background: #07C160;
    border-color: #07C160;
}
.share-bar .share-item[data-platform="微信"]:hover img {
    filter: brightness(0) invert(1);
}

/* 弹窗遮罩层样式 */
#modal-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
/* 弹窗主体样式 */
#modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    padding: 24px 28px 28px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 240px;
}
#modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 16px;
}
#modal-platform {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    display: block;
}
#modal-qrcode {
    margin: 0 auto;
    display: inline-block;
}
#modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
}
#modal-close:hover {
    background: #eee;
    color: #333;
}