/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}
.banner {
  background-color: #000;
  color: #fff;
  /* padding: 80px 0; */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: url("./image/jpsm.jpg") no-repeat center/cover; */
  /* opacity: 0.2; */
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  height: 400px;
}
.banner-txt {
  position: absolute;
  top: 40%;
  width: 100%;
  text-align: center;
  z-index: 99;
}

.banner h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.banner p {
  color: #ccc;
  font-size: 16px;
  /* max-width: 600px; */
  /* margin: 0 auto 30px; */
}

/* 板块容器 */
.news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 标签栏样式 */
.news-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.tab-btn {
  padding: 8px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  border-radius: 4px 4px 0 0;
  transition: background-color 0.3s;
}
.tab-btn:hover {
  background-color: #f5f7fa;
}
.tab-btn.active {
  background-color: #4096ff;
  color: #fff;
}

/* 资讯列表网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 资讯卡片样式 */
.news-card {
  background-color: #fff;
  border-radius: 30px;
  padding: 50px;
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  background-color: #165dff;
  color: #fff;
  box-shadow: 0 4px 15px rgba(22, 93, 255, 0.2);
}

.news-date {
  font-size: 16px;
  color: #999;
  margin-bottom: 10px;
}

.news-card:hover .news-date {
  color: rgba(255, 255, 255, 0.8);
}

.news-title {
  font-size: 24px;
  margin-bottom: 15px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 54px;
}

.news-card:hover .news-desc {
  color: rgba(255, 255, 255, 0.9);
}

.read-btn {
  font-size: 16px;
  color: #4096ff;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card:hover .read-btn {
  color: #fff;
}

.read-btn::after {
  content: "→";
  font-size: 14px;
}

/* 分页栏样式 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 40px;
  font-size: 14px;
}

.pagination li {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination li.active {
  background-color: #4096ff;
  color: #fff;
}

.page-nav {
  color: #666;
  text-decoration: none;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-tabs {
    overflow-x: auto;
    padding-bottom: 20px;
  }
  .pagination {
    justify-content: center;
  }
}
