/* 新闻活动页面样式 */
section,header,footer,.page-banner{
  max-width: 1920px;
  margin: 0 auto;
}
/* 页面banner */
.page-banner {
  height: 400px;
  padding: 80px 0;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-image: url("../images/news/newsbanner.png");
}
.page-banner h2{
  text-align: center;
  padding-top: 100px;
  font-size: 50px;
  color: #000;
  font-weight: 600;
}
.page-banner p{
  margin-top: 20px;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  font-weight: 600;
}

/* 选项卡样式 */
.news-tabs {
  padding:  0;

  box-sizing: border-box;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  width: 100%;
  height: 150px;
}
.middleSplice{
  width: 52px;
  height: 100%;
  position: relative;
}
.tab-item {
  width: calc(50% - 25px);
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  padding: 16px ;
  padding-top: 26px;
}
.tab-item:nth-of-type(1){
  background-color: #c6ecf8;
}
.tab-item:nth-of-type(3){
  background-color: #daf2ea;
}
.top-left {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #c6ecf8;
  clip-path: polygon(0 0, 0 100%, 100% 0);
}

.bottom-right {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #daf2ea;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.tab-icon {
  display: inline-block;
    width: 22px;
    height: 28px;
    background-color: azure;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    vertical-align: top;
}
.tab-item span {
  font-size: 18px;
  color: #666;
  font-size: 18px;
  line-height: 28px;
  margin-left: 8px;
}
.tab-item h4 {
  font-size: 26px;
  font-weight: normal;
  margin-bottom: 16px;
}
.tab-item.active span {
  color: #389759;
  font-weight: bold;
}
.tab-item.active h4 {
  color: #389759;
  font-weight: bold
}
/* 选项卡内容 */
.tab-content {
  margin-bottom: 40px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h2 {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.tab-panel h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #389759;
}

/* 新闻列表样式 */
.news-list {
  margin-top: 40px;
  height: auto;
  background-color: #f6f5f5;
  padding: 40px 4%;
 
}
.real-list{
  display: flex;
  padding: 40px 4%;
  justify-content: space-around;
  flex-direction: row;
  display: grid; 
  grid-template-columns: repeat(2,1fr); 
  gap: 50px;
}
.real-list .realNews-item{
  width: 100%;
  height: 100%;
}
.real-image{
  margin-top: 20px;
  width: 100%;
  height: 400px;
  overflow: hidden; 
}
.realNews-item{
  width: 30%;
  padding: 20px 50px;
  background-color: #fff;
  border-radius: 30px;
  box-sizing: border-box;
}
.real-info h3{
  margin: 10px 0;
}
.real-meta{
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center; 
  margin-top: 10px;
}
.real-date{
  font-weight: 600;
  font-size: 16px;
}
.real-mo-bt{
  padding: 3px 25px;
  background-color: #169bd5;
  color: #fff;
  border-radius: 14px;
  font-size: 16px;
}
.news-item {
  height: 200px;
  display: flex;
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.news-image {
  flex: 0 0 300px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-info {
  flex: 1;
  padding: 20px;
}

.news-info h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.news-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.2em; /* 2行文字的高度 */
  text-indent: 2em;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 15px;
}

.news-date:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background: url("../images/clock-icon.png") no-repeat center/cover;
}

/* 分页样式 */
#laypage {
  text-align: center;
}





/* 响应式调整 */
@media (max-width: 992px) {
  .news-item {
    flex-direction: column;
  }

  .news-image {
    flex: 0 0 200px;
  }
}

@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
  }

  .tab-item {
    padding: 10px;
  }

  .page-banner {
    height: 200px;
  }

  .page-banner h1 {
    font-size: 28px;
  }
}
