/*
/*
 * 社交分享样式
 * 微信二维码模态框样式
 */

/* 微信二维码模态框 */
.weixin-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.weixin-qr-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.weixin-qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
}

.weixin-qr-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.weixin-qr-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.weixin-qr-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.weixin-qr-body {
    padding: 20px;
    text-align: center;
}

#weixin-qrcode {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

#weixin-qrcode img {
    border: 1px solid #eee;
    border-radius: 4px;
}

.weixin-qr-body p {
    color: #666;
    margin: 15px 0;
    font-size: 14px;
}

.weixin-qr-url {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.weixin-qr-url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f9f9f9;
}

.weixin-qr-url button {
    padding: 8px 16px;
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.weixin-qr-url button:hover {
    background-color: #06ad56;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .weixin-qr-content {
        width: 95%;
        margin: 20px;
    }
    
    .weixin-qr-url {
        flex-direction: column;
        gap: 10px;
    }
    
    .weixin-qr-url input,
    .weixin-qr-url button {
        width: 100%;
    }
}

/* 加载动画 */
.weixin-qr-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #07c160;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}