* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: transparent;
    color: #333;
    min-height: 100vh;
}

/* header.css */
.header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 导航栏样式 */
.header {
    background-color: transparent;
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    z-index: 1000;
    padding: 20px 0;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100px;
}

/* Logo区域 - 调整宽度比例 */
.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 22%; /* 从25%减小到20% */
    min-width: 180px; /* 设置最小宽度防止过小 */
}

.logo-img {
    height: 100px;
    width: auto;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.logo-img img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}
.logo-img:hover img {
    transform: scale(1.05);
}

/* 右侧内容区域 - 调整宽度比例 */
.right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1;
    min-width: 0;
    max-width: 78%; /* 从80%增加到78%，给LOGO更多空间 */
    padding: 20px 0;
}

/* 用户操作区域 */
.user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    padding: 10px 0;
    width: 100%;
    min-width: 0;
}

.user-profile {
    color: #08358f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding: 5px 10px;
    border-radius: 20px;
}

.user-profile:hover {
    color: #ff6b6b;
    background-color: rgba(8, 53, 143, 0.05);
    transform: translateY(-2px);
}

.user-profile i {
    transition: transform 0.3s ease;
}

.user-profile:hover i {
    transform: scale(1.2);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.login-btn {
    background-color: #fff;
    border: solid 1px #ccc;
    padding: 8px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background-color: #1a4cb3;
    border: solid 1px #1a4cb3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(8, 53, 143, 0.2);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(8, 53, 143, 0.2);
}

/* 主导航菜单 - 优化长文本显示 */
.main-nav {
    padding: 10px 0;
    width: 100%;
    min-width: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: visible;
}

.nav-menu li {
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.nav-menu a:hover {
    color: #08358f;
    transform: translateY(-1px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #08358f;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.active a {
    color: #08358f;
    font-weight: 600;
}

.active a::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #08358f;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

/* 移动端菜单 - 从右侧滑入 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-menu-container {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.4s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-title {
    color: #08358f;
    font-size: 20px;
    font-weight: 600;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 22px;
    cursor: pointer;
}

.mobile-user-actions {

}

.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #08358f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.mobile-login-btn {
    width: 100%;
    background-color: #fff;
    border: solid 1px #ccc;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mobile-login-btn:hover {
    background-color: #1a4cb3;
    border: solid 1px #1a4cb3;
    color: #fff;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: #08358f;
}

.mobile-nav-menu .active a {
    color: #08358f;
    font-weight: 600;
}

/* 语言切换样式 */
.language-switch {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 5px;
    border-right: 1px solid #e0e0e0;
    padding-right: 20px;
    margin-right: 5px;
}

.lang-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.lang-link:hover {
    color: #ff6b6b;
    background-color: rgba(8, 53, 143, 0.05);
    transform: translateY(-2px);
}

.lang-link.active {
    color: #08358f;
    font-weight: 600;
    background-color: rgba(8, 53, 143, 0.05);
}

.lang-link.active:hover {
    color: #ff6b6b;
    background-color: rgba(8, 53, 143, 0.08);
}

.lang-separator {
    color: #ddd;
    font-size: 14px;
    margin: 0 2px;
}

/* 移动端语言切换 */
.mobile-language-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-lang-link {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
    white-space: nowrap;
}

.mobile-lang-link:hover {
    color: #ff6b6b;
    background-color: rgba(8, 53, 143, 0.05);
    transform: translateY(-2px);
}

.mobile-lang-link.active {
    color: #08358f;
    font-weight: 600;
    background-color: rgba(8, 53, 143, 0.05);
}

.mobile-lang-link.active:hover {
    color: #ff6b6b;
    background-color: rgba(8, 53, 143, 0.08);
}

.mobile-lang-separator {
    color: #ddd;
    font-size: 16px;
}

/* 响应式设计优化 - 重点调整1300px以上屏幕 */

/* 1600px以上 - 超大屏幕 */
@media screen and (min-width: 1601px) {
    .nav-container {
        padding: 0 40px;
    }

    .logo-area {
        max-width: 22%;
    }

    .right-content {
        max-width: 80%;
    }

    .nav-menu {
        gap: 45px;
    }

    .nav-menu a {
        font-size: 1.3rem;
    }
}

/* 1400px - 1600px */
@media screen and (max-width: 1600px) and (min-width: 1401px) {
    .nav-container {
        padding: 0 35px;
    }

    .logo-area {
        max-width: 22%;
    }

    .right-content {
        max-width: 80%;
    }

    .nav-menu {
        gap: 35px;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 90px;
    }
    .nav-container {
        height: 90px;
    }
}

/* 1300px - 1400px - 关键优化区间 */
@media screen and (max-width: 1400px) and (min-width: 1301px) {
    .nav-container {
        padding: 0 30px;
    }

    .logo-area {
        max-width: 20%; /* 进一步减小LOGO宽度 */
        min-width: 160px;
    }

    .right-content {
        max-width: 82%; /* 增加右侧宽度 */
    }

    .nav-menu {
        gap: 28px;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    /* 针对长菜单项的特殊处理 */
    .nav-menu li:nth-child(5) a {
        font-size: 1.1rem;
    }
    .nav-menu li:nth-child(8) a {
        font-size: 1.1rem;
    }

    .user-actions {
        gap: 20px;
    }

    .logo-img {
        height: 85px;
    }
    .nav-container {
        height: 85px;
    }
}

/* 1200px - 1300px */
@media screen and (max-width: 1300px) and (min-width: 1151px) {
    .nav-container {
        padding: 0 25px;
    }

    .logo-area {
        max-width: 18%;
        min-width: 160px;
    }

    .right-content {
        max-width: 82%;
    }

    .nav-menu {
        gap: 22px;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .nav-menu li:nth-child(5) a {
        font-size: 1rem;
    }
    .nav-menu li:nth-child(8) a {
        font-size: 1rem;
    }

    .logo-img {
        height: 80px;
    }
    .nav-container {
        height: 80px;
    }

    .user-actions {
        gap: 15px;
    }

    .login-btn {
        padding: 7px 18px;
        font-size: 13px;
    }

    .user-profile {
        font-size: 14px;
    }

    .lang-link {
        font-size: 12px;
    }
}

/* 1050px - 1150px */
@media screen and (max-width: 1150px) and (min-width: 951px) {
    .nav-container {
        padding: 0 20px;
    }

    .logo-area {
        max-width: 17%;
        min-width: 140px;
    }

    .right-content {
        max-width: 81%;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .nav-menu li:nth-child(5) a {
        font-size: 0.95rem;
    }
    .nav-menu li:nth-child(8) a {
        font-size: 0.95rem;
    }

    .user-actions {
        gap: 12px;
    }

    .login-btn {
        padding: 6px 15px;
        font-size: 12px;
    }

    .user-profile {
        font-size: 13px;
        gap: 5px;
    }

    .lang-link {
        font-size: 11px;
        padding: 4px 6px;
    }

    .logo-img {
        height: 75px;
    }
    .nav-container {
        height: 75px;
    }
}

/* 950px - 1050px */
@media screen and (max-width: 1050px) and (min-width: 951px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 0.95rem;
    }

    .user-actions {
        gap: 10px;
    }

    .language-switch {
        padding-right: 12px;
    }
}

/* 950px以下 - 继续优化 */
@media screen and (max-width: 950px) and (min-width: 769px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo-area {
        max-width: 18%;
        min-width: 130px;
    }

    .right-content {
        max-width: 80%;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .nav-menu li:nth-child(5) a {
        font-size: 0.85rem;
    }
    .nav-menu li:nth-child(8) a {
        font-size: 0.85rem;
    }

    .user-actions {
        gap: 8px;
    }

    .login-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .user-profile {
        font-size: 12px;
        gap: 4px;
        padding: 4px 6px;
    }

    .lang-link {
        font-size: 10px;
        padding: 3px 5px;
    }

    .language-switch {
        padding-right: 10px;
        gap: 2px;
    }

    .logo-img {
        height: 70px;
    }
    .nav-container {
        height: 70px;
    }
}

/* 900px以下 */
@media screen and (max-width: 900px) and (min-width: 769px) {
    .nav-menu {
        gap: 10px;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    .nav-menu li:nth-child(5) a {
        font-size: 0.8rem;
    }
    .nav-menu li:nth-child(8) a {
        font-size: 0.8rem;
    }
}

/* 850px以下 */
@media screen and (max-width: 850px) and (min-width: 769px) {
    .nav-menu {
        gap: 8px;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    .nav-menu li:nth-child(5) a {
        font-size: 0.75rem;
    }
    .nav-menu li:nth-child(8) a {
        font-size: 0.75rem;
    }

    .logo-img {
        height: 65px;
    }
    .nav-container {
        height: 65px;
    }
}

/* 800px以下 */
@media screen and (max-width: 800px) and (min-width: 769px) {
    .header {
        padding: 15px 0;
    }

    .nav-menu {
        gap: 5px;
    }

    .nav-menu a {
        font-size: 0.75rem;
    }

    .language-switch {
        padding-right: 8px;
    }

    .lang-link {
        padding: 2px 4px;
        font-size: 9px;
    }

    .login-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .logo-img {
        height: 60px;
    }
    .nav-container {
        height: 60px;
    }

    .nav-menu li:last-child {
        margin-right: 0;
    }
}

/* 768px以下 - 移动端 */
@media screen and (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-container {
        padding: 0 20px;
        flex-wrap: wrap;
        height: 70px;
    }

    .right-content {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .logo-area {
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .logo-img {
        height: 60px;
    }

    .header .mobile-menu-overlay.active {
        display: block;
    }

    .header .mobile-menu-container {
        display: block;
        top: 0;
        height: 100vh;
    }

    body {
        padding-top: 90px;
    }

    .mobile-nav-menu a {
        font-size: 18px;
        padding: 18px 0;
    }

    .mobile-user-profile {
        font-size: 16px;
    }

    .mobile-login-btn {
        font-size: 16px;
        padding: 14px;
    }

    .language-switch {
        display: none;
    }
}

/* 600px以下 */
@media screen and (max-width: 600px) {
    .nav-container {
        padding: 0 15px;
        height: 65px;
    }

    .logo-img {
        height: 55px;
    }

    body {
        padding-top: 85px;
    }

    .mobile-menu-container {
        width: 250px;
    }
}

/* 480px以下 */
@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
        height: 60px;
    }

    .logo-img {
        height: 50px;
    }

    .mobile-toggle {
        font-size: 22px;
    }

    body {
        padding-top: 80px;
    }

    .mobile-menu-container {
        width: 100%;
        right: -100%;
    }

    .mobile-menu-container.active {
        right: 0;
    }

    .mobile-menu-title {
        font-size: 18px;
    }

    .mobile-nav-menu a {
        font-size: 17px;
        padding: 16px 0;
    }

    .mobile-user-profile {
        font-size: 15px;
    }

    .mobile-login-btn {
        font-size: 15px;
        padding: 12px;
    }
}

/* 360px以下 */
@media screen and (max-width: 360px) {
    .nav-container {
        padding: 0 10px;
        height: 55px;
    }

    .logo-img {
        height: 45px;
    }

    .mobile-toggle {
        font-size: 20px;
    }

    body {
        padding-top: 75px;
    }

    .mobile-menu-container {
        padding: 15px;
    }

    .mobile-menu-header {
        margin-bottom: 20px;
    }

    .mobile-nav-menu a {
        font-size: 16px;
        padding: 14px 0;
    }
}