/* =============================================
   f4.css - 朝誠汽車 共用樣式
   ============================================= */
    /* === 導覽列下拉選單滑鼠移入展開樣式 === */
    @media (min-width: 992px) {
      .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
      }
    }
    
/* === 四大件：桌機版側邊社群按鈕樣式 === */
.floating-buttons {
    position: fixed;
    top: 35%;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-buttons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    transition: transform .2s;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}

.floating-buttons img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    margin: auto;
}

/* === 四大件：手機版 FAB 快速選單樣式 === */
@media (max-width: 992px) {
    #fabMenuBtn {
        position: fixed;
        right: 5vw;
        top: 1vh;
        width: 62px;
        height: 62px;
        border-radius: 8px;
        background: #fff;
        z-index: 9980;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
    }

    #fabMenuBtn img {
        width: 32px;
        height: 32px;
    }

    #fabMenuPanel {
        position: fixed;
        right: 1vh;
        top: 5vh;
        min-width: 200px;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 6px 32px rgba(0,0,0,.22);
        z-index: 9981;
        padding: 12px 0 10px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(30px) scale(.95);
        transition: all .28s cubic-bezier(.32,1.56,.7,.88);
    }

    #fabMenuPanel.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    #fabMenuPanel ul {
        list-style: none;
        margin: 0;
        padding: 0 18px;
    }

    #fabMenuPanel a {
        display: block;
        padding: 10px 0 7px;
        font-weight: bold;
        color: #222 !important;
        font-size: 1.14rem;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
    }

    #fabMenuPanel a:last-child {
        border-bottom: none;
    }

    #fabMenuMask {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,.1);
        z-index: 9980;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s;
    }

    #fabMenuMask.open {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar .container {
        display: flex;
        justify-content: center !important;
        align-items: center;
        min-height: 64px;
        position: relative;
    }

    .navbar-brand {
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }
}

/* === 桌面版隱藏 FAB === */
@media (min-width: 992px) {
    #fabMenuBtn,
    #fabMenuPanel,
    #fabMenuMask {
        display: none !important;
    }
}

/* === 導覽列手機版隱藏漢堡 === */
@media (max-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* =============================================
   通用樣式
   ============================================= */

.top-header {
    background: #fff;
}

.navbar-brand img {
    height: 60px;
}

.footer-logo {
    height: 60px;
}

.scroll-btn {
    position: fixed;
    bottom: 20px;
    right: 15px;
    background: #FFF176;
    color: #002060;
    border: none;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 2147483647;
    pointer-events: auto;
    animation: shake 0.8s ease-in-out infinite;
    cursor: pointer;
}

@keyframes shake {
    0%, 100% { transform: translateY(0); }
    25%, 75% { transform: translateY(-5px); }
}

footer {
    background: #f4f4f4;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* 其他通用樣式 */
body:not(.home-page) {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.loaded:not(.home-page) {
    opacity: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #fff;
    color: #000;
    padding: 0.5rem 2rem;
    width: 100%;
}

.navbar .nav-link:hover,
.navbar .dropdown-toggle:hover {
    background-color: rgba(0, 64, 128, 0.1);
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.navbar .dropdown-menu a:hover {
    background-color: #f0f0f0;
}
/* Appaisal限定*/
.text-center mb-4{font-weight: bold; color: #002060; padding-top: auto; padding-bottom: auto;}