/* header.css - 让 new.html 旧模板 header 匹配 index.html 的 w-100 head-gradient 视觉 */

/* 重置浏览器默认 margin */
body {
    margin: 0;
    background-color: #f0f4f8; /* 页面整体底色 */
}

/* header 容器：白色背景 + 全宽 + 底部边框 */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}
.header .shares { display: block; margin-bottom: 10px; text-align: right; }
.header .shares a { display: inline-block; margin-left: 10px; vertical-align: middle; }
.header .shares img { display: block; }
/* w1080：固定高度 116px，使用绝对定位实现垂直居中（兼容 quirks mode） */
.header .w1080 {
    width: 100%;
    max-width: 1600px;
    height: 116px;
    margin: 0 auto;
    padding: 0 4%;
    box-sizing: border-box; /* 否则 100% + 8% padding 会向右溢出约 100px，产生横向滚动条 */
    position: relative;
}

/* logo 左侧，垂直居中：top 50% + margin-top -31px（logo 高 61px） */
.header .logo {
    position: absolute;
    left: 4%;
    top: 50%;
    margin-top: -31px;
    float: none;
}
.header .logo a {
    display: block;
}
.header .logo img {
    display: block;
    border: 0;
}

/* header-r 右侧，垂直居中：top 50% + margin-top -35px（分享图标+搜索框约 71px） */
.header .header-r {
    position: absolute;
    right: 4%;
    top: 50%;
    margin-top: -35px;
    float: none;
}

/* 分享图标 */
.header .shares {
    display: block;
    margin-bottom: 10px;
    text-align: right;
}

/* 搜索框区域 */
.search.clear {
    clear: none;
    display: block;
    padding: 0;
}
.searchform {
    display: inline;
}
.searchform .siteSearch {
    display: flex;
    width: 220px;
    border: 1px solid #ced4da;
}
.searchform .siteSearch .keyword {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0.375rem 0.75rem;
    background-color: #F6F6F6;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    outline: none;
    float: none;
}
.searchform .siteSearch .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0.375rem 0.75rem;
    background-color: #f8f9fa;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    cursor: pointer;
    float: none;
}
/* ============================================
   topNav 导航栏 — 复刻 index.html 的 #header-wrap 视觉
   ============================================ */

/* #topNav：全宽蓝色背景 + 顶部边框（对应 index.html 的 #header-wrap） */
#topNav {
    background-color: #265ca3;
    border-top: 1px solid #5685c0;
    width: 100%;
}

/* #mainNav：居中限宽 1500px */
#mainNav.mainNav {
    max-width: 1500px;
    margin: 0 auto;
}

/* 桌面导航样式无条件生效（本站为桌面版复刻，去掉 992px 响应式断点，
   避免窗口较窄时导航塌成移动端竖排黑字样式） */
#mainNav.mainNav {
    display: flex;
    list-style: none;
    padding: 0;
}
#mainNav .li1 {
    flex: 1 1 auto;
    white-space: nowrap;
    position: relative;
    text-align: center;
}
#mainNav .h1, #mainNav .h2 { margin: 0; padding: 0; }
#mainNav .a1 {
    display: block;
    padding: 15px 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-decoration: none;
}
#mainNav .li1:not(:last-child) .a1 { position: relative; }
#mainNav .li1:not(:last-child) .a1::after {
    content: ""; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%); width: 1px; height: 18px;
    background: rgba(255,255,255,0.55);
}
#mainNav .li1.on1 > .h1 > .a1 {
    font-weight: 700;
}
#mainNav .ul1 {
    display: none;
    position: absolute;
    left: 0; top: 100%;
    width: 100%;
    background-color: #265ca3;
    list-style: none;
    margin: 0; padding: 0;
    z-index: 100;
    text-align: left;
}
#mainNav .li1:hover > .ul1 { display: block; }
#mainNav .li2 { border-top: 1px solid rgba(255,255,255,0.2); }
#mainNav .li2:first-child { border-top: none; }
#mainNav .a2 {
    display: block;
    padding: 11px 15px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
#mainNav .li2:hover > .h2 > .a2 {
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   小屏适配（≤820px）：头部 logo/搜索框改上下排，导航每行 2 项
   ============================================ */
