@charset "utf-8";

:root {
    --main-color: #963b31;
    --dark-color: #333;
    --white-color: #FFFFFF;
    --menu-bg-color: #FFFFFF;
    --menu-hover-bg: rgba(150, 59, 49, 0.05);
    --menu-text-color: #333333;
    --menu-hover-color: #963b31;
    --menu-border-color: #963b31;
}

/* ========== 基础布局 ========== */
.dis_flex {
    display: flex;
}

.dis_center {
    align-items: center;
    justify-content: center;
}

.dis_between {
    justify-content: space-between;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

::-webkit-scrollbar {
    width: 4px;
    height: 2px;
}

::-webkit-scrollbar-button:vertical {
    display: none;
}

::-webkit-scrollbar-corner,
::-webkit-scrollbar-track {
    background-color: #999;
}

::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: #ccc;
}

/* ========== 头部容器样式（替换原来的header标签样式） ========== */
.header-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    border-top: 4px solid var(--main-color);
    z-index: 999;
    background: transparent !important;
    transition: none !important;
}

.header-container:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.00) 100%);
    z-index: -1;
}

/* 移除滚动时头部变深的样式 */
.grey_head {
    background: transparent !important;
    box-shadow: none !important;
}

.grey_head:after {
    display: block !important;
}

/* ========== 导航容器 ========== */
.n_header {
    position: relative;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 120px;
    background: transparent !important;
}

/* LOGO区域 */
.n_header .logo {
    padding-top: 22px;
    max-width: 470px;
    flex-shrink: 0;
}

.n_header .logo h1 {
    margin: 0;
    padding: 0;
}

.n_header .logo img {
    max-width: 100%;
    height: auto;
}

/* 校训 */
.xiao-xun {
    width: 150px;
    height: 30px;
    object-fit: contain;
}

