/* News Page - 语义化样式 */

/* 页面容器 */
.news-page {
  background-color: #f9fafb;
}

/* 主内容区域 */
.news-main {
  padding-bottom: 5rem;
  background-color: white;
  min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.breadcrumb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .breadcrumb-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .breadcrumb-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #4b5563;
}

.breadcrumb-link {
  color: #4b5563;
  transition: color 0.2s;
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: #1d4ed8;
}

.breadcrumb-separator {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.breadcrumb-current {
  color: #111827;
}

/* 新闻内容区域 */
.news-content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .news-content-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .news-content-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.news-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* 新闻项 */
.news-item {
  /* 新闻项容器 */
}

.news-category-label {
  font-size: 1.5rem;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.news-category-label span:first-child,
.news-category-label span:last-child {
  margin: 0 0.5rem;
}

.news-item-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-item-content {
    flex-direction: row;
  }
}

.news-thumbnail {
  border-radius: 0.5rem;
  background-color: #f3f4f6;
  flex-shrink: 0;
  height: 12rem;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-thumbnail {
    height: 14rem;
    width: 24rem;
  }
}

.news-thumbnail-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.news-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title {
  font-size: 1.25rem;
  color: #111827;
  line-height: 1.375;
  font-weight: 600;
  margin-bottom: 1rem;
}

.news-summary {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.news-cta-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #1d4ed8;
  color: white;
  font-weight: 500;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.news-cta-button:hover {
  background-color: #1e40af;
}

/* 分页 */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-button {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.5;
  background: none;
  border: 1px solid #d1d5db;
}

.pagination-button:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.pagination-button:not(:disabled):hover {
  background-color: #f3f4f6;
}

.pagination-button.active {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: white;
}

.pagination-button-icon {
  font-size: 0.75rem;
}

