#floating-button {
    position: fixed;
    bottom: 30px;
    right: 60px;
    z-index: 1000;
    opacity: 0; /* 初始設置為透明 */
    transform: translateY(20px); /* 初始位置稍微下移 */
    transition: opacity 1s ease, transform 1s ease; /* 添加過渡效果 */
    padding: 25px; /* 增加點擊範圍 */
    margin: -25px; /* 讓視覺位置保持不變 */
    cursor: pointer;
}

#heart-button {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    display: block;
}

#heart-button:hover {
    transform: scale(1.1);
}

.icon-float {
    position: fixed;
    animation: floatUp 5s linear forwards;
    z-index: 9999;
}

@keyframes floatUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* Media query for screen widths below 400px */
@media (max-width: 400px) {
    #floating-button {
        right: 30px; /* Adjust right position */
        bottom: 100px; /* 往上移，避免被手機版底部的瀏覽器 UI 或其他內容遮擋 */
    }
}
