/* 微信二维码灯箱插件样式 - 完全自适应版本 */
.wechat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.wechat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wechat-modal-content {
    background-color: white;
    border-radius: 18px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.wechat-modal-overlay.active .wechat-modal-content {
    transform: scale(1);
}

.wechat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
}

.wechat-modal-title {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.3;
}

.wechat-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #86868b;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wechat-modal-close:hover {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.wechat-modal-body {
    padding: 20px;
    text-align: center;
}

.wechat-qrcode-container {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    margin: 0 auto 15px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.wechat-qrcode {
    width: min(200px, 50vw);
    height: min(200px, 50vw);
    background-color: #f5f5f7;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.wechat-qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wechat-modal-text {
    color: #86868b;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.5;
    margin-bottom: 20px;
}

.wechat-modal-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.wechat-action-btn {
    background-color: #86868b;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 44px;
}

.wechat-action-btn:hover {
    background-color: #6e6e73;
}

.wechat-modal-trigger {
    color: #0071e3;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 0;
    border-bottom: 1px dashed #0071e3;
    display: inline-block;
}

.wechat-modal-trigger:hover {
    color: #0077ed;
    border-bottom-color: #0077ed;
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
    .wechat-modal-overlay {
        padding: 10px;
    }
    
    .wechat-modal-content {
        border-radius: 14px;
    }
    
    .wechat-modal-header {
        padding: 15px 15px 0;
    }
    
    .wechat-modal-body {
        padding: 15px;
    }
    
    .wechat-modal-footer {
        padding: 0 15px 15px;
    }
    
    .wechat-qrcode-container {
        padding: 10px;
    }
    
    .wechat-action-btn {
        min-height: 48px;
        font-size: 17px;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1200px) {
    .wechat-modal-content {
        max-width: 450px;
    }
    
    .wechat-qrcode {
        width: 220px;
        height: 220px;
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .wechat-modal-overlay {
        align-items: flex-start;
        padding-top: 40px;
        overflow-y: auto;
    }
    
    .wechat-modal-content {
        max-width: 90%;
        margin: 20px 0;
    }
    
    .wechat-qrcode {
        width: 120px;
        height: 120px;
    }
    
    .wechat-modal-body {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .wechat-modal-text {
        margin-bottom: 0;
        flex: 1;
    }
}