/* ===== 新闻中心专属样式 ===== */
.page-news {
  --timeline-line-color: var(--clr-primary-orange);
  --timeline-marker-size: 1.5rem;
  --timeline-line-width: 4px;
  --ghost-opacity: 0.12;
  --filter-tab-bg: var(--clr-warm-paper);
  --filter-tab-active: var(--clr-primary-orange);
  --filter-tab-text: var(--clr-deep-ink);
  --card-border: var(--clr-dark-border);
  --update-marker: var(--clr-primary-blue);
}

/* 框景首屏 */
.page-news .news-hero.frame-viewport {
  position: relative;
  border: var(--border-thick) solid var(--clr-dark-border);
  box-shadow: var(--shadow-heavy);
  margin-bottom: 2rem;
  overflow: hidden;
  background: var(--clr-light-gray-bg);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}
.page-news .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--ghost-opacity);
}
.page-news .hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  background: linear-gradient(to top, rgba(26,26,46,0.7), transparent);
  color: var(--clr-pure-white);
  width: 100%;
}
.page-news .breadcrumb {
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.page-news .breadcrumb a {
  color: var(--clr-primary-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-default);
}
.page-news .breadcrumb a:hover {
  color: var(--clr-pure-white);
}
.page-news .hero-content h1 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1.1;
  margin: 0 0 0.25rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}
.page-news .hero-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* 分类筛选 */
.page-news .news-filter {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--clr-warm-paper);
  border: var(--border-thick) solid var(--clr-dark-border);
}
.page-news .news-filter fieldset {
  border: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.page-news .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.page-news .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.page-news .filter-tab {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid var(--clr-dark-border);
  background: var(--filter-tab-bg);
  color: var(--filter-tab-text);
  transition: background var(--transition-default), color var(--transition-default), border-color var(--transition-default);
}
.page-news .filter-tab:hover {
  background: var(--filter-tab-active);
  color: var(--clr-pure-white);
  border-color: var(--filter-tab-active);
}
/* radio 选中时对应标签高亮 */
.page-news:has(#cat-brand:checked) .filter-tab[for="cat-brand"],
.page-news:has(#cat-product:checked) .filter-tab[for="cat-product"],
.page-news:has(#cat-insight:checked) .filter-tab[for="cat-insight"],
.page-news:has(#cat-tips:checked) .filter-tab[for="cat-tips"],
.page-news:has(#cat-all:checked) .filter-tab[for="cat-all"] {
  background: var(--filter-tab-active);
  color: var(--clr-pure-white);
  border-color: var(--filter-tab-active);
}
.page-news .filter-icon {
  display: block;
  margin-top: 0.75rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.6;
}

/* 时间线 */
.page-news .news-timeline {
  padding: 2rem 1.5rem;
  position: relative;
}
.page-news .news-timeline h2 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-style: italic;
  font-size: 1.75rem;
  margin: 0 0 2rem;
  color: var(--clr-deep-ink);
  position: relative;
  padding-left: 1.25rem;
  border-left: var(--timeline-line-width) solid var(--timeline-line-color);
}
.page-news .timeline {
  position: relative;
  padding-left: 2.5rem; /* 给竖线留空间 */
}
/* 左侧竖线 */
.page-news .timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: var(--timeline-line-width);
  background: var(--timeline-line-color);
  border-radius: 2px;
}
.page-news .timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--clr-warm-paper);
  border: var(--border-thick) solid var(--card-border);
  box-shadow: var(--shadow-heavy);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
  /* 渐入动画 */
  animation: newsFadeUp 0.6s ease both;
}
.page-news .timeline-item:nth-child(1) { animation-delay: 0.1s; }
.page-news .timeline-item:nth-child(2) { animation-delay: 0.25s; }
.page-news .timeline-item:nth-child(3) { animation-delay: 0.4s; }
.page-news .timeline-item:hover {
  transform: scale(1.02);
  box-shadow: 12px 12px 0 var(--clr-subtle-shadow);
}
@keyframes newsFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 时间线标记点 */
.page-news .timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 1.5rem;
  width: var(--timeline-marker-size);
  height: var(--timeline-marker-size);
  border-radius: 50%;
  border: 3px solid var(--timeline-line-color);
  background: var(--clr-warm-paper);
  z-index: 1;
}
.page-news .category-brand { background: var(--clr-primary-orange); border-color: var(--clr-primary-orange); }
.page-news .category-product { background: var(--clr-primary-blue); border-color: var(--clr-primary-blue); }
.page-news .category-insight { background: var(--clr-accent-green); border-color: var(--clr-accent-green); }
.page-news .timeline-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--clr-dark-border);
}
.page-news .timeline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-news .timeline-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--clr-deep-ink);
}
.page-news .timeline-content p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--clr-cool-gray);
  margin: 0 0 0.75rem;
}
.page-news .btn-outline {
  align-self: flex-start;
  border: 2px solid var(--clr-primary-orange);
  color: var(--clr-primary-orange);
  background: transparent;
  padding: 0.4rem 1rem;
  font-weight: 600;
  transition: background var(--transition-default), color var(--transition-default);
}
.page-news .btn-outline:hover {
  background: var(--clr-primary-orange);
  color: var(--clr-pure-white);
}

