* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    padding-top: 126px;
}

.top-bar {
    background-color: #000d5e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 36px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar .welcome {
    display: flex;
    align-items: center;
}

.top-bar .code-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar .code-info span {
    display: flex;
    align-items: center;
}

.top-bar .code-info .label {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 4px;
}

.top-bar .code-info .value {
    color: #FFEA00;
    font-weight: 600;
}

.navbar {
    background-color: #001488;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 90px;
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand .logo {
    height: 58px;
    width: auto;
    display: block;
}

.navbar-brand .divider {
    width: 2px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 18px;
}

.navbar-brand .site-name {
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 3px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
}

.navbar-menu>li {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
}

.navbar-menu>li>a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    padding: 0 22px;
    height: 90px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-menu>li>a:hover {
    color: #FFEA00;
    background-color: rgba(255, 255, 255, 0.08);
}

.dropdown {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background-color: #001488;
    border-top: 2px solid #FFEA00;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-menu>li:hover>.dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    position: relative;
}

.dropdown li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 20px;
    display: block;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.dropdown li a:hover {
    color: #FFEA00;
    background-color: rgba(255, 255, 255, 0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

@media screen and (max-width: 992px) {
    body {
        padding-top: 102px;
    }

    .top-bar {
        padding: 0 15px;
        height: 32px;
        font-size: 12px;
    }

    .top-bar .code-info {
        gap: 12px;
    }

    .navbar {
        padding: 0 15px;
        height: 70px;
        top: 32px;
    }

    .navbar-brand .logo {
        height: 42px;
    }

    .navbar-brand .divider {
        height: 28px;
        margin: 0 10px;
    }

    .navbar-brand .site-name {
        font-size: 18px;
    }

    .hamburger {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 102px;
        right: -280px;
        width: 280px;
        height: calc(100vh - 102px);
        flex-direction: column;
        align-items: stretch;
        background-color: #001488;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-menu>li {
        height: auto;
        flex-direction: column;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu>li>a {
        height: auto;
        padding: 15px 20px;
        justify-content: space-between;
    }

    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border-top: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu>li.submenu-open>.dropdown {
        max-height: 500px;
    }

    .dropdown li a {
        padding: 10px 20px 10px 35px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 98px;
    }

    .top-bar {
        padding: 0 8px;
        height: 28px;
        font-size: 10px;
        letter-spacing: 0;
    }

    .top-bar .welcome {
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
    }

    .top-bar .code-info {
        gap: 6px;
        flex-shrink: 0;
    }

    .top-bar .code-info .label {
        display: none;
    }

    .navbar {
        padding: 0 10px;
        top: 28px;
    }

    .navbar-menu {
        top: 98px;
        height: calc(100vh - 98px);
    }

    .navbar-brand .site-name {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .navbar-brand .divider {
        margin: 0 8px;
    }
}