/* 资讯模块（/news/）专用样式，依赖 purpose.css */
.news-page {
  --news-brand: #075EEB;
  --news-ink: #1B1D29;
  --news-body: #3C4257;
  --news-muted: #8792A2;
  --news-line: #E6EBF1;
  --news-bg: #F6F9FC;
  background: var(--news-bg);
  color: var(--news-body);
}

/* header：资讯页固定蓝底白字，不走首页的滚动换色逻辑 */
.news-page .header { background-color: var(--news-brand); }
.news-page .navbar-main .nav-link,
.news-page .navbar-main .nav-btn { color: #fff; }
.news-page .navbar-main .nav-link.active { font-weight: 700; }
.news-page .navbar-main .nav-btn {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.news-page .navbar-main .nav-btn-outline { border: 1px solid #fff; border-radius: 4px; }

/* purpose.css 给 section 设了深色背景 */
.news-page section { background: transparent; }

/* 顶部标题区 */
.news-page .news-hero {
  padding: 120px 0 40px;
  background: linear-gradient(180deg, #E9F1FE 0%, var(--news-bg) 100%);
}
.news-hero h1 { color: var(--news-ink); font-size: 2rem; margin-bottom: 0.5rem; }
.news-hero p { color: var(--news-muted); margin-bottom: 0; }
.news-crumb { font-size: 14px; color: var(--news-muted); margin-bottom: 1rem; }
.news-crumb a { color: var(--news-muted); }
.news-crumb a:hover { color: var(--news-brand); }

/* 列表 */
.news-list { padding-bottom: 64px; }
.news-item {
  display: flex;
  gap: 24px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.news-item:hover { color: inherit; border-color: #C9D8F5; box-shadow: 0 6px 20px rgba(7, 94, 235, .08); }
.news-item-cover {
  flex: 0 0 240px;
  height: 135px; /* 16:9，与手机端一致 */
  border-radius: 6px;
  overflow: hidden;
  background: var(--news-line);
}
.news-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-item-title {
  color: var(--news-ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}
.news-item:hover .news-item-title { color: var(--news-brand); }
.news-item-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--news-body);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-meta { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--news-muted); }
.news-empty { padding: 80px 0; text-align: center; color: var(--news-muted); }

/* 分页 */
.news-pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.news-pager a,
.news-pager span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  line-height: 36px;
  text-align: center;
  font-size: 14px;
  border: 1px solid var(--news-line);
  border-radius: 6px;
  background: #fff;
  color: var(--news-body);
}
.news-pager a:hover { border-color: var(--news-brand); color: var(--news-brand); }
.news-pager .is-current { background: var(--news-brand); border-color: var(--news-brand); color: #fff; }
.news-pager .is-disabled { color: #C1C9D2; }

/* 详情 */
.news-article-wrap { padding: 100px 0 64px; }
.news-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 48px;
  background: #fff;
  border: 1px solid var(--news-line);
  border-radius: 8px;
}
.news-article h1 { color: var(--news-ink); font-size: 1.75rem; line-height: 1.45; margin-bottom: 12px; }
.news-article-meta {
  font-size: 14px;
  color: var(--news-muted);
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--news-line);
}
.news-article-meta span + span::before { content: "·"; margin: 0 8px; }
.news-content { font-size: 16px; line-height: 1.9; color: var(--news-body); word-wrap: break-word; }
.news-content p { margin-bottom: 1.2em; }
.news-content h2 { font-size: 1.3rem; color: var(--news-ink); margin: 1.8em 0 0.8em; }
.news-content h3 { font-size: 1.1rem; color: var(--news-ink); margin: 1.5em 0 0.6em; }
.news-content ul,
.news-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.news-content blockquote {
  margin: 0 0 1.2em;
  padding: 12px 16px;
  border-left: 3px solid var(--news-brand);
  background: var(--news-bg);
  color: var(--news-body);
}
.news-content a { color: var(--news-brand); text-decoration: underline; }
.news-figure { margin: 1.6em 0; text-align: center; }
.news-figure img { max-width: 100%; height: auto; border-radius: 6px; }
.news-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--news-muted); }

/* 文末转化 */
.news-cta {
  margin-top: 40px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #075EEB 0%, #2D92F4 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.news-cta h4 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.news-cta p { margin: 0; font-size: 14px; opacity: .85; }
.news-cta .btn { background: #fff; color: var(--news-brand); font-weight: 600; border: 0; }

/* 上一篇 / 下一篇 */
.news-adjacent {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--news-line);
  font-size: 14px;
}
.news-adjacent > div { flex: 1; min-width: 0; }
.news-adjacent > div:last-child { text-align: right; }
.news-adjacent small { display: block; color: var(--news-muted); margin-bottom: 4px; }
.news-adjacent a {
  color: var(--news-ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-adjacent a:hover { color: var(--news-brand); }
.news-adjacent .is-none { color: #C1C9D2; }
.news-back { text-align: center; margin-top: 32px; }

@media (max-width: 767.98px) {
  .news-hero { padding: 96px 0 24px; }
  .news-hero h1 { font-size: 1.5rem; }
  .news-item { flex-direction: column; gap: 12px; padding: 16px; }
  .news-item-cover { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .news-article-wrap { padding: 76px 0 40px; }
  .news-article { padding: 24px 16px; border-radius: 0; border-left: 0; border-right: 0; }
  .news-article h1 { font-size: 1.35rem; }
  .news-adjacent { flex-direction: column; }
  .news-adjacent > div:last-child { text-align: left; }
}
