﻿body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    font-size: 14px;
    background: #F4F6F9;
}

/* 自定义容器：固定宽度 1200px */
.container-custom {
    width: 1200px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* 顶部浅蓝区域 */
.top-header {
    background: url("../images/top_bg.png") repeat-x;
    height: 160px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.top-header .logo img {
    height: 100%;
}
.top-header .right-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.top-header .search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.top-header .search-box input {
    width: 250px;
    height: 36px;
    border-radius: 20px;
    border: 1px solid #ffffff;
    padding: 0 15px 0 40px; /* 左侧留出图标空间 */
    font-size: 14px;
}
.top-header .search-box .search-icon {
    position: absolute;
    right: 12px; /* 图标放在右侧 */
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('../images/search.png') no-repeat center;
    background-size: contain;
}
.top-header .user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #26569E;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}
.top-header .user-btn .avatar {
    width: 14px;
    height: 16px;
    background: url('../images/member.png') no-repeat center;
    background-size: contain;
}

/* 主导航栏（横向，7项均分1200px） */
.main-nav {
    background-color: #0065B2;
    height: 54px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.main-nav .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
}
.main-nav .nav-list li {
    flex: 1;
    text-align: center;
}
.main-nav .nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    line-height: 54px;
    font-size: 1.065rem;
    display: block;
    transition: background 0.2s;
}
.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    background-color: #4085D2;
}

/* 覆盖原有 .hero-banner img 样式 */
.hero-banner {
    display: flex;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 460px; /* 👈 关键：固定容器高度 */
}
/* Swiper容器 */
.swiper-container {
    width: 730px;
    height: 100%;
    position: relative;
}

/* 自定义Swiper样式 */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图遮罩和标题 */
.swiper-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.slide-title {
    position: absolute;
    bottom: 57px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
/* 自定义右侧分页器样式 */
.custom-pagination {
    position: absolute;
    bottom: 20px;
    right: 50px;
    z-index: 10;
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    margin: 0;
    padding: 0;
    text-align: left !important;
    justify-content: flex-end;
    min-width: max-content;
}

.custom-pagination .swiper-pagination-bullet {
    width: 20px;
    height: 3px;
    background-color: white;
    opacity: 1;
    border-radius: 0;
    cursor: pointer;
    display: block !important;
}

.custom-pagination .swiper-pagination-bullet-active {
    background-color: #4871C1;
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
    width: 97%;
    bottom: 30px;
}
/* Swiper导航按钮 */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    color: #26569E;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #26569E;
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
    color: white;
}

