/* 頁尾樣式 */
/* 引入 iconfont 字體 */
@import url('../iconfont/iconfont.css');

/* 底部導航 - 所有設備都顯示 */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1024px;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #ff6b9d;
    display: flex;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    height: 60px;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-bottom-nav .nav-item.active {
    color: #ff6b9d;
}

.mobile-bottom-nav .nav-item:hover {
    color: #ff6b9d;
    background-color: #fff5f8;
}

.mobile-bottom-nav .nav-item i {
    font-size: 24px;
    margin-bottom: 2px;
    line-height: 1;
}

.mobile-bottom-nav .nav-item .nav-text {
    font-size: 11px;
    line-height: 1;
    margin-top: 2px;
}

/* iconfont 圖標樣式 */
.iconfont {
    font-family: "iconfont" !important;
    font-size: 24px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 返回頂部按鈕 */
#scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff6b9d;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

#scroll-to-top:hover {
    background: #ff5a8a;
    transform: scale(1.1);
}

#scroll-to-top i {
    font-size: 20px;
}

/* 響應式設計 - 桌面版優化 */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        height: 70px;
        border-top: 3px solid #ff6b9d;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 28px;
    }
    
    .mobile-bottom-nav .nav-item .nav-text {
        font-size: 13px;
    }
    
    #scroll-to-top {
        bottom: 90px;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        height: 55px;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 22px;
    }
    
    .mobile-bottom-nav .nav-item .nav-text {
        font-size: 10px;
    }
    
    #scroll-to-top {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    #scroll-to-top i {
        font-size: 18px;
    }
}

/* 為頁面內容添加底部間距 */
body {
    padding-bottom: 70px;
}

@media (min-width: 769px) {
    body {
        padding-bottom: 80px;
    }
}

.customer-service-float {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.customer-service-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.customer-service-float i {
    color: white;
    font-size: 24px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .customer-service-float {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .customer-service-float i {
        font-size: 20px;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 50%; /* 關鍵：讓它從螢幕正中央開始 */
        transform: translateX(-50%); /* 關鍵：向左移動自身一半寬度 */
        max-width: 1024px; /* 限制最大寬度 */
        width: 100%; /* 保證在窄螢幕下也能100%寬 */
        background: #ffffff;
        border-top: 2px solid #ff6b9d;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        height: 60px;
    }


}