@import url('common.css');

.header-box {
    height: 149px;
    width: 1300px;
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.header-box .logo {
    margin-top: 17px;
    width: 729px;
    height: 114px;
}

.header-box .logo img {
    height: 100%;
    width: 100%;
}

.header-box .operation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 469px;
    min-height: 134px;
    padding: 0;
    margin-top: 17px;
}

.header-box .operation .active {
    display: flex;
    gap: 17px;
    list-style: none;
    margin: 0;
}

.header-box .operation .active li {
    display: flex;
    align-items: center;
    background: #0A5CAA;
    color: #fff;
    border-radius: 4px;
}

.header-box .operation .active li a,
.header-box .operation .active li div {
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 7px 15px;
    gap: 12px;
}

.header-box .operation .active li i,
.header-box .operation .active li span {
    font-size: 17px;
    color: #fff;
    line-height: 1;
}

.header-box .operation .active li#user-name {
    display: none;
    cursor: pointer;
}

.header-box .operation .active li#user-name span {
    padding: 0 3px;
    max-width: 70px;
}

.header-box .search {
    margin-top: 13px;
    text-align: center;
    width: 100%;
    position: relative;
}

.header-box .search input {
    width: 100%;
    padding-right: 66px;
    box-sizing: border-box;
    height: 43px;
    border: 1px solid #D2D2D2;
    border-radius: 7px;
    padding-left: 17px;
    color: #666;
    font-size: 17px;
}

.header-box .search .search-btn {
    position: absolute;
    right: 19px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #D2D2D2;
    height: 22px;
    padding: 0 0 0 15px;
}

.header-box .search .search-btn i {
    color: #0A5CAA;
    font-size: 20px;
}

.header-box .hot-world {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 15px;
    margin-top: 14px;
    gap: 8px;
}

.header-box .hot-world a,
.header-box .hot-world span {
    text-decoration: none;
    font-size: 17px;
    text-align: center;
    color: #666;
    flex: 1;
    white-space: nowrap;
}

.nav-bars {
    background-color: rgba(18, 92, 177, 1);
    backdrop-filter: blur(2px);
    height: 60px;
    width: 100%;
    margin: 16px auto 0;
}

.nav-bars .nav {
    width: 1300px;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0 auto;
}

.nav-bars .nav .nLi {
    position: relative;
    padding: 10px 0;
    cursor: pointer;
}

.nav-bars .nav .nLi::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 3px;
    width: 0;
    background-color: var(--active-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-bars .nav .nLi:hover a {
    color: #fff;
    transform: scale(1.05);
}

.nav-bars .nav .nLi:hover::after,
.nav-bars .nav .nLi.active::after {
    width: 100%;
    left: 0;
}

.nav-bars .nav .nLi.active a {
    color: var(--active-color);
}

.nav-bars .nav .nLi a {
    color: #fff;
    background-color: transparent;
    text-decoration: none;
    display: flex;
    font-size: 25px;
    font-weight: 400;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease, font-size 0.2s ease;
    text-shadow: 0 0 0 transparent;
}

.nav-bars .nav .nLi a i {
    font-size: 25px;
    margin-right: 16px;
}

.nav-fixed {
    z-index: 2;
    height: 38px;
    position: fixed;
    top: 10px;
    background-color: rgba(245, 247, 250, 0.8);
    padding: 5px 6px;
    border-radius: 999px;
    overflow: hidden;
    left: -600px;
    max-width: 67px;
    user-select: none;
}

.nav-fixed ul {
    min-width: 500px;
    height: 100%;
    display: flex;
    gap: 4px;
    border-radius: 999px;
    padding: 0;
}

.nav-fixed li {
    display: flex;
    align-items: center;
    font-size: 12px;
    height: 100%;
    border-radius: 999px;
    padding: 0 10px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1;
}

.nav-fixed li a,
.nav-fixed li i {
    color: var(--primary-color);
}

.nav-fixed li.active {
    background-color: var(--primary-color);
}

.nav-fixed li.active a {
    color: #fff;
}

#gzh-qr-code {
    width: 100%;
}

@media (max-width: 767px) {
    .header-box {
        height: auto;
        width: 100%;
    }
    
    .header-box .logo {
        width: 60%;
        height: auto;
    }
    
    .header-box .logo img {
        height: auto;
    }
    
    .header-box .operation {
        width: 40%;
        min-height: auto;
    }

    .header-box .operation .login > div{
        padding: 7px;
    }
    
    .header-box .operation .active span:not(#user-name span) {
        display: none;
    }

    .header-box .operation .active #user-name div {
        padding: 7px;
    }
    
    .header-box .operation .active #user-name i {
        display: none;
    }

    .header-box .operation .active #user-name span {
        max-width: 50px;
        overflow: hidden;
    }

    .header-box .search input {
        height: 36px;
        font-size: 14px;
        padding-left: 12px;
        padding-right: 40px;
    }

    .header-box .search .search-btn {
        right: 10px;
        padding-left: 10px;
    }

    .nav-bars {
        overflow-x: scroll;
        height: 45px;
    }
    
    .nav-bars .nav {
        width: 800px;
        padding: 0 20px;
    }
    
    .nav-bars .nav a,
    .nav-bars .nav i {
        font-size: 16px !important;
    }
    
    .nav-fixed {
        display: none !important;
    }
}