/* 新闻列表页面样式 */

/* 顶部导航 */
.news-page header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Banner样式 */
.news-banner {
  background-image: url('/SmartContractPro/images/nybanner2.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 80px;
}

.news-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background: transparent;
}

.news-banner .banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-banner h1 {
  color: #333;
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.8);
  animation: fadeInUp 1s ease;
  display: block;
  padding: 0;
  width: 100%;
}

.news-banner p {
  color: #333;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 1), 0 0 8px rgba(255, 255, 255, 0.8);
  animation: fadeInUp 1.2s ease;
  display: block;
  padding: 0;
  width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 新闻导航 */
.news-nav {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.news-nav .nav-tabs {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
}

.news-nav .nav-tab {
  padding: 20px 15px;
  color: #666;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.news-nav .nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #00c0e4, #0ae0c0);
  transition: width 0.3s ease;
}

.news-nav .nav-tab:hover,
.news-nav .nav-tab.active {
  color: #00c0e4;
}

.news-nav .nav-tab:hover::after,
.news-nav .nav-tab.active::after {
  width: 80%;
}

/* 新闻分类 */
.news-category {
  background: #f5f9fc;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  margin-bottom: 20px;
}

.news-category .category-tabs {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.news-category .category-tab {
  padding: 10px 25px;
  color: #666;
  font-size: 15px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 20px;
  margin: 0 5px;
  font-weight: 500;
}

.news-category .category-tab::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #00c0e4, #0ae0c0);
  transition: width 0.3s ease;
}

.news-category .category-tab:hover {
  color: #00c0e4;
  background: rgba(0, 192, 228, 0.05);
}

.news-category .category-tab.active {
  color: #00c0e4;
  background: rgba(0, 192, 228, 0.1);
  font-weight: 600;
}

.news-category .category-tab.active::after {
  width: 50%;
}

/* 新闻列表 */
.news-list {
  padding: 50px 0 70px;
  background-color: #f9f9f9;
}

/* 网格布局样式 */
.news-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* 新闻卡片样式 */
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 20px;
  flex-grow: 1;
}

.news-card-date {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #333;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
  color: #00c0e4;
}

.news-card-link {
  display: inline-block;
  padding: 10px 20px;
  color: #00c0e4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
  margin-left: auto;
  align-self: flex-end;
}

.news-card-link:hover {
  color: #0ae0c0;
  transform: translateX(5px);
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.page-item,
.page-prev,
.page-next {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  margin: 0 5px;
  color: #666;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.page-item.active {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}

.page-item:hover:not(.active),
.page-prev:hover,
.page-next:hover {
  background: #f0f0f0;
  color: #1677ff;
  border-color: #1677ff;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .news-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-banner {
    height: 300px;
  }
  
  .news-banner h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .news-grid-container {
    grid-template-columns: 1fr;
  }
  
  .news-banner {
    height: 250px;
  }
  
  .news-banner h1 {
    font-size: 30px;
  }
  
  .news-nav .nav-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 10px;
  }
  
  .news-nav .nav-tab {
    padding: 15px 20px;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .news-banner {
    height: 200px;
  }
  
  .news-banner h1 {
    font-size: 26px;
  }
  
  .news-banner p {
    font-size: 14px;
  }
  
  .news-card-image {
    height: 180px;
  }
  
  .news-card-title {
    font-size: 16px;
  }
} 