/* ========== 全局默认样式（其他页面不变） ========== */
.banner-container {
  height: 500px; /* PC默认高度 */
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-content {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.banner-title {
  color: white;
  font-weight: bold;
  font-size: 46px;
}

.banner-subtitle {
  color: white;
  font-size: 24px;
  margin-top: 6px;
}

/* ========== 只对 News 页面生效：图片不裁切 ========== */
.news-banner {
  height: auto !important; /* 高度自适应，不裁切 */
}
.news-banner .banner-image {
  height: auto !important;
  object-fit: contain !important; /* 完整显示图片 */
  object-position: center;
}

/* ========== 移动端 ========== */
@media (max-width: 768px) {
  /* 其他页面手机样式不变 */
  .banner-container {
    height: 35vh;
  }

  /* 只有 News 页面手机端：高度自适应，不裁切 */
  .news-banner {
    height: auto !important;
  }

  /* 文字样式不变 */
  .banner-content {
    top: 0px !important;
  }
  .banner-title {
    font-size: 32px;
  }
  .banner-subtitle {
    font-size: 16px;
  }
}