/* ============================================
   手機版底部導航欄
   只在螢幕寬度 < 575px 時顯示
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

/* 只在手機版顯示 */
@media (max-width: 575px) {
    .mobile-bottom-nav {
        display: block;
    }
}

/* 導航容器 */
.mobile-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    position: relative;
}

/* 左側和右側的按鈕組 */
.mobile-nav-left,
.mobile-nav-right {
    display: flex;
    gap: 20px;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.mobile-nav-left {
    align-items: flex-start;
    padding-right: 10px;
}

.mobile-nav-right {
    align-items: flex-end;
    padding-left: 10px;
}

/* 小型導航按鈕 */
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav-item:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.mobile-nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.mobile-nav-item:active .mobile-nav-icon {
    transform: scale(0.9);
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    line-height: 1.2;
}

/* 中央大按鈕 */
.mobile-nav-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
}

.mobile-nav-main-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 10px;
}

.mobile-nav-main-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.9);
}

.mobile-nav-main-button:active {
    transform: translateY(-1px);
}

.mobile-nav-main-text {
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    text-align: center;
}

.mobile-nav-main-arrow {
    color: white;
    font-size: 16px;
    margin-top: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 調整頁面底部留白，避免內容被導航欄遮擋 */
@media (max-width: 575px) {
    header{display: none !important;}
}

/* 微調：當按鈕處於 active 狀態時 */
.mobile-nav-item:active,
.mobile-nav-main-button:active {
    opacity: 0.8;
}

/* 確保連結樣式正確 */
.mobile-nav-item,
.mobile-nav-main-button {
    -webkit-tap-highlight-color: transparent;
}

/* 響應式調整 - 超小螢幕 */
@media (max-width: 375px) {
    .mobile-nav-container {
        padding: 0 5px;
    }
    
    .mobile-nav-main-button {
        width: 70px;
        height: 70px;
    }
    
    .mobile-nav-main-text {
        font-size: 12px;
    }
    
    .mobile-nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav-label {
        font-size: 10px;
    }
}