/* ==========================================================================
   jtjsWeb 公共样式（common.css）
   所有页面共用：基础重置、页头、导航栏、页脚、工具类、移动端适配
   需在 Bootstrap CSS 之后加载
   ========================================================================= */

/* ==========================================================================
   1. 基础重置与全局
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /*min-height: 100vh;*/
}

ul, li {
    list-style: none;
}

html {
    max-width: 1920px;
    margin: 0 auto;
    background-color: #ccc;
}

body {
    background-color: #fff;
    min-width: 1210px;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    vertical-align: baseline;
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: #858585;
}

a:hover {
    color: red;
    text-decoration: none;
}

/* 列表前缀图标 */
.dot-1 {
    padding-left: 10px;
    background: url(../images/dot_1.gif) no-repeat 3px center;
}

.box-1 {
    padding-left: 10px;
    background: url(../images/box_1.gif) no-repeat 3px center;
}

/* ==========================================================================
   2. 页头（Header）— 所有页面顶部一致
   ========================================================================== */
#myHeader {
    background-color: #B7DEF1;
    background-image: url('../images/logo_bg_new.png');
    color: #fff;
    background-repeat: no-repeat;
    background-position: center center;
    min-width: 1210px;
}

#myHeader > .topLogo {
    width: 1210px;
    height: 140px;
    margin: 0 auto;
    background-image: url('../images/logo.png');
    background-position: 0px 16px;
    background-repeat: no-repeat;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
}

#myHeader .logoLink {
    display: block;
    width: 678px;
    height: 70px;
    margin-top: 18px;
}

#myHeader .topLink {
    position: relative;
    text-align: center;
    max-width: 400px;
    margin-top: 5px;
}

/* 面包屑 */
#myHeader .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

#myHeader .breadcrumb-item a {
    color: #0062AD;
}

#myHeader .breadcrumb-item a:hover {
    color: #BF3333;
}

#myHeader .breadcrumb-item + .breadcrumb-item::before {
    content: "|";
    color: #0062AD;
}

/* 荣誉文字 */
.rongyu {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    color: #BF3030;
    line-height: 22px;
    letter-spacing: -1px;
}

/* ==========================================================================
    3. 导航栏（Navigation）- 所有页面导航一致
    ========================================================================== */
#menu-gzgs {
    width: 100%;
    min-width: 1210px;
    background-color: #0062AD;
    box-shadow: 0px 1px 2px #333;
    clear: both;
}

.navbar-gzgs {
    background-color: #0062AD;
    max-width: 1220px;
    margin: 0 auto;
    border-width: 0;
    border-radius: 0;
    padding: 0;
}

/* 导航水平排列 + 居中 */
.navbar-gzgs .navbar-nav {
    flex-direction: row;
    justify-content: center;
}

/* 导航链接样式 */
.navbar-gzgs .nav-link {
    color: #fff !important;
    font-size: 17px;
    padding: 17px 17px !important;
    transition: background-color 0.3s ease;
}

.navbar-gzgs .nav-link:hover, .navbar-gzgs .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 下拉菜单箭头 */
.navbar-gzgs .nav-item.dropdown > .dropdown-toggle::after {
    color: #fff;
    margin-left: 4px;
    vertical-align: middle;
}

/* 移动端：菜单按钮白色 + 右对齐 */
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    margin-left: auto;
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* 桌面端：鼠标悬停展开下拉 */
@media (min-width: 992px) {
    .navbar-gzgs .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar-expand-lg .navbar-collapse {
        justify-content: center !important;
    }
}

/* 移动端：下拉菜单展开后不被裁剪 */
@media (max-width: 767px) {
    .navbar-collapse {
        overflow: visible;
    }
    .navbar-gzgs .navbar-nav {
        flex-direction: column;
    }
    .navbar-gzgs .dropdown-menu {
        border: none;
        background: transparent;
        padding-left: 20px;
    }
    .navbar-gzgs .dropdown-menu .dropdown-item {
        color: #fff;
        padding: 8px 16px;
        white-space: normal;
    }
    .navbar-gzgs .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255,255,255,0.15);
    }
}

/* 下拉菜单 */
.dropdown-menu > li > a {
    font-size: 16px;
    line-height: 1.5em;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background-color: #E8F2FE;
    color: #0062AD;
}

.my-dropdown-menu {
    min-width: 180px !important;
}

/* ==========================================================================
   4. 页脚（Footer）— 所有页面底部一致
   ========================================================================== */
#footer {
    width: 100%;
    background-color: #0062AD;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    clear: both;
}

#footer .row {
    width: 1120px;
    margin: 0 auto;
    padding: 40px 0 30px 0;
}

#footer ul {
    width: 100%;
}

#footer ul li {
    list-style: none;
    font-size: 14px;
    color: #fff;
    line-height: 25px;
    text-align: left;
}

#footer a {
    color: #fff;
}

#footer a:hover {
    color: red;
}

#footer .row .col-12 {
    text-align: right;
}

/* ==========================================================================
   5. 工具类
   ========================================================================== */
/* 文本溢出省略号 */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 缩略图样式 */
.img-thumbnail {
    padding: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ==========================================================================
   6. 移动端适配 — 公共部分（header / nav / footer）
   ========================================================================== */
@media (max-width: 767px) {
    body {
        min-width: auto;
    }

    /* 页头 */
    #myHeader {
        min-width: auto;
        background-position: left top;
    }

    #myHeader > .topLogo {
        width: auto;
        height: 70px;
        background-image: url('../images/logo_s.png');
        background-position: 0px 12px;
    }

    #myHeader .logoLink {
        width: 320px;
        height: 50px;
        margin-top: 10px;
    }

    #myHeader .topLink {
        display: none;
    }

    .rongyu {
        display: none;
    }

    /* 导航 */
    #menu-gzgs {
        min-width: auto;
    }

    /* 页脚 */
    #footer {
        overflow-x: hidden;
    }
    #footer .row {
        width: 100%;
        padding: 10px 0 60px 0;
    }

    #footer ul li {
        font-size: 14px;
        line-height: 20px;
    }

    #footer .col-12, #footer .col-6 {
        text-align: center;
    }
}

/* ==========================================================================
   文章正文（全站）：图片自适应，避免撑破容器
   ========================================================================== */
.article-content img,
.timeline-content img,
.postStyle img,
.postCont img {
    max-width: 100%;
    height: auto;
}


