/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-nz1yiwl0um] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-nz1yiwl0um] {
    flex: 1;
}

.sidebar[b-nz1yiwl0um] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-nz1yiwl0um] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-nz1yiwl0um]  a, .top-row[b-nz1yiwl0um]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-nz1yiwl0um]  a:hover, .top-row[b-nz1yiwl0um]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-nz1yiwl0um]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-nz1yiwl0um] {
        justify-content: space-between;
    }

    .top-row[b-nz1yiwl0um]  a, .top-row[b-nz1yiwl0um]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-nz1yiwl0um] {
        flex-direction: row;
    }

    .sidebar[b-nz1yiwl0um] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-nz1yiwl0um] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-nz1yiwl0um]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-nz1yiwl0um], article[b-nz1yiwl0um] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-nz1yiwl0um] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-nz1yiwl0um] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-zjo6z1fhij] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-zjo6z1fhij] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-zjo6z1fhij] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-zjo6z1fhij] {
    font-size: 1.1rem;
}

.bi[b-zjo6z1fhij] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-zjo6z1fhij] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-zjo6z1fhij] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-zjo6z1fhij] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-zjo6z1fhij] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-zjo6z1fhij] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-zjo6z1fhij] {
        padding-bottom: 1rem;
    }

    .nav-item[b-zjo6z1fhij]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-zjo6z1fhij]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-zjo6z1fhij]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-zjo6z1fhij] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-zjo6z1fhij] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-zjo6z1fhij] {
        display: none;
    }

    .nav-scrollable[b-zjo6z1fhij] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/MemberCode.razor.rz.scp.css */
/* 会员码页 · 全屏舞台
   两段式背景适配（一张长图通吃所有屏幕比例）：
     .bg-body   主体段：flex:1 占据底栏以上全部空间，object-fit:cover + 顶部对齐，
                屏幕越"矮"裁掉越多主体底部 —— 等同原版 App 滚动展示的效果
     .bg-bottom 底栏段：宽 100% 等比显示（含二维码圆钮），永远完整钉在屏幕最底 */

.stage[b-tp0z9zukbb] {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background-color: #f3f3f3; /* 图片未加载/超高屏主体不足时的兜底底色（与页面浅灰一致） */
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}

/* 主体容器：宽度铺满、顶部对齐；屏幕过高时图放不下底部，
   用页面同款浅灰向下延伸（不裁左右） */
.bg-body[b-tp0z9zukbb] {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    background: #f3f3f3;
    pointer-events: none;
}

.bg-body img[b-tp0z9zukbb] {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
}

.bg-bottom[b-tp0z9zukbb] {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    /* 上移 5.8% 屏宽（=PNG 顶部圆钮凸出透明区高度），压到主体图底部之上：
       镂空区透出的就是主体图自己的像素（黄图标头顶），与原版 App 层级一致 */
    margin-top: -5.8%;
}

