/* 浮動垂直按鈕容器 */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 浮動按鈕基本樣式 - 圓形 */
.floating-btn {
    width: 35px;
    height: 35px;
    background: #999999;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.floating-btn:hover {
    background: #808080;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* Facebook 按鈕 */
.btn-facebook {
    background: #999999;
}

.btn-facebook:hover {
    background: #808080;
}

/* YouTube 按鈕 */
.btn-youtube {
    background: #999999;
}

.btn-youtube:hover {
    background: #808080;
}

/* 回到頂部按鈕 */
.btn-top {
    background: #999999;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    position: relative;
}

.btn-top:hover {
    background: #808080;
    opacity: 1;
}

.btn-top i {
    font-size: 14px;
    margin-bottom: 2px;
}

.btn-top .btn-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .floating-buttons {
        right: 15px;
        gap: 8px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .btn-top i {
        font-size: 12px;
    }
    
    .btn-top .btn-text {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        right: 10px;
        gap: 6px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .btn-top i {
        font-size: 11px;
    }
    
    .btn-top .btn-text {
        font-size: 8px;
    }
}

/* 列印時隱藏浮動按鈕 */
@media print {
    .floating-buttons {
        display: none !important;
    }
}
