﻿*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:"Microsoft Yahei",SimSun,sans-serif;font-size:14px;color:#333;background:#fff;line-height:1.5;}
/* 全局过渡动画基类 */
a,li,.box-head,.news-ul li{transition: all 0.28s ease;}

/* 内容容器基准 */
.wrap{
    max-width: 1200px;
    width: 100%;
    margin:0 auto;
    padding: 0 12px;
}

/* 头部banner区域（图片横幅） */
.top-banner{
    width:100%;
    min-height: 395px;
    /* 替换顶部大图 */
    background: url(../images/banner_top.jpg) #cce2f5 center top no-repeat;
    background-size:cover;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    opacity:0;
    animation: fadeIn 0.8s ease forwards;
}
.header-logo{
    display:flex;
    align-items:center;
    z-index:2;
}
.danghui{width:95px;height:95px;margin-right:12px;}
.title-text{text-align:center;}
.title-text h1{font-size:46px;color:#c60f1b;font-weight:bold;font-family:SimSun;letter-spacing:4px;}
.title-text p{font-size:18px;color:#c60f1b;margin-top:6px;letter-spacing:1px;}

/* 导航栏 */
.nav{
    width:100%;
    height:46px;
    margin-top: -47px;
    animation: fadeIn 0.8s ease forwards;
}
.nav-inner{
    max-width: 1200px;
    width:100%;
    height:100%;
    margin:0 auto;
    padding:0 12px;
    display:flex;
    align-items:center;
    gap:0; /* 消除导航与搜索框空隙 */
    background: #e52500;
    border-radius: 8px;
}
.nav-list{
    display:flex;
    list-style:none;
    flex:1;
}
.nav-list li{
    height:46px;
    line-height:46px;
    padding: 0 35px;
    position:relative;
    white-space: nowrap;
    cursor:pointer;
}
.nav-list li a{
	color:#fff;
	font-size:15px;
	font-weight: 600;
	text-decoration: none;
}
.nav-list li:not(:last-child)::after{
    content:"|";
    color: rgb(250 121 96);
    position:absolute;
    right:0;
}
.nav-list li:hover{background:#ffc85b;}
.nav-list li:first-child{/* background: #ffc85b; */}

/* 搜索区域 | 按钮替换图片 */
.search-area,.search-area form{display:flex;align-items:center;}
.search-area input{
    height:26px;
    width: 160px;
    padding:0 8px;
    border:none;
    outline:none;
    font-size:12px;
}
.search-btn{
    width:28px;
    height:26px;
    border:none;
    cursor:pointer;
    /* 替换你的搜索按钮图片地址 */
    background: url("../images/search_btn.png") center/contain no-repeat #d22807;
}
.search-btn:hover{
	background: url("../images/search_btn.png") center/contain no-repeat #a62006;
}

/* 主体内容 */
.main{margin:16px auto;}
.row-two{
    display:flex;
    justify-content:space-between;
    gap:24px;
    margin-bottom:18px;
}
.col{
    flex:1;
    width: calc(50% - 12px);
    opacity:0;
    animation: fadeUp 0.6s ease forwards;
}
/* 错开动画时间，层次感 */
.row-two:nth-of-type(1) .col{animation-delay:0.2s;}
.row-two:nth-of-type(2) .col{animation-delay:0.4s;}
.row-two:nth-of-type(3) .col{animation-delay:0.6s;}

.box-head{
    display:flex;
    justify-content:space-between;
    align-items: flex-start;
    /* border-bottom:1px solid #c60f1b; */
    padding-bottom:4px;
    margin-bottom:8px;
    background: url(../images/cbg.jpg) repeat-x;
    height: 60px;
}
.box-head h3{
    font-size:16px;
    color: #cb0504;
    font-weight:bold;
    padding-left:15px;
    border-left: 4px solid #cb0504;
    margin-top: 10px;
    position: relative;
}
.box-head h3::after{
	content: '';
	position: absolute;
	left: 4px;
	bottom: -26px;
	width: 100%;
	height: 5px;
	background-color: #cb0504;
	transition: width 0.3s ease;
}
.box-head .more{color:#c60f1b;text-decoration:none;font-size: 17px;margin-top: 10px;margin-right: 10px;}
.box-head .more:hover{color:#999;}

.news-ul{list-style:none;}
.news-ul li{
    display:flex;
    justify-content:space-between;
    height: 40px;
    line-height: 40px;
    /* border-bottom:1px dotted #ddd; */
    padding:0 4px;
    font-size: 16px;
}
.news-ul li:hover{/* background:#f8f8f8; */}
.news-ul li a{
    color: #494949;
    text-decoration:none;
    font-size: 15px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    flex:1;
    padding-right: 10px;
}
.news-ul li a::before{content:"· ";color: #dadada;font-weight: bold;padding-right: 5px;}
.news-ul li a:hover{color:#c60f1b;}
.news-date{color:#888;font-size: 15px;flex-shrink:0;}

/* 通栏横幅（图片替换） */
.banner-block{
    width:100%;
    height:140px;
    margin:22px 0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    font-weight:bold;
    color:#fff;
    font-family:SimSun;
    letter-spacing:2px;
    opacity:0;
    animation: fadeIn 0.7s ease forwards;
    style="cursor: pointer;";
    cursor: pointer;
}
.banner1{
    /* 横幅图1地址 */
    background:url("../images/banner_1.jpg") center/cover no-repeat #b80917;
    animation-delay:0.3s;
}
.banner2{
    /* 横幅图2地址 */
    background:url("../images/banner_2.jpg") center/cover no-repeat #e64329;
    animation-delay:0.5s;
    cursor: auto;
}

/* 友情链接 */
.link-area{
    display:flex;
    align-items:center;
    margin-top:20px;
    flex-wrap: wrap;
    gap: 8px;
}
.link-label{
    color:#cc0607;
    font-weight:bold;
    width:65px;
    line-height:22px;
	border-right: 2px solid #ebebeb;
}
.link-area select{
    height:28px;
    border:1px solid #ccc;
    margin-right:16px;
    margin-left: 35px;
    border-radius: 4px;
    width: 175px;
    text-indent: 1em;
    color: #a19f9f;
}

/* 页脚 */
.footer{
    width:100%;
    background: #e52500;
    color:#fff;
    text-align:center;
    padding:20px 0;
    margin-top:25px;
    font-size:13px;
    line-height:26px;
}
.footer a{
	color:#fff;
	text-decoration:none;
}
.footer-logo{
    margin:6px 0;
}
.footer-logo img{
    height:36px;
    vertical-align:middle;
}

/* 动画定义 */
@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}
@keyframes fadeUp{
    from{opacity:0;transform:translateY(12px);}
    to{opacity:1;transform:translateY(0);}
}

/* ========== 【新增代码开始】右侧固定悬浮图 + 大图弹窗 ========== */
/* 侧边悬浮小图容器：垂直居中固定在右侧 */
.fixed-side-img{
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    cursor: pointer;
}
/* 小图样式 */
.fixed-side-img img{
    display: block;
    width: 160px; /* 可根据你的图片实际尺寸调整宽度 */
    height: auto;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
}
/* 小图的关闭按钮 */
.fixed-side-img .close-small{
    position: absolute;
    top: -10px;
    left: -10px;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.fixed-side-img .close-small:hover{
    background: #e52500;
    color: #fff;
    border-color: #e52500;
}

/* 大图弹窗遮罩层 */
.big-img-modal{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
/* 弹窗显示状态 */
.big-img-modal.show{
    display: flex;
}
.big-img-modal .modal-content{
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.big-img-modal .modal-content img{
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 4px;
}
/* 大图的关闭按钮 */
.big-img-modal .close-big{
    position: absolute;
    top: -20px;
    right: -20px;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.big-img-modal .close-big:hover{
    background: #e52500;
    color: #fff;
}

/* ========== 【新增代码结束】 ========== */


/* ========== 列表页新增样式 ========== */
/* 面包屑 */
.crumb{
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    max-width: 1200px;
    margin: 20px auto 20px auto;
    padding: 0 10px;
}
.crumb a{color:#666;text-decoration:none;}
.crumb a:hover{color:#c60f1b;}

/* 左右布局：左侧侧边栏，右侧列表 */
.main-layout{
    display:flex;
    gap:24px;
    margin: 16px auto;
}
.sidebar{
    width: 300px;
    flex-shrink: 0;
}
.side-box{
    margin-bottom: 20px;
}
.sidebar .news-ul li{
    height: auto;
    line-height: 28px;
    padding: 6px 4px;
}
.main-content{
    flex: 1;
    min-width: 0;
}

/* 分页 */
.pagination,#setpage{
    display:flex;
    justify-content:center;
    gap:8px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span,#setpage a,#setpage span{
    display:inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
    text-align:center;
    border:1px solid #ddd;
    padding:0 10px;
    font-size:14px;
    color:#333;
    text-decoration:none;
    border-radius: 2px;
}
#setpage span#info{border:none;}
.pagination .current,#setpage .submit,#setpage a:hover{
    background:#e52500;
    color:#fff;
    border-color:#e52500;
}
.pagination a:hover{
    border-color:#e52500;
    color:#e52500;
}
#setpage .submit{padding:0 10px;border:0px;}


/* ========== 内容页新增样式 ========== */
.crumb{
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}
.crumb a{color:#666;text-decoration:none;}
.crumb a:hover{color:#c60f1b;}

/* 内容页全屏宽度，无侧边栏 */
.main-content{
    width:100%;
    background:#fff;
    /* padding: 0px 24px; */
}

/* 文章标题与信息 */
.article-title{
    text-align:center;
    font-size: 24px;
    font-weight:bold;
    color:#333;
    line-height: 1.5;
    margin-bottom: 12px;
    font-family: "SimSun", "STSong", "Songti SC", serif;
}
.article-info{
    text-align:center;
    font-size:13px;
    color:#999;
    padding-bottom: 16px;
    border-bottom: 1px dashed #ddd;
    margin-bottom: 20px;
}
.article-info a{text-decoration:none;color:#999}
.article-info span{margin:0 8px;}

/* 正文 */
.article-body{
    font-size: 16px;
    line-height: 2;
    color:#333;
    text-align: justify;
}
.article-body p{
    margin-bottom: 16px;
    text-indent: 2em;
}
.article-body img{
    max-width:100%;
    height:auto;
    display:block;
    margin: 16px auto;
}


/* ========== 移动端响应式媒体查询（新增核心适配代码） ========== */
/* 平板：768px以下 */
@media screen and (max-width:768px) {
    /* 顶部banner高度压缩、标题缩小 */
    .top-banner{min-height:220px;padding:20px 0;}
    .danghui{width:60px;height:60px;}
    .title-text h1{font-size:26px;letter-spacing:2px;}
    .title-text p{font-size:14px;}

    /* 导航改为横向滚动，搜索缩小 */
    .nav{height:auto;margin-top:-30px;animation: fadeIn 0.8s ease forwards;}
    .nav-inner{height:auto;padding:8px 12px;flex-wrap:wrap;gap:8px;}
    .nav-list{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;}
    .nav-list li{height:36px;line-height:36px;padding:0 14px;font-size:13px;}
    .nav-list li a{font-size:13px;}
    .search-area input{width:120px;height:24px;}
    .search-btn{height:24px;width:26px;}

    /* 两栏布局改为单列堆叠 */
    .row-two{flex-direction:column;gap:16px;}
    .col{width:100%;}

    /* 栏目标题、新闻行适配 */
    .box-head{height:auto;padding: 8px 0 6px 0;border-bottom: 4px solid #dfdfdf;}
    .box-head h3{font-size:15px;margin-top: 0px;}
    .box-head h3::after{bottom: -13px;height: 4px;}
	.box-head .more{margin-top: 0px;}
    .news-ul li{height:auto;line-height:32px;padding:6px 4px;flex-wrap:wrap;}
    .news-ul li a{font-size:14px;width:100%;margin-bottom:2px;}
    .news-date{font-size:13px;}

    /* 通栏横幅高度降低、文字缩小 */
    .banner-block{height:90px;font-size:20px;padding:0 12px;text-align:center;}

    /* 友情链接自动换行，左间距取消 */
    .link-area{gap:12px;padding:10px 0;}
    .link-label{width:50px;font-size:13px;}
    .link-area select{width:140px;margin-left:0;margin-right:8px;}

    /* 页脚文字缩小，行高拉开防挤 */
    .footer{font-size:12px;line-height:22px;padding:16px 12px;}
    .footer p{margin:6px 0;}
	
	/* 手机上下排列 */
    .main-layout{flex-direction:column;}
    .sidebar{width:100%;order:1;display: none;}
    .main-content{order:2;}

    .box-head{height:auto;padding: 8px 0 6px 0;border-bottom: 4px solid #dfdfdf;}
    .box-head h3{font-size:15px;margin-top: 0;}
    .box-head h3::after{bottom: -14px;height: 4px;}
	.box-head .more{margin-top: 0;}
    .news-ul li{height:auto;line-height:32px;padding:6px 4px;flex-wrap:wrap;}
    .news-ul li a{font-size:14px;width: 98%;white-space:normal;overflow: hidden; /* 隐藏溢出的内容 */text-overflow: ellipsis; /* 溢出内容显示为省略号 */white-space: nowrap; /* 防止文本换行 */}
	
	/* 悬浮窗 */
	.fixed-side-img img{
        width: 80px;
    }
    .big-img-modal .close-big{
        top: -15px;
        right: -15px;
        width: 30px;
        height: 30px;
        line-height: 28px;
        font-size: 16px;
    }
}

/* 手机小屏：480px以下 */
@media screen and (max-width:480px) {
    .wrap{padding:0 8px;}
    .title-text h1{font-size:22px;}
	.crumb{width:95%;}
    /* 导航隐藏分隔线，进一步压缩内边距 */
    .nav-list li{padding:0 10px;}
    .nav-list li:not(:last-child)::after{display:none;}
    /* 横幅文字再次缩小 */
    .banner-block{font-size:16px;height: 52px;background-size: cover;margin: 0 auto 25px auto;}
    /* 友情链接整行独占 */
    .link-area select{width:100%;margin:4px 0;}
    .link-label{width:100%;border-right:none;border-bottom:2px solid #ebebeb;padding-bottom:4px;margin-bottom:4px;}
	/*分页*/
	.pagination a,
    .pagination span{min-width:28px;height:28px;line-height:26px;padding:0 8px;font-size:13px;}
}