#wechat-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #54a0ff 0%, #48dbfb 100%);
    color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 10px 40px rgba(84, 160, 255, 0.4);
    z-index: 9999999;
    align-items: center;
    gap: 10px;
}
#wechat-toast.show {
    display: flex;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.wechat-toast-icon {
    width: 24px;
    height: 24px;
}
.wechat-toast-icon svg {
    width: 100%;
    height: 100%;
}

#wechat-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wechat-share-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 320px;
    width: 90%;
}
.wechat-share-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.wechat-share-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}
.wechat-qr-box {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}
.wechat-share-tip {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}
.wechat-article-info {
    text-align: left;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.wechat-article-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    float: right;
    margin-left: 10px;
    display: none;
}
.wechat-article-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}
.wechat-article-desc {
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}
.wechat-share-btn {
    display: flex;
    gap: 10px;
}
.wechat-share-btn button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.btn-copy {
    background: #f0f0f0;
    color: #666;
}
.btn-close {
    background: #07c160;
    color: #fff;
}

.share-popup {
    display: none;
}

.share-popup.show {
    display: flex !important;
}

@media (min-width: 769px) {
    .share-popup {
        display: none;
    }
    
    .share-btn.share-trigger:hover ~ .share-popup,
    .share-popup:hover {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .share-popup {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2) !important;
        display: none;
    }
    
    .share-popup.show {
        display: flex;
    }
}
.share-popup-content {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: row;
    gap: 10px;
    white-space: nowrap;
}
.share-popup-content .share-btn {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.share-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

#poster-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 40px 20px;
}

#poster-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster-card {
    width: 100%;
    max-width: 420px !important;
    background: #fff;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#poster-qrcode {
    width: 90px !important;
    height: 90px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#poster-qrcode canvas,
#poster-qrcode img {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
}

.poster-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff !important;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #e6f7ff !important;
    border-color: #1890ff !important;
    color: #1890ff !important;
}

@media (max-width: 768px) {
    .share-buttons-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 6px;
    }

    .share-popup {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2) !important;
    }

    .share-popup-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 20px;
    }

    .share-popup-content .share-btn {
        flex: 0 0 auto;
        min-width: 80px;
        padding: 12px 10px;
        font-size: 12px;
    }

    #poster-modal {
        padding: 20px 10px;
    }

    .poster-card {
        max-width: 100% !important;
        width: 100%;
        border-radius: 12px;
    }

    .poster-close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .wechat-share-content {
        padding: 24px 20px;
        max-width: 90%;
    }

    #wechat-toast {
        padding: 16px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .share-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .share-buttons-container {
        gap: 6px;
    }

    .poster-card {
        border-radius: 8px;
    }
}