/* 发布会横幅共享样式：官网、通行证与 API 平台共用。 */
#bailu-launch-banner {
    --launch-banner-height: 52px;
    position: relative;
    z-index: 80;
    width: 100%;
    min-height: var(--launch-banner-height);
    box-sizing: border-box;
    color: #fff;
    background: linear-gradient(100deg, #075bd7 0%, #087bea 52%, #06a7f5 100%);
    font-family: inherit;
}
#bailu-launch-banner,
#bailu-launch-banner * { box-sizing: border-box; }
#bailu-launch-banner .launch-banner__inner {
    width: min(100% - 40px, 1160px);
    min-height: var(--launch-banner-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
#bailu-launch-banner .launch-banner__copy {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 9px;
    white-space: nowrap;
}
#bailu-launch-banner .launch-banner__eyebrow {
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 500;
}
#bailu-launch-banner .launch-banner__title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: .02em;
    line-height: 1.25;
}
#bailu-launch-banner .launch-banner__subtitle {
    color: rgba(255,255,255,.86);
    font-size: 12px;
}
#bailu-launch-banner .launch-banner__right,
#bailu-launch-banner .launch-banner__clock {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
#bailu-launch-banner .launch-banner__right { gap: 18px; }
#bailu-launch-banner .launch-banner__clock { gap: 9px; font-size: 12px; }
#bailu-launch-banner .launch-banner__unit { display: inline-flex; align-items: baseline; gap: 2px; }
#bailu-launch-banner .launch-banner__unit strong {
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
#bailu-launch-banner .launch-banner__unit small { color: rgba(255,255,255,.82); font-size: 11px; }
#bailu-launch-banner .launch-banner__reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}
#bailu-launch-banner .launch-banner__reserve:hover {
    background: #fff;
    color: #0868dd;
}
#bailu-launch-banner .launch-banner__reserve:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
body.auth-shell.has-launch-banner .login-container {
    min-height: calc(100dvh - var(--launch-banner-height));
}
@media (max-width: 760px) {
    #bailu-launch-banner .launch-banner__inner { width: min(100% - 28px, 1160px); gap: 10px; }
    #bailu-launch-banner .launch-banner__copy { gap: 7px; }
    #bailu-launch-banner .launch-banner__title { font-size: 14px; }
    #bailu-launch-banner .launch-banner__subtitle { display: none; }
    #bailu-launch-banner .launch-banner__right { gap: 10px; }
    #bailu-launch-banner .launch-banner__clock { gap: 5px; }
}
@media (max-width: 520px) {
    #bailu-launch-banner { --launch-banner-height: 72px; }
    #bailu-launch-banner .launch-banner__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-content: center;
        gap: 8px 10px;
    }
    #bailu-launch-banner .launch-banner__copy { grid-column: 1 / -1; }
    #bailu-launch-banner .launch-banner__right { grid-column: 1 / -1; justify-content: space-between; }
    #bailu-launch-banner .launch-banner__clock { gap: 8px; }
    #bailu-launch-banner .launch-banner__unit strong { font-size: 14px; }
    #bailu-launch-banner .launch-banner__reserve { position: absolute; right: 14px; top: 9px; min-height: 27px; }
}
@media (max-width: 370px) {
    #bailu-launch-banner .launch-banner__inner { width: calc(100% - 24px); }
    #bailu-launch-banner .launch-banner__title { font-size: 13px; }
    #bailu-launch-banner .launch-banner__clock { gap: 5px; font-size: 11px; }
    #bailu-launch-banner .launch-banner__unit strong { font-size: 13px; }
    #bailu-launch-banner .launch-banner__reserve { right: 12px; min-width: 52px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    #bailu-launch-banner .launch-banner__reserve { transition: none; }
}

/* Mobile readability and shared-header layering for the launch banner. */
#bailu-launch-banner {
    z-index: 50;
}