@keyframes breathe-b-tp0z9zukbb {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────
   全屏：弹出二维码时由 js/member-fullscreen.js 发起
   · 安卓 Chrome / Edge / 微信 XWEB：requestFullscreen 生效，系统 UI 全隐藏
   · iPhone Safari 不支持元素全屏 → JS 给 <html> 加 .pseudo-fs 顶上（见下方）
   ───────────────────────────────────────────────────────────── */

/* 全屏时 .stage 取代视口成为包含块，背景与蒙层跟着铺满即可 */
.stage:fullscreen[b-tp0z9zukbb],
.stage:-webkit-full-screen[b-tp0z9zukbb] {
    background-size: 100% 100%;
}

.stage:fullscreen .mask[b-tp0z9zukbb],
.stage:-webkit-full-screen .mask[b-tp0z9zukbb] {
    position: fixed;
    inset: 0;
}

/* 伪全屏（iOS 兜底）：铺满动态可视区；安全区留给蒙层，背景图照旧贴满 */
html.pseudo-fs[b-tp0z9zukbb],
html.pseudo-fs body[b-tp0z9zukbb] {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

html.pseudo-fs .stage[b-tp0z9zukbb] {
    inset: 0;
    height: 100dvh;
}

html.pseudo-fs .mask[b-tp0z9zukbb] {
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   以下尺寸按「金色印象」小程序线上弹窗逐像素还原
   源：官方 wxapkg 解包后的 pages/layout/tab.wxss（rpx ÷ 2 → px）
       并用真机截图实测校准颜色与二维码白边
   卡片 690rpx×800rpx → 345×400；圆角 20rpx → 10px
   ───────────────────────────────────────────────────────────── */

/* 全屏蒙层 */
.mask[b-tp0z9zukbb] {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fade-b-tp0z9zukbb .18s ease-out;
}

@keyframes fade-b-tp0z9zukbb {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 会员码卡片：345×400，上内边距 86rpx→43（让出头像那一半），下 60rpx→30 */
.sheet[b-tp0z9zukbb] {
    position: relative;
    box-sizing: border-box;
    width: min(345px, 92vw);
    height: 400px;
    padding: 43px 0 30px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 官方是 space-between，但那样会把剩余空间均摊到每个间隙（实测二维码比真机低约 3px）。
       这里改用固定间距，逐项对齐真机截图测得的位置：
       昵称 43 → 倒计时 81.5 → 二维码 102.7 → 底部文案 297.7 → 下留白 30 */
    justify-content: flex-start;
    animation: pop-b-tp0z9zukbb .22s ease-out;
}

@keyframes pop-b-tp0z9zukbb {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}

/* 头像：146rpx→73px 白圆骑在卡片上沿，骑出一半（top -73rpx → -36.5px） */
.avatar[b-tp0z9zukbb] {
    position: absolute;
    top: -36.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 73px;
    height: 73px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 内圈头像 130rpx→65px */
.avatar img[b-tp0z9zukbb] {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

/* 昵称：32rpx→16px 粗体 #1d1d1d，下方留 45rpx→22.5px */
.code[b-tp0z9zukbb] {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #1d1d1d;
    text-align: center;
    margin-bottom: 22.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.code-empty[b-tp0z9zukbb] {
    font-size: 16px;
    font-weight: 400;
    color: #bbb;
}

/* 「本会员码 25秒 后将更新」24rpx→12px #a0a0a0 */
.count[b-tp0z9zukbb] {
    font-size: 12px;
    line-height: 17px;
    margin: 0;
    color: #a0a0a0;
    text-align: center;
    /* 整行强制单行：CJK 默认可在任意字间断开，一旦折行会把 17px 撑成 34px，
       下方二维码被挤出卡片（Chrome / 安卓 Noto Sans CJK 上实测发生） */
    white-space: nowrap;
    flex: 0 0 auto; /* 卡片高度固定 400px，不允许这一行被压缩 */
}

/* 倒计时数字：32rpx→16px 粗体，主题金 #F7CD45，最少 40px 宽居中
   （官方 wxss 是固定 width:40px，但「25 秒」在部分字体下实测约 39–41px，
     固定宽度会导致溢出或折行；min-width 既保住不抖动，又不会把「秒」挤出去） */
.count b[b-tp0z9zukbb] {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #F7CD45;
    white-space: nowrap;
}

/* 二维码：380rpx→190px 方框居中（截图实测黑码区 172px，白边各 9px，由 QrSvgRenderer 负责） */
.qr[b-tp0z9zukbb] {
    width: 190px;
    height: 190px;
    margin: 2.7px 0 0;
    background: #fff;
    overflow: hidden;
    /* 固定 190×190 的正方形：父容器是 height:400px 的 column flex，
       内容一旦超高一像素，二维码就会被 flex 压缩成扁矩形 */
    flex: 0 0 auto;
}

.qr img[b-tp0z9zukbb] {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-empty[b-tp0z9zukbb] {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #c8c8c8;
    font-size: 13px;
    background: #fafafa;
}

.qr-empty .dot[b-tp0z9zukbb] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    animation: breathe-b-tp0z9zukbb 1.4s ease-in-out infinite;
}

/* 底部文案：24rpx→12px，行高 40rpx→20px，主题绿 #43974E（截图实测 rgb(67,151,78)） */
.tip[b-tp0z9zukbb] {
    font-size: 12px;
    line-height: 20px;
    color: #43974E;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 30px;
    font-weight: 400;
    flex: 0 0 auto;
}

.demo-badge[b-tp0z9zukbb] {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 10px;
    color: #bbb;
    background: #f6f6f6;
    border-radius: 8px;
    padding: 2px 6px;
    line-height: 1.4;
}

.err[b-tp0z9zukbb] {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    max-width: 90%;
    font-size: 12px;
    color: #fff;
    background: rgba(200, 40, 40, .82);
    padding: 8px 12px;
    border-radius: 8px;
    line-height: 1.5;
}

