/* ============================================
   Happenings 页面专属样式 — 新闻列表
   ============================================ */

/* --- Hero Banner --- */



/* --- 白色内容区 --- */

/* ============================================
   1. 子栏目筛选
   ============================================ */
.filter-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-border);
}

.filter-nav a,
.filter-nav button {
  padding: 8px 20px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--base);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.filter-nav a.active,
.filter-nav button.active,
.filter-nav a:hover,
.filter-nav button:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
/* ============================================
   2. 排序栏
   ============================================ */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--gray-text);
}

.sort-bar .sort-label {
  margin-right: 4px;
}

.sort-bar a, .sort-bar button {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--gray-text);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.sort-bar a.active,
.sort-bar button.active,
.sort-bar a:hover,
.sort-bar button:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
} 

/* ============================================
   3. 新闻网格（3列）
   ============================================ */
/* ============================================
   通用新闻区：header + grid + card（列表/首页/推荐共用）
   ============================================ */
.news-header {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 20px; margin-bottom: 32px;
}
.news-title-group p {
  color: var(--gray-text); font-size: 14px;
  margin-top: 8px;
}
.browse-all {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  background: transparent; border: 1px solid var(--gray-border);
  border-radius: 50px; font-size: 13px; font-weight: 600;
  color: var(--gray-dark); transition: all 0.3s;
}
.browse-all:hover {
  background: var(--lime); border-color: var(--lime);
  color: var(--base);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* 新闻卡片 */
.news-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

/* 图片 — 新闻 16:9 */
.news-card .news-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

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

 

/* 卡片内容 */
.news-card .news-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 日期 + 标签行 */
.news-card .news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}

.news-card .news-meta .news-date {
  color: var(--gray-mid);
}

.news-card .news-meta .news-tag {
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: .5px;
  background: rgba(185, 224, 53, .18);
  color: #6b8e0a;
}

/* 多色标签 */
.news-tag.tag-news       { background: rgba(66, 133, 244, .12); color: #4285f4; }
.news-tag.tag-events     { background: rgba(185, 224, 53, .18); color: #6b8e0a; }
.news-tag.tag-press      { background: rgba(244, 160, 66, .14); color: #d4740b; }
.news-tag.tag-award      { background: rgba(171, 71, 188, .12); color: #8e24aa; }
.news-tag.tag-technology { background: rgba(38, 166, 154, .12); color: #00897b; }

/* 标题 */
.news-card .news-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--base);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 描述 */
.news-card .news-body .news-desc {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

/* Details 按钮 — 默认灰，hover lime */
.news-card .news-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gray-bg);
  color: var(--gray-text);
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
  margin-top: auto;
}

.news-card .news-btn .btn-text {
  font-size: 13px;
}

.news-card .news-btn .btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all .25s;
}

.news-card .news-btn:hover {
  background: var(--lime);
  color: var(--base);
}

.news-card .news-btn:hover .btn-icon {
  background: rgba(0, 0, 0, .15);
  color: var(--base);
}

/* ============================================
   分页
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.pagination li {
  display: flex;
}

.pagination li a,
.pagination li span {
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--gray-border);
  background: #fff;
  color: var(--gray-dark);
  border-radius: 50%;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pagination li.active span {
  background: var(--base);
  color: var(--lime);
  border-color: var(--base);
}

.pagination li a:hover {
  border-color: var(--lime);
  color: var(--base);
}

.pagination li.disabled span {
  opacity: 0.35;
  pointer-events: none;
}
