/* 首页签到入口：与右侧客服工具条、企业入驻浮层错开。 */
.body_index .home-points-checkin {
    position: fixed;
    left: 24px;
    bottom: 32px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 108px;
    padding: 15px 8px 13px;
    box-sizing: border-box;
    border: 1px solid #D1E2FF;
    border-radius: 24px;
    background: linear-gradient(155deg, #FFFFFF 20%, #EDF4FF 100%);
    box-shadow: 0 8px 28px rgba(47, 100, 190, .16), inset 0 1px 0 #FFFFFF;
    color: #2860CB;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transform-origin: 50% 80%;
    animation: home-checkin-enter 400ms ease-out both, home-checkin-shake 6s ease-in-out 1.5s infinite;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.body_index .home-points-checkin::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 2px solid rgba(40, 96, 203, .35);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    animation: home-checkin-halo 6s ease-out 1.5s infinite;
}

.body_index .home-points-checkin:is(:hover, :focus-within, :active) {
    animation-name: home-checkin-enter;
}

.body_index .home-points-checkin:is(:hover, :focus-within, :active)::before {
    animation: none;
}

.body_index .home-points-checkin-icon {
    display: block;
    width: 64px;
    height: 64px;
    transition: transform 180ms ease;
}

.body_index .home-points-checkin-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.body_index .home-points-checkin-copy strong {
    display: block;
    color: #1F4DAB;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 1px;
}

.body_index .home-points-checkin-copy > span {
    display: block;
    margin-top: 3px;
    color: #596F95;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
}

.body_index .home-points-checkin:focus-visible {
    outline: 3px solid #2860CB;
    outline-offset: 4px;
}

@media (hover: hover) {
    .body_index .home-points-checkin:hover {
        border-color: #94B9F4;
        box-shadow: 0 12px 32px rgba(47, 100, 190, .23), inset 0 1px 0 #FFFFFF;
        transform: translateY(-4px);
    }

    .body_index .home-points-checkin:hover .home-points-checkin-icon {
        transform: rotate(-6deg);
    }
}

.body_index .home-points-checkin:active {
    transform: scale(.97);
}

@keyframes home-checkin-enter {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
}

/* 每轮只在前 0.84 秒摇动，其余时间保持静止。 */
@keyframes home-checkin-shake {
    0%, 14%, 100% { rotate: 0deg; }
    2%, 6% { rotate: -6deg; }
    4%, 8% { rotate: 6deg; }
    10% { rotate: -3deg; }
    12% { rotate: 3deg; }
}

@keyframes home-checkin-halo {
    0% { opacity: .65; transform: scale(1); }
    16%, 100% { opacity: 0; transform: scale(1.16); }
}

@media (max-width: 767px) {
    .body_index .home-points-checkin {
        top: 84px;
        bottom: auto;
        left: 12px;
        left: max(12px, env(safe-area-inset-left));
        flex-direction: row;
        gap: 8px;
        width: auto;
        padding: 8px 13px 8px 9px;
        border-radius: 18px;
        text-align: left;
    }

    .body_index .home-points-checkin-icon {
        width: 40px;
        height: 40px;
    }

    .body_index .home-points-checkin-copy strong {
        font-size: 14px;
        line-height: 20px;
    }

    .body_index .home-points-checkin-copy > span {
        margin-top: 0;
        line-height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .body_index .home-points-checkin,
    .body_index .home-points-checkin:is(:hover, :focus-within, :active),
    .body_index .home-points-checkin::before,
    .body_index .home-points-checkin-icon {
        animation: none;
        transition: none;
    }

    .body_index .home-points-checkin:hover,
    .body_index .home-points-checkin:active,
    .body_index .home-points-checkin:hover .home-points-checkin-icon {
        transform: none;
    }
}
