@media(min-width:769px) {
    .wx-mini-bar,
    .wx-overlay {
        display: none !important;
    }
}

@media(max-width:768px) {
    .wx-mini-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--wx-c-bg);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 99999;
        -webkit-tap-highlight-color: transparent;
    }
    
    .wx-mini-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--wx-c-default);
        flex: 1;
        height: 100%;
    }
    
    .wx-mini-item.active {
        color: var(--wx-c-active);
    }
    
    .wx-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
        fill: currentColor;
    }
    
    .wx-text {
        font-size: 12px;
        line-height: 1.2;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .wx-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 99998;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .wx-overlay.wx-show {
        opacity: 1;
    }
    
    .wx-search-overlay {
        background: rgba(255, 255, 255, 0.98);
        align-items: flex-start;
        padding-top: 80px;
        z-index: 99999;
    }
    
    .wx-search-header {
        width: 90%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .wx-search-form {
        display: flex;
        gap: 10px;
    }
    
    .wx-search-input {
        flex: 1;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .wx-search-submit {
        padding: 0 20px;
        background: var(--wx-c-active);
        color: #fff;
        border: none;
        border-radius: 4px;
    }
    
    .wx-search-close {
        background: none;
        border: none;
        color: #666;
        padding: 5px;
    }
    
    .wx-qrcode-content,
    .wx-reward-content {
        position: relative;
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        text-align: center;
        width: 85%;
        max-width: 260px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        animation: wxPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .wx-qrcode-close {
        position: absolute;
        top: -12px;
        right: -12px;
        width: 28px;
        height: 28px;
        background: #ff4d4f;
        color: #fff;
        border-radius: 50%;
        text-align: center;
        line-height: 26px;
        cursor: pointer;
        font-size: 18px;
        z-index: 10;
        border: 2px solid #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .wx-qrcode-img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
    }
    
    .wx-qrcode-tip {
        margin-top: 12px;
        font-size: 13px;
        color: #666;
    }
    
    .wx-reward-codes {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 15px;
        margin: 15px 0 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .wx-reward-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
        width: 90px;
    }
    
    .wx-reward-item img {
        width: 90px;
        height: 90px;
        object-fit: contain;
        border: 1px solid #eee;
        border-radius: 4px;
        background: #f9f9f9;
    }
    
    .wx-reward-label {
        margin: 6px 0 0;
        font-size: 13px;
        color: #555555;
        font-weight: 500;
        white-space: nowrap;
    }
    
    @keyframes wxPopIn {
        from {
            opacity: 0;
            transform: scale(0.8) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}