/* ===== 底部悬浮 CTA（截图样式） ===== */
.floating-bar {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: auto;
    max-width: calc(100vw - 32px);
    height: auto;
    min-height: 52px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8b56a 0%, #d4c98a 45%, #c5d6a8 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.floating-bar:hover {
    transform: translateX(-50%) scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.floating-bar:active {
    transform: translateX(-50%) scale(0.98);
}

.floating-bar__icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
    flex: none;
}

.floating-bar__text {
    color: #111;
    font-family: "Pretendard", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: left;
    white-space: nowrap;
}

/* H5 / 平板：限制宽度，允许换行，避免撑出屏幕 */
@media (max-width: 900px) {
    .floating-bar {
        bottom: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        min-height: 48px;
        padding: 10px 14px;
        gap: 8px;
    }

    .floating-bar__icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .floating-bar__text {
        white-space: normal;
        font-size: clamp(11px, 3.2vw, 14px);
        line-height: 1.3;
    }
}

@media (max-width: 380px) {
    .floating-bar {
        padding: 9px 12px;
        gap: 7px;
    }

    .floating-bar__icon {
        width: 22px;
        height: 22px;
    }

    .floating-bar__text {
        font-size: 11px;
    }
}