/* 右侧区域 */
.n_header_r {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.main-menu {
    padding-top: 20px;
    padding-right: 44px;
    flex: 1;
}

/* ========== 搜索和联系信息 ========== */
.header_top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search_box {
    margin-right: 20px;
}

.search_bg {
    display: flex;
    width: 260px;
    height: 46px;
    padding: 8px 8px 8px 16px;
    justify-content: space-between;
    align-items: center;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
}

.search_bg .input {
    width: calc(100% - 24px);
    height: 24px;
    line-height: 24px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    color: var(--white-color);
    outline: none;
}

.search_bg .input::placeholder {
    color: rgba(255, 255, 255, 0.50);
}

.search_bg .submit {
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: none;
    background-image: url(../img/search_w.svg);
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

.head_contact_column {
    display: flex;
    flex-direction: column;
}

.head_email {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.head_email img {
    width: 25px;
    margin-right: 8px;
}

.head_email .text {
    color: #FFF;
    font-size: 16px;
}

/* ========== 统一的一级菜单样式 ========== */
.main-menu nav {
    display: block;
}

.main-menu nav > ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 70px;
}

/* 一级菜单项 */
.main-menu nav > ul > li {
    position: relative;
    margin: 0;
    padding: 0 16px;
    text-align: center;
}

/* 一级菜单链接 */
.main-menu nav > ul > li > a {
    display: block;
    position: relative;
    padding: 0;
    font-weight: 700;
    font-size: 18px;
    line-height: 70px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-menu nav > ul > li > a font {
    display: inline-block;
    line-height: 30px;
    position: relative;
    white-space: nowrap;
}

/* 一级菜单下划线效果 */
.main-menu nav > ul > li > a font:after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 12px;
    height: 12px;
    top: 100%;
    left: 50%;
    border-radius: 50%;
    background: var(--main-color);
    opacity: 0;
    transform: translateX(-50%);
    transition: all 0.2s ease-out;
}

.main-menu nav > ul > li > a font:before {
    content: "";
    border-left: 2px solid var(--main-color);
    height: 36px;
    transition: all 0.2s ease-out;
    transform: scaleY(0);
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -1px;
    transform-origin: center top;
}

.main-menu nav > ul > li:hover > a font:before {
    transform: scaleY(1);
}

.main-menu nav > ul > li:hover > a font:after {
    opacity: 1;
}

/* ========== 统一的二级菜单容器 ========== */
.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    width: auto;
    min-width: 180px;
    max-width: 240px;
    background: var(--menu-bg-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: visible;
    padding: 12px 0;
}

.main-menu nav > ul > li:hover .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scaleY(1);
}

/* 二级菜单内容 */
.menu-content {
    padding: 0;
    width: 100%;
    position: relative;
    overflow: visible;
}

/* 二级菜单项列表 */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 二级菜单项 */
.menu-item {
    position: relative;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 二级菜单链接 */
.menu-link {
    display: block;
    padding: 10px 20px;
    color: var(--menu-text-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    text-align: left;
    position: relative;
    background-color: var(--menu-bg-color);
}

.menu-link:hover {
    background: var(--menu-hover-bg);
    color: var(--menu-hover-color);
    border-left-color: var(--menu-border-color);
    padding-left: 24px;
}

/* 有三级菜单的指示器 */
.menu-link.has-children:after {
    content: "›";
    position: absolute;
    right: 12px;
    color: #cccccc;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s ease;
}

.menu-link.has-children:hover:after {
    color: var(--menu-hover-color);
    transform: translateX(2px);
}

/* ========== 统一的三级菜单容器 ========== */
.submenu-dropdown {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    background: var(--menu-bg-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
    min-width: 180px;
    max-width: 240px;
    pointer-events: none;
    overflow: hidden;
}

/* 悬停在二级菜单项上时显示三级菜单 */
.menu-item:hover .submenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* 三级菜单内容 */
.submenu-content {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.submenu-content::-webkit-scrollbar {
    width: 4px;
}

.submenu-content::-webkit-scrollbar-thumb {
    background: rgba(150, 59, 49, 0.3);
    border-radius: 2px;
}

/* 三级菜单链接 */
.submenu-link {
    display: block;
    padding: 8px 20px;
    color: #666666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submenu-link:hover {
    background: var(--menu-hover-bg);
    color: var(--menu-hover-color);
    border-left-color: var(--menu-border-color);
    padding-left: 24px;
}

/* ========== 机构设置特殊处理 ========== */
.org-modules-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.org-module-item {
    position: relative;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.org-module-link {
    display: block;
    padding: 10px 20px;
    color: var(--menu-text-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    text-align: left;
    position: relative;
    background-color: var(--menu-bg-color);
    cursor: pointer;
}

.org-module-link:hover {
    background: var(--menu-hover-bg);
    color: var(--menu-hover-color);
    border-left-color: var(--menu-border-color);
    padding-left: 24px;
}

.org-module-details {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    background: var(--menu-bg-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
    min-width: 180px;
    max-width: 240px;
    pointer-events: none;
    overflow: hidden;
}

.org-module-item:hover .org-module-details {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.org-details-content {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.org-details-content a {
    display: block;
    padding: 8px 20px;
    color: #666666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-details-content a:hover {
    background: var(--menu-hover-bg);
    color: var(--menu-hover-color);
    border-left-color: var(--menu-border-color);
    padding-left: 24px;
}

/* ========== 菜单按钮 ========== */
.head_menu {
    position: relative;
    top: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 125px;
    background-image: url(../img/menu_bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}

.n_header .head_menu i img:nth-child(2),
.head_menu .close {
    display: none;
}

.n_header .head_menu.is-active {
    background-image: url(../img/menu_bg_w.svg);
}

.n_header .head_menu.is-active i img:nth-child(1),
.n_header .head_menu.is-active i img:nth-child(2) {
    display: none !important;
}

.head_menu.is-active .close {
    display: block;
}

/* ========== 移动端弹出菜单 ========== */
.ovh {
    overflow: hidden !important;
}

.header-nav {
    position: fixed;
    padding-top: 230px;
    padding-bottom: 90px;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    border-top: 4px solid var(--white-color);
    background-image: url(../img/menu_eject_img.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.header-nav:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/menu_eject_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.header-nav:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(36, 22, 22, 0.8) 0%, #92382F 100%);
    z-index: -2;
}

.header-nav.active {
    opacity: 1;
    visibility: visible;
}

.header-nav .container {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pu_container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 移动端搜索框 */
.mo_show {
    display: none;
}

/* 移动端菜单结构 */
.ct_1 {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    transition-delay: 0.26s;
}

.header-nav.active .ct_1 {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端菜单项 */
.slide {
    width: 23%;
    margin-bottom: 30px;
}

.one {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.one a {
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.one i {
    width: 18px;
    height: 22px;
    background-image: url(../img/menu_icon_pressed_one.svg);
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    display: none;
}

.one i.ico {
    background-image: url(../img/menu_icon_open_one.svg);
}

/* 移动端子菜单 */
.treeview-menu {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.treeview-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.treeview-menu a:hover {
    color: #fff;
}

/* 移动端底部信息 */
.ct_2 {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    transition-delay: 0.36s;
}

.header-nav.active .ct_2 {
    opacity: 1;
    transform: translateY(0);
}

.le_box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.item .svg {
    margin-right: 16px;
    flex-shrink: 0;
}

.item .svg img {
    width: 56px;
}

.item > div {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.item p {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
}

.item a {
    color: #fff;
    text-decoration: none;
}

.head_copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 20px;
}

.head_copy a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.head_copy a:hover {
    color: #fff;
}

.ri_box {
    flex-shrink: 0;
    margin-left: 40px;
}

.ri_box img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #fff;
    padding: 3px;
}

.ri_box p {
    color: #fff;
    text-align: center;
    font-size: 16px;
    margin-top: 8px;
}

/* ========== 响应式设计 ========== */
/* 大屏幕调整 */
@media screen and (max-width: 1680px) {
    .n_header {
        padding: 0 40px;
    }
    
    .n_header .logo {
        max-width: 400px;
    }
    
    .main-menu {
        padding-right: 30px;
    }
    
    .main-menu nav > ul > li {
        padding: 0 12px;
    }
}

@media screen and (max-width: 1580px) {
    .n_header .logo {
        max-width: 350px;
    }
    
    .main-menu nav > ul > li {
        padding: 0 10px;
    }
}

/* 平板设备 - 隐藏PC菜单，显示移动菜单 */
@media screen and (max-width: 1279px) {
    /* 隐藏PC端菜单 */
    .main-menu nav {
        display: none !important;
    }
    
    /* 显示移动端菜单按钮 */
    .head_menu {
        display: flex;
    }
    
    /* 调整搜索框 */
    .main-menu .search_box {
        display: none;
    }
    
    /* 显示移动端搜索 */
    .mo_show.hide {
        display: block !important;
        width: 100%;
        margin-bottom: 30px;
    }
    
    /* 移动端弹出菜单样式调整 */
    .header-nav {
        padding-top: 180px;
    }
    
    .ct_1 {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .slide {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .one i {
        display: block;
    }
    
    .treeview-menu {
        padding-right: 0;
        max-height: none;
    }
    
    .ct_2 {
        flex-direction: column;
    }
    
    .ri_box {
        margin-left: 0;
        margin-top: 30px;
        align-self: flex-start;
    }
    
    /* 移动端三级菜单处理 */
    .org-module-details,
    .submenu-dropdown {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px;
        margin-bottom: 10px;
        box-shadow: none;
        border-left: 3px solid var(--menu-border-color);
        background: rgba(150, 59, 49, 0.02);
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        padding: 0 !important;
        transition: all 0.3s ease;
    }
    
    .org-module-item.active .org-module-details,
    .menu-item.active .submenu-dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
        padding: 10px 0 !important;
    }
    
    /* 移动端指示器 */
    .org-module-link:after,
    .menu-link.has-children:after {
        content: "▼";
        position: absolute;
        right: 15px;
        font-size: 10px;
        transition: transform 0.3s ease;
    }
    
    .org-module-item.active .org-module-link:after,
    .menu-item.active .menu-link.has-children:after {
        transform: rotate(180deg);
    }
}

/* 平板设备 */
@media screen and (max-width: 991px) {
    .n_header {
        padding: 0 20px;
        min-height: 100px;
    }
    
    .n_header .logo {
        padding-top: 15px;
        max-width: 280px;
    }
    
    .head_menu {
        width: 60px;
        height: 89px;
    }
    
    .xiao-xun {
        width: 120px;
        height: 25px;
    }
    
    .header-nav {
        padding-top: 150px;
        padding-bottom: 50px;
    }
    
    .header-nav .container {
        padding: 0 15px;
    }
}

/* 手机设备 */
@media screen and (max-width: 767px) {
    .n_header {
        padding: 0 15px;
    }
    
    .n_header .logo {
        max-width: 200px;
    }
    
    .head_menu {
        width: 50px;
        height: 70px;
        background-size: contain;
    }
    
    .xiao-xun {
        width: 100px;
        height: 20px;
    }
    
    .header-nav {
        padding-top: 120px;
        padding-bottom: 30px;
    }
    
    .one {
        font-size: 18px;
    }
    
    .treeview-menu a {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .item .svg img {
        width: 40px;
    }
    
    .item > div,
    .item p {
        font-size: 14px;
    }
    
    .head_copy {
        font-size: 12px;
    }
    
    .ri_box img {
        width: 60px;
        height: 60px;
    }
    
    .ri_box p {
        font-size: 14px;
    }
}

/* 小手机设备 */
@media screen and (max-width: 480px) {
    .n_header {
        padding: 0 10px;
    }
    
    .n_header .logo {
        max-width: 150px;
        padding-top: 10px;
    }
    
    .head_menu {
        width: 40px;
        height: 60px;
    }
    
    .xiao-xun {
        display: none;
    }
    
    .header-nav {
        padding-top: 100px;
    }
    
    .one {
        font-size: 16px;
    }
    
    .treeview-menu a {
        font-size: 13px;
    }
}

/* ========== 移动端机构设置特殊样式 ========== */
.mobile-org-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-org-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mobile-org-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #963b31;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.mobile-org-title:after {
    content: "▼";
    position: absolute;
    right: 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.mobile-org-section.active .mobile-org-title:after {
    transform: rotate(180deg);
}

.mobile-org-links {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 15px;
    margin-top: 10px;
}

.mobile-org-section.active .mobile-org-links {
    display: flex;
}

.mobile-org-links a {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-org-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 移动端响应式调整 */
@media screen and (max-width: 767px) {
    .mobile-org-links {
        gap: 5px;
    }
    
    .mobile-org-links a {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .mobile-org-title {
        font-size: 14px;
    }
}