/* page-wechat-redirect: scoped styles. */

.wechat-redirect .redirect-page {
    margin: 0;
    min-height: calc(100dvh - var(--header-desktop-height) - 180px);
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: radial-gradient(ellipse at 15% 10%,#b6fff3,transparent 55%),radial-gradient(ellipse at 90% 90%,#ffedb4,transparent 50%),#f4fbfa;
    color: #153f45;
    font-family: system-ui,-apple-system,"Microsoft YaHei",sans-serif;
}

.redirect-card {
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    text-align: center;
    padding: 40px 30px;
    border: 1px solid #fff;
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 20px 70px rgba(21,100,99,.1);
}

.redirect-card h1 {
    color: var(--color-brand-action);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4;
    margin: 12px 0;
}

.redirect-description {
    font-size: 15px;
    line-height: 1.8;
    color: #678183;
    margin: 0 auto 28px;
}

.redirect-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: #00bdbd;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.redirect-button:hover {
    background: #00a8a8;
}

.redirect-button:focus-visible {
    outline: 3px solid #008f91;
    outline-offset: 4px;
}

.redirect-status {
    font-size: 14px;
    color: #008f91;
    margin: 20px 0 10px;
}

.redirect-help {
    font-size: 12px;
    line-height: 1.8;
    color: #859799;
}

.redirect-qr-panel[hidden],#redirect-mobile-panel[hidden] {
    display: none;
}

.redirect-qr {
    position: relative;
    width: 240px;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px;
    box-sizing: content-box;
    background: #fff;
    border: 1px solid #dbefec;
    border-radius: 18px;
    box-shadow: 0 8px 24px #153f4508;
}

.redirect-qr .redirect-qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: white;
    object-fit: contain;
}

.redirect-qr canvas,.redirect-qr img {
    max-width: 100%;
    height: auto;
}

.redirect-qr-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 8px;
}

@media(max-width:420px) {
    .wechat-redirect .redirect-page {
        padding: 16px;
    }

    .redirect-card {
        padding: 30px 22px;
    }

    .redirect-card h1 {
        font-size: 24px;
    }
}

@media(max-width:1024px) {
    .wechat-redirect .redirect-page {
        min-height: calc(100dvh - var(--header-tablet-height));
    }
}
