
/* NAV-Global */
nav {
    position: fixed;
    width: 100%;
    
    transition: all .3s ease-in-out;
    z-index: 1;
}

#navbar {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin: auto;
    padding: 0 16px;
    max-width: 1280px;
    height: 64px;
    gap: 16px;
}

#blank {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
    left: 0;
    width: 100%;
    height: 64px;
    transition: all .3s ease;
    z-index: 1;
}

#left-top-logo {
    z-index: 99;
}

#left-top-logo > svg {
    vertical-align: middle;
    width: 160px;
    height: 40px;
}

#nav-menu {
    display: flex;
    align-items: center;
}

#nav-text {
    align-items: center;
}

.nav-a-text {
    display: flex;
    align-items: center;
    user-select: none;
}

.nav-a-text:active {
    background: white;
}

.expand-more > svg {
    transition: all .15s ease;
}

.expand-more.active {
    color: royalblue;
}

.expand-more.active .expand-more-svg {
    fill: royalblue;
    transform: rotate(-180deg);
}

.expand-more.active #dropdown-menu {
    visibility: visible;
    opacity: 1;
}

#dropdown-menu {
    display: block;
    visibility: hidden;
    background: white;
    position: absolute;
    transition: all .15s ease;
    transform-origin: 50% 0;
    opacity: 0;
}

#nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99;
}

#nav-btn:active {
    background: none;
    border: none;
    outline: none;
}

#nav-btn > a {
    overflow: hidden;
    border-radius: 50%;
    transition: all .15s ease;
}

#nav-btn svg {
    vertical-align: middle;
    padding: 8px;
    width: 28px;
    height: 28px;
}

#nav-btn > a:hover {
    background: rgb(225, 225, 225);
}

#hamburger-btn {
    background: none;
    border: none;
    border-radius: 10px;
    transition: all .15s ease;
    z-index: 99;
}

#hamburger {
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    padding: 8px;
    width: 46px;
    height: 46px;
}

.line {
    position: relative;
    margin: 2.5px 0px;
    top: 0;
    width: 26px;
    height: 4px;
    background: rgb(33, 33, 33);
    border-radius: 9px;
    transition: transform .15s ease-in-out, top .15s ease-in-out .15s, opacity 0s ease-in-out .15s;
}

#hamburger-btn.active #hamburger span:first-child {
    top: 9px;
    transform: rotate(45deg);
    transition: top .15s ease-in-out, transform .15s ease-in-out .15s;
}

#hamburger-btn.active #hamburger span:last-child {
    top: -9px;
    transform: rotate(-45deg);
    transition: top .15s ease-in-out, transform .15s ease-in-out .15s;
}

#hamburger-btn.active #hamburger span:nth-child(2) {
    opacity: 0;
    transition: opacity 0s ease-in-out .15s;
}

/* Small Devices 手机 */
@media (min-width: 360px) {
    #navbar {
        justify-content: unset;
        gap: 8px;
    }

    #nav-menu {
        margin-left: auto;
    }

    #nav-text {
        display: block;
        box-sizing: border-box;
        position: fixed;
        top: -280px;
        left: 0;
        width: 100%;
        height: auto;
        transition: all .3s ease;
    }

    .nav-a-text {
        background: white;
        padding: 16px 32px;
    }

    .expand-more.active #dropdown-menu {
        transform: scaleY(1);
    }

    #dropdown-menu {
        box-sizing: border-box;
        top: 100%;
        left: 0;
        width: 100%;
        border-radius: unset;
        transform: scaleY(0);
    }

    .inner-menu-text {
        background: white;
        position: relative;
        padding: 16px 48px;
        z-index: 1;
    }

    .last-inner-menu-text {
        position: relative;
        box-shadow: 0 0 30px rgba(0, 0, 0, .2);
        z-index: -1;
    }

    #hamburger-btn {
        display: flex;
    }
}

/* Regular Devices 平板|电脑 */
@media (min-width: 768px) {
    #navbar {
        justify-content: space-between;
    }

    #nav-menu {
        display: flex;
        justify-content: space-between;
        position: static;
        width: 100%;
    }

    #nav-text {
        display: flex;
        visibility: visible;
        box-sizing: content-box;
        position: static;
        top: auto;
        gap: 16px;
        margin: 0 8px;
        width: auto;
        box-shadow: none;
        transition: all 0s;
        z-index: 1;
    }

    .nav-a-text {
        background: none;
        padding: 8px;
    }

    .expand-more.active #dropdown-menu {
        transform: scale(1);
    }

    #dropdown-menu {
        box-sizing: content-box;
        top: 48px;
        left: auto;
        width: auto;
        border-radius: 8px;
        transform: scale(.95);
        box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    }

    .last-inner-menu-text {
        box-shadow: none;
    }

    #hamburger-btn {
        display: none;
    }
}