.slideshow {
    height: 940px;
    object-fit: cover;
}

.news-nav{
    display: flex;
    justify-content: center;
    line-height: 2rem;
}

.news-nav .news-category{ 
    margin-left: 2rem;
    color: #222222;
    font-weight: bold;
    position: relative;
    font-size: 18px;
    line-height: 3rem;
}

.news-nav .news-category.active, .news-nav .news-category:hover{
    color: #E60012;
}

.news-nav .news-category::after {
  content: ""; /* 伪元素必须有 content */
  position: absolute; /* 绝对定位，不占文档流（不影响布局） */
  bottom: 0; /* 下划线靠底部 */
  left: 50%; /* 水平居中（初始位置） */
  width: 0; /* 初始宽度为 0（隐藏） */
  height: 2px; /* 下划线粗细 */
  background-color: #E60012; /* 下划线颜色（金色） */
  transition: all 0.2s ease; /* 过渡动画（平滑显示/隐藏） */
  transform: translateX(-50%); /* 水平居中修正 */
}
.news-category.active::after, .news-category:hover::after {
  width: 100%; 
}
.news-top-banner{
    background-image: url("/images/bg.jpg"); /* 相对路径 */
}


/* ----------新闻资讯---------------- */
.container .news-list{
    width: 1200px;
    height: 227px;
    box-sizing: border-box;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}
.container .news-list .pic{
    width: 406px;
    height: 226px;
    overflow: hidden;
}

/* 背景图片 */
.img-bg{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* 初始尺寸：覆盖容器（推荐，避免拉伸） */
}
/* 动画过度 */
.motion{
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}
.container .news-list .img-bg{
    height: 100%;
}
.container .news-list .img-bg:hover{ 
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}
.container .news-list .news-title{
    font-weight: bold;
    font-size: 18px;
}
.container .news-list a {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.container .news-list a:hover{
    color: #E60012;
}
.container .news-list a:hover .news-desc,
.container .news-list a .news-desc{
    height: 42px;
    line-height: 21px;
    color: #666666;
    font-size: 14px;
}
.container .news-list .news-img{
    width: 406px;
    display: block;
}
.container .news-list .news-body{
    padding-left: 20px;
}
.container .news-list .news-desc{ 
    width: 774px;
}

.container .news-list .news-date{
    color: #999999;
    font-size: 16px;
}

.c-flex{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.r-flex{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
/* 中文/英文/数字通用：2行溢出显示省略号 */
/* 3行溢出显示省略号 */
.text-ellipsis-2 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}


/* --------------  分页 ---------------- */
.page-item{
    width: 36px;
    height: 36px;
    border: none;
    background-color: rgb(255, 255, 255);
    border-radius: 18px;
    padding: 0;
    text-align: center;
    line-height: 36px;
}
.page-num{
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    color: #686B70; 
    padding: 0;
    text-align: center;
    line-height: 36px;
    border-radius: 18px;
    
}


.page-num-current {
    border: none;
    color: #fff;
    background-color: #E60012 !important;
}
.my-test:last-child{
    font-size: 50px;
}
.page-num{
    margin-right: 17px;
}
.page-prev, .page-next{
    color: #222222;
}
.page-prev{
    margin-right: 12px;
}
.page-next{
    margin-left: -5px;
}



/* ------------- 文章详情 ------------ */
.content-title{
    font-weight: 600;
}

/* ------------- top --------------------- */
.banner {
    width: 100%;
    margin: 0;
    padding: 0;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
    aspect-ratio: 1920/580;
}
