/* 平滑滚动效果 */
html {
  scroll-behavior: smooth;
}

/* 导航菜单样式 */
.content .a {
  cursor: pointer;
}

.content .a small {
  cursor: pointer;
  transition: color 0.3s ease;
}

.content .a small:hover {
  color: #007bff;
}

/* 菜单显示时的样式 */
.content .a.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* 防止闪动的样式 */
.content .a {
  transition: background-color 0.2s ease;
}

/* 二级菜单样式优化 */
.content .a .big-menu {
  transition: height 0.3s ease;
  overflow: hidden;
}

.content .a .big-menu small {
  display: block;
  padding: 8px 16px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.content .a .big-menu small:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 确保菜单项在hover时保持active状态 */
.content .a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.content .a.active:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* 新闻页面样式 */
.news-container {


  /* padding: 20px; */
  background: #fff;
  padding-top: .96rem;
  background: url(../images/newsbg1-v1.png) no-repeat center;
  background-size: cover;
  padding-bottom: .4rem;
}

.news-section {
  max-width: 14.88rem;
  margin: .56rem auto 0;
}

/* section-title样式已移至common.css */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .15rem;
  margin-bottom: 40px;
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: .12rem;
  overflow: hidden;
  box-shadow: 0 .4rem .12rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  transition: all .5s;
}

.news-card:hover {
  transform: translateY(-.05rem);
  box-shadow: 0 .8rem .25rem rgba(0, 0, 0, 0.15);
}

.news-card-image {
  border-radius: .2rem;
  width: 4.86rem;
  height: 3.26rem;
  position: relative;
}

.news-card-image img {
  border-radius: .2rem;
  display: block;
  width: 4.86rem;
  height: 3.26rem;

}

.news-card.video .news-card-image::after {

  border-radius: .2rem;
  background-color: rgb(92, 108, 238);
  opacity: 0.4;
  position: absolute;
  left: 0;
  top: 0;
  width: 4.86rem;
  height: 3.26rem;
  content: '';
  z-index: 1;
}

.news-card.video .news-card-image::before {


  position: absolute;
  left: 50%;
  top: 50%;
  width: .89rem;
  height: .88rem;
  content: '';
  z-index: 2;
  transform: translate(-50%, -50%);

  background-image: url(../images/bofang.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}


.news-card-content {
  padding: .2rem;
}

.news-card-title {
  font-size: .24rem;
  font-family: "Source Han Sans CN";
  color: rgb(51, 50, 50);
  font-stretch: normal;
  height: .95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-date {
  font-size: .18rem;
  font-family: "Source Han Sans CN";
  color: rgb(108, 107, 107);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: .15rem;
}

.news-card-date::before {
  content: '';
  display: block;
  height: .18rem;
  background: url(../images/clock.png) no-repeat center;
  min-width: .18rem;
  width: .18rem;
  background-size: 100% 100%;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin-top: .45rem;
}

.pagination a,.pagination .goInputBox {
  /* padding: 8px 12px; */
  /* border: 1px solid #ddd; */
  /* border-radius: 4px; */
  text-decoration: none;
  color: #9e9f9f;
  transition: all 0.3s ease;
  font-size: .2rem;
  line-height: .4rem;
  display: block;
}

.pagination a:hover,
.pagination a.active {
  /* background: #8B5CF6; */
  color: #595757;
  /* border-color: #8B5CF6; */
}

.pagination .ellipsis {
  display: flex;
  align-items: center;
  gap: .05rem;
}
.pagination .ellipsis .dot{
  display: inline-block;
  width: .06rem;
  height: .06rem;
  background-color: #333;
  border-radius: 50%;
}
.pagination .ellipsis .dot:nth-child(2){
  /* margin: 0 .05rem; */
}
.pagination .goInputBox{
  display: flex;
  align-items: center;
 
}
.pagination .goInputBox input{
  display: block;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  color:  #333;
  font-size: .2rem;
  line-height: .38rem;
  width: .48rem;
  height: .4rem;
  box-sizing: border-box;
  text-align: center; 
  outline: none;
  margin: 0 .05rem;
border-radius: .05rem;
}
.picture-box.news-grid {
  grid-template-columns: repeat(4, 1fr);
}
.picture-box .news-card{
  background-color: transparent;
}
.picture-box .news-card-image{
    width: 3.6rem;
    height: 2.42rem;
}
.picture-box .news-card-image img{
  width: 3.6rem;
  height: 2.42rem;
}
.news-card.hidden {
display: none;
transition: all .5s;
}
/* 响应式设计 */
@media   screen and (max-width: 768px) {
  .news-grid,.picture-box.news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .2rem;
  }
  
  .right-sidebar {
    position: static;
    transform: none;
    margin: 20px 0;
    width: 100%;
  }
  .news-card{
    box-shadow: 0 .05rem .06rem rgba(0, 0, 0, 0.1);
    width: calc(50vw - .3rem);
  }

.news-card-image img,.news-card-image,.news-card.video .news-card-image::after {
  width: calc(50vw - .3rem);
  height: 2.3rem;

}
.news-card-title{
  height: .78rem;
}
}

@media  screen and (max-width: 480px) {
  .news-container {
    padding:.96rem .2rem .2rem;
  }
}