* {
    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: 25%;
}

.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: 80%;
    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: 60px;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
}

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

.nav-menu li:hover {
    transform: translateY(-2px);
}

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

.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: 30px;
    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;
}

/* 响应式设计 */

/* 1600px以下 - 超大屏幕适配 */
@media screen and (max-width: 1600px) {
    .header {
        max-width: 100%;
    }

    .nav-container {
        padding: 0 35px;
    }
}

/* 1500px以下 - 防止换行调整 */
@media screen and (max-width: 1500px) {
    .nav-menu {
        gap: 35px;
    }

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

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

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

/* 1400px以下 - 大屏幕适配 */
@media screen and (max-width: 1400px) {
    .nav-menu {
        gap: 32px;
    }

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

    .logo-img {
        height: 90px;
    }

    .nav-container {
        height: 90px;
    }

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

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

/* 1300px以下 - 解决换行问题的关键断点 */
@media screen and (max-width: 1300px) {
    .nav-container {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 28px;
    }

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

    .logo-img {
        height: 85px;
    }

    .nav-container {
        height: 85px;
    }

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

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

    .user-actions {
        gap: 20px;
    }
}

/* 1200px以下 - 桌面中等屏幕 */
@media screen and (max-width: 1200px) {
    .nav-container {
        padding: 0 25px;
    }

    .nav-menu {
        gap: 25px;
    }

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

    .logo-img {
        height: 80px;
    }

    .nav-container {
        height: 80px;
    }

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

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

/* 1100px以下 - 桌面小屏幕 */
@media screen and (max-width: 1100px) {
    .nav-menu {
        gap: 22px;
    }

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

    .logo-img {
        height: 75px;
    }

    .nav-container {
        height: 75px;
    }

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

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

/* 1050px以下 - 进一步优化防换行 */
@media screen and (max-width: 1050px) {
    .nav-menu {
        gap: 20px;
    }

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

    .user-actions {
        gap: 15px;
    }

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

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

/* 992px以下 - 平板横向 */
@media screen and (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 18px;
    }

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

    .logo-img {
        height: 70px;
    }

    .nav-container {
        height: 70px;
    }

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

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

/* 950px以下 - 临界点，开始考虑换行或隐藏 */
@media screen and (max-width: 950px) {
    .nav-menu {
        gap: 15px;
    }

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

/* 900px以下 - 平板适配 */
@media screen and (max-width: 900px) {
    .nav-menu {
        gap: 12px;
    }

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

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

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

/* 850px以下 - 接近移动端 */
@media screen and (max-width: 850px) {
    .nav-menu {
        gap: 10px;
    }

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

    .logo-img {
        height: 65px;
    }

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

/* 800px以下 - 强制单行，可能隐藏部分内容或显示省略号 */
@media screen and (max-width: 800px) {
    .header {
        padding: 15px 0;
    }

    .logo-img {
        height: 60px;
    }

    .nav-container {
        height: 60px;
    }

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

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

    .nav-menu {
        overflow: hidden;
    }

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

/* 768px以下 - 移动端，隐藏PC菜单 */
@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%;
    }

    .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;
    }
}

/* 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;
    }
}