@media (max-width: 820px) {
    .header .w1080 {
        height: auto;
        padding: 12px 4%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    .header .logo,
    .header .header-r {
        position: static;
        margin: 0;
    }
    .header .logo img { max-width: 220px; height: auto; }
    .searchform .siteSearch { width: 180px; }
    /* 导航 8 项每行 2 个，均分宽度 */
    #mainNav.mainNav { flex-wrap: wrap; }
    #mainNav .li1 { flex: 1 1 50%; }
    .focusBanner { height: 200px; }
}
/* ============================================
   banner 轮播 — 复刻 index.html 的 .focusBanner 视觉
   ============================================ */

.hide {
    display: none;
}

.banner {
    font-size: 0;
    line-height: 0;
    text-align: center;
}

.focusBanner {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1500px; /* 宽屏时与 mainCenter 一致封顶 1500px 并居中 */
    height: 350px;
    z-index: 2;
    margin: 0 auto;
    font-size: 0;
    line-height: 0;
}
.focusBanner .hd {
    margin: 0 auto;
    width: 100%;
}
.focusBanner .hd ul {
    position: absolute;
    bottom: 1rem;
    z-index: 3;
    width: 100%;
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.focusBanner .hd li {
    display: inline-block;
    overflow: hidden;
    width: 0.75rem;
    height: 0.75rem;
    line-height: 2.5rem;
    margin: 0 10px;
    font-size: 1rem;
    color: #b0252a;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #fff; /* 所有圆点默认白色实心 */
    transition: background 0.3s ease;
}
.focusBanner .hd li.on {
    background: transparent; /* 当前项：空心圆环 */
}
.focusBanner .bd {
    position: relative;
    z-index: 1;
}
.focusBanner .bd ul {
    list-style: none;
    margin: 0;
    padding: 0;
    /* 覆盖原站保存的内联 width:1897px，防止撑宽页面导致 banner 偏移/黑边 */
    width: 100% !important;
}
.focusBanner .bd li {
    position: relative;
    overflow: hidden;
    height: 350px;
    width: 100% !important;
    /* 内联 background 简写会把 size 重置为 auto，需 !important 才能压住，
       否则通栏后两侧露黑边 */
    background-size: cover !important;
}
.focusBanner .bd li .pic a {
    display: block;
    height: 350px;
}
.focusBanner .bd li .con {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3.125rem;
}
.focusBanner .bd li .con .title a {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 3.125rem;
    height: 3.125rem;
    font-size: 1.125rem;
    color: white;
    font-weight: bold;
}
.focusBanner .bd li .con .bg {
    display: none;
}
.focusBanner .prev,
.focusBanner .next {
    position: absolute;
    z-index: 9;
    top: 50%;
    margin-top: -25px;
    display: block;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.25);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.focusBanner .prev {
    left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
}
.focusBanner .next {
    right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}
.focusBanner .prev:hover,
.focusBanner .next:hover {
    background-color: rgba(0, 0, 0, 0.45);
}

/* 覆盖内联 style 中的相对图片路径为线上绝对路径 */
.focusBanner .bd li.li1 { background-image: url("https://xwcbxy.nnnu.edu.cn/images/111.png") !important; }
.focusBanner .bd li.li2 { background-image: url("https://xwcbxy.nnnu.edu.cn/images/2bddf835901e60a6b46167f40ec8eb08_720.png") !important; }
.focusBanner .bd li.li3 { background-image: url("https://xwcbxy.nnnu.edu.cn/images/3D1CC38B54AE8C800FF1D6C640FD455D.jpg") !important; }
.focusBanner .bd li.li4 { background-image: url("https://xwcbxy.nnnu.edu.cn/images/jiuyewonengxing6.png") !important; }
.focusBanner .bd li.li5 { background-image: url("https://xwcbxy.nnnu.edu.cn/images/sanyuesanzhonghuaminzugongtongtiyishi.jpg") !important; }
.focusBanner .bd li.li6 { background-image: url("https://xwcbxy.nnnu.edu.cn/images/EBC6B9F79847377BC50470BEDABD7FF7.jpg") !important; }

a {
    color: #000000;
    text-decoration: none;
}
a:hover {
    color: #222;
    font-weight: bold;
}
li {
    list-style: none;
}

/* —— 内容区域样式（.main 及其子块）统一由 new/index.css 负责，避免重复定义冲突 —— */