.download-fab {
    width: 132px;
    height: 44px;
    position: fixed;
    right: max(16px, calc((100vw - 1554px) / 2 - 140px));
    bottom: 160px;
    z-index: 10;
    background: #FADC44;
    overflow: hidden;
    border-radius: 22px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: flex;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, filter 0.18s ease;
}

.download-fab:hover {
    filter: brightness(1.05);
}

.download-fab.is-scrolling {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

.download-fab-icon {
    width: 24px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.download-fab-text {
    color: #181818;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
}

@media (max-width: 767px) {
    .download-fab {
        right: 16px;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        width: auto;
        height: 28px;
        padding: 5px 8px;
        border-radius: 22px;
        gap: 2px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .download-fab-icon {
        width: 16px;
        height: 16px;
    }

    .download-fab-text {
        font-size: 12px;
        line-height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .download-fab {
        transition: none;
    }
}
