/* ============================================================
   news.css - 新闻列表页样式
   前缀标识: zs
============================================================ */

/* ============================================================
   新闻Banner
============================================================ */
.zs-news-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.zs-news-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.zs-news-banner-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 文案左对齐：左边距与页面内容区（max-width 1400px + 30px 内边距）对齐 */
  padding: 0 30px 0 max(30px, calc(50% - 670px));
  text-align: left;
}

.zs-news-banner-title {
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   新闻列表区
============================================================ */
.zs-news-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 30px 60px;
}

.zs-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ============================================================
   新闻卡片
============================================================ */
.zs-news-card {
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  border: none;
  transition: all 0.3s ease;
}

.zs-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: #635796;
  border-color: transparent;
}

.zs-news-card:hover .zs-news-card-title,
.zs-news-card:hover .zs-news-card-desc {
  color: #ffffff;
}

.zs-news-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* 卡片图片 */
.zs-news-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.zs-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.zs-news-card:hover .zs-news-card-img img {
  transform: scale(1.05);
}

/* 卡片日期条 - 背景图斜线 */
.zs-news-card-date {
  background-image: url("../img/border_red.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 80%;
  height: 1.875rem;
  text-align: center;
  line-height: 1.875rem;
  color: #635796;
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  padding: 0;
  margin: 14px 0 0 0;
}

.zs-news-card-date::before,
.zs-news-card-date::after {
  display: none;
}

.zs-news-card:hover .zs-news-card-date {
  filter: brightness(10);
  color: #ffffff;
}

/* 卡片内容 */
.zs-news-card-body {
  padding: 12px 20px 20px;
}

.zs-news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e1440;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zs-news-card:hover .zs-news-card-title {
  color: #ffffff;
}

.zs-news-card-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   分页
============================================================ */
.zs-news-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.zs-news-pager a,
.zs-news-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.zs-news-pager a:hover {
  border-color: #5B4A9E;
  color: #5B4A9E;
}

.zs-news-pager span.zs-pager-active {
  background: #5B4A9E;
  border-color: #5B4A9E;
  color: #ffffff;
}

/* ============================================================
   响应式
============================================================ */
@media screen and (max-width: 1024px) {
  .zs-news-banner-title {
    font-size: 36px;
  }

  .zs-news-grid {
    gap: 24px;
  }
}

@media screen and (max-width: 768px) {
  .zs-news-banner-title {
    font-size: 28px;
  }

  .zs-news-list {
    padding: 30px 16px 40px;
  }

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

  .zs-news-card-title {
    font-size: 15px;
  }

  .zs-news-card-desc {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .zs-news-banner-title {
    font-size: 22px;
  }

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

/* zs-news-banner 文案左对齐（小屏左边距） */
@media screen and (max-width: 768px) {
  .zs-news-banner-overlay {
    padding: 0 16px;
  }
}
