/* 基础样式重置 */
html, body, address, blockquote, div, dl, form, h1, h2, h3, h4, h5, h6, ol, p, pre, table, ul, dd, dl, dt, li, tbody, td, tfoot, th, thead, tr, button, del, ins, map, object, a, abbr, acronym, b, bdo, big, br, cite, code, dfn, em, i, img, kbd, q, samp, small, span, strong, sub, sup, tt, var, legend, fieldset {
    margin: 0;
    padding: 0;
    color: #323232;
    -webkit-font-smoothing: subpixel-antialiased;
    box-sizing: border-box;
}
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
fieldset, img { border: 0; }
img, object {
    max-width: 100%;
    width: auto\9;
    -ms-interpolation-mode: bicubic;
}
a {
    outline: none;
    text-decoration: none;
    color: #282828;
    transition: color 0.3s ease;
}
a:hover { color: #a35516; }
input[type='button'] {
    outline: none;
    border: 0 none;
    background-color: transparent;
    cursor: pointer;
}
address, caption, cite, code, dfn, em, strong, th, var { font-style: normal; font-weight: 400; }
ul, ol, li { list-style: none outside none; }

/* 工具类 */
.tc { text-align: center !important; }
.tl { text-align: left !important; }
.tr { text-align: right !important; }
.fwn { font-weight: normal; }
.fwb { font-weight: bold; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; }
q:before, q:after { content: ''; content: none; }
input, textarea, select { font-weight: inherit; }
input, select, textarea, button { vertical-align: middle; }
.pa { position: absolute; }
.pr { position: relative; }
.topicInfo li { transition: all 1s ease 0s; }

/* 头部核心样式（PC端基础） */
.wraq_header {
    width: 100%;
    height: 86px;
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 9999998;
}
.header {
    max-width: 1360px;
    min-width: 320px;
    height: 86px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Logo样式 */
.logo {
    width: 388px;
    height: 86px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo img { max-height: 80px; width: auto; }
.logo2 {
    display: none;
    padding: 0;
    flex-shrink: 0;
}
.logo2 a { display: block; max-width: 240px; margin: 0 auto; }
.logo2 img { max-height: 40px; }

/* PC端导航 */
.topWrap {
    flex-grow: 1;
    height: 86px;
    padding-left: 20px;
}
.nav { width: 100%; height: 100%; z-index: 888; }
.nav ul {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}
.nav ul li {
    height: 100%;
    line-height: 86px;
    padding: 0 15px;
    position: relative;
    text-align: center;
    min-width: 80px;
}
.nav ul li a {
    color: #fff;
    font-size: 1.4em;
    display: block;
}
.nav ul li a:hover { color: #f18e21; transition: color 0.3s ease; }

/* 右侧图标容器（微信+搜索，确保紧贴） */
.nav ul li.right-icons {
    margin-left: auto;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent !important;
    border: none !important;
}

/* 微信图标样式 */
.nav ul li.right-icons .btn_wechat {
    position: relative;
    width: 24px;
    height: 24px;
    display: block;
    background: transparent !important;
    cursor: pointer;
}
.nav ul li.right-icons .wechat-icon {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* 二维码样式（精简后） */
.nav ul li.right-icons .wechat-qrcode {
    top: calc(100% + 10px);
    right: 0;
    width: 160px;
    padding: 4px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999999;
    display: none;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: top right;
    transition: all 0.3s ease;
}
.nav ul li.right-icons .wechat-qrcode img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 4px;
}
.nav ul li.right-icons .wechat-qrcode .qrcode-text {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.4;
    padding: 0 2px 3px;
    width: 100%;
    font-weight: 500;
    white-space: nowrap;
}
.nav ul li.right-icons .btn_wechat:hover .wechat-qrcode {
    display: flex;
    opacity: 1;
    transform: scale(1);
}
.nav ul li.right-icons .btn_wechat:hover .wechat-icon {
    transform: scale(1.15);
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,0.9));
}

/* 搜索图标样式（精简后，关闭按钮无滤镜反转） */
.nav ul li.right-icons .btn_ser {
    position: relative;
    width: 24px;
    height: 24px;
    display: block;
    background: transparent !important;
    cursor: pointer;
    z-index: 9999999;
}
.nav ul li.right-icons .search-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1); /* 搜索图标保持白色 */
    transition: all 0.3s ease;
}
.nav ul li.right-icons .close-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 关闭按钮移除滤镜，保持原始颜色 */
    transition: all 0.3s ease;
    display: none; /* 默认隐藏 */
}

