/**
 * 微信扫码登录（独立样式，不改动 auth.css）
 */

.btn-auth--wechat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    margin-top: 0;
    border: none;
    border-radius: var(--auth-radius-sm, 8px);
    background: #07c160;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.btn-auth--wechat:hover {
    background: #06ad56;
    color: #fff;
}

.btn-auth--wechat:active {
    transform: translateY(1px);
}

.auth-wx-extra {
    margin-top: 20px;
}

.auth-wx-extra__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--text-muted, #6b7785);
    font-size: 13px;
}

.auth-wx-extra__divider::before,
.auth-wx-extra__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border, #e5eaf0);
}

body.auth-wx-modal-open {
    overflow: hidden;
}

.auth-wx-modal[hidden] {
    display: none !important;
}

.auth-wx-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wx-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 32, .55);
}

.auth-wx-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    padding: 28px 24px 22px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 32, .22);
    text-align: center;
}

.auth-wx-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #8a96a3;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.auth-wx-modal__close:hover {
    color: #1f2933;
    background: #f2f5f8;
}

.auth-wx-modal__title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2933;
}

.auth-wx-modal__title .fa-weixin {
    color: #07c160;
    margin-right: 6px;
}

.auth-wx-qr {
    text-align: center;
}

.auth-wx-qr__box {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 14px;
    border: 1px solid var(--auth-border, #e5eaf0);
    border-radius: var(--auth-radius, 8px);
    background: #fff;
    overflow: hidden;
}

.auth-wx-qr__box img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.auth-wx-qr__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted, #6b7785);
    background: #f7fafc;
}

.auth-wx-qr__tip,
.auth-wx-qr__status {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted, #6b7785);
}

.auth-wx-qr__status {
    color: var(--brand, #00a0e9);
    min-height: 1.2em;
}

.auth-wx-modal__actions {
    margin-top: 6px;
}

.auth-wx-refresh,
.auth-wx-simulate {
    display: inline-block;
    margin: 4px 8px 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--brand, #00a0e9);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.auth-wx-simulate {
    color: #c47b00;
}
