/* 充值弹窗组件样式 */
.recharge-popup {
    /* 相对 .hd__nav-container 定位：右下角，自身高度完全露在容器下方 */
    position: absolute;
    bottom: 0;
    right: 10px;
    transform: translateY(100%);
    z-index: 9999;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    min-width: 280px;
    max-width: 320px;
    box-sizing: border-box;
    display: none;
}

.recharge-popup__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.recharge-popup__arrow {
    display: none;
    position: absolute;
    top: -8px;
    right: 60px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.recharge-popup__close {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 40px;
    height: 40px;
    line-height: 22px;
    text-align: center;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: none;
    background: transparent;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.recharge-popup__close:hover {
    background: #f2f2f2;
    color: #333;
}

.recharge-popup__body {
    display: flex;
    align-items: center;
}

/* 二维码与文字间距（替代 flex gap，兼容老浏览器） */
.recharge-popup__qr {
    flex-shrink: 0;
    margin-right: 18px;
    width: 110px;
    height: 110px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 4px;
    background: #fff;
    overflow: hidden;
}

.recharge-popup__qr img,
.recharge-popup__qr canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.recharge-popup__text {
    flex: 1;
    min-width: 0;
}

.recharge-popup__title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #e89c4a;
    letter-spacing: 2px;
}

.recharge-popup__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

/* 移动端（<992）：fixed 居中 + 蒙版 */
@media (max-width: 991px) {
    .recharge-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        max-width: 90%;
        width: 320px;
    }

    .recharge-popup__arrow {
        display: none;
    }
}
