/* 贝福特官网 · 新闻中心：左目录 / 右正文 */

/* Banner 星座层（新闻页单独再声明，避免仅依赖 style.css @import 时序） */
body[data-page="news"] .hero {
  position: relative;
  overflow: hidden;
}
body[data-page="news"] .hero-particle-network {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
}

.news-layout {
  max-width: var(--max);
}

.news-lead {
  max-width: 720px;
  margin: -8px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.news-split {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 0 0;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.news-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow: auto;
  margin-right: 28px;
  padding: 4px 20px 8px 0;
  border-right: 1px solid var(--line);
}

.news-nav-group + .news-nav-group {
  margin-top: 22px;
}

.news-nav-cat-btn {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  font-weight: var(--fw-strong);
  font-family: inherit;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.news-nav-cat-btn:hover {
  color: var(--blue);
}

.news-nav-cat-label {
  flex: 0 1 auto;
  min-width: 0;
}

.news-nav-cat-mark {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

.news-nav-group.is-collapsed .news-nav-panel {
  display: none;
}

.news-nav-group.is-collapsed .news-nav-cat-btn {
  margin-bottom: 0;
}

.news-nav-articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-nav-link {
  display: block;
  padding: 6px 0 6px 12px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: var(--fw-body);
  line-height: 1.45;
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}

.news-nav-link:hover {
  color: var(--blue);
}

.news-nav-link.is-active {
  border-left-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}

/* 约 12 个汉字宽，超出自动换行 */
.news-nav-link__title {
  display: block;
  max-width: 12em;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.news-nav-empty {
  margin: 0;
  padding-left: 12px;
  color: var(--muted);
  font-size: 13px;
}

.news-main {
  min-width: 0;
  padding-left: 28px;
}

.news-article__title {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: var(--fw-strong);
  line-height: 1.35;
}

.news-meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.news-summary {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.news-cover {
  margin: 0 0 20px;
}

.news-cover img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.news-body {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.85;
}

.news-body h3 {
  margin: 1.4em 0 0.6em;
  font-size: 18px;
}

.news-body p {
  margin: 0 0 1em;
}

.news-body ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.news-block-figure {
  margin: 0 0 1.2em;
}

.news-block-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.news-block-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.news-article-empty,
.news-empty {
  color: var(--muted);
}

@media (max-width: 860px) {
  .news-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-nav {
    position: static;
    max-height: none;
    margin-right: 0;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .news-main {
    padding-left: 0;
  }

  .news-nav-link__title {
    max-width: 12em;
  }
}
