/* ---------- 重置与基础 ---------- */

.zmhd * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.zmhd {
    max-width: 100%;
    font-family: "Microsoft YaHei", sans-serif;
    overflow: hidden;
}

.zmhd li {
    list-style: none;
}

.zmhd a {
    text-decoration: none;
    color: #222;
}

.zmhd img {
    border: 0;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

/* 容器 */
.zmhd .w100 {
    width: 100%;
    float: left;
}

.zmhd .w1200 {
    width: 1200px;
    max-width: 95%;
    margin: 0 auto;
}

.zmhd .f1 {
    margin-top: 45px;
}

/* ---------- 卡片区域 (flex网格) ---------- */
.zmhd .cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

/* 县长信箱特殊卡片 */
.zmhd .cards-grid .hd1 {
    min-width: 50%;
    height: 340px;
    padding-top: 24px;
    background: url(../images/zmhd/hd1.jpg) no-repeat center;
    background-size: auto 100%;
    padding: 20px;
}

.zmhd .cards-grid .hd1 h2 {
    text-align: center;
    color: #fff;
}

.zmhd .cards-grid .hd2 {
    background: url(../images/zmhd/hd2.jpg) no-repeat center;
    background-size: cover;
}

.zmhd .cards-grid ul {
    display: flex;
    flex: 1;
    gap: 13px;
    flex-wrap: wrap;
}
.main-t-28{
    margin-top: 28px;
}
.zmhd .cards-grid ul li {
    list-style: none;
    height: 47%;
    width: 48%;
    position: relative;
}

.zmhd .cards-grid .hd3 {
    background: url(../images/zmhd/hd3.jpg) no-repeat center;
    background-size: cover;
}

.zmhd .cards-grid .hd4 {
    background: url(../images/zmhd/hd4.jpg) no-repeat center;
    background-size: cover;
}

.zmhd .cards-grid .hd5 {
    background: url(../images/zmhd/hd5.jpg) no-repeat center;
    background-size: cover;
}

.zmhd .cards-grid li h2 {
    font-size: 24px;
    line-height: 60px;
    color: #fff;
    text-align: left;
    font-weight: bold;
    padding-left: 20px;
}

.zmhd .cards-grid li p {
    text-align: right;
    margin-top: 18px;
    display: inline-block;
    position: absolute;
    right: 14px;
}

.zmhd .cards-grid li p a {
    display: inline-block;
    padding: 0 30px;
    font-size: 18px;
    line-height: 50px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 25px;
}

/* 县长信箱内部布局 */
.zmhd .hd1 .xzxx {
    float: left;
    width: 60%;
    max-width: 270px;
}

.zmhd .hd1 .xzxx h3 {
    font-size: 24px;
    line-height: 40px;
    color: #fff;
}

.zmhd .hd1 .xzxx .nr {
    width: 100%;
    float: left;
    padding: 10px 0;
}

.zmhd .hd1 .cx {
    float: right;
    width: 35%;
    max-width: 196px;
    margin-top: 45px;
}

.zmhd .hd1 .cx a {
    display: block;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 50px;
    color: #3c6a98;
    text-align: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 25px;
}

/* 卡片内按钮颜色 */
.zmhd .hd2 p a {
    color: #b68022;
}

.zmhd .hd3 p a {
    color: #ed6950;
}

.zmhd .hd4 p a {
    color: #259880;
}

.zmhd .hd5 p a {
    color: #00a2b7;
}

/* 县长信箱信件列表 */
.zmhd .letter-list {
    width: 100%;
}

.zmhd .letter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.zmhd .letter-item a {
    color: #fff;
    font-size: 17px;
    line-height: 35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zmhd .letter-item a:hover {
    color: #23dde9;
}

/* ---------- 内容区域 ---------- */
.zmhd .nr {
    width: 100%;
    float: left;
    padding: 10px 0;
}

/* 最新访谈卡片 */
.zmhd .interview-card {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 30px 30px;
    border-bottom: 1px solid #d6d6d6;
    margin-bottom: 20px;
}

.zmhd .interview-card .img-col {
    flex: 0 0 300px;
    max-width: 100%;
}

.zmhd .interview-card .text-col {
    flex: 1;
}

.zmhd .interview-card .text-col h2 {
    font-size: 18px;
    line-height: 45px;
}

.zmhd .interview-card .text-col h5 {
    font-size: 18px;
    line-height: 45px;
    font-weight: normal;
    display: inline;
}

.zmhd .interview-card .text-col p {
    font-size: 17px;
    line-height: 45px;
    color: #444;
    margin-left: 5px;
    display: inline;
}

.zmhd .interview-card .text-col p:hover {
    color: #004564;
}

/* 列表项通用样式 (圆点+标题+日期) */
.zmhd .news-list {
    width: 100%;
    min-height: 520px;
}

.zmhd .news-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid #eaeef2;
}

.zmhd .news-dot {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    background: #004564;
    border-radius: 50%;
    margin: 0 10px;
}

.zmhd .news-title {
    flex: 1;
    font-size: 18px;
    line-height: 60px;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zmhd .news-title:hover {
    color: #004564;
}

.zmhd .news-date {
    flex-shrink: 0;
    font-size: 16px;
    color: #777;
    white-space: nowrap;
    margin-left: 15px;
}

/* 双列列表 */
.zmhd .two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    width: 100%;
}
/* ==================== 移动端适配（政民互动页） ==================== */
@media (max-width: 768px) {
    /* 强制消除全局横向滚动 */
    html, body {
        overflow-x: hidden !important;
    }
    body {
        min-width: 100% !important;   /* 覆盖 common.css 中可能的 1300px */
    }

    /* 所有元素不越界 */
    .zmhd, .zmhd * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 容器自适应 */
    .zmhd .w100 {
        float: none !important;
        width: 100% !important;
    }
    .zmhd .w1200 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 卡片网格纵向 */
    .zmhd .cards-grid {
        flex-direction: column;
        gap: 15px;
    }
    .zmhd .cards-grid .hd1 {
        min-width: 100% !important;
        width: 100% !important;
        height: auto;
        background-size: cover;
        padding: 20px 15px;
                background: #3c9bbd !important;
    }

    /* 右侧四个小卡片容器：取消 flex:1，强制 100% 宽 */
    .zmhd .cards-grid ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        flex: none !important;        /* 防止弹性宽度溢出 */
        width: 100% !important;
    }
    .zmhd .cards-grid ul li {
        width: 48% !important;
        height: auto;
        min-height: 120px;
        margin-bottom: 10px;
        position: relative;
    }

    .zmhd .cards-grid li h2 {
        font-size: 18px;
        line-height: 40px;
        padding-left: 10px;
    }
    .zmhd .cards-grid li p {
        position: absolute;
        bottom: 15px;
        right: 10px;
        margin-top: 0;
    }
    .zmhd .cards-grid li p a {
        font-size: 15px;
        line-height: 36px;
        padding: 0 20px;
    }

    /* 县长信箱内部布局 */
    .zmhd .hd1 .xzxx {
        float: none;
        width: 100% !important;
        max-width: 100% !important;
    }
    .zmhd .hd1 .cx {
        float: none;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px;
        display: flex;
        gap: 15px;
    }
    .zmhd .hd1 .cx a {
        flex: 1;
        margin-bottom: 0;
        font-size: 16px;
        line-height: 44px;
    }

    /* 选项卡横向滑动 */
    .zmhd .tabbt {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
    }
    .zmhd .tabbt li {
        flex-shrink: 0;
        margin-right: 20px;
        white-space: nowrap;
    }
    .zmhd .tabbt li a {
        line-height: 38px;
        font-size: 15px;
    }

    /* 访谈卡片 */
    .zmhd .interview-card {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px 15px;
    }
    .zmhd .interview-card .img-col {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
    /* 关键：覆盖图片可能存在的固定宽度（如 width="300" 属性） */
    .zmhd .interview-card .img-col img {
        width: 100% !important;
        height: auto !important;
    }
    .zmhd .interview-card .text-col h2 {
        font-size: 16px;
        line-height: 30px;
    }
    .zmhd .interview-card .text-col h5,
    .zmhd .interview-card .text-col p {
        font-size: 15px;
        line-height: 28px;
    }

    /* 双列列表变单列 */
    .zmhd .two-column-list {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    /* 新闻条目 */
    .zmhd .news-item {
        padding: 8px 0;
        border-bottom: 1px dashed #ddd;
    }
    .zmhd .news-dot {
        display: none;
    }
    .zmhd .news-title {
        font-size: 15px;
        line-height: 36px;
    }
    .zmhd .news-date {
        font-size: 13px;
        margin-left: 12px;
    }

    /* 通用图片防溢出 */
    .zmhd img {
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .zmhd .cards-grid ul li {
        width: 100% !important;
    }
    .zmhd .hd1 .cx {
        flex-direction: column;
        gap: 10px;
    }
    .zmhd .tabbt li a {
        font-size: 14px;
        line-height: 34px;
    }
    .zmhd .news-title {
        font-size: 14px;
    }
}