/* News Page Styles */

/* Page Banner */
.page-banner {
  position: relative;
  height: 400px;
  /* 背景图片改为在 HTML 中通过 inline style 设置 */
  background-color: #1C398E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.banner-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner-underline {
  width: 64px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

/* News Tabs */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 36px;
  font-size: 16px;
  border-radius: 6px;
  background-color: #E5E7EB;
  color: #364153;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.tab-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* News Items */
.news-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.news-list-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.news-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.news-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  text-align: center;
}

.news-date-badge .date-day {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.news-date-badge .date-month {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

.news-thumbnail {
  width: 256px;
  height: 160px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-details h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
}

.news-details p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-gray);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 14px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  list-style: none;
  padding: 0;
}

.pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  display: inline-block;
  margin: 0;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #d1d5dc;
  background-color: var(--white);
  color: var(--text-gray);
  cursor: pointer;
}

.pagination li a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: #fff5f5;
}

.pagination li.active span {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  font-weight: 500;
}

.pagination li.disabled span {
  background-color: var(--bg-light);
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
}

/* 兼容旧的按钮样式 */
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D1D5DC;
  border-radius: 4px;
  font-size: 16px;
  color: var(--text-gray);
  background-color: var(--white);
  transition: all 0.3s ease;
}

.page-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.page-btn:hover:not(.active) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-dots {
  font-size: 16px;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 1024px) {
  .banner-title {
    font-size: 36px;
  }
  
  .news-thumbnail {
    width: 200px;
    height: 130px;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 300px;
  }
  
  .banner-title {
    font-size: 28px;
  }
  
  .banner-underline {
    width: 48px;
    height: 3px;
  }
  
  .news-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    padding: 8px 24px;
    font-size: 14px;
  }
  
  .news-list-item {
    flex-direction: column;
    gap: 16px;
  }
  
  .news-date-badge {
    align-self: flex-start;
  }
  
  .news-thumbnail {
    width: 100%;
    height: 200px;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .pagination li a,
  .pagination li span {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
  }
  
  .page-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}
