#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 84px;
    background: #060d3a;
    border-bottom: 1px solid rgba(60, 90, 255, .25);

    .navbar {
        height: 84px;
        padding: 0;
    }

    .container-fluid {
        max-width: 82%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    /* Logo */
    .brand {
        display: flex;
        align-items: center;
        text-decoration: none;

        img {
            height: 56px;
            width: auto;
            display: block;
        }
    }

    #siteNavbar {
        flex: 1;
        display: flex;
        align-items: center;
    }

    /* 導覽項目 */
    .navbar-nav {
        margin: 0 auto;
        padding: 0;
        display: flex;

        .nav-item {
            display: block;
            list-style: none;
        }

        .nav-link {
            position: relative;
            color: #c7dced;
            font-weight: 600;
            padding: 10px 1.4rem;
            letter-spacing: .5px;
            transition: color .2s ease;
        }

        > .nav-item > .nav-link::after {
            content: '';
            position: absolute;
            left: 1.4rem;
            right: 1.4rem;
            bottom: 2px;
            height: 2px;
            background: #fc6a17;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .2s ease;
        }

        > .nav-item > .nav-link:hover,
        > .nav-item > .nav-link.active {
            color: #fff;
        }

        > .nav-item > .nav-link:hover::after,
        > .nav-item > .nav-link.active::after {
            transform: scaleX(1);
        }
    }

    /* CTA */
    .cta-segment {
        display: inline-flex;
        align-items: center;
        gap: .75rem;
    }

    .cta {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: .75rem 1.5rem;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        color: #fff;
        text-decoration: none;
        border-radius: 12px;
        user-select: none;
        white-space: nowrap;
        transition: opacity .15s ease, transform .05s ease;

        svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }
    }

    .cta-apply {
        background: linear-gradient(90deg, #ff5a1f, #f97316);
        box-shadow: 0 6px 16px rgba(255, 106, 23, .35);
    }

    .cta-login {
        color: #c7dced;
        border: 1px solid rgba(199, 220, 237, .35);
    }

    .cta:hover {
        opacity: .85;
    }

    .cta:active {
        transform: translateY(1px);
    }

    /* 手機版漢堡按鈕 */
    .menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        color: #fff;

        span {
            display: block;
            width: 22px;
            height: 2px;
            background: currentColor;
            transition: transform .2s ease, opacity .2s ease;
        }

        &.is-active span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        &.is-active span:nth-child(2) {
            opacity: 0;
        }

        &.is-active span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }
    }

    @media (max-width: 1024px) {
        .navbar-nav .nav-link {
            padding: 10px 12px;
        }

        .navbar-nav > .nav-item > .nav-link::after {
            left: 12px;
            right: 12px;
        }
    }

    @media (max-width: 768px) {
        height: 64px;

        .navbar {
            height: 64px;
        }

        .brand img {
            height: 44px;
        }
    }

    @media (max-width: 900px) {
        .container-fluid {
            padding: 0;
            max-width: 92%;
            flex-wrap: nowrap;
            justify-content: space-between;
        }

        .menu-toggle {
            display: flex;
        }

        #siteNavbar {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            flex-direction: column;
            align-items: stretch;
            background: #060d3a;
            border-top: 1px solid rgba(60, 90, 255, .25);
            padding-bottom: 1rem;

            &.is-open {
                display: flex;
            }
        }

        .navbar-nav {
            flex-direction: column;
            margin: 0;

            .nav-link {
                padding: 14px 2rem;
                border-bottom: 1px solid rgba(255, 255, 255, .08);
            }

            > .nav-item > .nav-link::after {
                display: none;
            }
        }

        .cta-segment {
            flex-direction: column;
            align-items: stretch;
            padding: 1rem 2rem 0;
        }

        .cta {
            justify-content: center;
        }
    }
}
