.page-news {
  --page-news-padding: 24px;
  --page-news-sidebar-width: 220px;
  --page-news-timeline-dot: 14px;
  --page-news-timeline-line: 3px;
  display: block;
  width: 100%;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: calc(var(--header-height, 72px) + 16px) var(--page-news-padding) 80px;
  color: var(--color-text-light, #B0B8C8);
  background: var(--color-bg-primary, #0A0E1A);
  font-family: var(--font-body, 'Inter', 'PingFang SC', system-ui, sans-serif);
}

/* ---------- 面包屑 ---------- */
.page-news__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-dim, #6A7284);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.page-news__breadcrumb a {
  color: var(--color-accent-blue, #00D4FF);
  text-decoration: none;
  transition: opacity var(--transition, 0.3s ease);
}
.page-news__breadcrumb a:hover {
  opacity: 0.7;
}
.page-news__breadcrumb-sep {
  color: var(--color-text-dim, #6A7284);
  font-weight: 700;
}

/* ---------- 英雄区 ---------- */
.page-news__hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}
.page-news__hero-title {
  font-family: var(--font-heading, 'Inter', 'PingFang SC', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 1.05;
  color: var(--color-text-white, #FFFFFF);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 40%, var(--color-accent-blue, #00D4FF) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-news__hero-sub {
  font-family: var(--font-heading, 'Inter', 'PingFang SC', system-ui, sans-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-accent-purple, #9500FF);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.page-news__hero-desc {
  font-size: 1rem;
  color: var(--color-text-dim, #6A7284);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- 布局：侧边栏 + 时间线 ---------- */
.page-news__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- 侧边栏 / 筛选标签 ---------- */
.page-news__sidebar {
  flex-shrink: 0;
}
.page-news__filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-news__filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-body, 'Inter', 'PingFang SC', system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-light, #B0B8C8);
  background: rgba(149, 0, 255, 0.12);
  border: 1px solid rgba(149, 0, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition, 0.3s ease);
  white-space: nowrap;
}
.page-news__filter-tab:hover {
  background: rgba(149, 0, 255, 0.25);
  border-color: var(--color-accent-purple, #9500FF);
  color: #fff;
}
.page-news__filter-tab.is-active {
  background: var(--color-accent-purple, #9500FF);
  border-color: var(--color-accent-purple, #9500FF);
  color: #fff;
  box-shadow: 0 0 18px rgba(149, 0, 255, 0.35);
}
.page-news__filter-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}

/* ---------- 时间线 ---------- */
.page-news__timeline {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 0;
}
/* 时间线竖线 — 通过伪元素画在容器左侧 */
.page-news__timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 18px;
  width: var(--page-news-timeline-line);
  background: linear-gradient(to bottom, var(--color-accent-blue, #00D4FF), var(--color-accent-purple, #9500FF), transparent);
  border-radius: 2px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- 时间线项 ---------- */
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-left: 44px;  /* 为节点和线留空间 */
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.timeline-item[data-category] {
  display: flex;
}
/* 筛选隐藏：JS 通过 .is-hidden 控制；无 JS 时全部可见 */
.timeline-item.is-hidden {
  display: none;
}

/* 时间线节点 */
.timeline-item__node {
  position: absolute;
  left: 8px;
  top: 28px;
  width: var(--page-news-timeline-dot);
  height: var(--page-news-timeline-dot);
  border-radius: 50%;
  background: var(--color-accent-blue, #00D4FF);
  border: 3px solid var(--color-bg-primary, #0A0E1A);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  z-index: 2;
  flex-shrink: 0;
}
.timeline-item:nth-child(even) .timeline-item__node {
  background: var(--color-accent-purple, #9500FF);
  box-shadow: 0 0 12px rgba(149, 0, 255, 0.5);
}

/* ---------- 卡片 ---------- */
.timeline-item__card {
  flex: 1;
  background: var(--color-bg-secondary, #12172B);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition, 0.3s ease), box-shadow var(--transition, 0.3s ease);
  max-width: 100%;
}
.timeline-item__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.12);
}

/* 图片区域 + 渐变覆盖 */
.timeline-item__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 450;
  overflow: hidden;
  background: var(--color-bg-secondary, #12172B);
}
.timeline-item__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.85) 0%, transparent 60%);
  pointer-events: none;
}
.timeline-item__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.timeline-item__card:hover .timeline-item__img {
  transform: scale(1.03);
}

/* 标签位置 */
.timeline-item__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}

/* 卡片正文 */
.timeline-item__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-item__body--full {
  padding-top: 24px;
}
.timeline-item__title {
  font-family: var(--font-heading, 'Inter', 'PingFang SC', system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--color-text-white, #FFFFFF);
  margin: 0;
}
.timeline-item__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light, #B0B8C8);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 悬停时显示完整摘要（替代展开效果） */
.timeline-item__card:hover .timeline-item__excerpt {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.timeline-item__summary {
  font-size: 0.85rem;
  color: var(--color-text-dim, #6A7284);
  margin: 4px 0 0;
  line-height: 1.5;
  display: none;
}
.timeline-item__card:hover .timeline-item__summary {
  display: block;
}
.timeline-item__link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent-blue, #00D4FF);
  text-decoration: none;
  transition: color var(--transition, 0.3s ease);
  align-self: flex-start;
}
.timeline-item__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- CTA 区域 ---------- */
.page-news__cta {
  margin-top: 64px;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}
.page-news__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.page-news__cta-text {
  font-family: var(--font-heading, 'Inter', 'PingFang SC', system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text-white, #FFFFFF);
  margin: 0;
}
.page-news__cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------- 按钮变体（适配 CTA） ---------- */
.page-news .btn-primary {
  background: var(--color-accent-blue, #00D4FF);
  color: #0A0E1A;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius, 8px);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition, 0.3s ease);
}
.page-news .btn-primary:hover {
  background: #33ddff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.page-news .btn-outline {
  background: transparent;
  color: var(--color-accent-purple, #9500FF);
  border: 2px solid var(--color-accent-purple, #9500FF);
  padding: 10px 28px;
  border-radius: var(--radius, 8px);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition, 0.3s ease);
}
.page-news .btn-outline:hover {
  background: rgba(149, 0, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(149, 0, 255, 0.2);
}

/* ---------- tag 变体（在 .page-news 内限定） ---------- */
.page-news .tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.03em;
  background: rgba(149, 0, 255, 0.2);
  color: var(--color-accent-purple, #9500FF);
  border: 1px solid rgba(149, 0, 255, 0.3);
  text-transform: uppercase;
}
.page-news .tag--purple {
  background: rgba(149, 0, 255, 0.2);
  color: var(--color-accent-purple, #9500FF);
  border-color: rgba(149, 0, 255, 0.4);
}
.page-news .tag--red {
  background: rgba(255, 51, 102, 0.15);
  color: var(--color-data-highlight, #FF3366);
  border-color: rgba(255, 51, 102, 0.3);
}

/* ========== 桌面端 ≥768px ========== */
@media (min-width: 768px) {
  .page-news {
    --page-news-padding: 40px;
    padding-top: calc(var(--header-height, 72px) + 32px);
  }
  .page-news__layout {
    flex-direction: row;
    gap: 40px;
  }
  .page-news__sidebar {
    width: var(--page-news-sidebar-width);
    position: sticky;
    top: calc(var(--header-height, 72px) + 32px);
    align-self: flex-start;
  }
  .page-news__filter-tabs {
    flex-direction: column;
    gap: 10px;
  }
  .page-news__filter-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  .page-news__timeline {
    padding-left: 0;
  }
  /* 时间线竖线移到左侧更精确位置 */
  .page-news__timeline::before {
    left: 28px;
  }
  .timeline-item {
    padding-left: 60px;
  }
  .timeline-item__node {
    left: 14px;
    top: 32px;
    width: 18px;
    height: 18px;
  }
  .timeline-item__card {
    flex-direction: row;
  }
  .timeline-item__img-wrap {
    width: 280px;
    min-height: 100%;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .timeline-item__body {
    padding: 24px 28px 28px;
    flex: 1;
  }
  .timeline-item__body--full {
    padding: 28px;
  }
  .timeline-item__title {
    font-size: 1.4rem;
  }
  .timeline-item__excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 3;
  }
  .timeline-item__summary {
    display: block;  /* 桌面默认显示 */
    font-size: 0.9rem;
  }
  /* 桌面悬停增强 */
  .timeline-item__card:hover .timeline-item__excerpt {
    -webkit-line-clamp: unset;
  }
}

/* ========== 大桌面 ≥1024px ========== */
@media (min-width: 1024px) {
  .page-news {
    --page-news-padding: 48px;
  }
  .page-news__hero-title {
    font-size: 4.2rem;
  }
  .page-news__sidebar {
    width: 240px;
  }
  .timeline-item__img-wrap {
    width: 320px;
  }
  .timeline-item__body {
    padding: 28px 32px 32px;
  }
}

/* ========== 移动端小屏适配 ========== */
@media (max-width: 480px) {
  .page-news {
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-news__hero-title {
    font-size: 2rem;
  }
  .page-news__filter-tab {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
  .page-news__filter-icon {
    width: 18px;
    height: 18px;
  }
  .timeline-item {
    padding-left: 36px;
    gap: 12px;
  }
  .page-news__timeline::before {
    left: 12px;
  }
  .timeline-item__node {
    left: 4px;
    width: 12px;
    height: 12px;
    top: 20px;
  }
  .timeline-item__body {
    padding: 14px 14px 18px;
  }
  .timeline-item__title {
    font-size: 1.1rem;
  }
  .page-news__cta-text {
    font-size: 1.1rem;
  }
}
