/* 新闻页特有样式 */
.news-page {
  padding-top: var(--navbar-offset, 100px);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .news-page {
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  .news-page {
    padding-top: 60px;
  }

  .news-hero{
    padding: 30px 0 20px;
  }
}

/* 顶部标题 */
.news-hero {
  padding: 60px 0 20px;
  text-align: center;
}

.news-hero h1 {
  font-size: 36px;
  color: #333;
  font-weight: 500;
}

.news-hero p {
  color: #666;
  margin-top: 6px;
}

/* 列表页 */
.news-list {
  padding: 50px 60px 10px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: auto;
}

.news-card {
  transition: transform 0.3s ease;
  border: none;
}

.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-thumb {
  height: 300px;
  background: #f2f2f2;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.news-thumb.placeholder {
  background: repeating-linear-gradient(45deg, #eee, #eee 10px, #f7f7f7 10px, #f7f7f7 20px);
}

.news-meta {
  padding: 0;
}

.news-title {
  font-size: 20px;
  font-weight: normal;
  color: #333;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 0;
  line-height: 1.6;
}

.news-date {
  display: none;
}

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.news-pagination .page {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.news-pagination .page.current {
  background: #000;
  color: #fff;
  border-color: #000;
}

.news-pagination .page.prev,
.news-pagination .page.next {
  color: #555;
}

/* 详情页 */
.article-hero {
  padding: 40px 60px 20px;
  text-align: center;
}

.article-hero h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 1px;
}

.article-subtitle {
  color: #666;
  margin-top: 6px;
}

.article-date {
  color: #999;
  margin-top: 8px;
}

.article-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 60px;
  margin-top: 60px;
}

.article-figure {
  margin: 18px 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.article-figure figcaption {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.article-paragraph {
  color: #333;
  line-height: 1.9;
  font-size: 15px;
  margin: 10px 0;
}

/* 响应式 */
@media (min-width: 769px) and (max-width: 1024px) {
  .news-list {
    padding: 50px 40px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-thumb {
    height: 240px;
  }

  .news-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .news-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .article-content {
    padding: 0 40px 48px;
  }

  .article-hero h1 {
    font-size: 20px;
  }

  .article-paragraph {
    font-size: 14px;
    line-height: 1.8;
  }
}

@media (max-width: 768px) {
  .news-list {
    padding: 35px 20px;
  }

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

  .news-thumb {
    height: 200px;
  }

  .news-title {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .news-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .article-content {
    padding: 0 20px 35px;
    margin-top: 20px;
  }

  .article-hero h1 {
    font-size: 18px;
  }

  .article-subtitle {
    font-size: 14px;
  }

  .article-paragraph {
    font-size: 14px;
    line-height: 1.7;
  }

  .news-pagination {
    margin-top: 20px;
  }

  .news-pagination .page {
    padding: 5px 8px;
    font-size: 13px;
  }
}