/* ============================================================
   news.html 新闻与活动页 独立样式文件
   存放位置：css 文件夹
   功能：新闻与活动主体内容
   说明：类名统一使用下划线命名
   ============================================================ */

/* ================= 新闻与活动主体（页面宽度 90%，居中显示） ================= */
/* 大图新闻卡 */
.n_featured_box {
  display: flex;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  /* border: 1px solid #e6eef8; */
  box-shadow: 0 10px 26px var(--com-shadow-color);
}
.n_featured_left {
  margin: 4px 0 4px 4px;
  width: 50%;
  width: 645px;
  height: 390px;
  background: #e5e5e5;
  border-radius: 20px;
}
.n_featured_img {
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 20px;
}
.n_featured_body {
  flex: 1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.n_featured_title {
  font-weight: 500;
  font-size: 22px;
  color: #000000;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 36px;
}
.n_featured_text {
  font-weight: 400;
  font-size: 18px;
  line-height: 24pt;
  color: #666666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 44px;
}
.n_featured_date {
  font-weight: 400;
  font-size: 16px;
  color: #999999;
  letter-spacing: 0;
}

/* 新闻卡片网格（3 列） */
.n_card_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}
.n_card_box {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
}
.n_card_image {
  /* 原固定 430px 宽会把 grid 列撑到 438px，1280 以下 3 列直接溢出页面 */
  width: auto;
  height: auto;
  aspect-ratio: 430 / 260;
  border-radius: 20px;
  margin-left: 4px;
  margin-top: 4px;
  margin-right: 4px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  background-color: #e5e5e5;
}
.n_card_image img {
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}
.n_tag {
  display: inline-block;
  background: linear-gradient(135deg, #0b6cff, #0b3d91);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.n_card_tblcok {
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.n_card_title {
  font-weight: 500;
  font-size: 18px;
  color: #333333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 15px;
}
.n_card_text {
  font-weight: 400;
  font-size: 14px;
  line-height: 18pt;
  color: #666666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 15px;
  flex: 1;
}
.n_card_date {
  font-weight: 400;
  font-size: 14px;
  color: #999999;
  /* letter-spacing: 1px; */
}

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
  .n_card_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .n_featured_box {
    flex-direction: column;
  }
  .n_featured_left {
    width: 100%;
    min-height: 220px;
    height: auto;
  }
}
@media (max-width: 768px) {
  .n_card_grid {
    grid-template-columns: 1fr;
  }
}