.hero-banner .content {
    flex: 1;
    padding: 22px;
    width: 460px;
}
.hero-banner .content a{
    text-decoration: none;
}
.hero-banner .content a h5 {
    color: #26569E;
    margin-bottom: 10px;
    font-size: 1.125rem;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 28px;
}
.hero-banner .content a p {
    color: #6D87AF;
    font-size: 14px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-banner .content ul {
    list-style: none;
    padding: 0;
}
.hero-banner .content li a{
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    border-bottom: 1px solid #F6F6F6;
    height: 48px;
    justify-content: center;
    line-height: 48px;
}
.hero-banner .content li a span img{
    width: 20px;
    height: 20px;
}
.hero-banner .content ul li a p {
    overflow: hidden;
    white-space: nowrap;       /* 禁止换行 */
    text-overflow: ellipsis;   /* 超出部分显示省略号 */
    color:#333333;
    width: 73%;
}
.hero-banner .content .date {
    color: #26569E;
    font-size: 12px;
    margin-left: 3px;
}
.hero-banner .content .more {
    text-align: right;
    font-size: 12px;
    color: #777777;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    justify-content: end;
    position: relative;
    padding-right: 18px; /* 给箭头留空间 */
}

.hero-banner .content .more::after {
    content: "\25B6"; /* Unicode: ▶ (右向小三角) */
    font-size: 10px;
    color: #777777;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.hero-banner .content .more:hover{
    color: #26569E;
}
.hero-banner .content .more:hover::after {
    color: #26569E;
}
/* 快捷入口 */
.quick-entry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.quick-entry .card {
    text-align: center;
    padding: 20px;
    border: none;
    border-radius: 8px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.quick-entry img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}
.quick-entry .card h6 {
    font-size: 14px;
    margin-bottom: 5px;
    cursor: pointer;
}
.quick-entry .card:hover h6{
    color: #26569E;
}
.quick-entry .card small {
    color: #666;
    font-size: 10px;
}
.quick-entry .card:hover small{
    color: #26569E;
}
.quick-entry .card:hover {
    transform: translateY(-5px);
    color: #26569E;
}
.gap-2 span img{
    width: 23px;
    height: 16px;
}
.gap-2 span img.view-img{
    width: 14px;
    height: 12px;
}
.gap-2 span img.jiantou-img{
    width: 5px;
    height: 8px;
}
.span_c{
    width: 90px;
    display: flex;
    align-items: center;
    vertical-align: center;
    justify-content: space-between;
}
.custom_a .more{
    width: 13px;
    height: 13px;
}
.policy_img{
    width: 100%;
    object-fit: cover;
}
.gonggao_img{
    width: 40px;
    object-fit: contain;
}
.list-group-flush a{
    padding: 28px 16px 30px 16px;
}
/* 确保政策标题默认是 #333333 */
.policy-title {
    color: #333333 !important;
    transition: color 0.2s ease;
    line-height: 28px;
    height: 28px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.policy-title_big {
    color: #333333 !important;
    transition: color 0.2s ease;
    line-height: 28px;
    font-weight: 500;
}

/* 鼠标悬停时，仅标题变蓝 */
.list-group-item-action:hover .policy-title {
    color: #26569E !important;
}
.list-group-item-action:hover .policy-title_big {
    color: #26569E !important;
}

/* 关键：禁用 Bootstrap 默认的 hover 背景色 */
.list-group-item-action:hover {
    background-color: transparent !important;

}
/* 其他模块样式 */
.partner-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
}
.content-top{
    margin-top: 24px;
    min-height: 420px;
}
.custom_a{
    color: #333333;
    font-weight: 500;
}
.custom_a:hover{
    color: #26569E;
}
.custom_box_ss:hover{
    color: #26569E;
    cursor: pointer;
}
.custom_box_ss:hover .custom_a {
    color: #26569E;
}
.custom_btn{
    background: #26569E;
    color: white;
}
.custom_box{
    background: #F5F8FF;
}
/* 底部广告位样式 */
.bg-lightblue {
    background-color: #e6f2ff;
    border-top: 2px solid #0065B2;
    border-bottom: 2px solid #0065B2;
}
.bg-blue {
    background-color: #0065B2;
}

/* Footer 全局文字颜色 & 链接样式 */
footer {
    background-color: #1a1a1a;
    color: #999999; /* 默认文字颜色 */
    padding: 40px 0 20px;
    margin-top: 50px;
}

footer .row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 ;
}

/* 所有 footer 内的链接 */
footer a {
    color: #999999 !important;      /* 强制文字颜色 */
    text-decoration: none !important; /* 去掉下划线 */
    transition: color 0.2s ease;
}

/* 悬停时变蓝（可选，按你原设计保留） */
footer a:hover {
    color: #26569E !important;
}

/* 确保友好单位和导航链接占据一行并且靠左 */
footer .row > div.col-md-6 {
    display: flex;
    flex-wrap: wrap;
}