/* 产品更新 */
.page-news .news-product-updates {
  padding: 2rem 1.5rem;
  background: var(--clr-light-gray-bg);
  border: var(--border-thick) solid var(--card-border);
  margin: 2rem 0;
}
.page-news .news-product-updates h2 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-style: italic;
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--clr-deep-ink);
  display: inline-block;
  border-bottom: 4px solid var(--clr-primary-orange);
  padding-bottom: 0.25rem;
}
.page-news .update-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.page-news .update-list li {
  position: relative;
  padding: 1rem 1rem 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-deep-ink);
  background: var(--clr-pure-white);
  border-left: 4px solid var(--update-marker);
  box-shadow: 2px 2px 0 var(--clr-subtle-shadow);
}
.page-news .update-list li::before {
  content: "→";
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  font-weight: bold;
  color: var(--update-marker);
}

/* 行业观察 */
.page-news .news-insights {
  padding: 2rem 1.5rem;
}
.page-news .news-insights h2 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-style: italic;
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--clr-deep-ink);
  text-align: right;
  border-right: 4px solid var(--clr-accent-green);
  padding-right: 1rem;
}
.page-news .insight-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.page-news .insight-cards .sports-card {
  flex: 1 1 280px;
  background: var(--clr-warm-paper);
  border: var(--border-thick) solid var(--card-border);
  box-shadow: var(--shadow-heavy);
  padding: 1.5rem;
  transition: transform var(--transition-default);
}
.page-news .insight-cards .sports-card:hover {
  transform: translateY(-4px);
}
.page-news .insight-cards h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--clr-primary-blue);
}
.page-news .insight-cards p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--clr-cool-gray);
  margin: 0;
}

/* 品牌水印 */
.page-news .news-watermark {
  margin: 3rem auto 1rem;
  text-align: center;
  opacity: 0.3;
}
.page-news .news-watermark img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* 分类过滤联动 (无JS) */
/* 默认全部显示 */
.page-news .timeline-item { display: flex; }
/* 根据选中的 radio 隐藏不符合的 */
.page-news:has(#cat-brand:checked) .timeline-item:not([data-category="brand"]),
.page-news:has(#cat-product:checked) .timeline-item:not([data-category="product"]),
.page-news:has(#cat-insight:checked) .timeline-item:not([data-category="insight"]),
.page-news:has(#cat-tips:checked) .timeline-item:not([data-category="tips"]) {
  display: none;
}
/* 当选择“全部”时全部显示 */
.page-news:has(#cat-all:checked) .timeline-item { display: flex; }

/* 响应式: 窄屏 */
@media (max-width: 768px) {
  .page-news .news-hero.frame-viewport {
    min-height: 200px;
  }
  .page-news .hero-content h1 {
    font-size: 1.75rem;
  }
  .page-news .timeline {
    padding-left: 2rem;
  }
  .page-news .timeline::before {
    left: 0.5rem;
  }
  .page-news .timeline-marker {
    width: 1.2rem;
    height: 1.2rem;
    left: -2rem;
    top: 0.75rem;
  }
  .page-news .timeline-item {
    flex-direction: column;
    padding: 0.75rem;
  }
  .page-news .timeline-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    margin-bottom: 0.75rem;
  }
  .page-news .filter-tabs {
    gap: 0.5rem;
  }
  .page-news .filter-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  .page-news .insight-cards {
    flex-direction: column;
  }
  .page-news .update-list li {
    padding-left: 1.5rem;
  }
  .page-news .update-list li::before {
    left: 0.25rem;
  }
}
