/* 新闻列表页面 */
.news-list-page {
  min-height: 100vh;
  background-color: #f8f9fa;
}



/* 页面标题 */
.page-title {
  font-size: 2.5rem;
  color: #1a5a8a;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-top: 20px;
}

.page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #1a5a8a, #2c7fb8);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* 新闻网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.news-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #1a5a8a;
  height: 100%;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-left-color: #2c7fb8;
}

.news-item a {
  display: block;
  text-decoration: none;
  padding: 20px;
  height: 100%;
}

.news-item h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.news-item:hover h3 {
  color: #1a5a8a;
}

.news-item p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 10px 0 0 0;
}

/* 骨架屏样式 */
.skeleton-news {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 4px solid #e0e0e0;
  padding: 20px;
  min-height: 100px;
}

.skeleton-title {
  height: 20px;
  width: 80%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 15px;
}

.skeleton-time {
  height: 14px;
  width: 40%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 错误状态 */
.news-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #fff5f5;
  border-radius: 10px;
  margin: 20px 0;
}

.news-error i {
  font-size: 3rem;
  color: #dc3545;
  margin-bottom: 20px;
}

.news-error p {
  color: #dc3545;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background-color: #1a5a8a;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background-color: #2c7fb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(44, 127, 184, 0.3);
}

/* 无数据状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ccc;
}

.empty-state p {
  font-size: 1.1rem;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 50px;
  padding-bottom: 40px;
}

.page-btn {
  padding: 10px 25px;
  background-color: #1a5a8a;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
  background-color: #2c7fb8;
  transform: translateY(-2px);
}

.page-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-number {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-number:hover:not(:disabled):not(.active) {
  background-color: #f0f0f0;
}

.page-number.active {
  background-color: #1a5a8a;
  color: white;
  border-color: #1a5a8a;
}

.page-number:disabled {
  cursor: default;
}

.page-number.ellipsis {
  border: none;
  background: none;
  cursor: default;
}

/* 响应式设计 */
@media (max-width: 768px) {

  .page-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pagination {
    gap: 10px;
    flex-wrap: wrap;
  }

  .page-btn {
    padding: 8px 20px;
  }

  .page-number {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}
