/* 科普文章列表页面 */
.science-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;
}

/* 文章列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

/* 文章卡片 */
.article-card {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
  width: 300px;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.article-content h3 {
  font-size: 1.3rem;
  color: #1a5a8a;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-note {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: #999;
  font-size: 0.9rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta i {
  margin-right: 3px;
}

/* 加载状态 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #1a5a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

.error-state 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-icon {
  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;
  }

  .article-card {
    flex-direction: column;
  }

  .article-image {
    width: 100%;
    height: 200px;
  }

  .article-content {
    padding: 20px;
  }

  .article-content h3 {
    font-size: 1.1rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }

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

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

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