/* 微信咨询模态框样式 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wechat-modal.show {
    opacity: 1;
}

.wechat-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.wechat-modal.show .wechat-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.wechat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.wechat-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.wechat-close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.wechat-close-btn:hover {
    color: #333;
}

.wechat-modal-body {
    padding: 20px;
    text-align: center;
}

.wechat-modal-body p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.wechat-qr-code {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.wechat-modal-footer {
    text-align: center;
}

.wechat-close-modal {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.wechat-close-modal:hover {
    background: #0069d9;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .wechat-modal-content {
        width: 95%;
        max-width: 280px;
    }
    
    .wechat-qr-code {
        width: 180px;
        height: 180px;
    }
}