.news-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px;
}

.news-body {
  width: 100%;
  margin-bottom: 20px;
  padding: 48px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.news-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.news-time {
  color: #666;
  margin-bottom: 10px;
}

.news-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.news-content {
  line-height: 1.6;
  text-indent: 2em;
  /* 段落缩进两个字符 */
}

.news-container p {
  margin-bottom: 8px;
}
/* banner */
.banner {
  height: 300px;
  width: 100%;
  background-image: url("../images/gyl/banner-bg-news.jpg");
  background-size: cover;
  background-position: center;
}

/* 中间板块 */

.allnews {
  margin-top: 48px;
  margin-bottom: 48px;
}

.allnews .active {
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 15px;
  padding-bottom: 15px;
  background: #2947a9;
  border-radius: 24px;

  justify-content: center;
  align-items: center;
  display: inline-flex;
  color: #ffffff;
  font-size: 14px;
  font-family: Alibaba PuHuiTi 3;
  font-weight: 500;
  line-height: 20px;
  word-wrap: break-word;
}

.tab_list ul {
  display: flex;
  gap: 24px;
}

.tab_list li {
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-radius: 24px;
  border: 1px #f2f2f2 solid;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  color: #050038;
  font-size: 14px;
  font-family: Alibaba PuHuiTi 3;
  font-weight: 400;
  line-height: 20px;
  word-wrap: break-word;
  cursor: pointer;
}

/* 新闻主体 */

#news-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 48px;
  max-width: 1160px;
  padding-top: 20px;
}
.news {
  width: 100%;
  display: flex;
  align-items: center;
  max-height: 178px;
  padding-bottom: 48px;
  border-bottom: 1px solid #ddd;
}

.date-container {
  width: 90px;
  text-align: center;
  margin-right: 40px;
  flex-shrink: 0;
}

.date-container .day {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.date-container .month-year {
  font-size: 24px;
  /* letter-spacing: -0.5px; */
  color: #666;
  line-height: 1.2;
}

.image {
  margin-right: 20px;
  flex-shrink: 0;
  width: 275px;
  height: 100%;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content h2 {
  width: 600px;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 10px;
  white-space: nowrap; /* 强制一行显示 */
  overflow: hidden; /* 隐藏超出部分 */
  color: #333;
  text-overflow: ellipsis; /* 超出部分显示省略号 */
}

.content p {
  color: #444;
  font-size: 16px;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* 限制为两行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 超出部分显示省略号 */
  text-decoration: none !important;
}
.parastyle:hover {
  text-decoration: none !important;
}
.parastyle {
  text-decoration: none !important;
}
.parastyle:visited {
  text-decoration: none !important;
}
.btn {
  height: 32px;
  line-height: 32px;
  display: inline-block;
  padding: 0 15px;
  color: #666;
  border: 1px solid #999;
  text-decoration: none;
  border-radius: 16px;
  align-self: flex-end;
}

.btn:hover {
  background-color: #ef4921;
  color: #fff;
}

/* 分页器整体样式 */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

/* 分页按钮样式 */
#pagination button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background-color: #ef4921;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pagination button:hover {
  background-color: #ef4921;
}

#pagination button.disabled {
  background-color: #e0e0e0;
  color: #8c8c8c;
  cursor: not-allowed;
}

/* 页码容器样式 */
#pages {
  display: flex;
  gap: 5px;
}

/* 页码样式 */
#pages span {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ef4921;
  border-radius: 4px;
  color: #ef4921;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#pages span:hover {
  background-color: #ef4921;
  color: white;
}

/* 当前页码的样式 */
#pages span.active {
  background-color: #ef4921;
  color: white;
  font-weight: bold;
  cursor: default;
  border-color: #ff6842;
}