/* 确保社交媒体占据一行并且靠右 */
footer .row > div.ms-auto {
    justify-content: flex-end;
}
.head-phone{
    display: none;
}
/* 添加针对 1024px 到 1200px 屏幕宽度的响应式设计 */
@media (max-width: 1200px){
    .container-custom {
        width: 90%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 主导航栏（横向）调整 */
    .main-nav {
        height: auto; /* 根据需要调整 */
    }

    .main-nav .nav-list {
        display: flex;
        justify-content: space-around; /* 均匀分布导航项 */
    }

    .main-nav .nav-list a {
        font-size: 1rem; /* 减少字体大小 */
        padding: 10px 15px; /* 减少内边距 */
    }

    /* Swiper 容器宽度和高度调整 */
    .hero-banner {
        height: 400px; /* 减少高度 */
        display: flex; /* 确保子元素按行排列 */
    }

    .swiper-container {
        width: 60%; /* 占父容器的60% */
        height: 100%; /* 确保高度适配 */
    }

    .hero-banner .content {
        width: 40%; /* 占父容器的40% */
        padding: 15px; /* 减少内边距 */
        overflow: hidden; /* 防止内容溢出 */
    }

    .hero-banner .content h5,
    .hero-banner .content p {
        white-space: nowrap; /* 防止换行 */
        overflow: hidden; /* 隐藏溢出部分 */
        text-overflow: ellipsis; /* 显示省略号 */
    }
    .hero-banner .content li p{
        color: #333333;
    }
    .hero-banner .content li p:hover{
        color: #26569E;
    }

    /* 轮播图标题位置调整 */
    .slide-title {
        bottom: 40px; /* 根据需要调整 */
        font-size: 16px; /* 减小字体大小 */
    }

    /* 分页器位置调整 */
    .custom-pagination {
        right: 30px; /* 根据需要调整 */
        bottom: 15px; /* 根据需要调整 */
    }

    /* 快捷入口网格布局调整 */
    .quick-entry {
        gap: 15px; /* 减少间距 */
    }

    /* 快捷入口卡片尺寸调整 */
    .quick-entry .card img {
        width: 50px;
        height: 50px;
    }

    .quick-entry .card h6, .quick-entry .card small {
        font-size: 0.9em; /* 减小字体大小 */
    }
    .notice_title{
        width: 85%;
    }
    .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
        bottom: 25px;
    }
}

