/* XFWS index page */
.xfws-platforms {
    width: 100%;
    height: 68px;
    padding: 9px 0 0 0;
    background: #f0f0f0;
    zoom: 1;
}

.xfws-platforms_inner {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
}

/* 站点平台入口项 */
.xfws-platforms_item {
    display: block;
    float: left;
    height: 50px;
    padding: 8px 35px;
    border: 1px solid transparent;
    color: #555;
    font-size: 12px;
    white-space: nowrap;
}

.xfws-platforms_item:not(:last-of-type) {
    border-right-color: #ddd;
}

.xfws-platforms_item:nth-child(1) { width: 16.5%; }
.xfws-platforms_item:nth-child(2) { width: 15.25%; }
.xfws-platforms_item:nth-child(3) { width: 17.5%; }
.xfws-platforms_item:nth-child(4) { width: 14.583333%; }
.xfws-platforms_item:nth-child(5) { width: 14.583333%; }

.xfws-platforms_item:hover {
    background: #fff8f8;
    color: #e52d25;
    text-decoration: none;
    box-shadow: 0 0 5px #ffd1d1;
    border-radius: 5px;
}

.xfws-platforms_icon {
    display: block;
    float: left;
    width: 33px;
    height: 33px;
}

.xfws-platforms_text {
    display: block;
    margin: 0 0 0 7px;
    line-height: 16px;
    text-align: center;
}

