body {
    margin: 0;
}

.login-page {
    background: #F2F2F2;
    min-height: 100vh;
    width: 100%;
    padding-top: 150px;
    box-sizing: border-box;
}

.login-page header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 24px;
    height: 80px;
    position: fixed;
    top: 0;
    width: 100vw;
    left: 0;
    padding: 0 24px;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.login-page header img {
    height: 48px;
}

.login-page .login-box {
    margin: 0 auto 80px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 600px;
}
img.wechat-logo {
    margin-right: 8px;
}
.platform-text {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.login-wrapper {
    background: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 550px;
    padding-top: 80px;
}

.login-wrapper h6 {
    font-weight: 600;
    font-size: 28px;
    color: #262626;
    line-height: 40px;
    margin: 0 auto 40px;
}

.login-scan-box {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #D9D9D9;
    width: 180px;
    height: 180px;
}

.login-scan-box .scan-img {
    display: block;
    width: 180px;
    height: 180px;
}

.login-page footer {
    font-weight: 400;
    font-size: 14px;
    color: #8C8C8C;
    line-height: 20px;
    text-align: center;
    padding-bottom: 40px;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .login-page header {
        height: auto;
        font-size: 18px;
        padding: 16px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: static;
    }

    .login-page header img {
        height: 42px;
        margin-bottom: 12px;
    }

    .login-page header span {
        font-size: 19px;
        line-height: 1.4;
        margin: 0;
        font-weight: bold;
        width: 340px;
    }

    .login-page {
        background: #F2F2F2;
        padding-top: 0;
    }

    .login-page .login-box {
        flex-direction: column;
        width: min(calc(100vw - 32px), 398px);
        height: min(calc((100vw - 32px) * 1.51), 601px);
        margin: 40px auto 40px;
        align-items: center;
        justify-content: center;
        background-image: url('./login-h5-bg.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 16px;
        padding: 0;
        position: relative;
    }

    @media (max-width: 430px) and (min-width: 360px) {
        .login-page .login-box {
            transform: scale(calc(100vw / 430));
            transform-origin: center top;
        }

        .login-wrapper {
            transform: translate(-50%, calc(-50% + 10px)) scale(calc(430 / 100vw));
            background: rgba(255, 255, 255, 0.8);
        }
    }

    @media (max-width: 359px) {
        .login-page .login-box {
            transform: scale(calc(360 / 430));
            transform-origin: center top;
        }

        .login-wrapper {
            transform: translate(-50%, calc(-50% + 10px)) scale(calc(430 / 360));
            background: rgba(255, 255, 255, 0.8);
        }
    }

    .login-page .login-box > img {
        display: none;
    }

    .login-wrapper {
        width: calc(100% - 40px);
        max-width: 280px;
        padding: 26px 20px 30px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        box-sizing: border-box;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, calc(-50% + 10px));
    }

    .login-wrapper h6 {
        font-size: 22px;
        margin-bottom: 10px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wechat-logo {
        width: 24px;
        height: 24px;
    }

    .platform-text {
        text-align: center;
        font-size: 18px;
        color: #666;
        margin-bottom: 10px;
    }

    .login-scan-box {
        padding: 16px;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .login-scan-box .scan-img {
        width: 180px;
        height: 180px;
    }

    .login-page footer {
        font-size: 12px;
        padding: 0 20px 30px;
        color: rgba(140, 140, 140, 0.8);
    }
}
