footer {
    background-color: #51595F;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 1px;
    padding-top:15px;
    padding-bottom: 15px;
}

/* ==========================================
   Back to Top Button
   ========================================== */
   .back-to-top-btn {
    position: fixed;
    bottom: 30px;  /* 距離底部 */
    right: 30px;   /* 距離右邊 */
    width: 50px;
    height: 50px;
    background-color: #D7385E; /* 指定的粉紅色 */
    border-radius: 50%; /* 圓形 */
    z-index: 999; /* 層級高於內容，但低於漢堡選單(1050) */
    
    /* 彈性佈局讓箭咀置中 */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 預設隱藏狀態 */
    opacity: 0;
    visibility: hidden;
    
    /* 過渡動畫 */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* 加點陰影更立體 */
    text-decoration: none;
    cursor: pointer;
}

/* 顯示狀態 (由 JS 控制加入此 Class) */
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mouse Over 效果 */
.back-to-top-btn:hover {
    background-color: #D7385E; /* 保持背景色 */
    opacity: 0.8; /* 半透明 */
    transform: translateY(-5px); /* 輕微浮起 */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* 純 CSS 繪製白色向上箭咀 */
.arrow-up {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #fff; /* 白色箭頭 */
    margin-bottom: 3px; /* 視覺微調置中 */
}

/* ==========================================
   手機版調整 (Mobile)
   ========================================== */
@media (max-width: 991px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px; /* 手機版稍微細粒少少 */
        height: 45px;
    }
}