/* ====== 基础重置和通用样式 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ====== 布局容器 ====== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* ====== 主内容区域 ====== */
.main-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* ====== 栅格系统 ====== */
.col-sm-1, .col-sm-11, .col-md-4, .col-md-8, .col-md-12, .col-md-128 {
    padding: 0 0px;
}

.col-sm-1 {
    width: 6.333333%;
}

.col-sm-11 {
    width: 91.666667%;
}

.col-md-4 {
    width: 33.333333%;margin-left: 10px; 
}

.col-md-8 {
    width: 66.666667%;
}

.col-md-12 {
    width: 100%;
}

.col-md-128 {
    width: 100%;
}

/* ====== 头部导航优化 ====== */
.header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    background: #024ac2;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

.xl_top {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.icon h1 {
    margin: 0;
    padding: 5px 0;
}

.icon h1 a img {
    transition: transform 0.3s ease;
    max-height: 40px;
}

.icon h1 a:hover img {
    transform: scale(1.05);
}

.mobi_padd0 {
    display: flex;
    align-items: center;
}

.ind_Menu {
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
    flex-wrap: wrap;
}

.ind_Menu li {
    margin: 0 5px;
}

.ind_Menu li a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    font-size: 16px;
}

.ind_Menu li a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.ind_Menu li a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.ind_Menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.ind_Menu li a:hover::after {
    width: 80%;
}

/* ====== 优化专题标题区域 ====== */
.headtitle {
    padding: 2px 0;
    margin-bottom: 10px;
    border-radius: 0px;
    border: 0px solid rgba(30, 87, 153, 0.1);
    position: relative;
    overflow: hidden;
}

.headtitle::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(30, 87, 153, 0.03), transparent);
    border-radius: 0 12px 0 0;
}

.newsnav {
    position: relative;
    z-index: 2;
}

.newsnav p {
    margin: 0;
    padding: 0 0px;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.newsnav a {
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding: 3px 8px;
    border-radius: 4px;
}

.newsnav a:hover {
    color: #fff;
    background-color: #1e5799;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 87, 153, 0.2);
}

.newsnav a:last-child {
    font-weight: 500;
}

.newsnav a:last-child:hover {
    background-color: #ff6b6b;
    color: white;
}

.newsnav span {
    margin: 0 8px;
    color: #aaa;
    font-size: 14px;
}

/* 添加专题标题装饰元素 */
.headtitle .decoration {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.headtitle .decoration i {
    font-size: 40px;
    color: rgba(30, 87, 153, 0.1);
}

/* ====== 左侧内容区域 ====== */
.content {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 0px;
    transition: box-shadow 0.3s ease;
}

.content:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.main-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e5799;
}

.main-title h3 {
    color: #1e5799;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
    margin: 0;
}

.main-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #1e5799, #2989d8);
    border-radius: 2px;
}

/* ====== 新闻列表 ====== */
.list_16.mt10 {
    margin-top: 0;
}

/* 修复图片对齐问题 */
.list_16 li {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    align-items: center; /* 改为center实现垂直居中 */
    position: relative;
}

.list_16 li:last-child {
    border-bottom: none;
}

.list_16 li:hover {
    background-color: rgba(30, 87, 153, 0.03);
    transform: translateX(5px);
    border-left: 3px solid #1e5799;
}

.list_16 li img {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 0px;
    margin-right: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    align-self: center; /* 确保图片自身居中 */
}

.list_16 li:hover img {
    transform: scale(1.03);
}

.list_16 li .content.ispic {
    flex: 1;
    min-width: 0;
}

.list_16 li .content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.list_16 li .content h3 a {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-decoration: none;
}

.list_16 li .content h3 a:hover {
    color: #1e5799;
}

.list_16 li .content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.list_16 li .content em {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 13px;
    flex-wrap: wrap;
    font-style: normal;
}

.list_16 li .content em span:first-child {
    color: #1e5799;
    font-weight: 500;
}