@media (max-width: 760px) {
    #bailu-launch-banner {
        --launch-banner-height: auto;
    }

    #bailu-launch-banner .launch-banner__inner {
        display: flex;
        width: min(100% - 28px, 1160px);
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 9px;
        padding-block: 10px;
    }

    #bailu-launch-banner .launch-banner__copy {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: baseline;
        gap: 3px 8px;
        width: 100%;
        white-space: normal;
    }

    #bailu-launch-banner .launch-banner__eyebrow {
        grid-column: 1;
        grid-row: 1;
        font-size: 11px;
    }

    #bailu-launch-banner .launch-banner__title {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    #bailu-launch-banner .launch-banner__subtitle {
        display: block;
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        font-size: 11px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    #bailu-launch-banner .launch-banner__right {
        justify-content: space-between;
        gap: 10px;
    }

    #bailu-launch-banner .launch-banner__clock {
        gap: clamp(5px, 2vw, 9px);
        font-size: 11px;
    }

    #bailu-launch-banner .launch-banner__unit strong {
        font-size: 14px;
    }

    #bailu-launch-banner .launch-banner__unit small {
        font-size: 10px;
    }

    #bailu-launch-banner .launch-banner__reserve {
        position: static;
        flex: 0 0 auto;
        min-width: 56px;
        min-height: 32px;
    }
}

@media (max-width: 360px) {
    #bailu-launch-banner .launch-banner__inner {
        width: calc(100% - 24px);
        gap: 7px;
        padding-block: 8px;
    }

    #bailu-launch-banner .launch-banner__copy {
        gap: 2px 6px;
    }

    #bailu-launch-banner .launch-banner__title {
        font-size: 13px;
    }

    #bailu-launch-banner .launch-banner__subtitle {
        font-size: 10px;
    }

    #bailu-launch-banner .launch-banner__clock {
        gap: 4px;
        font-size: 10px;
    }

    #bailu-launch-banner .launch-banner__unit strong {
        font-size: 13px;
    }

    #bailu-launch-banner .launch-banner__reserve {
        min-width: 52px;
        padding-inline: 8px;
    }
}

/* ---------- 合作伙伴招募模式（发布会后 7 天）与归零转场 ---------- */
#bailu-launch-banner {
    overflow: hidden;
    isolation: isolate;
}
#bailu-launch-banner .launch-banner__inner {
    position: relative;
    z-index: 1;
}
#bailu-launch-banner::before,
#bailu-launch-banner::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: '';
}
#bailu-launch-banner::before {
    background:
        radial-gradient(120% 220% at 82% 50%, rgba(24,196,255,.35), transparent 55%),
        linear-gradient(100deg, #061a4a 0%, #0b3fae 48%, #0a7fe0 100%);
    opacity: 0;
    transition: opacity .9s ease;
}
#bailu-launch-banner.is-partner::before,
#bailu-launch-banner.is-morph-out::before { opacity: 1; }
#bailu-launch-banner::after {
    z-index: 2;
    background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
    transform: translateX(-100%);
    opacity: 0;
}
#bailu-launch-banner.is-morph-out::after { animation: lb-sweep 1.1s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes lb-sweep {
    0% { transform: translateX(-100%); opacity: 1; }
    100% { transform: translateX(100%); opacity: 1; }
}

/* 归零：数字跳动一下 → 旧内容上移淡出 → 新内容自下而上进入 */
#bailu-launch-banner.is-zero .launch-banner__clock { animation: lb-zero .5s ease-out both; }
@keyframes lb-zero {
    45% { transform: scale(1.12); text-shadow: 0 0 18px rgba(255,255,255,.9); }
}
#bailu-launch-banner .launch-banner__copy,
#bailu-launch-banner .launch-banner__right {
    transition: transform .45s cubic-bezier(.6,0,.3,1), opacity .4s ease, filter .4s ease;
}
#bailu-launch-banner.is-morph-out .launch-banner__copy,
#bailu-launch-banner.is-morph-out .launch-banner__right {
    transform: translateY(-70%);
    opacity: 0;
    filter: blur(4px);
}
#bailu-launch-banner.is-morph-out .launch-banner__right { transition-delay: .08s; }
#bailu-launch-banner.is-morph-in .launch-banner__copy > *,
#bailu-launch-banner.is-morph-in .launch-banner__right > *,
#bailu-launch-banner.is-morph-in .lb-clock > * {
    animation: lb-rise .62s cubic-bezier(.2,.8,.2,1) both;
}
#bailu-launch-banner.is-morph-in .launch-banner__copy > :nth-child(2) { animation-delay: .06s; }
#bailu-launch-banner.is-morph-in .launch-banner__copy > :nth-child(3) { animation-delay: .12s; }
#bailu-launch-banner.is-morph-in .lb-clock > :nth-child(2) { animation-delay: .14s; }
#bailu-launch-banner.is-morph-in .lb-clock > :nth-child(3) { animation-delay: .19s; }
#bailu-launch-banner.is-morph-in .lb-clock > :nth-child(4) { animation-delay: .24s; }
#bailu-launch-banner.is-morph-in .lb-clock > :nth-child(5) { animation-delay: .29s; }
#bailu-launch-banner.is-morph-in .launch-banner__right > a { animation-delay: .34s; }
@keyframes lb-rise {
    from { transform: translateY(80%); opacity: 0; filter: blur(4px); }
    to { transform: none; opacity: 1; filter: none; }
}

