/* WechatUnauthLogin — 独立扫码登录 / 绑定弹窗（不接管社区登录） */

.wul-mask {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--overlay, rgba(0, 0, 0, 0.4));
}

.wul-mask.is-open {
    display: flex;
}

.wul-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: min(90vh, 920px);
    overflow: hidden;
    box-sizing: border-box;
    padding: 36px 28px 28px;
    border: 0;
    border-radius: 16px;
    background: var(--card, #fff);
    color: var(--text, #0a0a0a);
    box-shadow: var(--card-shadow, 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.05));
    font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif);
    isolation: isolate;
}

/* 与社区 .uc-auth-panel 同款光晕背景 */
.wul-card::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: min(240px, 90%);
    height: 120px;
    top: -48px;
    right: -28px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 50% 55%,
        color-mix(in srgb, var(--accent, #0a0a0a) 18%, var(--card, #fff)) 0%,
        color-mix(in srgb, var(--brand-lite, var(--accent, #0a0a0a)) 3%, var(--card, #fff)) 48%,
        var(--card, #fff) 86%
    );
}

.wul-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: min(200px, 82%);
    height: 100px;
    bottom: -30px;
    left: -32px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 50% 55%,
        color-mix(in srgb, var(--accent, #0a0a0a) 10%, var(--card, #fff)) 0%,
        color-mix(in srgb, var(--brand-lite, var(--accent, #0a0a0a)) 3%, var(--card, #fff)) 48%,
        var(--card, #fff) 86%
    );
}

.wul-pane {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wul-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted, #8a8a8a);
    font-size: 22px;
    line-height: 36px;
    cursor: pointer;
}

.wul-close:hover {
    background: var(--chip, #ececec);
    color: var(--text, #0a0a0a);
}

.wul-heading {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text, #0a0a0a);
}

.wul-qr-wrap {
    width: 210px;
    height: 210px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--card-shadow, 0 10px 36px rgba(0, 0, 0, 0.08));
}

.wul-qr {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.wul-scan-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 0;
    color: var(--text-soft, #2e2e2e);
    font-size: 14px;
    font-weight: 500;
}

.wul-scan-line .wul-wx-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #07c160;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.wul-hint {
    margin: 10px 0 0;
    max-width: 280px;
    color: var(--muted, #8a8a8a);
    font-size: 12px;
    line-height: 1.7;
}

.wul-hint .wul-pair {
    color: var(--text, #0a0a0a);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.wul-status {
    margin: 10px 0 0;
    min-height: 18px;
    color: var(--muted, #8a8a8a);
    font-size: 12px;
    line-height: 1.5;
}

.wul-status.is-error {
    color: #e11d48;
}

.wul-status.is-success {
    color: #16a34a;
}

.wul-otp {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.wul-otp input {
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid var(--stroke, rgba(0, 0, 0, 0.07));
    border-radius: 10px;
    background: var(--chip, #ececec);
    color: var(--text, #0a0a0a);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.wul-otp input:focus {
    background: var(--surface, #fff);
    border-color: var(--stroke-strong, rgba(0, 0, 0, 0.14));
    box-shadow: 0 0 0 2px var(--accent-soft, rgba(10, 10, 10, 0.07));
}

.wul-refresh {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted, #8a8a8a);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wul-refresh:hover {
    color: var(--text, #0a0a0a);
}

@media (max-width: 480px) {
    .wul-card {
        padding: 32px 20px 24px;
    }

    .wul-qr-wrap {
        width: 180px;
        height: 180px;
    }

    .wul-otp input {
        width: 38px;
        height: 38px;
    }
}