/* 平台下拉选择器 */
.xfws-platforms_selector {
    display: block;
    position: relative;
    float: left;
    width: 170px;
    height: 45px;
    margin: 2px 0 0 40px;
    padding: 7px 20px;
    border: 1px solid #f2b6b1;
    border-radius: 8px;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.xfws-platforms_selectorText {
    display: block;
    float: left;
    margin: 7px 0 0 5px;
    line-height: 1;
}

.xfws-platforms_selectorIcon {
    display: block;
    float: left;
    width: 17px;
    height: 17px;
    margin: 7px 0 0 7px;
}

.xfws-platforms_selector:hover {
    border-color: #f2b6b1;
    background: #fffafa;
    color: #e52d25;
    text-decoration: none;
}

.xfws-platforms_selectorMenu {
    display: none;
    position: absolute;
    top: 44px;
    right: -18px;
    z-index: 200;
    width: 200px;
    padding: 10px 5px;
    border: 1px solid #e6d8d8;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
}

.xfws-platforms_selector:hover .xfws-platforms_selectorMenu,
.xfws-platforms_selector:focus .xfws-platforms_selectorMenu,
.xfws-platforms_selectorMenu:hover {
    display: block;
}

.xfws-platforms_selectorMenu a {
    display: block;
    float: none;
    width: 100%;
    height: 29px;
    padding: 0 5px;
    border: 0;
    color: #555;
    font-size: 13px;
    line-height: 29px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.xfws-platforms_selectorMenu a:hover,
.xfws-platforms_selectorMenu a.active {
    color: #fff;
    background: #f52b25;
    text-decoration: none;
}

.xfws-index {
    width: 1200px;
    padding: 30px 0 54px;
}

/* ⚠️ 2026-10-18 布局修复（重做，基于早上基线 20260922b）。

   ⚠️⚠️ **关键前提（第一次改错就在这）**：`.xfws-index_filters` 下有 **3 个**直接子元素，
   不是 2个：
     ① .xfws-index_filterGroup--topic  —— 顶部**横幅专题区**（860px，横向一排），
        它是独立的展示行，**不参与下面三栏**
     ② .xfws-index_filterMain          —— 筛选框（内含 左推荐专题 + 中筛选区）
     ③ .xfws-index_yearPanel           —— 右栏年度面板（filterMain 的**兄弟**节点）
   实测基线 bug：②右界 1393、③左界 1411 ⇒ **年度面板整块悬空在筛选框右侧外面**。

   改法（**DOM 完全不动**）：
     · filters 改 grid：**专题区独占第一行**（1×1200），下面两栏（1fr / 142px）
     · filterMain 内部再 grid 分「左 116px + 中 1fr」
     · 去掉各处写死高度，交给 stretch

   ⚠️ JS 只在 .xfws-index_filters 上做**事件委托**（xfws-index.js:307/444），
     不依赖任何布局类名 ⇒ 改布局不影响筛选交互。 */
.xfws-index_filters {
    display: grid;
    /* 第 1 行 = 专题横幅（整行）；第 2 行 = 筛选框 + 年度面板 */
    grid-template-columns: 1fr 142px;
    /* ⚠️ 18px = 早上基线的原始间距（实测 filterMain 右界 1393、yearPanel 左界 1411）。
       改成 grid 时列间距默认 0，会让两者贴在一起、老哥要求"和修改前一样中间要有空隙"。 */
    column-gap: 18px;
    align-items: stretch;
    width: 1200px;
}

/* 顶部横幅专题区：跨两列，独占一行。
   ⚠️ 跨列元素**不含** column-gap（gap 只在列轨道之间），
   所以它天然就是满 1200，与基线一致，无需补偿。 */
/* 顶部横幅专题区：跨两列，独占一行。
   ⚠️ 2026-10-18 老哥要求「4 个专题图标按区域布满、图标间保持间隙」。
   实测原状：区域 1200 宽、图标总宽仅 738 ⇒ **右侧空 380px**；
   4 图标间隙全为 0（挤在一起）；左边距 82px 来自通用 filterGroup 的
   `padding: 0 0 0 82px`（那是给「来源/类别」等**左侧带标签**的组预留的，
   专题横幅没有标签 ⇒ 必须清零，否则整体右移 82px 留白）。
   ⚠️ 跨列元素**不含** column-gap（gap 只在列轨道之间）⇒ 天然满 1200。
   ⚠️ 轮播能力保留：只去掉固定宽，overflow 仍在；图标铺满时无需滚动，
      将来图标变多超过一行仍可滚。 */
/* ⚠️ .xfws-index_filterGroup--topic 的规则见文件后面的「专题横幅铺满」一节
   —— 必须放在通用 .xfws-index_filterGroup 之后才能覆盖它的 padding-left:82px。 */

.xfws-index_filterMain {
    /* 筛选框：第 2 行第 1 列 */
    grid-column: 1;
    display: grid;
    grid-template-columns: 116px 1fr;
    /* ⚠️ 必须是 stretch（不是 start）：start 会让左栏推荐专题塌成内容高 43px，
       与中栏 348px 严重不齐 ⇒ 三栏对不齐。 */
    align-items: stretch;
    column-gap: 20px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    padding: 25px 20px 20px 10px;
    font-size: 14px;
    border: 1px solid #f1e8e7;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(180, 63, 49, .12);
    background: #fff2ed url("../../img/xfws/xfws-index-filterbg.jpg") 0 0 no-repeat;
}

/* 左栏：4 个推荐专题入口（grid 第 1 列，固定 116px）。
   ⚠️ 高度改为**纵向 flex 等分**，4 块底部与中栏筛选区对齐，
   不再各写 height:105px（原 4×105+3×9=447，比中栏 348 高 99px）。 */
.xfws-index_recommendList {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 116px;
    min-height: 0;
}

.xfws-index_recommendItem {
    display: block;
    /* ⚠️ flex:1 等分栏高；不给 min-height，否则内容把高度撑死、stretch 失效 */
    flex: 1 1 0;
    width: 116px;
    height: auto;
    margin-bottom: 9px;
    overflow: hidden;
    background: #fa5756;
    border: 2px solid transparent;
    border-radius: 6px;
}

.xfws-index_recommendItem--featured {
    background: #fa794e;
}

.xfws-index_recommendItem--award {
    background: #fa6461;
}

.xfws-index_recommendItem--exchange {
    margin-bottom: 0;
    background: #ffa258;
}

.xfws-index_recommendItem--active {
    border-color: #fff4df;
    box-shadow: 0 0 0 2px #ef3d36;
}

/* ⚠️ 2026-10-18：父级改为 flex 等分后高度会变，链接改 flex 居中（去掉固定 height:101px，
   否则文字偏上）。**但必须 flex-direction:column**——
   文字结构是「安徽党员」+ 内层 `<div>大课堂</div>`，默认的 row 会把它们**排成左右**，
   老哥要求保留原先的上下两行显示方式。 */
.xfws-index_recommendLink {
    display: flex;
    /* ⚠️ 关键：column = 上下两行（老版视觉）；row 会变成左右并排 ❌ */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 100%;
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

/* ⚠️ 内层 div（大课堂/ 月度提示 等）是**块级文字**，
   宽度撑满父级才能正常换行；不设的话 flex 子项会被压窄导致「左右拆字」。 */
.xfws-index_recommendLink > div {
    width: 100%;
}

.xfws-index_recommendLink:hover {
    color: #fff;
    text-decoration: none;
}

/* 中栏：来源/类别/内容等筛选组（grid 第 2 列）。
   ⚠️ 原 float:right 会与外层 flex 抢位，改为纯 grid item。 */
.xfws-index_filterGroups {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

/* ⚠️ .xfws-index_filterGroup 的 flex 布局规则见下方「标签对齐」一节，
   此处只保留 border-radius，避免两处定义打架。 */
.xfws-index_filterGroup {
    border-radius: 10px;
}

.xfws-index_filterGroup--source {
    min-height: 88px;
}

.xfws-index_filterGroup--type {
    min-height: 76px;
}

/* 顶部横幅专题区：跨两列，独占一行 + 图标铺满整行。
   ⚠️⚠️ **必须放在通用 `.xfws-index_filterGroup` 之后**（同特异性时后者胜）：
       通用规则有 `padding: 0 0 0 82px`（给「来源/类别」等**左侧带标签**的组预留），
       若本规则写在它之前，padding 会被覆盖回 82px（实测列表左界由 353 变 435）。
       专题横幅**没有左侧标签**，这 82px 必须清零，否则整体右移留白。
   ⚠️ grid-column 依赖外层 .xfws-index_filters 的 grid 上下文，
      位置无关（不同选择器不冲突），放这里只为保证 padding 生效。 */
.xfws-index_filterGroup--topic {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
    padding: 0;
    min-height: 90px;
    margin-bottom: 0;
}

/* ⚠️ 2026-10-18 老哥反馈「类别和内容没和来源对齐，栏目也要对齐」。
   原写法 `top:50% + margin-top:-34px`：-34 是**写死的 magic number**，
   三组各自高度不同（来源 92 / 类别 107 / 内容 83），
   50% 算出的基线各不相同 ⇒ 三个标签的垂直位置互不对齐（实测中心Y534.5 / 656.5 / 773.5）。
   ⇒ 改为 flex 居中，**不再依赖高度差**：
     · .filterGroup 变 flex（标签 + 内容并排）
     · .filterLabel 去掉 absolute/top/left/margin-top，改用 align-self:center
   ⚠️ 横向位置保持不变（left:10px、width:56px、内容 padding-left:66px），
      这样标签列与内容列的相对关系和原设计一致。 */
.xfws-index_filterGroup {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 22px;
    /* ⚠️ 原 padding-left:82px 是给标签预留的；但 .filterLabel 有 left:10px + width:56px
       ⇒ 内容真正起点是 82。改用 flex 后标签在流内，统一 66px（10+56）更紧凑。 */
    padding: 0;
}

.xfws-index_filterLabel {
    flex: 0 0 56px;
    width: 56px;
    margin: 0 10px 0 10px;
    text-align: center;
    /* ⚠️ 原来写死 margin-left:10px，这里改为 margin 简写实现同样的左偏移 */
}

/* ⚠️ 内容/来源/类别各组的列表统一从标签右侧开始。
   「内容」组多一层 slider>sliderViewport，若不归一会左界差 18px（实测 582 vs 600）。 */
.xfws-index_filterGroup > .xfws-index_filterList,
.xfws-index_filterGroup > .xfws-index_slider {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.xfws-index_filterIcon {
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 3px;
    color: #fff;
    border-radius: 50%;
    line-height: 52px;
    background-image: url("../../img/xfws/xfws-index-filter.png");
}
.xfws-index_filterIcon--source {
    background-position: 0 0;
}
.xfws-index_filterIcon--type {
    background-position: -52px 0;
}

.xfws-index_filterIcon--content {
    background-position: -104px 0;
}

.xfws-index_filterIcon--topic {
    background-position: -156px 0;
}

.xfws-index_filterName {
    display: block;
    color: #555;
    line-height: 20px;
}

.xfws-index_filterList {
    position: relative;
    left: 0;
}

.xfws-index_filterItem {
    display: block;
    float: left;
}

.xfws-index_sourceList {
    padding: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 13px rgba(255, 24, 67, 0.06);
}

.xfws-index_sourceList .xfws-index_filterItem {
    width: 11.1111%;
}

.xfws-index_sourceList .xfws-index_filterItem a {
    display: block;
    height: 28px;
    overflow: hidden;
    color: #444;
    border-radius: 10px;
    line-height: 28px;
    text-align: center;
    white-space: nowrap;
}

.xfws-index_sourceList .xfws-index_filterItem a:hover,
.xfws-index_sourceList .xfws-index_filterItem--active a {
    color: #fff;
    background: #f25048;
    text-decoration: none;
}

.xfws-index_slider {
    position: relative;
    /* ⚠️ 原 width:778px 是**旧三栏宽度**算出的定值。
       2026-10-18 老哥要求专题图标「按区域布满」⇒ 改为跟随父级宽度。
       ⚠️ 该定值也是「内容卡片」那行溢出压到年度栏的根源（详见 contentList 注释）。 */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ⚠️ 2026-10-18 老哥反馈「类别的高度恢复前一版；类别和内容的栏目要在区域平均布满，
   现在右侧空的太多」。
   两处改动：
   ① **恢复 padding:18px**（前一版被我误删，导致组高从 107 掉到 81）。
      box-sizing:content-box 让 padding 向外扩、内容起点仍在 594 与来源对齐。
   ② **项目 grid 均分铺满** —— 原来 6 个项目固定宽（类别 87 / 内容 121）
      撑不满796px ⇒ 实测右侧空 124px（类别）/ 62px（内容）。
      改 `repeat(6, 1fr)` + gap:10px，每项等分。
   ⚠️ 用 grid 而非 flex space-between：后者末项右侧也会分到空白（不对称）。 */
.xfws-index_slider--type {
    padding: 18px;
    box-sizing: content-box;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 13px rgba(255, 24, 67, 0.06);
}

.xfws-index_slider--content {
}

.xfws-index_slider--topic {
    /* 专题横幅：撑满整行，供 4 个图标均分 */
    width: 100%;
}

.xfws-index_sliderViewport {
    position: relative;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    /* ⚠️ 2026-10-18：撑满父级（原来靠 .xfws-index_slider 的 778px 定值间接撑开） */
    width: 100%;
    box-sizing: border-box;
}

.xfws-index_slider--type .xfws-index_sliderViewport,
.xfws-index_slider--content .xfws-index_sliderViewport,
.xfws-index_slider--topic .xfws-index_sliderViewport {
    /* width: 740px; */
}

/* ⚠️ 2026-10-18 老哥要求「4 个专题图标按区域布满，图标间保持间隙」。
   原状：float + 固定 177px 宽 ⇒ 图标总宽 738px，区域 1200 宽却**右侧空 380px**，
   且 4 个图标间隙为 0（挤在一起）。
   ⇒ 改 grid 均分：`repeat(4, 1fr)` 把 1200px 四等分（每格 285px），gap 20px。
   ⚠️ 用 grid 而非 flex `space-between`：后者会在末项右侧也留一段空白
      （实测右边距 123px ≠ 左边距 0，不对称）；grid 四等分才能真正"布满"。
   ⚠️ 若将来专题数变化（不是 4 个），需同步改 repeat 的个数。 */
.xfws-index_topicList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    /* ⚠️⚠️ 必须 !important —— xfws-index.js:291 `initializeSlider()` 会执行
       `$track.width(itemSize * $items.length)` 写**内联 width**：
       按 285（单格含 padding）×4 算出 1140px，压过 CSS 的 100%（1200px）
       ⇒ 实测右边空 60px、"没布满"。
       内联样式优先级高于选择器，只有 !important 能压住。
       ⚠️ 若将来专题数变成 5/6 个，repeat() 的个数也要同步改。 */
    width: 100% !important;
    box-sizing: border-box;
}

.xfws-index_topicList .xfws-index_filterItem {
    /* ⚠️ 抵消通用规则 .xfws-index_sliderViewport .xfws-index_filterItem:not(:last-of-type)
       的 padding-right:10px —— 专题区用 grid 的 gap 统一控制间隙，
       再叠加这个 padding 会导致首末项间距与中间不一致。 */
    padding-right: 0;
    /* ⚠️ 链接固定 177px，而格子 = (1200 − 3×20gap) / 4 = 285px。
       不居中则链接贴格子左边（实测左偏 0 / 右偏 73），视觉上"没布满"。 */
    display: flex;
    justify-content: center;
}

.xfws-index_sliderViewport .xfws-index_filterItem:not(:last-of-type) {
    padding-right: 10px;
}

.xfws-index_sliderBtn {
    display: block;
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    background-position: center center;
    background-repeat: no-repeat;
}

.xfws-index_sliderBtn--prev {
    display: none;
    left: -12px;
    background-image: url("../../img/slider-prevBtn.png");
}

.xfws-index_sliderBtn--next {
    right: -12px;
    background-image: url("../../img/slider-nextBtn.png");
}

.xfws-index_typeList {
    padding-top: 2px;
}

.xfws-index_typeItem {
    float: left;
}
.xfws-index_typeItem:not(:last-of-type) {
    margin-right: 30px;
}
.xfws-index_typeItem a {
    display: block;
    text-decoration: none;
}

/* ⚠️ 2026-10-18 老哥反馈「类别区域里栏目的图标和文字有的没有对齐」。
   根因：`.xfws-index_type_iconWrap` 是**固定 width:87px**，在 grid 等分格内
   不会自动居中 —— 实测前 5 项格宽 88（底板恰好占满，居中），
   但**最后一项「党课视频」格宽 118**（因列表宽 760 / 6 不整除 ⇒ 余数落在末格），
   底板仍占左边 87px ⇒ 底板中心 1279、文字中心 1294，**偏左 15px**。
   ⇒ 底板改 `width:100%`（撑满格子）并在格内居中，图标/文字随之中线对齐。 */
.xfws-index_type_iconWrap {
    width: 100%;
    max-width: 87px;
    /* 关键：作为块级元素在格内水平居中 */
    margin: 0 auto;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #feeeec;
    border-radius: 20px;
}

/* 项本身也要撑满格子并居中（grid item 默认 stretch，但 a 是块级需明确） */
.xfws-index_typeItem,
.xfws-index_typeList .xfws-index_filterItem {
    display: flex;
    justify-content: center;
}

.xfws-index_typeItem a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

/* 文字与图标共用同一中线 */
.xfws-index_type_name {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.xfws-index_type_icon {
    display: inline-block;
    width: 23px;
    height: 23px;
    margin-top: 8px;
    background-position: 0 0;
}

.xfws-index_type_icon_dxsj { background-image: url("../../images/xfws/type-exemplary.png"); }
.xfws-index_type_icon_jlp { background-image: url("../../images/xfws/type-documentary.png"); }
.xfws-index_type_icon_wyp { background-image: url("../../images/xfws/type-art.png"); }
.xfws-index_type_icon_wsp { background-image: url("../../images/xfws/type-micro.png"); }
.xfws-index_type_icon_pxp { background-image: url("../../images/xfws/type-training.png"); }
.xfws-index_type_icon_dksp { background-image: url("../../images/xfws/type-party-course.png"); }
.xfws-index_type_icon_xmtkj { background-image: url("../../images/xfws/type-new-media.png"); }

/* ⚠️ .xfws-index_type_name 的规则已合并到上方（加了 width:100% 做中线对齐），
   此处不再重复定义，避免两处打架。 */

.xfws-index_typeItem a:hover .xfws-index_type_iconWrap,
.xfws-index_typeList .xfws-index_filterItem--active .xfws-index_type_iconWrap {
    background-color: #f25048;
}
.xfws-index_typeItem a:hover .xfws-index_type_name,
.xfws-index_typeList .xfws-index_filterItem--active .xfws-index_type_name {
    color: #f25048;
}
.xfws-index_typeItem a:hover .xfws-index_type_icon,
.xfws-index_typeList .xfws-index_filterItem--active .xfws-index_type_icon {
    background-position: -23px 0;
}

/* ⚠️ 2026-10-18 老哥要求「类别和内容的栏目要在区域平均布满，右侧空的太多」。
   原状：6 个项目固定宽（类别 87 / 内容 121），撑不满 796px
   ⇒ 实测右侧空 124px（类别）/ 62px（内容）。
   ⇒ 改 grid 等分：`repeat(N, 1fr)` + gap:10px。
   ⚠️ width 必须 !important —— xfws-index.js:291 的 initializeSlider()
      会写内联 `$track.width(itemSize × count)`，压过CSS 的 100%
      （专题区同款问题，见 .xfws-index_topicList 注释）。
   ⚠️ 项目数若变化，需同步改 repeat 的个数：
      2026-10-19 新增类别「新媒体课件」⇒ 类别 7 个（内容仍 6 个，故拆开写）。 */
.xfws-index_typeList {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    width: 100% !important;
    box-sizing: border-box;
}

.xfws-index_contentList {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100% !important;
    box-sizing: border-box;
}

/* 抵消通用规则的 float + margin/padding 间距（改 grid 后由 gap 统一控制） */
.xfws-index_typeList .xfws-index_filterItem,
.xfws-index_typeItem,
.xfws-index_contentList .xfws-index_filterItem {
    float: none;
    margin-right: 0;
    padding-right: 0;
}

/* slider 与 viewport 撑满，供上面 grid 拿到完整宽度 */
.xfws-index_slider--type,
.xfws-index_slider--content,
.xfws-index_slider--type .xfws-index_sliderViewport,
.xfws-index_slider--content .xfws-index_sliderViewport {
    width: 100%;
    max-width: 100%;
}

/* ⚠️ 内容组首项要落在 594（与来源/类别的内容起点齐）——
   类别组靠 slider--type 的 padding:18px 内缩到了 594，
   内容组没有那层padding ⇒ 补同样的 18px。
   ⚠️ 卡片原为固定 width:111px，在 grid 等分格（约 126px）里会偏左，
   改 width/height:100% 撑满格子，图片才真正"布满"。 */
.xfws-index_contentList {
    padding-left: 18px;
}

.xfws-index_contentList .xfws-index_filterItem {
    display: flex;
}

.xfws-index_contentList .xfws-index_filterItem a {
    display: block;
    position: relative;
    width: 100%;
    height: 83px;
    overflow: hidden;
    border: 1px solid #fff;
    border-radius: 13px;
}

.xfws-index_contentList .xfws-index_filterItem img {
    display: block;
    width: 100%;
    height: 100%;
}

.xfws-index_contentList .xfws-index_filterItem a:hover,
.xfws-index_contentList .xfws-index_filterItem--active a {
    border-color: #f54a41;
    text-decoration: none;
}

.xfws-index_topicList .xfws-index_filterItem a {
    display: block;
    width: 100%;
    height: 93px;
    overflow: hidden;
    border: 1px solid #fff;
    border-radius: 13px;
}

.xfws-index_topicList .xfws-index_filterItem img {
    display: block;
    width: 100%;
    height: 100%;
}

.xfws-index_topicList .xfws-index_filterItem a:hover,
.xfws-index_topicList .xfws-index_filterItem--active a {
    border-color: #f54a41;
}

/* 右栏：年度面板 —— filters 网格的第 2 行第 2 列。
   ⚠️ 它是 .xfws-index_filters 的直接子元素（与 filterMain 并列，**不是 filterMain 的子节点**）。
   去掉 float:right 后由外层 grid 排位 ⇒ 回到筛选框右侧框内，高度靠 align-items:stretch 对齐。 */
.xfws-index_yearPanel {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 142px;
    min-height: 0;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(180, 63, 49, .12);
    /* ⚠️ 2026-10-18 老哥要求（两轮澄清后的最终意图）：
       面板高从 500 缩到 395 后，背景要**等比缩放 + 上移 + 裁底**。
       · 100% auto = 等比（面板宽142 = 图宽142 即 1:1），图按原比例高 500 绘制
         ❌ 不用 100% 100%：图里画死了「年度」标题字，整体压扁会横向拉宽变形
       · 0 -12px = 背景**上移 12px**，把图底部那条红色装饰边收进裁切区，
         让白色圆角主体填满面板底部（否则底边会露出一圈红）。
         ⚠️ 上移量不能大：实测 -40px 会把「年度」标题顶到面板上沿、明显压扁；
         -12px 是「标题位置正常 + 底部红边消失」的平衡点。
       · 超出面板的部分由 overflow:hidden 裁掉。 */
    background: #e9272a url("../../img/xfws/xfws-index-yearbg.png") 0 -12px / 100% auto no-repeat;
}

/* 年度标题固定高，轮播区撑满剩余高度（面板改 flex column 后） */
.xfws-index_yearTitle {
    
    height: 62px;
    color: #fff;
    font-size: 21px;
    font-weight: bold;
    line-height: 60px;
    text-align: center;
}

.xfws-index_yearSlider {
    position: relative;
    /* ⚠️ 2026-10-18 老哥要求「空白背景过高要缩小、底部红色要露出来」。
       原 flex:1 1 auto 会把白块**强行撑满**面板剩余高度（面板 395 = 标题 62 + 白块 333），
       而年份列表只有 8×35 = 280px ⇒ 白块底部多出 53px 空白，还把背景图的
       红色底部（含向下箭头装饰）全盖住了。
       ⇒ 改为 flex:0 0 auto + 固定 296px（= 内容 280 + 上下留白 8×2），
         面板底部空出 37px 让背景红色露出来。
       ⚠️ 296 是按当前 8 个年份项算的；若将来年份数变化需同步调整
         （或改成 min-height + 内容自适应）。 */
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 116px;
    height: 296px;
    margin: 0 auto 0;
    background: #fff9f8;
    border-radius: 18px;
    user-select: none;
}

.xfws-index_yearViewport {
    position: absolute;
    /* ⚠️ 2026-10-18 老哥两次反馈：「空白高度减少」+「底部红色要显示」。
       原 height:300px 是写死值，与白块 296px 无关。
       改为**用 top/bottom 相对白块定位**，自动填满白块内部（296 − 8 − 8 = 280，
       正好等于 8 个年份项 × 35px，无空白、无溢出）。
       ⚠️ 上下留白 8px：4px 会挤到顶部「全部」高亮条，10px 略松。 */
    top: 8px;
    bottom: 8px;
    left: 14px;
    width: 88px;
    height: auto;
    overflow: hidden;
}

.xfws-index_yearList {
    position: relative;
    top: 0;
    left: 0;
    width: 88px;
}

.xfws-index_yearBtn {
    display: block;
    position: absolute;
    left: 44px;
    z-index: 5;
    width: 28px;
    height: 28px;
    color: #ee3a35;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
}

.xfws-index_yearBtn:hover {
    color: #c91f1c;
    text-decoration: none;
}

.xfws-index_yearBtn--prev {
    display: none;
    top: 12px;
}

.xfws-index_yearBtn--next {
    bottom: 14px;
}

.xfws-index_yearItem {
    display: block;
    width: 88px;
    height: 35px;
    margin: 0 auto;
}

.xfws-index_yearItem a {
    display: block;
    width: 88px;
    height: 32px;
    color: #555;
    border-radius: 17px;
    line-height: 32px;
    text-align: center;
}

.xfws-index_yearItem a:hover,
.xfws-index_yearItem--active a {
    color: #fff;
    background: #f23835;
    text-decoration: none;
}

.xfws-index_results {
    position: relative;
    width: 1200px;
    min-height: 720px;
    margin-top: 30px;
}

.xfws-index_resultList {
    width: 1200px;
}

.xfws-index_resultItem {
    display: block;
    float: left;
    width: 288px;
    margin: 0 16px 15px 0;
}

.xfws-index_resultItem--last {
    margin-right: 0;
}

.xfws-index_resultLink {
    display: block;
    width: 288px;
    color: #444;
}

.xfws-index_resultLink:hover {
    color: #ef3029;
    text-decoration: none;
}

.xfws-index_resultImageBox {
    display: block;
    width: 288px;
    height: 180px;
    overflow: hidden;
    background: #eee;
}

.xfws-index_resultImage {
    display: block;
    width: 100%;
    height: 100%;
}

.xfws-index_resultTitle {
    display: block;
    width: 288px;
    height: 39px;
    padding: 9px 4px 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 30px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xfws-index_status {
    display: none;
    width: 1200px;
    min-height: 660px;
    padding-top: 190px;
    color: #888;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
}

.xfws-index_status--visible {
    display: block;
}

.xfws-index_pagination {
    clear: both;
    width: 1200px;
    height: 42px;
    padding-top: 20px;
    text-align: center;
}

.xfws-index_pageLink,
.xfws-index_pageCurrent,
.xfws-index_pageDisabled,
.xfws-index_pageEllipsis,
.xfws-index_pageTotal {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    margin: 0 3px;
    padding: 0 8px;
    color: #555;
    font-size: 15px;
    line-height: 34px;
    text-align: center;
    vertical-align: top;
}

.xfws-index_pageLink:hover,
.xfws-index_pageCurrent {
    color: #fff;
    background: #ef4a45;
    border-radius: 17px;
    text-decoration: none;
}

.xfws-index_pageDisabled {
    color: #bbb;
    cursor: default;
}

.xfws-index_pageTotal {
    min-width: 70px;
}

/* ============================================================
   内容分类 / 专题分类：选中态强化（2026-09-16 用户反馈"选中不明显"）
   约束：滑块视口 .xfws-index_sliderViewport 高度恰等于图片高度、且 overflow:hidden
        （实测上下余量各 0px）—— 外发光 / 上浮 / 外描边都会被裁掉，
        故一律用「加粗红描边 + 内圈 + 右上角对勾 + 同组未选中降饱和」表达选中，零布局位移。
   注意：本段必须留在文件**最末** —— 上面的 .xfws-index_topicList 基础规则同特异性，
        只有后写才能覆盖它的 border。
   ============================================================ */

.xfws-index_contentList .xfws-index_filterItem a,
.xfws-index_topicList .xfws-index_filterItem a {
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.xfws-index_contentList .xfws-index_filterItem img,
.xfws-index_topicList .xfws-index_filterItem img {
    transition: transform .25s ease, opacity .18s ease, filter .18s ease;
}

/* 悬停：红描边 + 细内圈（比选中弱一档，避免"悬停＝已选中"的混淆） */
.xfws-index_contentList .xfws-index_filterItem a:hover,
.xfws-index_topicList .xfws-index_filterItem a:hover {
    border-color: rgba(245, 74, 65, .55);
    box-shadow: inset 0 0 0 2px rgba(245, 74, 65, .14);
    text-decoration: none;
}

.xfws-index_contentList .xfws-index_filterItem a:hover img,
.xfws-index_topicList .xfws-index_filterItem a:hover img {
    transform: scale(1.03);
}

/* 选中：1px 红边 + 3px 红内圈（合计约 4px 红框，明显区别于悬停的 2px 浅红圈；不改盒尺寸）
   把 :hover 一并写进选择器 —— 否则鼠标停在已选中项上会被上面的 hover 规则"降级"。 */
.xfws-index_contentList .xfws-index_filterItem--active a,
.xfws-index_contentList .xfws-index_filterItem--active a:hover,
.xfws-index_topicList .xfws-index_filterItem--active a,
.xfws-index_topicList .xfws-index_filterItem--active a:hover {
    border-color: #f54a41;
    box-shadow: inset 0 0 0 3px #f54a41;
    text-decoration: none;
}

.xfws-index_contentList .xfws-index_filterItem--active a img,
.xfws-index_contentList .xfws-index_filterItem--active a:hover img,
.xfws-index_topicList .xfws-index_filterItem--active a img,
.xfws-index_topicList .xfws-index_filterItem--active a:hover img {
    transform: scale(1.04);
}

/* 选中角标：右上角红底白勾（纯 CSS 绘制，不依赖图片素材） */
.xfws-index_contentList .xfws-index_filterItem--active a::after,
.xfws-index_topicList .xfws-index_filterItem--active a::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f54a41;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
    z-index: 3;
}

.xfws-index_contentList .xfws-index_filterItem--active a::before,
.xfws-index_topicList .xfws-index_filterItem--active a::before {
    content: '';
    position: absolute;
    right: 11px;
    top: 9px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    z-index: 4;
}

/* 同组未选中项降饱和：只在"本组确有选中项"时生效（由 JS 维护 ul 上的 --hasActive；
   不用 :has() 是为了兼容老浏览器；首屏未选中时全组保持原色） */
.xfws-index_contentList.xfws-index_filterList--hasActive
    .xfws-index_filterItem:not(.xfws-index_filterItem--active) img,
.xfws-index_topicList.xfws-index_filterList--hasActive
    .xfws-index_filterItem:not(.xfws-index_filterItem--active) img {
    opacity: .62;
    filter: saturate(.55);
}

.xfws-index_contentList.xfws-index_filterList--hasActive
    .xfws-index_filterItem:hover img,
.xfws-index_topicList.xfws-index_filterList--hasActive
    .xfws-index_filterItem:hover img {
    opacity: 1;
    filter: none;
}

/* ============================================================
 * 已选条件标签（2026-09-22）
 * ------------------------------------------------------------
 * 位置：筛选区与视频列表之间；由 xfws-index.js 的 renderChips() 渲染。
 * 交互："×"常显（不依赖 hover）；点"×"取消该筛选项，并同步上方按钮选中态。
 * 配色：沿用先锋网视红（#e52d25 主色 / #f2b6b1 描边 / #fff8f8 浅底）。
 * ============================================================ */
.xfws-index_chips {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    border: 1px solid #f2b6b1;
    background: #fff8f8;
    font-size: 14px;
    line-height: 28px;
    color: #555;
    zoom: 1;
}

.xfws-index_chipsLabel {
    margin-right: 4px;
    color: #888;
}

/* 单个标签 */
.xfws-index_chip {
    display: inline-block;
    height: 28px;
    margin: 0 8px 6px 0;
    padding: 0 6px 0 12px;
    border: 1px solid #f2b6b1;
    border-radius: 14px;
    background: #fff;
    color: #e52d25;
    line-height: 26px;
    white-space: nowrap;
}

.xfws-index_chipText {
    display: inline-block;
    vertical-align: middle;
}

/* 删除按钮：**默认一直显示**（2026-09-22 业主口径：不要 hover 才出现，便于直接点） */
.xfws-index_chipRemove {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    color: #e52d25;
    font-size: 14px;
    line-height: 15px;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    -webkit-transition: background-color .15s, color .15s;
    transition: background-color .15s, color .15s;
}

.xfws-index_chipRemove:hover,
.xfws-index_chipRemove:focus {
    background: #e52d25;
    color: #fff;
    text-decoration: none;
}

/* 3号（第4轮）：平台图标内联 SVG 颜色（尺寸沿用 .xfws-platforms_icon 的 33×33） */
.platform-svg {
    color: #e52d25;
}
