/* ===== 党建工作二级页面样式 ===== */
body {
    background-color: #fff;
    color: #444;
    font-size: 14px;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.wrapper {
    width: min(1190px, calc(100% - 24px));
    margin: 10px auto;
}

/* 顶部通栏 banner */
.sub-banner {
    width: 100%;
    height: 123px;
}

.sub-banner img {
    display: block;
    width: 100%;
    height: 123px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-top: 10px;
    margin-bottom: 10px;
    height: 30px;
    border: 1px solid #eaeaea;
    color: #000000;
    line-height: 30px;
    font-size: 20px;
    text-indent: 25px;
    background-color: #fff;
}

.breadcrumb p {
    margin: 0;
}

.breadcrumb a {
    color: #111111;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff3300;
}

/* 栏目标题（红色左边框） */
.sec-title {
    margin: 8px 10px 8px 0;
}

.sec-title h2 {
    margin: 0;
    border-left: 4px solid #C81B02;
    padding-left: 10px;
    font-size: 21px;
    font-weight: bold;
    color: #666666;
    line-height: 1.4;
}

/* 头条标题（时政要闻下方居中大标题） */
.headline {
    margin: 10px 0;
    text-align: center;
}

.headline a {
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 26px;
    color: #C71B08;
    line-height: 40px;
}

/* 图文新闻行：左图右列表 / 左列表右图 */
.news-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: min(1190px, calc(100% - 24px));
    height:400px;
}

.news-pic {
    width: 475px;
    min-width: 0;
}

.news-pic img {
    display: block;
    width: 100%;
    min-width: 0;
    height: 250px;
    object-fit: cover;
}

.news-pic .focus-caption {
    width: 100%;
    height: 42px;
    background: #213B78;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.news-pic .focus-caption a {
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    font-family: "微软雅黑";
    text-decoration: none;
    padding-left: 23px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list {
    flex: 1 1 660px;
    min-width: 0;
    background: #fff;
}

.news-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    line-height: 24px;
}

.news-list li a {
    cursor: pointer;
    flex: 1;
    min-width: 0;
    color: #4A4E4F;
    font-size: 16px;
    font-family: "Microsoft Yahei";
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.news-list li a:hover {
    color: #b8030b;
    font-weight: bold;
}

.news-list li span {
    min-width: 75px;
    flex-shrink: 0;
    font-size: 14px;
    color: #999999;
    text-align: right;
}

.news-list .more {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #313131;
    text-decoration: none;
    margin-right: 10px;
    line-height: 24px;
}

.news-list .more:hover {
    color: #b8030b;
}

/* 中心党建工作动态 + 专题教育 */
.two-col {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dynamic {
    flex: 1 1 774px;
    min-width: 0;
    background: #fff;
}

.dynamic .dynamic-body {
    padding: 10px 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    padding-bottom: 5px;
}

.feature .thumb {
    min-width: 229px;
    height: 147px;
    background: #e9e9e9;
    margin-right: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5b5b5;
    font-size: 14px;
}

.feature a {
    cursor: pointer;
    flex: 1;
    text-decoration: none;
}

.feature h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    line-height: 1.6;
}

.feature a:hover h3 {
    color: #b8030b;
}

.dynamic-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dynamic-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    line-height: 24px;
}

.dynamic-list li a {
    cursor: pointer;
    flex: 1;
    min-width: 0;
    color: #000000;
    font-size: 16px;
    font-family: "Microsoft Yahei";
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.dynamic-list li a:hover {
    color: #b8030b;
    font-weight: bold;
}

.dynamic-list li span {
    width: 75px;
    flex-shrink: 0;
    font-size: 14px;
    color: #999999;
    text-align: right;
}

.ztjy {
    flex: 0 1 368px;
    min-width: 0;
    background: #fff;
}

.ztjy-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ztjy-list li {
    margin-top: 10px;
}

.ztjy-list li a {
    cursor: pointer;
    display: block;
    color: #0f0f0f;
    text-decoration: none;
}

.ztjy-list li img {
    display: block;
    width: 368px;
    max-width: 100%;
    height: auto;
}

/* 在线学习 + 专题教育栏目网格 */
.study {
    margin-top: 10px;
    width: min(1190px, calc(100% - 24px));
    height: 427px;
    background: url('../images/platefour_bg.png') no-repeat left top;
    display: flex;
    justify-content: space-between;
}

.study .onlineLeft {
    min-width: 185px;
    height: 427px;
    display: block;
    flex-shrink: 0;
}

.study .study-grid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding-top: 5px;
}

.study .study-item {
    width: 50%;
    display: flex;
    align-items: center;
    padding: 10px 5px 5px 0;
    box-sizing: border-box;
}

.study .study-item img {
    width: 139px;
    min-width: 0;
    height: 88px;
    flex-shrink: 0;
    margin-right: 25px;
}

.study .study-text {
    flex: 1;
}

.study .study-text a {
    display: block;
    cursor: pointer;
    color: #000000;
    letter-spacing: 1px;
    text-decoration: none;
}

.study .study-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
}

.study .study-text p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    padding-top: 5px;
}

/* 友情链接 */
.links {
    margin-top: 10px;
    height: 88px;
    padding: 10px 0;
    background: #fff;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.links .outlink {
    width: 223px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.links .outlink+.outlink {
    margin-left: 18px;
}

.links .outlink img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ================= 缩放适配：窄屏时各板块上下堆叠 ================= */
@media (max-width: 768px) {
    .news-row,
    .two-col,
    .study,
    .links {
        flex-wrap: wrap;
    }

    .news-pic,
    .news-list,
    .dynamic,
    .ztjy {
        width: 100%;
        flex: 1 1 100%;
    }

    .news-pic {
        margin-bottom: 10px;
    }

    .news-pic img {
        height: auto;
    }

    .ztjy {
        margin-top: 10px;
    }

    /* 覆盖内联固定高度，保持图片比例 */
    .ztjy-list li img {
        width: 100%;
        height: auto !important;
    }

    .study {
        height: auto;
        background-size: 100% 100%;
    }

    .study .onlineLeft {
        display: none;
    }

    .study .study-grid {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

    .study .study-item {
        width: 100%;
    }

    .links {
        height: auto;
        justify-content: space-between;
    }

    .links .outlink {
        width: 48%;
        margin-top: 10px;
    }

    .links .outlink+.outlink {
        margin-left: 0;
    }
}