/* ========================================
   新闻列表组件样式
======================================== */

.junhua-news-list-section {
  position: relative;
  padding: var(--spacing-9xl) 0;
  overflow: hidden;
}

.junhua-news-list-container {
  position: relative;
  z-index: 1;
}

/* 标题区域 */
.junhua-news-list-header {
  text-align: center;
  margin-bottom: var(--spacing-7xl);
}

.junhua-news-list-title {
  font-family: var(--font-family);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  color: var(--text-color-strong);
  margin-bottom: var(--spacing-2xl);
}

.junhua-news-list-highlight-title {
  color: var(--primary-color);
}

.junhua-news-list-subtitle {
  font-family: var(--font-family);
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  color: var(--text-color-strong);
  margin: 0;
}

/* 新闻列表网格 */
.junhua-news-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-7xl);
}

/* 新闻卡片 */
.junhua-news-list-item {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color-white);
  border: var(--border-width-thin) solid var(--border-color-lightest);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem var(--spacing-7xl);
  transition: var(--transition-base);
  text-decoration: none;
  position: relative;
}

.junhua-news-list-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* 卡片内容 */
.junhua-news-list-item-content {
  display: grid;
  grid-template-columns: 80% 20%;
  height: 100%;
  gap: var(--spacing-lg);
}

/* 头部区域 */
.junhua-news-list-item-header {
  display: flex;
  gap: var(--spacing-3xl);
}

/* 日期 */
.junhua-news-list-item-date {
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-title);
  color: var(--text-color-strong);
  flex-shrink: 0;
}

/* 文本信息 */
.junhua-news-list-item-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.junhua-news-list-item-title {
  font-family: var(--font-family);
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  color: var(--text-color-strong);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.junhua-news-list-item-desc {
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-title);
  color: var(--text-color-gray-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 底部链接区域 */
.junhua-news-list-item-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  justify-content: flex-end;
}

.junhua-news-list-item-link {
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-title);
  color: var(--text-color-strong);
  transition: var(--transition-base);
}

.junhua-news-list-item:hover .junhua-news-list-item-link {
  color: var(--primary-color);
}

.junhua-news-list-item-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-color-strong);
  transition: var(--transition-base);
}

.junhua-news-list-item-arrow svg {
  width: 100%;
  height: 100%;
}

.junhua-news-list-item:hover .junhua-news-list-item-arrow {
  color: var(--primary-color);
  transform: translateX(4px);
}

.junhua-news-list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 576px) {
  .junhua-news-list-item-header {
    flex-direction: column;
  }
}
