/* 党委办公室首页 — 主题色与版式（纯 HTML+CSS） */

:root {
    --brand-red: #be0c08;
    --text-muted: #888;
    --list-border: #e2e2e2;
    --title-border: #c6c6c6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Montserrat, "Helvetica", "Lucida Grande", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.f-l { float: left; }
.f-r { float: right; }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ----- 版心 ----- */
.inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 7px 14px 28px;
    overflow: visible;
}

.inside-c-tb {
    padding-top: 0;
    padding-bottom: 0;
}

.inside-tb {
    padding-top: 14px;
    padding-bottom: 14px;
}

.inside-min-lr {
    padding-left: 7px;
    padding-right: 7px;
}

.outside-b {
    margin-bottom: 10px;
}

.outside-l {
    margin-left: 14px;
}

/* ----- 顶栏 + Logo ----- */
.header-bg-base {
    background-color: var(--brand-red);
    color: #fff;
}

.header-bg-base a {
    color: #fff;
}

.header-body {
    position: relative;
}

.header-container.inner,
.header-row {
    height: 180px;
}

.logo-center .header-row {
    text-align: center;
}

.header-row {
    display: table;
    width: 100%;
}

.header-row .header-column {
    display: table-cell;
    vertical-align: middle;
}

.header-logo img {
    height: auto;
    width: 800px;
    vertical-align: middle;
}

/* ----- 主导航（九栏等宽 ≈11%） ----- */
.main-menu-nav-primary {
    background-color: var(--brand-red);
}

.main-menu .nav-menu {
    font-size: 16px;
    position: relative;
    z-index: 20;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.main-menu .nav-menu > .menu-item {
    position: relative;
    flex: 0 0 11%;
    max-width: 11%;
    text-align: center;
    line-height: 1;
    padding: 16px 6px;
}

.main-menu .nav-menu > .menu-item .menu-toggle a,
.main-menu .nav-menu > .menu-item > a,
.main-menu .nav-menu > .menu-item .caret {
    color: #fff;
}

.menu-toggle {
    display: inline-block;
}

.menu-toggle .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.85);
}

.main-menu .nav-menu > .menu-item:hover,
.main-menu .nav-menu > .menu-item:focus-within,
.main-menu .nav-menu > .menu-item.active {
    background-color: #fff;
}

.main-menu .nav-menu > .menu-item:hover .menu-toggle a,
.main-menu .nav-menu > .menu-item:focus-within .menu-toggle a,
.main-menu .nav-menu > .menu-item:hover > a,
.main-menu .nav-menu > .menu-item:focus-within > a,
.main-menu .nav-menu > .menu-item.active .menu-toggle a,
.main-menu .nav-menu > .menu-item.active > a {
    color: var(--brand-red);
}

.main-menu .nav-menu > .menu-item:hover .caret,
.main-menu .nav-menu > .menu-item:focus-within .caret,
.main-menu .nav-menu > .menu-item.active .caret {
    border-top-color: var(--brand-red);
}

/* 下拉菜单 */
.level-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    text-align: left;
    z-index: 50;
}

.main-menu .nav-menu > .menu-item:last-child .level-menu {
    right: 0;
    left: auto;
}

.main-menu .nav-menu > .menu-item:hover .level-menu,
.main-menu .nav-menu > .menu-item:focus-within .level-menu {
    display: block;
}

.level-menu .menu-item {
    border-top: 1px solid #e5e5e5;
}

.level-menu .menu-item:first-child {
    border-top: 0;
}

.level-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #333 !important;
}

.level-menu a:hover {
    background: #f5f5f5;
    color: var(--brand-red) !important;
}

/* 移动端折叠 */
.nav-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    position: absolute;
    right: 14px;
    top: 22px;
    width: 40px;
    height: 36px;
    cursor: pointer;
    z-index: 30;
    background: var(--brand-red);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle-label::before,
.nav-toggle-label::after,
.nav-toggle-bar {
    display: block;
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #fff;
}

.nav-toggle-label::before {
    content: "";
    top: 10px;
}

.nav-toggle-bar {
    top: 17px;
}

.nav-toggle-label::after {
    content: "";
    top: 24px;
}

