.bb-bar[hidden], .bb-bar [hidden] { display: none; }
.bb-bar {
    position: fixed; inset: auto 0 0; z-index: 30; margin-inline: auto;
    width: min(100%, 650px); display: flex; align-items: stretch; gap: 10px; justify-content: center;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid #edf0f2; box-shadow: 0 -4px 18px #18233a12;
    visibility: hidden; transform: translateY(100%); pointer-events: none;
    transition: transform .22s ease, visibility .22s;
}
.bb-bar[data-visible] { visibility: visible; transform: translateY(0); pointer-events: auto; }
.bb-has-bar body {
    min-height: calc(100vh + 82px);
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
}
.bb-bar a { text-decoration: none; display: flex; align-items: center; justify-content: center; }
.bb-bar a:focus-visible { outline: 2px solid #225ed6; outline-offset: 2px; }
.bb-bar svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb-action { flex: 0 0 50px; flex-direction: column; gap: 4px; font-size: 12px; color: #283143; }
.bb-gift svg { color: #e46126; }
.bb-support svg { color: #149057; }
.bb-bar .bb-wechat-icon { fill: currentColor; stroke: none; }
.bb-download { flex: 1; min-height: 53px; border-radius: 12px; gap: 7px; background: #c62e26; color: #fff; font-size: 16px; font-weight: 700; }
.bb-download:hover { background: #af261f; }
.bb-download svg { width: 19px; height: 19px; stroke-width: 2.4; }
@media (prefers-reduced-motion: reduce) { .bb-bar { transition: none; } }
