@font-face {
  font-family: "Manrope Variable";
  src: url("./fonts/Manrope-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/* ===================================================
   全局
=================================================== */
.page-shell,
.page {
  font-family: "Manrope Variable", "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================================
   Hero 区域
=================================================== */
.news-hero {
  height: 500px;
  position: relative;
  overflow: hidden;
  /* Figma：深色渐变遮罩 + 科技粒子背景图，图像下移露出粒子光效区域 */
  background-image:
    linear-gradient(90deg, rgba(14, 17, 23, 0.6) 0%, rgba(20, 35, 68, 0.6) 100%),
    url("../img/news-banner.png");
  background-size: cover;
  background-position: center calc(50% + 120px);
  display: flex;
  flex-direction: column;
}

.news-hero-inner {
  width: 1440px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 0;
  box-sizing: border-box;
  /* 文字层级高于 slogan 装饰线 */
  z-index: 1;
}

/* Slogan 装饰线：向左移，位于文字下层 */
.news-hero-slogan {
  position: absolute;
  /* 向左移：1440px 内容区左边界再往左 57px，与 about 页保持一致 */
  left: calc(50% - 720px - 57px);
  top: 404px;
  width: 298px;
  height: 18px;
  z-index: 0;
  pointer-events: none;
}

.news-hero-slogan img {
  width: 100%;
  height: 100%;
  display: block;
}

.news-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #ffffff;
}

.news-hero-label {
  line-height: 1.7;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  color: #ffffff;
}

.news-hero-title {
  line-height: 1.1;
  font-weight: 300;
  font-variation-settings: "wght" 300;
  color: #ffffff;
}

/* "technical" 关键词绿色下划线 */
.news-hero-accent {
  position: relative;
  display: inline-block;
}



/* ===================================================
   新闻列表区域
=================================================== */
.news-list-section {
  background: #ffffff;
}

.news-list-inner {
  width: 1440px;
  margin: 0 auto;
  padding: 120px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ===================================================
   分类筛选 Tab
=================================================== */
.news-filter {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 10px 0;
}

.news-filter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  gap: 0;
}

.news-filter-text {
  line-height: 1.3;
  color: #042959;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* 渐变下划线：默认收缩，以右为锚点（消失时从左往右收） */
.news-filter-line {
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #23d972 0%, #0fa3a3 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s ease;
}

/* hover：切换为以左为锚点，从左往右展开 */
.news-filter-item:hover .news-filter-line {
  transform: scaleX(1);
  transform-origin: left center;
}

/* 激活状态：始终展开 */
.news-filter-item.is-active .news-filter-line {
  transform: scaleX(1);
  transform-origin: left center;
}

.news-filter-item:hover .news-filter-text,
.news-filter-item.is-active .news-filter-text {
  color: #042959;
}

/* ===================================================
   新闻卡片网格
=================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 72px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: opacity 0.3s ease;
}

/* 筛选后隐藏不匹配的卡片 */
.news-card.is-hidden {
  display: none;
}

/* 图片区域：3:2 比例 */
.news-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 432 / 288;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.news-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.04);
}

/* 卡片内容 */
.news-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

.news-card-title {
  line-height: 1.35;
  color: #042959;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  cursor: pointer;
  /* 最多显示3行 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease, -webkit-text-fill-color 0.25s ease, background 0.25s ease;
}

/* 触碰标题本身 → 标题渐变（原有功能） */
/* 触碰 category → 标题 + category 同时渐变 */
.news-card-title:hover,
.news-card:has(.news-card-category:hover) .news-card-title,
.news-card:has(.news-card-category:hover) .news-card-category {
  background: linear-gradient(90deg, #23d972 0%, #0fa3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-card-summary {
  line-height: 1.6;
  color: #5a657c;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  /* 最多显示3行 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-card-date {
  line-height: 1.6;
  color: #d0d3d9;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  white-space: nowrap;
}

.news-card-category {
  line-height: 1.6;
  color: #5a657c;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  cursor: pointer;
  transition: color 0.25s ease, -webkit-text-fill-color 0.25s ease, background 0.25s ease;
}

/* ===================================================
   分页（与 transceivers-pagination 完全一致的样式）
=================================================== */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 0 0;
}

/* 数字按钮 + 箭头按钮共同基础 */
.news-page-number,
.news-page-arrow {
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  border-radius: 100px;
  color: #142344;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope Variable", "Manrope", Arial, sans-serif;
}

/* 数字按钮 */
.news-page-number {
  position: relative;
  overflow: hidden;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  transition: color 0.25s ease, background 0.25s ease;
  z-index: 1;
  isolation: isolate;
}

/* hover 时浅灰背景 */
.news-page-number::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: radial-gradient(circle at 50% 50%, rgba(231, 234, 238, 0.98) 0%, rgba(208, 211, 217, 0.98) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.news-page-number:hover::before {
  opacity: 1;
}

.news-page-number span {
  position: relative;
  z-index: 2;
}

/* 当前页：绿色渐变背景，白色文字 */
.news-page-number.is-active {
  background: linear-gradient(90deg, #23d972 0%, #0fa3a3 100%);
  color: #ffffff;
}

.news-page-number.is-active::before {
  opacity: 0;
}

/* 箭头按钮 */
.news-page-arrow {
  gap: 2px;
}

/* 箭头：CSS border 三角形 */
.news-page-arrow span {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 箭头 hover：箭头变绿，无背景 */
.news-page-arrow:not(.news-page-arrow--muted) {
  transition: color 0.25s ease;
}

.news-page-arrow:not(.news-page-arrow--muted):hover {
  color: #23d972;
}

/* 置灰（第一页左箭头灰，最后一页右箭头灰） */
.news-page-arrow--muted {
  color: #c8ced9;
  cursor: default;
  pointer-events: none;
}

/* 前两个箭头（first/prev）方向向左 */
.news-page-arrow:first-child,
.news-page-arrow:nth-child(2) {
  transform: rotate(180deg);
}

/* ===================================================
   手机端响应式
=================================================== */
@media screen and (max-width: 768px) {
  /* Hero */
  .news-hero {
    height: auto;
    min-height: 280px;
    background-position: center;
  }

  .news-hero-inner {
    width: 100%;
    padding: 100px 24px 48px;
  }

  .news-hero-slogan {
    display: none;
  }

  /* 新闻列表 */
  .news-list-inner {
    width: 100%;
    padding: 60px 24px;
    gap: 48px;
  }

  /* Filter Tab 手机端可横向滚动 */
  .news-filter {
    gap: 24px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px 0;
  }

  .news-filter::-webkit-scrollbar {
    display: none;
  }

  /* 卡片改单列 */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* 分页间距缩小 */
  .news-pagination {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .news-page-number,
  .news-page-arrow {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 14px;
  }
}
