/* 分享组件样式（从原主题抽取，适配新皮肤） */

.share-btn { position: fixed;
    right: 20px;
    bottom: calc(5vh + 42px);
    z-index: 999;
    display: none;
    width: 32px;
    height: 32px;
    background: #d00000;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
    opacity: 1; }
.share-btn:hover { transform: scale(1.1);
    background: #d32f2f; }
.share-btn::after { content: '';
    display: block;
    width: 16px;
    height: 16px;
    margin: 8px auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain; }
.dark-theme .share-btn { background: #d00000;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4); }
.dark-theme .share-btn:hover { background: #ff8787; }
.share-btn { right: 1rem;
        bottom: calc(5vh + 3rem);
        width: 2.5rem;
        height: 2.5rem;
        opacity: 1; }
.share-btn::after { width: 1.2rem;
        height: 1.2rem;
        margin: 0.65rem auto; }
.share-content { padding: 15px; }
.share-title { font-size: 16px;
        margin-bottom: 15px; }
.share-item { width: 33.33%;
        margin-bottom: 15px; }
.share-item > div { width: 40px;
        height: 40px;
        margin-bottom: 5px; }
.share-icon-img { width: 40px;
        height: 40px;
        margin-bottom: 5px; }
.share-name { font-size: 11px; }
.share-close { padding: 12px 0;
        font-size: 14px; }
.share-btn { right: 1rem;
        bottom: calc(5vh + 3rem);
        width: 2.5rem;
        height: 2.5rem;
        opacity: 1; }
.share-btn::after { width: 1.2rem;
        height: 1.2rem;
        margin: 0.65rem auto; }
.share-content { padding: 15px; }
.share-title { font-size: 16px;
        margin-bottom: 15px; }
.share-item { width: 33.33%;
        margin-bottom: 15px; }
.share-item > div { width: 40px;
        height: 40px;
        margin-bottom: 5px; }
.share-icon-img { width: 40px;
        height: 40px;
        margin-bottom: 5px; }
.share-name { font-size: 11px; }
.share-close { padding: 12px 0;
        font-size: 14px; }
.share-btn { right: 0.8rem;
        bottom: calc(5vh + 3.2rem);
        width: 3rem;
        height: 3rem;
        opacity: 1; }
.share-btn::after { width: 1.4rem;
        height: 1.4rem;
        margin: 0.8rem auto; }
.share-btn { right: 0.5rem;
        bottom: calc(5vh + 2.8rem);
        width: 2.4rem;
        height: 2.4rem; }
.share-btn::after { width: 1.1rem;
        height: 1.1rem;
        margin: 0.65rem auto; }
.share-text { display: none; }
.share-popup { position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none; }
.share-popup.active { display: block; }
.share-mask { position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); }
.share-content { position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease; }
.share-title { text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px; }
.share-platforms { display: flex;
    flex-wrap: wrap;
    justify-content: center; }
.share-item { display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none; }
.share-item:hover { transform: scale(1.05); }
.share-item > div { width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 8px; }
.share-icon-img { width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 8px;
    object-fit: cover; }
.share-icon-bg { width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center; }
.share-icon-bg img { width: 60%;
    height: 60%;
    object-fit: contain;
    border-radius: 0;
    margin-bottom: 0; }
.share-icon-qq-bg { background: #12b7f5; }
.share-icon-weibo-bg { background: #e6162d; }
.share-icon-wechat { background: #07c160 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 01.213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 00.167-.054l1.903-1.114a.864.864 0 01.717-.098 10.16 10.16 0 002.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178A1.17 1.17 0 014.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178 1.17 1.17 0 01-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 01.598.082l1.584.926a.272.272 0 00.14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.322-1.223a.49.49 0 01.172-.553C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.269-.03-.407-.032zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 01-.969.983.976.976 0 01-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 01-.969.983.976.976 0 01-.969-.983c0-.542.434-.982.969-.982z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 60%; }
.share-icon-native { background: #007aff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 60%; }
.share-icon-wechat-moment { background: #8bc34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 6c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm3 10H9v-2h7v2zm3-4H9v-2h10v2z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 60%; }
.share-icon-link { background: #666 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 60%; }
.share-name { font-size: 12px;
    color: #666; }
.share-close { text-align: center;
    font-size: 16px;
    color: #999;
    padding: 15px 0;
    border-top: 1px solid #eee;
    cursor: pointer; }
.share-close:hover { color: #333; }
.share-tip { position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none; }
.share-tip.active { display: block; }
.share-tip-arrow { position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(0, 0, 0, 0.8); }
.share-tip-content { background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center; }
.share-tip-icon { width: 32px;
    height: 32px;
    margin-right: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain; }
.share-tip-text { color: #fff;
    font-size: 14px;
    text-align: left; }
.dark-theme .share-content { background: #2d2d2d; }
.dark-theme .share-title { color: #fff; }
.dark-theme .share-name { color: #ccc; }
.dark-theme .share-close { color: #666;
    border-top-color: #444; }
.dark-theme .share-close:hover { color: #fff; }
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
/* 桌面端微信扫码分享面板 */
.share-qr { display: none; text-align: center; padding: 4px 0 2px; }
.share-qr.active { display: block; }
.share-qr-box { display: inline-block; background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 12px; line-height: 0; }
.share-qr-box img, .share-qr-box canvas { display: block; }
.share-qr-text { font-size: 13px; color: #666; line-height: 1.8; margin: 12px 0 4px; }
.share-qr-text br { display: inline; }
@media (max-width: 767px) {
    .share-qr-text br { display: none; }
}