/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #fff;
    color: #333;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}
img {
    max-width: 100%;
    height: auto;
}
.bgfff { background-color: #fff; }
.bgf7 { background-color: #f7f7f7; }
.w1200 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.ad-container {width: 100%;max-width: 1200px;text-align: center; margin: 15px auto; padding:0px !important;}
.cle:after {
    content: "";
    display: table;
    clear: both;
}
.fl { float: left; }
.fr { float: right; }

/* 间距样式 */
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }
.mb30 { margin-bottom: 30px; }
.pt30 { padding-top: 30px; }
.pb20 { padding-bottom: 20px; }
.pb30 { padding-bottom: 30px; }
.pl20 { padding-left: 20px; }
.pr20 { padding-right: 20px; }
.p20 { padding: 20px; }
.p30 { padding: 30px; }
.mr15 { margin-right: 15px; }

/* 边框和圆角 */
.br3 { border-radius: 3px; }
.b-s { border: 1px solid; }
.bb-se6 { border-bottom: 1px solid #e6e6e6; }
.bt-sf0 { border-top: 1px solid #f0f0f0; }

/* 文本样式 */
.t-a-c { text-align: center; }
.fb18 { font-size: 18px; font-weight: bold; }
.f14 { font-size: 14px; }
.f16 { font-size: 16px; }
.co666 { color: #666; }
.co999 { color: #999; }
.hlo-20 { line-height: 20px; }
.hlo-30 { line-height: 30px; }
.hlo-35 { line-height: 35px; }
.hlo-40 { line-height: 40px; }

/* 颜色样式 */
.rgb { color: #316EB5 !important; }
.bg { background: #316EB5 !important; }
a.rgb { color: #316EB5 !important; }
.rgb a { color: #316EB5 !important; }
a:hover { color: #316EB5 ; }
.b-cor { border-color: #316EB5 !important; }
.border-color { border: 1px solid #316EB5 !important; }
.bg-hover:hover, .bg-hover a:hover { 
    background: #316EB5 !important; 
    color: #FFFFFF !important; 
}

/* 导航栏样式 */
.navlogoa-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.navlogoa-logol { flex: 0 0 auto; }
.navlogoa-logom {
    flex: 1;
    min-width: 200px;
    max-width: 500px;
    position: relative;
}
.navlogoa-logom-sotext {
    width: 100%;
    padding: 10px 10px 10px 100px;
    border-radius: 3px;
    border: 2px solid #316EB5;
    outline: none;
}
.navlogoa-logom-sosubmit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    border: none;
    color: white;
    background: #316EB5 !important;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}
#liexing {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0 10px;
    border: none;
    background: transparent;
    outline: none;
    z-index: 1;
}

/* 主导航 */
.index-head-nav { border-bottom: 2px solid #316EB5; }
.index-head-nav-l {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}
.index-head-nav-l li { margin-right: 5px; }
.index-head-nav-l li a {
    display: block;
    padding: 0 15px;
    border-radius: 5px 5px 0 0;
}
.index-head-nav-l li:first-child { 
    background: #316EB5 !important; 
    font-weight: bold; 
    border-radius: 5px 5px 0px 0px; 
}
.index-head-nav-l li:first-child a { color: #FFFFFF !important; }
.index-head-nav-l li a:hover { 
    background: #316EB5 !important; 
    color: #FFFFFF !important; 
    border-radius: 5px 5px 0px 0px; 
}

/* 首页特定样式 */
.indexa-at { border-left: 7px solid #316EB5 !important; }
.indexa-box li:hover .libox { border: 1px solid #316EB5 !important; }
.layui-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.layui-col-md4 {
    flex: 0 0 100%;
    padding: 0 10px;
    margin-bottom: 20px;
}
.index1-a-t { margin-bottom: 15px; }
.index1-a-ul li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

/* 底部样式 */
.index-foot-hotcity {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}
.index-foot-hotcity dd { margin-bottom: 10px; }
.index-foot-hotcity dd a.on { 
    color: #FFFFFF; 
    background: #316EB5 !important; 
}
.index-foot-hotcity dd a:hover { 
    text-decoration: none; 
    color: #FFFFFF !important; 
    background: #316EB5 !important; 
}
.index-foot-hotcity dd a.on:hover { 
    color: #FFFFFF !important; 
    text-decoration: none; 
}

/* 列表页样式 */
.list-container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px -10px;
}
.list-left {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
}
.list-right {
    flex: 0 0 300px;
    padding: 0 10px;
}

/* 文章列表项 */
.article-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
    transition: all 0.3s;
}
.article-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-color: #316EB5;
}
.article-title {
    display: flex;
    align-items: center; 
    gap: 8px; 
    font-size: 18px !important;
    font-weight: bold;
    margin-bottom: 10px;
}
.article-title a { color: #333; }
.article-title a:hover { color: #316EB5; }
.article-summary {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 14px;
}
.article-meta {
    color: #999;
    font-size: 13px;
}

/* 地区列表 */
.region-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 3px;
}
.region-title {
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.region-list { display: flex; flex-wrap: wrap; }
.region-item {
    width: 25%;
    margin-bottom: 10px;
}
.region-item a {
    display: block;
    padding: 5px 2px;
    font-size: 14px;
    color: #666;
    border-radius: 3px;
    text-align: center;
}
.region-item a:hover {
    background: #316EB5;
    color: #fff;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #eee;
    border-radius: 3px;
    color: #666;
}
.pagination a:hover, .pagination span.current {
    background: #316EB5;
    color: #fff;
    border-color: #316EB5;
}

/* 详情页样式 */
.detail-container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px -10px;
}
.detail-left {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
}
.detail-right {
    flex: 0 0 300px;
    padding: 0 10px;
}

/* 文章详情内容 */
.article-detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
}
.article-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}
.article-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}
.article-meta {
    color: #999;
    font-size: 14px;
}
.article-meta span { margin-right: 20px; }
.article-content {
    padding: 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}
.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}
.article-content h2 {
    font-size: 20px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 3px;
}

/* 相关推荐 */
.related-articles {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
}
.related-title {
    font-size: 18px;
    font-weight: bold;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.related-list {
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px; /* 列间距 */
}
.related-item {
    display: inline-flex; /* 改为行内 Flex 容器 */
    align-items: center; /* 垂直居中 */
    gap: 8px; /* 图片和文字的间距 */
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    flex: 0 0 100%; /* 默认一列 */
}
.related-item:last-child { border-bottom: none; }
.related-item a {

    font-size: 15px;
    color: #666;
    line-height: 1.6;
}
.related-item a:hover { color: #316EB5; }
.related-item a img {
    width: 20px;
    height: auto; /* 保持图片比例 */
    vertical-align: middle; /* 兼容性备用 */
}
@media (min-width: 768px) {
    .related-item {
        flex: 0 0 calc(50% - 10px); /* 两列，减去间距的一半 */
        position: relative;
    }
.article-title {
    display: flex;
    align-items: center; 
    gap: 8px; 
    font-size: 18px !important;
    font-weight: bold;
    margin-bottom: 10px;
}
    .related-item:nth-last-child(2):nth-child(odd),
    .related-item:last-child {
        border-bottom: none;
    }

}
/* 右侧热门文章 */
.hot-articles {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 15px;
}
.hot-title {
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.hot-list { list-style: none; }
.hot-item { margin-bottom: 15px; }
.hot-item a {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.hot-item a:hover { color: #316EB5; }

/* 返回按钮 */
.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: #316EB5;
    color: white;
    border-radius: 3px;
    transition: all 0.3s;
}
.back-btn:hover {
    background: #2a5d99;
    color: white;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .layui-col-md4 { flex: 0 0 50%; }
    .pt50 { padding-top: 50px; }
    .pb30 { padding-bottom: 30px; }
}

@media (min-width: 992px) {
    .layui-col-md4 { flex: 0 0 33.333%; }
}

@media (max-width: 992px) {
    .list-right, .detail-right { flex: 0 0 250px; }
}

@media (max-width: 768px) {
    .list-container, .detail-container { flex-direction: column; }
    .list-left, .list-right, .detail-left, .detail-right { flex: auto; }
 /*   .region-item { width: 50%; }*/
    .article-title { font-size: 20px; }
    .article-header { padding: 15px; }
    .article-content { padding: 15px; }
	.ad-container {width: 89% !important;}
}

@media (max-width: 480px) {
    .navlogoa-logo {
        flex-direction: column;
        align-items: stretch;
    }
    .navlogoa-logom { max-width: 100%; }
    .navlogoa-logom-sotext { padding-left: 80px; }
    .index-head-nav-l {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }
    .index-head-nav-l li { margin-right: 0; }
    .article-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
}