/* ============================================================================
 * 雄安政务服务网首页 —— IE10 / IE11 样式兼容补丁
 * 引入位置：必须放在 indexSy.css 之后（越靠后越好，保证覆盖优先级）
 *   <link rel="stylesheet" href=".../images/ie-compat.css" charset="utf-8">
 *
 * 说明：布局类覆盖全部包在 @media (min-width: 769px) 里，避免影响 indexSy.css
 *      末尾的移动端@media(768)分支——本文件加载在后面，同权重会覆盖手机端规则。
 *
 * 对应四类问题：
 *   1) 热门服务三列 → 原样式用 display:grid + gap，IE 完全不支持
 *   2) 每月推荐月份格 3 列 → 原样式用 flex gap，IE11 及以下不支持 gap
 *   3) 各区块横向排列 → IE10 只认 -ms-flexbox / -ms-flex-*，这里补齐前缀
 *   4) 细节 → object-fit 图片变形、8 位色值(#RRGGBBAA)失效、-webkit-line-clamp 失效
 * ========================================================================== */

@media screen and (min-width: 769px) {

/* -------------------------------------------------------------------------
 * 1. 常用办事 · 热门服务（原：display:grid + grid-template-columns:repeat(3,174px) + gap）
 *    IE 下 grid 声明被丢弃，li 退化成块级元素竖着堆 → 改用 flex 三列
 * ---------------------------------------------------------------------- */
.hotRightBox ul {
    display: -ms-flexbox;          /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap;           /* IE10 */
    flex-wrap: wrap;
    -ms-flex-pack: justify;        /* IE10 对应 justify-content: space-between */
    justify-content: space-between;
}
.hotRightBox ul li {
    -ms-flex: 0 0 174px;           /* IE10 不识别 flex 简写 */
    flex: 0 0 174px;
    width: 174px;
    margin: 0 0 20px 0;
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * 2. 每月推荐 · 月份宫格（原：flex gap:10px + width: calc(33.33% - 7px)）
 *    IE11 及以下不支持 flex 的 gap，块与块贴在一起 → 改 margin + 32%
 * ---------------------------------------------------------------------- */
.month-list {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.month-list li {
    float: left;
    width: 90px !important;     /* 90×3 + 10×2 = 290，正好铺满 */
    height: 70px;
    margin: 0 0 20px 0;
    box-sizing: border-box;     /* 激活态的 1px 边框不再撑宽 */
}
.month-list li:nth-child(3n)     { margin-right: 0; }  /* 每行第3个不留右边距 */
.month-list li:nth-child(3n + 1) { clear: left; }      /* 第4个强制换行 */

/* -------------------------------------------------------------------------
 * 3. IE10 弹性布局前缀补齐（IE10 只支持 -ms-flexbox，不认 display:flex）
 *    写法：先 -ms- 前缀，再标准属性；IE11/Chrome 取标准属性，IE10 取前缀
 * ---------------------------------------------------------------------- */

/* 3.1 公示公告条 */
.xAoneNews {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* 3.2 热门办事（左图 + 右九宫） */
.hotBanshi {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.hotRightBox h1 {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* 3.3 按人生事 / 按企业生命周期 */
.gfrTitle ul {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: start;
    justify-content: flex-start;
}
.gfrList .active {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.fwListLeft ul {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.fwListRight > ul {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
}
.fwListRight > ul > li ul {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-line-pack: justify;
    align-content: space-between;
}
.sxPageFanye {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
}

/* 3.4 高效办成一件事 */
.xAThreeHead {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: end;
    align-items: flex-end;
}
.xAThreeSwitch {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: center;
    align-items: center;
}
.xAThreeBoxTitle {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.xAThreeBoxList > div.active {
    display: -ms-flexbox;
    display: flex;
}
.xAThreeListpage {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.threeListRight ul {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.threeListRight ul li {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* 3.5 每月推荐（左月历 + 右内容） */
.xAmainFour h1 {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: end;
    align-items: flex-end;
}
.xAfourBox {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.xAfourLeft {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.xAfourTop {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: center;
    align-items: center;
}
.month-block {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.title-block {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
}
.focusBox {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}
.rightBottom {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.rightBottom li {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* 3.6 专题专栏标题、底部横幅 */
h1.xAbkTitle {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: end;
    align-items: flex-end;
}
.xAfive ul {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* 3.7 维护公告弹窗 */
.modal-overlay {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
}

/* -------------------------------------------------------------------------
 * 4.1 IE 无 object-fit：按高度铺满 + 水平居中裁切，避免图片被拉扁
 * ---------------------------------------------------------------------- */
.rightBottom li img {
    height: 152px;
    width: auto;
    min-width: 270px;
    position: relative;
    left: 50%;
    margin-left: -50%;   /* 相对 li(270px) 的 -50%，实现居中裁切 */
}

/* 4.4 .focusTitle 在 IE 下没有 flex:1，标题会被挤成很窄一列 */
.focusTitle {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

} /* ===== @media min-width:769px 结束 ===== */

/* -------------------------------------------------------------------------
 * 4.2 8 位十六进制色值（#RRGGBBAA）IE 不认，改用 rgba
 * ---------------------------------------------------------------------- */
.fwListLeft {
    box-shadow: 6px 0 25px rgba(128, 128, 128, 0.08);
}
.fwListRight > ul > li {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}
.month-list li.active {
    background: rgba(68, 147, 245, 0.125);
    border-color: #4493F5;
}
.month-list li:not(.active):hover {
    background: rgba(68, 147, 245, 0.125);
    border-color: #4493F5;
}

/* -------------------------------------------------------------------------
 * 4.3 IE 无 -webkit-line-clamp：用固定行高 + 裁切，保持两行视觉
 * ---------------------------------------------------------------------- */
.focusTitle {
    display: block;
    max-height: 3.2em;      /* 2 行 × line-height 1.6 */
    overflow: hidden;
}