@media (max-width: 991px) {
    .nav-toggle-label {
        display: block;
    }

    #site-logo {
        text-align: left;
        padding-right: 48px;
    }

    .header-logo img {
        max-height: 50px;
        width: auto;
    }

    .header-container.inner,
    .header-row {
        height: auto;
        min-height: 70px;
    }

    .main-menu {
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-toggle-input:checked ~ .main-menu {
        display: block;
    }

    .main-menu .nav-menu {
        flex-direction: column;
    }

    .main-menu .nav-menu > .menu-item {
        flex: 1 1 auto;
        max-width: none;
        text-align: left;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .main-menu .nav-menu > .menu-item:hover,
    .main-menu .nav-menu > .menu-item:focus-within,
    .main-menu .nav-menu > .menu-item.active {
        background: rgba(255, 255, 255, 0.12);
    }

    .main-menu .nav-menu > .menu-item:hover .menu-toggle a,
    .main-menu .nav-menu > .menu-item:focus-within .menu-toggle a,
    .main-menu .nav-menu > .menu-item:hover > a,
    .main-menu .nav-menu > .menu-item:focus-within > a,
    .main-menu .nav-menu > .menu-item.active .menu-toggle a,
    .main-menu .nav-menu > .menu-item.active > a {
        color: #fff;
    }

    .main-menu .nav-menu > .menu-item:hover .caret,
    .main-menu .nav-menu > .menu-item:focus-within .caret {
        border-top-color: rgba(255, 255, 255, 0.85);
    }

    .level-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.08);
        margin-top: 8px;
        border-radius: 0;
    }

    .main-menu .nav-menu > .menu-item:hover .level-menu,
    .main-menu .nav-menu > .menu-item:focus-within .level-menu {
        display: block;
    }

    .level-menu a {
        color: #fff !important;
    }

    .level-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .main-menu .nav-menu > .menu-item {
        padding-left: 9px;
        padding-right: 9px;
    }
}

/* ----- 轮播（按钮 + 圆点 + 点击切换） -----
   思路（先看这个）：
   1) 所有图片 .swiper-hero__slide 先“叠在同一个位置”。
   2) 默认全部透明（opacity: 0）。
   3) 只给当前图片加 .is-active，让它显示（opacity: 1）。
   4) JS 只做一件事：切换 .is-active 到不同图片/圆点上。
   5) 左右按钮和圆点，本质都是触发“切到第 N 张”。

   三层对应关系（帮助你把 HTML / CSS / JS 对起来）：
   - HTML 结构层：
     .swiper-hero（容器）
     .swiper-hero__slide（图片项）
     .swiper-hero__btn--prev / --next（左右按钮）
     .swiper-hero__dot（圆点）
   - CSS 显示层：
     .swiper-hero__slide 默认隐藏
     .swiper-hero__slide.is-active 当前显示
     .swiper-hero__dot.is-active 当前圆点高亮
   - JS 控制层：
     setActive(index) 负责给“当前图片/圆点”加 is-active
*/
.swiper-hero {
    /* 作为子元素（按钮、圆点、幻灯片）的定位参考 */
    position: relative;
    /* 轮播铺满可用宽度 */
    width: 100%;
    /* 默认高度（移动端/普通屏） */
    height: 220px;
    /* 超出容器的部分隐藏，避免图片溢出 */
    overflow: hidden;
    /* 图片没加载前先给黑底，避免白屏 */
    background: #000;
}

@media (min-width: 992px) {
    .swiper-hero {
        /* 大屏更高一些，视觉更接近官网 */
        height: 340px;
    }
}

.swiper-hero__slide {
    /* 所有 slide 都绝对定位到同一个区域，形成“叠层” */
    position: absolute;
    /* inset:0 等价于 top/right/bottom/left 全部为 0 */
    inset: 0;
    /* 默认隐藏 */
    opacity: 0;
    /* 做淡入淡出动画（切图时更柔和） */
    transition: opacity 0.45s ease;
    /* 隐藏状态不接收鼠标事件，避免误点 */
    pointer-events: none;
}

.swiper-hero__slide.is-active {
    /* 当前项显示 */
    opacity: 1;
    /* 当前项允许交互（如你以后在图上放链接） */
    pointer-events: auto;
}

.swiper-hero__slide img {
    /* 图片宽高跟容器一致 */
    width: 100%;
    height: 100%;
    /* 保持比例并裁切，避免拉伸变形 */
    object-fit: cover;
    /* 去掉 img 默认行内间隙 */
    display: block;
}

.swiper-hero__btn {
    /* 左右按钮悬浮在轮播图上 */
    position: absolute;
    /* 垂直居中 */
    top: 50%;
    transform: translateY(-50%);
    /* 圆形按钮尺寸 */
    width: 44px;
    height: 44px;
    /* 去掉按钮默认边框 */
    border: none;
    border-radius: 50%;
    /* 半透明深底，保证在亮图上也看得见 */
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    /* 箭头字符大小 */
    font-size: 26px;
    /* 让箭头在按钮里居中 */
    line-height: 44px;
    cursor: pointer;
    /* 确保在图片之上 */
    z-index: 5;
    /* 悬停时做平滑过渡 */
    transition: background 0.2s ease;
}

