/* 新闻头条页面样式 */

.page-header {
  background: linear-gradient(180deg, #1e88e5 0%, #00d4ff 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 新闻分类标签 */
.news-tabs {
  background: #fff;
  padding: 30px 20px;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 70px;
  z-index: 100;
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 30px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  background: #e9ecef;
  border-color: #2c5aa0;
  color: #1890ff;
}

.tab-btn.active {
  background: #1890ff;
  border-color: #2c5aa0;
  color: #fff;
}

/* 新闻列表 */
.news-list {
  padding: 60px 20px;
  background: #f8f9fa;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* 新闻卡片 */
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(44,90,160,0.15);
}

.news-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.news-badge.policy {
  background: #1890ff;
}

.news-badge.industry {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.news-badge.company {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.news-content {
  padding: 25px;
}

.news-title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 15px;
}

.news-date,
.news-views {
  color: #999;
  font-size: 0.9rem;
}

.read-more {
  display: inline-block;
  color: #1890ff;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.read-more:hover {
  color: #1e3a70;
  transform: translateX(5px);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-btn {
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
  background: #2c5aa0;
  border-color: #2c5aa0;
  color: #fff;
}

.page-btn.active {
  background: #1890ff;
  border-color: #2c5aa0;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs-wrapper {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .tab-btn {
    white-space: nowrap;
  }
  
  .news-image {
    height: 180px;
  }
  
  .image-placeholder {
  }
  
  .pagination {
    flex-wrap: wrap;
  }
}


/* 始终为滚动条保留位置，防止跨页跳转时 navbar 抖动 */
html { overflow-y: scroll; }