/* >1024px 保持 PC 布局 */
@media (min-width: 1025px) {
    .navbar-toggler {
        display: none !important;
    }
}
@media (max-width: 1024px) {
    .container-custom {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    .top-header {
        padding: 0 20px;
        flex-wrap: wrap;
        height: 80px;
        justify-content: space-between;
    }
    .top-header .logo img{
        height: 80px;
    }
    .top-header .right-group {
        display: none !important; /* 隐藏 PC 的搜索和个人中心 */
    }
    .top-header .search-box input {
        width: 180px;
    }
    .head-phone{
        display: block;
        overflow: hidden;
    }
    .top_cen{
        display:block;
        margin-right: 6px;
        margin-top: 3px;
    }
    .top_cen a.cen_x{
        font-size: 40px;
        font-weight: 500;
        color: #005192;
        line-height: 30px;
        height: 30px;
        width: 30px;
        display: block;
        position: relative;
        top: -8px;
    }
    .top_cen span{
        display: block;
        width: 30px;
        height: 2px;
        background-color: #005192;
        margin: 6px 0;
    }
    /* 在 @media (max-width: 1024px) 内或全局样式中添加 */
    .navlist_mo {
        display: block;
        position: fixed;
        top: 0;
        right: -100%; /* 完全隐藏 */
        width: 80%; /* 更合理的宽度 */
        max-width: 320px;
        height: 100vh;
        background-color: #F4F6F9 !important;
        transition: right 0.4s ease;
        z-index: 1050;
        overflow-y: auto;
        padding-top: 20px; /* 避开顶部 header 高度 */
    }
    .navlist_mo.open {
        right: 0; /* 滑入 */
    }
    .navlist_mo > li {
        list-style: none; /* 去除列表项前的圆点 */
    }
    .navlist_mo>li>a{
        color: #333333 !important;
        display: block;
        font-size: 16px;
        line-height: 22px;
        width: 100%;
        padding:15px 0;
        padding-left: 10px;
        transition: all .5s;
        position: relative;
        text-decoration: none;
    }
    .navlist_mo > li > a:hover {
        color: #26569E !important; /* 如果需要，可以设置悬停时的文字颜色 */
    }
    .navlist_mo>li.active>a{
        color: #26569E !important;
    }
    .navlist_mo>li a:after{
        top: 1.4rem;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    .navlist_mo>li a:not([href]):after{
        content: "";
        display: block;
        position: absolute;
        left: 138px;
        top: 20px;
        width: 9px;
        height: 9px;
        border-left: 2px solid #333;
        border-bottom: 2px solid #333;
        transition: all .3s ease 0s;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    .navlist_mo>li.active a:not([href]):after{
        -webkit-transform: rotate(135deg);
        transform: rotate(135deg);
    }
    .navlist_mo>li .abm_nav{
        display: none;
        height: 0;
        transition: all .5s;
    }
    .navlist_mo>li.active .abm_nav{
        display: block;
        height: auto;
    }

    .navlist_mo>li .abm_nav li.active a{
        color: #0763a4;
        text-decoration: none;
    }
    .navlist_mo>li .abm_nav li a{
        color:#333333;
        display: block;
        font-size: 16px;
        line-height: 20px;
        padding:12px 0;
        padding-left: 20px;
        transition: all .5s linear;
        -moz-transition: all .5s linear;
        -webkit-transition: all .5s linear;
        text-decoration: none;
    }

    .swiper-container {
        width: 100%; /* 占父容器的60% */
        height: 50%; /* 确保高度适配 */
    }
    .hero-banner{
        flex-direction: column;
        height: 500px;
    }
    .hero-banner .content {
        width: 100%; /* 占父容器的40% */
        padding: 15px; /* 减少内边距 */
        overflow: hidden; /* 防止内容溢出 */
        height: 50%;
    }
    .custom-pagination {
        right: 10px;
        top: 20px;
        transform: none;
    }
    .custom-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 3px;
        border-width: 1px;
    }
    /* 更新快捷入口网格布局调整 */
    .quick-entry {
        grid-template-columns: repeat(2, 1fr); /* 修改为一行两个 */
        gap: 15px; /* 根据需要调整间距 */
    }

    /* 快捷入口卡片尺寸调整 */
    .quick-entry .card img {
        width: 50px;
        height: 50px;
    }

    .quick-entry .card h6, .quick-entry .card small {
        font-size: 0.9em; /* 减小字体大小 */
    }
    .pc_only{
        display: none;
    }
    /* Footer 底部广告位调整 */
    footer .row > div.col-md-6 {
        justify-content: flex-start !important; /* 确保所有内容靠左对齐 */
        align-items: flex-start !important;
    }
    footer .row > div.ms-auto {
        justify-content: flex-start !important; /* 确保社交媒体也靠左对齐 */
    }
}

/*关于我们*/
/* ===== 新增：顶部横幅 banner 图 ===== */
.hero-banner-about {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-banner-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 左侧导航菜单样式修复 ===== */
.about-nav {
    list-style: none;
    padding-left: 0;
}

.about-nav .nav-item {
    position: relative;
    height: 50px;
    margin-bottom: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 未选中状态 */
.about-nav .nav-item {
    background-image: url("../images/off.png");
}

/* 选中状态 */
.about-nav .nav-item.active {
    background-image: url("../images/on.png");
}

/* 链接文字样式 */
.about-nav .nav-link {
    display: block;
    height: 100%;
    padding: 0;
    line-height: 50px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    padding-left: 50px;
}

.about-nav .nav-link:hover,
.about-nav .nav-item.active .nav-link {
    color: #FFFFFF;
}
.about-nav .nav-item:hover {
    background-image: url("../images/on.png");
}
/* 新增：主内容区域卡片样式 */
.content-top .bg-white {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.content-top h3 {
    font-size: 1.5rem;
    color: #26569E;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #e6f2ff;
    padding-bottom: 10px;
}

.content-top p.about-content {
    line-height: 1.7;
    color: #333;
}


/* 新增：按钮样式 */
.content-top .btn {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}
.content-top .custom_box .btn{
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}
.content-top .btn-outline-primary {
    border-color: #26569E;
    color: #26569E;
}
.content-top .btn-outline-primary:hover {
    background-color: #26569E;
    color: white;
}
.content-top .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}
.content-top .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.content-top h3.about-title{
    color: #333333;
    border-bottom:none;
    font-size: 20px;
}
/* ===== PDF 文件卡片样式 ===== */
.card.bg-light {
    background-color: #f9f9f9;
    border-radius: 12px;
}

.card-body {
    padding: 1rem;
}

.card-body .d-flex {
    gap: 1rem;
}

/* ===== 按钮样式优化 ===== */
.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    font-size: 14px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-primary {
    background-color: #26569E;
    border-color: #26569E;
    color: white;
    font-size: 14px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1a427e;
    border-color: #1a427e;
}
/*联系我们页面*/
/* ===== 联系我们页面特有样式 ===== */
.contact-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.contact-card h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e6f2ff;
    padding-bottom: 10px;
}

.contact-card .img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-card .row {
    margin-top: 1.5rem;
}

.contact-card .col-md-4 {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-card .col-md-4:hover {
    background-color: #f1f5fb;
    transform: translateY(-2px);
}

.contact-card .fw-bold {
    color: #26569E;
    font-size: 14px;
}

.contact-card .text-muted {
    font-size: 13px;
    color: #666;
}
.font-20{
    font-size: 20px;
    font-weight: 600;
}
.contact_box img{
    width: 100%;
}

@media (max-width: 1024px) {
    .font-20{
       font-size: 16px;
    }
    .content-top h3.about-title{
        font-size: 16px;
    }
}
/*团体单位*/


.about-title {
    color: #26569E;
    font-size: 1.5rem;
    margin-bottom: 0;
    font-weight: 600;
}

.search-box {
    position: relative;
    width: 250px; /* 根据需要调整宽度 */
    display: flex;
}

.search-box input {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0 15px 0 40px;
    font-size: 14px;
}
.search-box .btn-search-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 8px;
    cursor: pointer;
    outline: none;
    line-height: 1;
}
.search-box .btn-search-icon .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('../images/asearch.png') no-repeat center;
    background-size: contain;
}

.list-group-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e6f2ff;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item h6 {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-group-item ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.list-group-item li a {
    color: #666;
    font-size: 14px;
    display: block;
    padding: 0.8rem 0;
    transition: color 0.2s ease;
}

.list-group-item li a:hover {
    color: #26569E;
}

/* 新增：使标题和搜索框在同一行并增加下边线 */
.d-flex.justify-content-between.align-items-center.mb-3.pb-2.border-bottom {
    border-bottom: 1px solid #e6f2ff;
}

@media (max-width: 1024px) {
    .search-box{
        width: 200px;
    }
}
/*新闻列表*/
.news-list .news-title a {
    font-size: 16px;
    color: #333333;
    transition: color 0.2s ease;
    width: 100%;
    white-space: nowrap; /* 禁止文本换行 */
    overflow: hidden; /* 隐藏超出容器的内容 */
    text-overflow: ellipsis; /* 超出部分显示为省略号 */
    display: block;
}
.news-list .news-title a:hover {
    color: #26569E;
}

.news-list .news-desc {
    margin-top: 10px; /* 副标题距标题 10px */
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-list .news-item:hover .news-desc {
    color: #26569E !important;
}
.news-list .news-desc:hover {
    color: #26569E !important;
}
/* style.css 中添加 */
.news-list .news-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.news-list .news-item:hover {
    background-color: #f8f9fa;
}
/* 新闻详情内容样式 */
.content-detail {
    line-height: 1.7;
    color: #333;
    font-size: 14px;
}
.content-detail a{
    color: #333333;
    text-decoration: none;
}
.content-detail a:hover{
    color: #26569E;
}
.content-detail p {
    margin-bottom: 1.5rem;
}

.content-detail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 回到列表按钮 */
.btn-outline-primary {
    border-color: #26569E;
    color: #26569E;
    font-weight: 500;
}
.btn-outline-primary:hover {
    background-color: #26569E;
    color: white;
}
.font-28{
    font-size: 26px;
    font-weight: 500;
    line-height: 42px;
}

@media (max-width: 1024px) {
    .font-28{
        font-size: 20px;
    }
}

/* 下一篇按钮 */
.btn-light.border-secondary {
    border-color: #6c757d;
    color: #6c757d;
    font-size: 14px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}
.btn-light.border-secondary:hover {
    background-color: #f8f9fa;
    color: #26569E;
    border-color: #26569E;
}
.btn:hover{
    background-color: #F3F6F9;
    border-color: #F3F6F9;
}
/*分页*/
/* 分页容器 */
.page_custom {
    margin: 20px 0;
    text-align: center;
}

.page_son {
    display: inline-block;
    /*background: #f8f9fa;*/
    border-radius: 50px;
    padding: 0 10px;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.05);*/
    overflow: hidden;
}

/* 分页列表 */
.pagination {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination li {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination li a,
.pagination li span {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    white-space: nowrap;
    text-decoration: none;
}

/* 上一页按钮 */
.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 当前页高亮 */
.pagination .active {
    background-color: #fff;
    border: 2px solid #4871C1;
    color: #4871C1;
    font-weight: bold;
    border-radius: 50%;
}

/* 普通页码 */
.pagination li:not(.active):not(.disabled) a {
    color: #666;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.pagination li:not(.active):not(.disabled) a:hover {
    background-color: #e6f0ff;
    color: #4871C1;
}

/* 上一页按钮（蓝色） */
.pagination li:first-child a {
    background-color: #4871C1;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 12px;
    min-width: auto;
    font-weight: normal;
    height: 36px;
    line-height: 36px;
    text-align: center;
}

.pagination li:first-child a:hover {
    background-color: #4871C1;
}

/* 下一页按钮（白色） */
.pagination li:last-child a {
    background-color: white;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 0 12px;
    min-width: auto;
    font-weight: normal;
    height: 36px;
    line-height: 36px;
    text-align: center;
}

.pagination li:last-child a:hover {
    background-color: #f0f0f0;
}

/* 省略号 */
.pagination li span[role="separator"] {
    color: #999;
    background: transparent;
    border: none;
    font-weight: normal;
    padding: 0;
    width: auto;
    min-width: auto;
    height: auto;
    line-height: 36px;
    margin: 0 6px;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .page_son {
        padding: 0 5px;
    }
    .pagination {
        gap: 4px;
    }
    .pagination li {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .pagination li:first-child a,
    .pagination li:last-child a {
        padding: 0 8px;
        height: 30px;
        line-height: 30px;
    }
}
/* 默认隐藏二维码 */
.qrcode {
    display: none;
    z-index: 1000;
    width: 100px;        /* 建议固定宽度 */
    height: auto;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 鼠标悬停时显示 */
.wechat-trigger:hover .qrcode {
    display: block;
}
.has-image-title{
    font-size: 16px;
    width: 85%;
}
.no-image-title{
    font-size: 16px;
    width: 85%;
}
.news-list-date{
    font-size: 16px;
}
@media (max-width: 1024px) {
    .has-image-title{
        font-size: 16px;
        width: 80%;
    }
    .no-image-title{
        font-size: 16px;
        width: 100%;
    }
    .news-list-date{
        display: none;
    }
    .news-list .news-desc{
        width: 78%;
    }
    .news-list .no-image-desc{
        width: 100%;
    }
    .about-content-box{
        display: flex !important;
        flex-direction: column;
    }
}

.custom-detail-btn {
    font-size: 0.875rem;      /* 字体稍小 */
    padding: 2px 0.75rem; /* 内边距更小 */
    border-radius: 20px;      /* 更圆润的圆角 */
    border: 1px solid #4871C1;     /* 细边框 */
    transition: all 0.2s ease;
    text-decoration: none;
}

.custom-detail-btn:hover {
    background-color: #f8f9fa; /* 悬停时浅灰背景 */
    color: #4871C1;            /* 蓝色加深 */
    border-color: #4871C1;
}