/* ====== 分页样式 ====== */
.page_n {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.page_n a, .page_n span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.page_n a:hover {
    background-color: #1e5799;
    color: white;
    border-color: #1e5799;
}

.page_n .current {
    background-color: #1e5799;
    color: white;
    border-color: #1e5799;
    font-weight: bold;
}

.page_n .previous, .page_n .next {
    padding: 8px 20px;
}

/* ====== 右侧图集 ====== */
.sidebar-gallery {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-gallery:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-gallery .gallery-title {
    padding: 20px 20px 15px;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.sidebar-gallery .gallery-title h3 {
    color: #1e5799;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
    margin: 0;
}

.sidebar-gallery .gallery-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(to bottom, #ff6b6b, #ff8e8e);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-img-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-img-link:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img-link:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .gallery-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    background: rgba(30, 87, 153, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
}

.gallery-desc {
    margin: 0;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #333;
    line-height: 1.4;
    background: white;
    border-top: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ====== 页脚 ====== */
.footer {
    background: #fafafa;
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 5px solid #1e5799;
    text-align: center;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer span:last-child {
    margin-bottom: 0;
}

/* ====== 返回顶部按钮 ====== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(30, 87, 153, 0.4);
    font-size: 20px;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(30, 87, 153, 0.6);
}

/* ====== 工具类 ====== */
.clear {
    clear: both;
}

.zhanwei {
    height: 10px;
}

.fs-text {
    color: #666;
    font-size: 14px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* ====== 响应式设计 ====== */
@media (min-width: 992px) {
    .main-content {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .col-md-4, .col-md-8 {
        flex: 0 0 auto;
    }
    
    .headtitle .decoration {
        display: block;
    }
}

@media (max-width: 992px) {
    .col-md-4, .col-md-8 {
        width: 100%;
    }
    
    .col-md-4 {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 30px;
    }
    
    .list_16 li {
        flex-direction: column;
        align-items: flex-start; /* 移动端改回顶部对齐 */
    }
    
    .list_16 li img {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
        align-self: flex-start; /* 移动端图片顶部对齐 */
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ind_Menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .ind_Menu li {
        margin: 5px;
    }
    
    .headtitle {
        padding: 20px 0;
        border-radius: 8px;
    }
    
    .headtitle::before {
        width: 4px;
    }
    
    .newsnav p {
        padding: 0 20px;
        font-size: 14px;
    }
    
    .content {
        padding: 15px;
        border-radius: 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .gallery-item img {
        height: 120px;
    }
    
    .page_n a, .page_n span {
        padding: 6px 12px;
        margin: 0 2px;
        min-width: 35px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .col-sm-1, .col-sm-11 {
        width: 100%;
    }
    
    /* 修复手机模式下logo居中问题 */
    .col-sm-1 {
        display: flex;
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中 */
        text-align: center;
        padding: 10px 0; /* 增加上下间距 */
    }
    
    .icon h1 {
        text-align: center;
        width: 100%;
    }
    
    .icon h1 a {
        display: inline-block;
    }
    
    .icon h1 a img {
        max-height: 35px; /* 适当调整logo大小 */
        width: auto;
        margin: 0 auto;
    }
    
    /* 调整菜单区域 */
    .mobi_padd0 {
        padding-top: 10px;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
    
    .ind_Menu {
        justify-content: center;
        flex-wrap: wrap;
        padding-right: 0; /* 移除右内边距 */
    }
    
    .ind_Menu li {
        margin: 5px 3px; /* 调整间距 */
    }
    
    .ind_Menu li a {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .headtitle {
        margin-bottom: 20px;
        padding: 15px 0;
    }
    
    .newsnav p {
        padding: 0 15px;
        font-size: 15px;
    }
    
    .newsnav a {
        padding: 2px 6px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .gallery-item img {
        height: 100px;
    }
    
    .gallery-desc {
        font-size: 12px;
        padding: 8px 5px;
    }
    
    .list_16 li .content h3 a {
        font-size: 16px;
    }
    
    .list_16 li .content p {
        font-size: 14px;
    }
    
    .page_n a, .page_n span {
        padding: 5px 10px;
        margin: 0 1px;
        min-width: 30px;
        font-size: 12px;
    }
}

/* 平板设备优化 */
@media (min-width: 577px) and (max-width: 768px) {
    .col-sm-1 {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .icon h1 {
        text-align: center;
    }
}