/* 新闻资讯banner */
.news-banner {
  height: 300px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.news-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/news-banner-bg.png") center center no-repeat;
  background-size: cover;
  opacity: 0.1;
}
.news-banner .container {
  text-align: center;
  z-index: 1;
  position: relative;
}
.news-banner h1 {
  font-size: 42px;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.news-banner p {
  font-size: 18px;
  opacity: 0.9;
}

/* 新闻分类 */
.news-categories {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}
.category-tabs {
  display: flex;
  overflow-x: auto;
  padding: 15px 0;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}
.category-tab {
  padding: 8px 20px;
  margin-right: 10px;
  font-size: 16px;
  color: #666;
  white-space: nowrap;
  border-radius: 20px;
  transition: all 0.3s;
}
.category-tab:hover {
  color: #2575fc;
}
.category-tab.active {
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
}

/* 新闻列表 */
.news-list-section {
  padding: 60px 0;
  background-color: #f9fcff;
}
.news-content {
  display: flex;
  gap: 40px;
}
.news-main {
  width: 70%;
}
.news-sidebar {
  width: 30%;
}
.sidebar-module {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.sidebar-module h3 {
  font-size: 18px;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}
.sidebar-module h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
}

/* 头条新闻 */
.top-news {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  display: flex;
}
.top-news-img {
  width: 40%;
}
.top-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.top-news:hover .top-news-img img {
  transform: scale(1.03);
}
.top-news-info {
  width: 60%;
  padding: 30px;
}
.top-news h2 {
  font-size: 22px;
  margin: 15px 0 20px;
  text-align: left;
  padding-bottom: 0;
}
.top-news h2::after {
  display: none;
}
.top-news h2 a {
  color: #222;
  transition: color 0.3s;
}
.top-news h2 a:hover {
  color: #2575fc;
}
.news-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  color: #999;
  font-size: 12px;
  gap: 20px;
}
.news-tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: #f0e6ff;
  color: #6a11cb;
  font-size: 12px;
  border-radius: 4px;
}

/* 普通新闻列表 */
.normal-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-item {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  transition: transform 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.news-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.news-item:hover {
  transform: translateY(-5px);
}
.news-img {
  width: 30%;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-item:hover .news-img img {
  transform: scale(1.03);
}
.news-info {
  width: 70%;
  padding: 20px;
}
.news-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-info h3 a {
  color: #222;
  transition: color 0.3s;
}
.news-info h3 a:hover {
  color: #2575fc;
}
.news-info .news-desc {
  -webkit-line-clamp: 2;
  margin-bottom: 15px;
}

/* 热门资讯 */
.hot-news ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.hot-news li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: color 0.3s;
}
.hot-news li a:hover {
  color: #2575fc;
}
.hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #f0f0f0;
  color: #666;
  font-size: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}
.hot-news li:nth-child(1) .hot-rank,
.hot-news li:nth-child(2) .hot-rank,
.hot-news li:nth-child(3) .hot-rank {
  background-color: #2575fc;
  color: #fff;
}
.hot-title {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 资讯分类 */
.categories ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.categories li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
  border-bottom: 1px dashed #eee;
  transition: color 0.3s;
}
.categories li:last-child a {
  border-bottom: none;
}
.categories li a:hover {
  color: #2575fc;
}
.categories li a span {
  color: #999;
  background-color: #f5f5f5;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
}

/* 订阅资讯 */
.subscribe p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}
.subscribe-form {
  display: flex;
  gap: 10px;
}
.subscribe-form .form-control {
  flex: 1;
  padding: 10px 15px;
  font-size: 14px;
}
.subscribe-form .btn {
  padding: 0 20px;
  font-size: 14px;
  white-space: nowrap;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 5px;
  border-radius: 4px;
  border: 1px solid #eee;
  color: #666;
  transition: all 0.3s;
}
.pagination a:hover {
  border-color: #2575fc;
  color: #2575fc;
}
.pagination a.active {
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  border-color: transparent;
}
.pagination a.prev,
.pagination a.next {
  width: auto;
  padding: 0 15px;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .news-content {
    flex-direction: column;
  }
  .news-main, .news-sidebar {
    width: 100%;
  }
  .top-news {
    flex-direction: column;
  }
  .top-news-img, .top-news-info {
    width: 100%;
  }
  .top-news-img {
    height: 200px;
  }
}
@media (max-width: 768px) {
  .news-banner h1 {
    font-size: 32px;
  }
  .news-item {
    flex-direction: column;
  }
  .news-img, .news-info {
    width: 100%;
  }
  .news-img {
    height: 160px;
  }
  .category-tab {
    padding: 6px 15px;
    font-size: 14px;
  }
  .top-news-info {
    padding: 20px;
  }
  .top-news h2 {
    font-size: 18px;
  }
  .sidebar-module {
    padding: 20px;
  }
  .subscribe-form {
    flex-direction: column;
  }
}