html, body {
    scroll-behavior: smooth;
}

main > section {
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .nav-link {
    color: white;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: background 0.3s;
}

    .navbar .nav-link.active {
        background-color: #dc3545; /* Bootstrap danger ɫ */
        color: white;
        border-radius: 0.25rem;
    }

    .navbar .nav-link:hover {
        background-color: rgba(255, 0, 0, 0.7);
        color: white;
    }

.nav-custom {
    width: 50%;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    .navbar-collapse {
        text-align: center;
    }

    .nav-item.flex-fill {
        width: 100%;
    }
}

.navbar-toggler {
    font-size: 0.875rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

.navbar-brand {
    margin-right: 0;
}

    .navbar-brand img {
        height: 28px;
        margin-top: -5px;
    }

.main-custom {
    min-height: 88vh;
}

.footer-custom {
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .nav-custom {
        margin-left: auto !important;
        width: 65%; /* 可根据需要调整 */
        display: flex;
        justify-content: space-between;
    }

        .nav-custom .nav-item {
            flex: 1;
            text-align: center;
        }

        .nav-custom .nav-link {
            width: 100%;
            text-align: center;
        }
}