.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center; /* 可選，讓內容水平居中 */
    height: 100%; /* 確保 `<a>` 填滿 `li` */
    white-space: nowrap;
}

@media (max-width: 575px) {
    /* 手機版下拉選單滾動 */
    .dropdown-scroll {
        max-height: 200px; /* 手機上高度較小 */
        overflow-y: auto; /* 啟用滾動 */
    }
}

@media (min-width: 576px) {
    /* 下拉選單滾動 */
    .dropdown-scroll {
        max-height: 250px; /* 限制高度 */
        overflow-y: auto; /* 啟用滾動 */
    }
}

@media (min-width: 768px) {
    /* 下拉選單滾動 */
    .dropdown-scroll {
        max-height: 250px; /* 限制高度 */
        overflow-y: auto; /* 啟用滾動 */
    }
}

@media screen and (min-width: 991px) {
    .hero-section
    {
        height: calc(100vh - -200px);
    }

    /* 下拉選單滾動 */
    .dropdown-scroll {
        max-height: 800px; /* 限制高度 */
        overflow-y: auto; /* 啟用滾動 */
    }
}


/*一鍵往上*/
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(175, 183, 193, 0.7);
    visibility: hidden;
    cursor: pointer;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
    z-index: 1100;
}

    .back-to-top::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        margin: -4px auto;
        width: 12px;
        height: 12px;
        border-top: 2px solid #555;
        border-right: 2px solid #555;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .back-to-top:hover {
        background: #2F89FC;
    }

        .back-to-top:hover::after {
            border-color: #fff;
        }


