/* 右下角小程序体验浮层（全站共用，对齐 site_header / course_detail 主色） */
:root {
    --fe-brand: #16a34a;
    --fe-brand-light: #22c55e;
}

.floating-entry {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
}

.floating-panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 220px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.floating-entry:hover .floating-panel,
.floating-entry:focus-within .floating-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-panel h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    color: #111827;
}

.floating-panel p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.qr-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-entry .floating-button {
    min-width: 120px;
    height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--fe-brand), var(--fe-brand-light));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .floating-entry {
        right: 16px;
        bottom: 16px;
    }

    .floating-panel {
        width: 188px;
        padding: 14px;
    }

    .floating-entry .floating-button {
        min-width: 102px;
        height: 46px;
        padding: 0 16px;
        font-size: 14px;
    }
}
