/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* 顶部蓝色条样式 */
.header {
    background-color: #007bff;
    padding: 20px;
    text-align: center;
    height: 160px;
}

.header img {
    max-width: 150px;
}

/* 主体内容样式 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px;
    margin-top: -80px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-content p {
    text-align: center;
    margin-bottom: 20px;
}

/* 打开应用按钮样式 */
.open-button {
    display: block;
    margin: 0 auto 20px;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.open-button:disabled {
    background-color: gray;
}

/* 二维码样式 */
.qr-code {
    display: block;
    margin: 0 auto;
    max-width: 200px;
}

.qr-code {
    width: 6rem;
    height: 6rem;
    border-radius: 0.55rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    margin-top: 0.6375rem;
}

.qr-code .qr-loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.2rem;
    justify-content: center;
}

.qr-loading-wrap .extra {
    font-size: 16px;
    margin-top: 0.45rem;
    text-align: center;
}

.qr-loading span {
    display: inline-block;
    vertical-align: middle;
    width: 0.4rem;
    height: 0.4rem;
    margin: 0.1rem;
    background: #3199FF;
    border-radius: 50%;
    -webkit-animation: loading 2s infinite alternate;
    animation: loading 2s infinite alternate;
}

.qr-code img {
    width: 5.7rem;
    height: 5.7rem;
    display: none;
}

.qr-code .qr-success {
    position: absolute;
    backdrop-filter: blur(10px) brightness(0.9); /* 模糊和亮度调整 */
    -webkit-backdrop-filter: blur(10px) brightness(0.9); /* 兼容旧版WebKit浏览器 */
    background-color: rgba(255, 255, 255, 0.5); /* 半透明白色层 */
    z-index: 2;
    width: 6rem;
    height: 6rem;
    border-radius: 0.55rem;
    align-items: center;
    display: none;
}

.qr-success .qr-success-hits {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 20px;
    color: #2557E5;
    font-weight: 600;
    gap: 0.3rem;
}

.qr-code .qr-timeout {
    position: absolute;
    backdrop-filter: blur(10px) brightness(0.9); /* 模糊和亮度调整 */
    -webkit-backdrop-filter: blur(10px) brightness(0.9); /* 兼容旧版WebKit浏览器 */
    background-color: rgba(255, 255, 255, 0.5); /* 半透明白色层 */
    z-index: 2;
    width: 6rem;
    height: 6rem;
    border-radius: 0.55rem;
    align-items: center;
    display: none;
}

.qr-timeout .qr-timeout-hits {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
    color: #d81e06;
    font-weight: 600;
    gap: 0.3rem;
}