/* top.css - 响应式版本 */
.navigation a:hover {
    color: #e83028;
}

a {
    text-decoration: none;
}

/* 响应式基础 */
.responsive-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 头部导航栏 */
.user-layout-lang {
    box-shadow: 0px 2px 18px rgba(111, 111, 111, 0.1);
    width: 100%;
    height: 78px;
    line-height: 78px;
    padding: 0 20px;
    font-size: 16px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-layout-lang-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.user-layout-lang-logo>img, 
.logo-img {
    width: auto;
    height: 40px;
    max-height: 60%;
}

/* 导航菜单 */
.user-layout-lang-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.user-layout-lang-menu-li {
    display: inline-block;
    margin: 0 15px;
    color: #3a485a;
    cursor: pointer;
    transition: color 0.3s;
    white-space: nowrap;
}

.user-layout-lang-menu-li-active {
    color: #e83028;
    font-weight: 500;
}

.user-layout-lang-menu-li:hover {
    color: #e83028;
}

/* 登录/注册区域 */
.user-layout-lang-menu-login {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.user-layout-lang-menu-login-li {
    display: inline-block;
    margin-left: 20px;
    color: #3a485a;
    cursor: pointer;
    transition: color 0.3s;
}

.user-layout-lang-menu-login-li:hover {
    color: #e83028;
}

/* 用户头像区域 */
.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 20px;
}

.user-icon-container {
    display: flex;
    align-items: center;
}

.user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
}

.login-name {
    margin-left: 10px;
    color: #3a485a;
    font-size: 14px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #3a485a;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端关闭按钮 */
.mobile-close-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 30px;
    color: #3a485a;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

/* 咨询按钮 */
.mobile-consult-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ee4e41;
    color: white;
    border-radius: 25px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(238, 78, 65, 0.3);
    z-index: 999;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-consult-btn:hover {
    background: #d43f33;
    transform: translateY(-2px);
}

.desktop-consult-btn {
    position: fixed;
    bottom: 45px;
    right: 60px;
    z-index: 9999;
    cursor: pointer;
}

.consult-img {
    width: 150px;
    cursor: pointer;
    transition: transform 0.3s;
}

.consult-img:hover {
    transform: scale(1.05);
}

/* 用户信息弹窗 - 保持不变但添加响应式 */
.user {
    width: 344px;
    height: 385px;
    background-color: #ffffff;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    position: fixed;
    top: 70px;
    right: 40px;
    z-index: 1000;
    overflow: hidden;
}

/* 导航下拉菜单 - 保持不变但添加响应式 */
.navigation-wrap {
    width: 100%;
    height: 300px;
    position: fixed;
    z-index: 99;
    background: #fff;
    border-top: 1px solid rgba(111, 111, 111, 0.1);
    margin-top: 75px;
    display: none;
    top: 0px;
}

.navigation-content {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 300px;
    display: flex;
    position: relative;
}

.fake-background {
    position: absolute;
    height: 100%;
    width: 50%;
    left: 0;
    background: #f0f2f5;
}

.navigation-content-1 {
    width: 100%;
    max-width: 1200px;
    display: flex;
    z-index: 1;
}

/* 弹窗样式 - 保持不变但添加响应式 */
.editPassword, .editPhone {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 响应式媒体查询 */
@media screen and (max-width: 1200px) {
    .user-layout-lang {
        padding: 0 15px;
    }
    
    .user-layout-lang-menu-li {
        margin: 0 10px;
    }
}

@media screen and (max-width: 992px) {
    .user-layout-lang-menu-li {
        margin: 0 8px;
        font-size: 15px;
    }
    
    .desktop-consult-btn {
        right: 40px;
    }
    
    .consult-img {
        width: 130px;
    }
}

/* 移动端样式 */
@media screen and (max-width: 768px) {
    .user-layout-lang {
        height: 60px;
        line-height: 60px;
        padding: 0 15px;
    }
    
    .user-layout-lang-logo>img,
    .logo-img {
        height: 30px;
    }
    
    /* 隐藏桌面端菜单 */
    .user-layout-lang-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 80px;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .user-layout-lang-menu.active {
        display: flex;
    }
    
    .user-layout-lang-menu-li {
        margin: 0;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }
    
    /* 显示移动端按钮 */
    .mobile-menu-toggle,
    .mobile-close-menu {
        display: flex;
    }
    
    /* 调整登录区域 */
    .user-layout-lang-menu-login {
        display: none;
    }
    
    .user-layout-lang-menu-login-li {
        margin: 10px 0;
        font-size: 16px;
    }
    
    /* 显示移动端咨询按钮，隐藏桌面端 */
    .mobile-consult-btn {
        display: block;
    }
    
    .desktop-consult-btn {
        display: none;
    }
    
    /* 调整用户信息弹窗位置 */
    .user {
        width: 280px;
        right: 20px;
        top: 60px;
    }
    
    /* 调整导航下拉菜单 */
    .navigation-wrap {
        display: none !important;
    }
    
    /* 弹窗响应式 */
    .editPassword_1,
    .editPhone_1 {
        width: 90% !important;
        max-width: 400px;
        margin-top: 0;
    }
    
    .input_password_3,
    .input_password_4 {
        width: 100% !important;
    }
    
    .input_yzm_1 {
        width: 120px !important;
    }
}

@media screen and (max-width: 480px) {
    .user-layout-lang {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .user-layout-lang-menu-li {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .mobile-consult-btn {
        padding: 10px 20px;
        font-size: 13px;
        bottom: 15px;
        right: 15px;
    }
    
    .user {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .editPassword_1,
    .editPhone_1 {
        width: 95% !important;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .user-layout-lang-menu-li,
    .user-layout-lang-menu-login-li,
    .user_5_1,
    .btn_l,
    .item-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-menu-toggle,
    .mobile-close-menu {
        min-width: 44px;
        min-height: 44px;
    }
}

/* 防止移动端滚动穿透 */
body.menu-open {
    overflow: hidden;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-layout-lang-menu.active {
    animation: fadeIn 0.3s ease;
}

.user {
    animation: fadeIn 0.2s ease;
}