/* 头部导航栏 */
.header {
    background-color: var(--primary-white);
    box-shadow: none;
    border-bottom: var(--border);
    position: relative;
    top: 0;
    isolation: isolate;
    z-index: 100;
}

.logo{
    padding-right: 30px;
}
.logo img {
    height: 50px;
    /*width: auto;*/
}

/* 主导航菜单 */

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
}
.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 5px;
    word-spacing: 2px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* 导航操作区域 */
.nav-actions {
    display: flex;
    align-items: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 语言切换 */
.language-selector {
    position: relative;
}

.language-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    /*gap: 5px;*/
    border-radius: 50%;
    padding: 8px 1px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-light);
}
.language-btn:hover {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    transform: translateY(-2px);
}

.language-btn i{
    display: none;
}
.language-btn span {
    font-size: 15px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 10px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.3s;
    font-size: 14px;
}

/* 登录按钮 */
.auth-buttons{
    margin-left: 8px;
}

.btn-toLogin {
    width: 32px;
    height: 32px;
    background-color: var(--primary-white);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    padding: 8px 1px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}
.btn-toLogin:active {
    display: none;
}
.btn-toLogin:hover {
    color: var(--primary-white);
    background-color: var(--primary-blue);
    border-radius: 50%;
    transform: translateY(-2px);
}
.btn-toLogout {
    width: 32px;
    height: 32px;
    background-color: var(--primary-white);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    padding: 8px 1px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}
.btn-toLogout:active {
    display: none;
}
.btn-toLogout:hover {
    color: var(--primary-white);
    background-color: var(--primary-blue);
    border-radius: 50%;
    transform: translateY(-2px);
}