
/* 所有既有data-page文档的基础尺寸；侧栏、导航和后台弹层留在layout.css。 */
body[data-page] {
    height: 100vh;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    body[data-page] {
        height: auto;
        overflow: visible;
    }
}


/* 沿用原compliance-task9的全局打印隐藏，不携带追溯页面规则。 */
@media print {
    nav,
    aside,
    .btn,
    .alert {
        display: none !important;
    }
}


/* 正式二维码生成器在各入口复用的SVG与失败状态。 */
.wechat-qr-box {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    width: 132px;
    height: 132px;
}

.wechat-qr-svg {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    shape-rendering: crispEdges;
    image-rendering: pixelated;
}

.wechat-qr-error {
    padding: 8px;
    color: #b45309;
    font-size: 12px;
    text-align: center;
}


/* 微信入口提示、扫码二维码与自动授权进度；不携带公众号管理表格。 */
.wechat-login-hint-body {
    min-height: 100vh;
    background: #eef4f8;
}

.wechat-login-hint {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.wechat-login-hint-card {
    width: min(100%, 480px);
    padding: 28px;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.wechat-login-hint-card h1 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.wechat-login-hint-card p {
    margin: 0 auto 18px;
    max-width: 380px;
    color: #475569;
    line-height: 1.65;
}

.wechat-login-hint-qr {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    width: 246px;
    height: 246px;
    flex: 0 0 auto;
    margin: 0 auto 14px;
}

.wechat-login-hint-url {
    overflow-wrap: anywhere;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.wechat-login-hint-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.wechat-login-progress {
    display: grid;
    gap: 12px;
    margin: 20px auto 18px;
    max-width: 320px;
}

.wechat-login-progress__track {
    position: relative;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #111827;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wechat-login-progress__bar {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 42%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e 0%, #86efac 48%, #ffffff 100%);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.62);
    animation: wechat-login-progress-slide 1.08s ease-in-out infinite;
}

.wechat-login-progress__text {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes wechat-login-progress-slide {
    0% { transform: translateX(-110%); }
    50% { transform: translateX(78%); }
    100% { transform: translateX(238%); }
}

@media (prefers-reduced-motion: reduce) {
    .wechat-login-progress__bar { animation-duration: 2.4s; }
}

@media (max-width: 767.98px) {
    .wechat-login-hint-qr {
        width: min(246px, 100%);
        height: auto;
        aspect-ratio: 1;
    }
    .wechat-login-hint-card { padding: 22px 18px; }
    .wechat-login-progress { max-width: 100%; }
}