/* 翻牌 */
#bailu-launch-banner .lb-clock { gap: 8px; }
#bailu-launch-banner .lb-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
#bailu-launch-banner .lb-group small { color: rgba(255,255,255,.78); font-size: 11px; }
#bailu-launch-banner .lb-group__digits { display: inline-flex; gap: 2px; }
#bailu-launch-banner .lb-flip {
    --lb-h: 26px;
    position: relative;
    display: inline-block;
    width: 18px;
    height: var(--lb-h);
    border-radius: 4px;
    perspective: 140px;
    box-shadow: 0 2px 6px rgba(2,10,40,.35), inset 0 0 0 1px rgba(255,255,255,.08);
}
#bailu-launch-banner .lb-flip::after {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 3;
    height: 1px;
    margin-top: -.5px;
    background: rgba(2,10,40,.55);
    content: '';
}
#bailu-launch-banner .lb-flip__half {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
    backface-visibility: hidden;
}
#bailu-launch-banner .lb-flip__half b {
    display: block;
    height: var(--lb-h);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: var(--lb-h);
    text-align: center;
}
#bailu-launch-banner .lb-flip__top,
#bailu-launch-banner .lb-flip__flap--top {
    top: 0;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(#17357e, #102a6a);
}
#bailu-launch-banner .lb-flip__bottom,
#bailu-launch-banner .lb-flip__flap--bottom {
    bottom: 0;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(#0d245d, #0a1d4e);
}
#bailu-launch-banner .lb-flip__bottom b,
#bailu-launch-banner .lb-flip__flap--bottom b { margin-top: calc(var(--lb-h) / -2); }
#bailu-launch-banner .lb-flip__flap { z-index: 2; }
#bailu-launch-banner .lb-flip__flap--top { transform-origin: 50% 100%; }
#bailu-launch-banner .lb-flip__flap--bottom { transform-origin: 50% 0; transform: rotateX(90deg); }
#bailu-launch-banner .lb-flip.is-flipping .lb-flip__flap--top { animation: lb-flap-top .26s ease-in forwards; }
#bailu-launch-banner .lb-flip.is-flipping .lb-flip__flap--bottom { animation: lb-flap-bottom .28s cubic-bezier(.2,.9,.3,1.25) .26s forwards; }
@keyframes lb-flap-top {
    from { transform: rotateX(0); filter: brightness(1); }
    to { transform: rotateX(-90deg); filter: brightness(.6); }
}
@keyframes lb-flap-bottom {
    from { transform: rotateX(90deg); filter: brightness(1.4); }
    to { transform: rotateX(0); filter: brightness(1); }
}
#bailu-launch-banner .lb-group--s .lb-flip { box-shadow: 0 2px 8px rgba(24,196,255,.35), inset 0 0 0 1px rgba(127,214,255,.35); }

#bailu-launch-banner .launch-banner__join {
    position: relative;
    overflow: hidden;
    border-color: transparent;
    background: #fff;
    color: #0b4fc4;
}
#bailu-launch-banner .launch-banner__join::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(24,196,255,.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s ease;
    content: '';
}
#bailu-launch-banner .launch-banner__join:hover { background: #fff; color: #0b4fc4; }
#bailu-launch-banner .launch-banner__join:hover::after { transform: translateX(100%); }

@media (max-width: 760px) {
    #bailu-launch-banner .lb-clock { gap: 6px; }
    #bailu-launch-banner .lb-flip { --lb-h: 22px; width: 15px; }
    #bailu-launch-banner .lb-flip__half b { font-size: 13px; }
    #bailu-launch-banner .lb-group small { font-size: 10px; }
}
@media (max-width: 420px) {
    #bailu-launch-banner .lb-clock .launch-banner__remaining { display: none; }
    #bailu-launch-banner .lb-clock { gap: 5px; }
    #bailu-launch-banner .lb-group { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    #bailu-launch-banner::before,
    #bailu-launch-banner .launch-banner__copy,
    #bailu-launch-banner .launch-banner__right { transition: none; }
    #bailu-launch-banner .lb-flip__flap { display: none; }
    #bailu-launch-banner .launch-banner__join::after { display: none; }
}