/* 激活状态：切换图标显示 */
.nav ul li.right-icons .btn_ser.active .search-icon {
    display: none;
}
.nav ul li.right-icons .btn_ser.active .close-icon {
    display: block;
    filter: brightness(2); /* 仅提升亮度，无反转 */
    transition: all 0.3s ease-out;
}
.nav ul li.right-icons .btn_ser.active .close-icon:hover {
    filter: brightness(4); /* 悬停时进一步提亮 */
    transform: scale(1.2);
}

/* PC端子菜单 */
.nav ul li .subNav {
    position: absolute;
    left: 50% !important;
    top: 100% !important;
    width: 460px !important;
    margin-left: -230px !important;
    padding: 5px 0;
    display: none;
    background-color: #007457;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border-top: 4px solid #e0bb6c;
    overflow: hidden;
}
.nav ul li .subNav.local { left: 50% !important; }
.nav ul li.on { border-bottom: 15px solid #016249; }
.nav ul li.on a { color: #fff; }
.nav ul li.on .subNav { display: block; }
.nav ul li.on .subNav dl {
    width: 100% !important;
    margin: 0;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 0px;
}
.nav ul li.on .subNav dl dd {
    min-width: auto;
    max-width: none;
    height: 48px;
    padding: 0 10px;
    margin: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav ul li.on .subNav dl dd a {
    font-size: 1em;
    color: #fff;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.nav ul li.on .subNav dl dd:hover {
    background-color: rgba(255,255,255,0.1);
}
.nav ul li.on .subNav dl dd a:hover {
    color: #F0F0F0;
    font-weight: bold;
}

/* 搜索框及遮罩 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999990;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.overlay.active { display: block; opacity: 1; }
.ser {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 500px;
    height: 50px;
    line-height: 50px;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999991;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ser.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.search {
    background: none;
    width: 100%;
    height: 100%;
    position: relative;
}
.search input.notxt {
    width: calc(100% - 50px);
    height: 100%;
    line-height: 50px;
    color: #333;
    padding: 0 5px 0 5px;
    font-size: 16px;
    border: none;
    background: transparent;
    box-sizing: border-box;
}
.search input.notxt:focus {
    outline: none;
    box-shadow: inset 0 0 0 0px #016249;
}
.search input.notxt1 {
    width: 80px;
    height: 50px;
    right: 0;
    top: 0;
    background: #007457 url(../images/ser.png) no-repeat center center;
    border: none;
    cursor: pointer;
    position: absolute;
}
.search input.notxt1:hover { background-color: #016249; }

/* PC端滚动导航 */
.wraq_header.current {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #016249;
    z-index: 9999;
    box-shadow: 0px 0px 10px -2px;
}
.wraq_header.current .header { height: 60px; }
.wraq_header.current .logo { width: 320px; height: 60px; }
.wraq_header.current .topWrap { height: 60px; }
.wraq_header.current .nav ul { height: 60px; }
.wraq_header.current .nav ul li { line-height: 60px; }
.wraq_header.current .nav li a { font-size: 1.2em; }
.wraq_header.current .nav ul li.on { border-bottom: 3px solid #016249; }

/* 滚动时右侧图标样式保持 */
.wraq_header.current .nav ul li.right-icons .wechat-icon,
.wraq_header.current .nav ul li.right-icons .search-icon {
    filter: brightness(0) invert(1);
}

/* 移动端样式 */
.snav {
    display: none;
    height: 40px;
    background-color: transparent;
    z-index: 1002;
}
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-top: 6px;
    margin-bottom: 0;
}
.mobile-menu-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}
.navm {
    width: 100% !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background-color: #007457;
    z-index: 9999992 !important;
    display: none;
    margin: 0;
    padding: 0 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.navm.active { display: block; }
.navm #mobileSer {
    display: none !important;
    position: relative;
    width: 90% !important;
    height: 48px;
    margin: 50px 20px 0 0 !important;
    padding: 0 8px;
    background-color: #f9f9f9 !important;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}
.navm #mobileSer.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}
.navm #mobileSer .notxt {
    padding: 0 15px 0 32px !important;
    font-size: 15px !important;
    color: #555;
    background: url(https://news.culr.edu.cn/hqglc/ggjxb/images/search-icon-sm.png) no-repeat 10px center;
    background-size: 18px;
    height: 100%;
    border-radius: 6px;
}
.navm #mobileSer .notxt1 {
    width: 42px !important;
    height: 42px !important;
    border-radius: 6px;
    background: url(../images/ser2.png) no-repeat center center;
    transition: background-color 0.3s ease;
}
.navm #mobileSer .notxt1:hover {
    background-color: #8a4713;
}
.navm ul { padding: 0; margin: 0; }
.navm li {
    border-bottom: 1px solid #00694e;
    padding: 0;
    margin: 0;
}
.navm li a {
    font-size: 1.1em;
    line-height: 50px;
    padding: 0 20px;
    color: #fff;
    display: block;
    position: relative;
}
.navm li.sub_has:after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}
.navm li.sub_has.active:after { transform: translateY(-50%) rotate(225deg); }
.navm li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #f18e21;
}
.navm dl { display: none; background-color: #00694e; margin: 0; padding: 0; }
.navm li.sub_has.active dl { display: block; }
.navm dl dd {
    border-bottom: 1px solid #005f45;
    padding: 0;
    margin: 0;
}
.navm dl dd a {
    font-size: 0.9em;
    line-height: 45px;
    padding-left: 40px;
    color: #f0f0f0;
}
.navm dl dd a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #f18e21;
}

