/* Banner */
#artlist-page .artlist-news-banner {
  position: relative;
  height: 350px;
  margin-bottom: 2rem;
  overflow: hidden;
}

#artlist-page .artlist-news-banner .carousel-item {
  position: relative;
  height: 350px;
}

#artlist-page .artlist-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#artlist-page .artlist-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(90deg, rgba(55, 71, 84, 0.85) 0%, rgba(55, 71, 84, 0.42) 70%, transparent 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 76px;
  padding-left: 76px;
  padding-right: 2rem;
  padding-bottom: 2rem;
}

#artlist-page .artlist-banner-content {
  color: white;
  max-width: 100%;
  opacity: 0.85;
}

#artlist-page .artlist-banner-date {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
}

#artlist-page .artlist-banner-title {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

#artlist-page .artlist-banner-indicators {
  position: absolute;
  bottom: 2rem;
  left: 76px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

#artlist-page .artlist-banner-indicator {
  /* 扩大点击区域：实际可点击区域为 24px x 22px */
  width: 24px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  /* 保持视觉尺寸不变，通过伪元素显示 */
}

#artlist-page .artlist-banner-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

#artlist-page .artlist-banner-indicator.active::before {
  background: #32b8fe;
  width: 24px;
}

/* News Grid */
#artlist-page .artlist-news-grid {
  margin-bottom: 3rem;
}

#artlist-page .artlist-news-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

#artlist-page .artlist-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#artlist-page .artlist-news-card .card-body {
  /* 正常文档流，置于图片上方，不与图片重叠 */
  position: static;
  z-index: auto;
  padding: 1.2rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  background: transparent;
}

#artlist-page .artlist-news-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  order: 3; /* 图片放在文本（标题与日期）之后 */
}

#artlist-page .artlist-news-date {
  /* 置于标题下方 */
  order: 2;
  color: #999;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  margin-bottom: 0.8rem;
}

#artlist-page .artlist-news-title {
  /* 置于日期上方，白色标题 */
  order: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Grid Borders (align with member page borders) */
#artlist-page .artlist-news-grid .row {
  /* remove gutters so borders align flush */
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  border-top: 1px solid #e0e0e0;
}

/* apply right & bottom borders to each cell */
#artlist-page .artlist-news-grid .row > * {
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
  padding: 16px;
}

/* desktop: 3 columns (lg ≥ 992px) → remove right border on every 3rd */
@media (min-width: 992px) {
  #artlist-page .artlist-news-grid .row > *:nth-child(3n) {
    border-right: none;
  }
}

/* tablet: 2 columns (md 768px–991.98px) → remove right border on every 2nd */
@media (min-width: 768px) and (max-width: 991.98px) {
  #artlist-page .artlist-news-grid .row > *:nth-child(2n) {
    border-right: none;
  }
}

/* mobile: 1 column (<768px) → no right border */
@media (max-width: 767.98px) {
  #artlist-page .artlist-news-grid .row > * {
    border-right: none;
  }
}

@media (max-width: 768px) {
  #artlist-page .artlist-news-banner {
    height: 250px;
  }

  #artlist-page .artlist-banner-overlay {
    width: 100%;
    background: linear-gradient(to bottom, rgba(55, 71, 84, 0.85) 0%, rgba(55, 71, 84, 0.25) 100%);
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    justify-content: flex-start;
  }

  #artlist-page .artlist-banner-content {
    max-width: 100%;
    opacity: 0.85;
  }

  #artlist-page .artlist-banner-date {
    font-size: 1.8rem;
  }

  #artlist-page .artlist-banner-title {
    font-size: 1.2rem;
  }

  #artlist-page .artlist-banner-indicators {
    left: 20px;
    bottom: 1.5rem;
  }

  #artlist-page .artlist-news-card .card-img {
    height: 160px;
  }
}
