﻿/*css/floating-buttons.css*/
.float-dock {
    position: fixed;
    right: 0;
    bottom: 120px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .float-dock.visible {
        opacity: 1;
        transform: translateY(0);
    }

.float-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 52px;
    height: 52px;
    background: #fff;
    color: #5C4033;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-bottom: 0.5px solid rgba(92,64,51,0.1);
    transition: all 0.25s ease;
    font-family: 'Noto Serif TC', serif;
    box-shadow: -3px 0 12px rgba(0,0,0,0.08);
}

    .float-btn:last-child {
        border-bottom: none;
        border-radius: 0 0 0 6px;
    }

    .float-btn:first-child {
        border-radius: 0 0 0 0;
    }

.float-label {
    font-size: 0.55rem;
    letter-spacing: 0.03em;
    line-height: 1;
    transition: color 0.25s ease;
    white-space: nowrap;
}

/* 各按鈕 hover 顏色 */
/* 各按鈕預設就有品牌色 icon，hover 時背景填色 */
.float-fb { color: #1877F2; }
.float-fb:hover { background: #1877F2; border-left-color: #1877F2; color: #fff; }

.float-line { color: #06C755; }
.float-line:hover { background: #06C755; border-left-color: #06C755; color: #fff; }

.float-ig { color: #E1306C; }
.float-ig:hover { background: #E1306C; border-left-color: #E1306C; color: #fff; }

.float-calendar { color: #FF8C42; }
.float-calendar:hover { background: #FF8C42; border-left-color: #FF8C42; color: #fff; }

.float-top { background: #5C4033; color: #fff; border-radius: 0 0 0 6px; }
.float-top:hover { background: #3a2f28; border-left-color: #3a2f28; }

    /* TOP 按鈕：滾到頂端時隱藏 */
    .float-top.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

/* 手機版縮小 */
@media (max-width: 768px) {
    .float-dock {
        bottom: 80px;
    }

    .float-btn {
        width: 44px;
        height: 44px;
    }
}