.swiper-hero__btn:hover {
    /* 悬停变深，更有反馈感 */
    background: rgba(0, 0, 0, 0.55);
}

.swiper-hero__btn--prev {
    /* 左按钮离左边 16px */
    left: 16px;
}

.swiper-hero__btn--next {
    /* 右按钮离右边 16px */
    right: 16px;
}

.swiper-hero__dots {
    /* 圆点层绝对定位 */
    position: absolute;
    /* 水平居中 */
    left: 50%;
    /* 放在轮播图底部偏上一点 */
    bottom: 14px;
    transform: translateX(-50%);
    /* 圆点横向排列 */
    display: flex;
    /* 圆点间距 */
    gap: 10px;
    /* 在图片之上 */
    z-index: 5;
}

.swiper-hero__dot {
    /* 单个圆点大小 */
    width: 10px;
    height: 10px;
    /* 去掉按钮默认样式 */
    border: none;
    /* 做成圆形 */
    border-radius: 50%;
    /* 未激活状态半透明白色 */
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    /* 避免默认内边距影响大小 */
    padding: 0;
}

.swiper-hero__dot.is-active {
    /* 当前圆点高亮 */
    background: #fff;
}

@media (max-width: 768px) {
    .swiper-hero__btn {
        /* 小屏按钮缩小，不挡图 */
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 22px;
    }

    .swiper-hero__btn--prev {
        /* 小屏贴边一点 */
        left: 8px;
    }

    .swiper-hero__btn--next {
        /* 小屏贴边一点 */
        right: 8px;
    }

    .swiper-hero__dots {
        /* 小屏圆点更靠下，间距更紧凑 */
        bottom: 8px;
        gap: 8px;
    }
}

/* ----- 三列新闻 ----- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.col {
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 992px) {
    .col-4 {
        width: 33.333%;
    }

    .col-foot-5 {
        /**  width: 41.666%;  **/
        width: 100%;
    }

    .col-foot-2 {
        width: 16.666%;
    }
}

@media (max-width: 991px) {
    .col-4 {
        width: 100%;
    }

    .col-foot-5,
    .col-foot-2 {
        width: 100%;
    }
}

.block {
    position: relative;
    margin-bottom: 20px;
}

.block-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--title-border);
    padding: 10px 10px 7px;
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.block-title__bar {
    flex-shrink: 0;
    width: 2px;
    height: 16px;
    background: var(--brand-red);
}

.list-3 {
    position: relative;
    list-style: none;
}

.list-3 .list-content {
    padding-left: 0;
}

.list-3 .list-content li {
    border-bottom: 1px solid var(--list-border);
    overflow: hidden;
}

.list-3 .list-content li:hover {
    background-color: #eee;
}

.list-3 .list-content li::after {
    content: "";
    display: table;
    clear: both;
}

.list-3 .one-line a {
    display: block;
    overflow: hidden;
    max-width: 100%;
    font-size: 16px;
    color: #555;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-wrap: normal;
}

.list-3 .one-line a:hover {
    color: #777;
}

.list-date {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.more-link {
    position: absolute;
    right: 0;
    top: 10px;
    font-size: 12px;
    color: #666;
}

.more-link:hover {
    color: var(--brand-red);
}

/* ----- 页脚 ----- */
.footer-bg-primary {
    color: #eee;
    background-color: var(--brand-red);
    padding: 24px 0 32px;
}

.footer-bg-primary h4 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.footer-bg-primary p {
    font-size: 14px;
    line-height: 1.5;
    color: #eee;
}

.footer-links li {
    margin-bottom: 14px;
    list-style: none;
}

.text-white {
    color: #eee !important;
}

.footer-bg-primary a.text-white:hover {
    color: #222 !important;
    text-decoration: underline;
}

.footer-row {
    align-items: flex-start;
}


/*  -------------- 超链接 ----------------   */
.grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列等宽 */
  gap: 10px;                             /* 行间距 & 列间距 */
  list-style: none;                      /* 去掉默认圆点 */
  padding: 0;
  margin: 0;
}

.grid-3x3 li {
  padding:0px 20px;
  text-align: left;
  font-size:16px;
}
@media (max-width: 600px) {
  .grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
  }
}