/* 移动端响应式适配 */
@media screen and (max-width: 980px) {
    .wraq_header {
        position: static;
        height: auto;
        background-color: #016249;
    }
    .header {
        height: 60px;
        display: flex;
        align-items: center;
        padding: 0 15px;
        justify-content: flex-start;
    }
    .logo { display: none; }
    .logo2 { 
        display: block;
        flex-grow: 1;
        text-align: center;
        margin: 0 5px;
    }
    .topWrap { display: none !important; }
    .snav, .mobile-menu-btn { display: block; }
    .ser {
        width: 100% !important;
        transform: translate(-50%, -50%) scale(1) !important;
        height: 45px !important;
        line-height: 45px !important;
    }
    .search input.notxt {
        width: calc(100% - 45px) !important;
        font-size: 15px !important;
        padding: 0 20px !important;
    }
    .search input.notxt1 {
        width: 45px !important;
        height: 45px !important;
    }
    .wraq_header.current {
        position: static;
        height: auto;
        background-color: transparent;
        box-shadow: none;
    }
}
@media screen and (max-width: 600px) {
    .logo2 img { max-height: 36px; }
    .navm li a { font-size: 1.1em; line-height: 48px; }
    .navm dl dd a { font-size: 0.9em; line-height: 42px; }
    .navm #mobileSer {
        margin: 50px 20px 0 0 !important;
        height: 45px;
        border-radius: 6px;
    }
    .navm #mobileSer .notxt {
        font-size: 14px !important;
        padding: 0 12px 0 28px !important;
        background-size: 16px;
    }
    .navm #mobileSer .notxt1 {
        width: 38px !important;
        height: 38px !important;
    }
}
@media screen and (max-width: 480px) {
    .header { padding: 0 10px; }
    .mobile-menu-btn { width: 36px; height: 36px; }
    .mobile-menu-btn img { width: 22px; height: 22px; }
    .logo2 img { max-height: 32px; }
    .navm li a { padding: 0 15px; }
    .navm dl dd a { padding-left: 30px; }
    .navm #mobileSer {
        margin: 50px 20px 0 0 !important;
        width: 94% !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}