/**
 * ============================================
 * nav.css - 导航组件样式
 * ============================================
 */

/* ===== 导航固定定位 ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 9999;
    padding: 8px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    background-color: #174c7c;
}

/* ===== Logo ===== */
.top-nav .logo img {
    display: block;
    height: 100px;
    width: auto;
}

/* ===== 导航包装器 ===== */
.nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* ===== 导航列表 ===== */
.jz_nav_list {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* ===== 每个导航项 ===== */
.jz_nav_item {
    padding: 10px 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: background 0.3s;
}

.jz_nav_item:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ===== 选中状态 ===== */
.jz_nav_item_selected .nav_main_name {
    color: #f7d693;
}

/* ===== 滑动下划线 ===== */
.slider-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #f7d693;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.slider-line.active {
    opacity: 1;
}

/* ===== 文字包装器 - 上下排列 ===== */
.lang_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
    height: 44px;
    overflow: hidden;
}

/* ===== 中文主标题 ===== */
.nav_main_name {
    font-size: 16px;
    font-weight: 600;
    color: #f7f7f8;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

/* ===== 英文副标题 ===== */
.nav_sub_name {
    font-size: 11px;
    color: #c6c6c6;
    font-weight: 400;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

/* ===== 悬停文字互换 ===== */
.jz_nav_item:hover .nav_main_name {
    transform: translateY(20px);
    color: #f7d693;
}

.jz_nav_item:hover .nav_sub_name {
    transform: translateY(-20px);
    color: #f7d693;
}

/* ===== 分隔符竖线 ===== */
.nav_item_septal {
    width: 1px;
    height: 40px;
    background: #e8e8e8;
    flex-shrink: 0;
}

.nav_item_septal span {
    display: none;
}

/* ===== 链接样式 ===== */
.jz_nav_item a {
    text-decoration: none;
}

/* ====================== 移动端适配 768px以下 ====================== */
@media (max-width: 768px) {

    /*导航高度缩小*/
    .top-nav {
        height: 60px !important;
        padding: 8px 20px !important;
    }

    /*logo图片缩小*/
    .top-nav .logo img {
        height: 45px !important;
    }

    /*电脑端导航菜单 全部隐藏*/
    .jz_nav_list {
        display: none !important;
    }

    /*滑动下划线 直接隐藏*/
    .slider-line {
        display: none !important;
    }

    /*汉堡按钮显示出来（你HTML必须要有这个id的标签）*/
    #hamburgerBtn {
        display: block !important;
    }

    /*移动端侧滑面板*/
    #mobileMenuPanel {
        display: block;
    }
}

/*电脑端默认隐藏汉堡按钮*/
#hamburgerBtn {
    display: none;
}

/*移动端侧滑面板基础样式*/
/*移动端侧滑面板基础样式*/
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #174c7c;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    padding: 80px 20px 20px;
    /* ✅ 添加这行，让子元素的 absolute 相对于它定位 */
    position: fixed;
}

.mobile-menu-panel.open {
    transform: translateX(0);
}

.mobile-menu-panel a {
    display: block;
    color: #fff;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

#hamburgerBtn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
}

/* ===== 移动端面板遮罩层（点击外部关闭的视觉反馈） ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== 移动端面板增强 ===== */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #174c7c;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    padding: 70px 24px 30px;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu-panel.open {
    transform: translateX(0);
}

/* ===== 移动端面板链接 ===== */
.mobile-menu-panel a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 4px;
}

.mobile-menu-panel a:hover {
    color: #f7d693;
    padding-left: 12px;
    background: rgba(247, 214, 147, 0.05);
}

.mobile-menu-panel a:active {
    color: #f7d693;
    padding-left: 16px;
}

/* ===== 汉堡按钮增强 ===== */
#hamburgerBtn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10001;
    position: relative;
}

#hamburgerBtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#hamburgerBtn:active {
    transform: scale(0.92);
}

#hamburgerBtn.active {
    color: #f7d693;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
    #hamburgerBtn {
        display: block !important;
    }

    .mobile-menu-panel {
        width: 280px;
        padding: 70px 20px 30px;
    }

    .mobile-menu-panel a {
        font-size: 15px;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .mobile-menu-panel {
        width: 260px;
        padding: 60px 16px 20px;
    }

    .mobile-menu-panel a {
        font-size: 14px;
        padding: 10px 0;
    }

    .mobile-menu-panel .menu-close-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 12px;
        right: 12px;
    }
}