/* ============================================================
   资讯中心 · 页面级样式（严格对应「方案 A · 目录分栏型」线稿）
   与 main.css 共用设计 token，本文件只补充本页组件
   ============================================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 面包屑 ---------- */
.crumb, .crumbs {
  font-size: 13px;
  color: var(--text-3);
  padding: 18px 0 0;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb a, .crumbs a { color: var(--text-3); }
.crumb a:hover, .crumbs a:hover { color: var(--ink-900); }
.crumb .sep, .crumbs > span[aria-hidden] { margin: 0 8px; color: var(--line-2); }
.crumbs > span[aria-hidden] { margin: 0; }
.crumb [aria-current], .crumbs [aria-current] { color: var(--text-2); }

/* ---------- 浅色页头（线稿：单栏，无配图） ---------- */
.page-hero { padding: 20px 0 40px; }
@media (min-width: 992px) { .page-hero { padding: 24px 0 56px; } }
.page-hero h1 {
  font-size: 28px;
  line-height: 1.25;
  margin-top: 10px;
  letter-spacing: -.01em;
  color: var(--ink-900);
}
@media (min-width: 992px) { .page-hero h1 { font-size: 40px; } }
.page-hero__sub {
  margin-top: 14px;
  max-width: 52em;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- 栏目筛选条（吸顶）+ 搜索 ---------- */
.filterbar {
  position: sticky;
  /* 吸顶偏移 = 全站统一头部高度（/inc/header.html：吸顶 32 顶条 + 64 导航 = 97，桌面 76 导航 = 109），
     否则会被吸顶头部盖住 */
  top: 97px;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 992px) { .filterbar { top: 109px; } }
.filterbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* 栏目条：与「关于我们」页 subnav 同款——纯文字 tab + 当前项橙色下划线（不带 01/02 编号） */
.ftabs { display: flex; gap: 2px; flex-wrap: wrap; }
.ftabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.ftabs a:hover { color: var(--ink-900); }
.ftabs a .n { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ftabs a.is-on {
  color: var(--ink-900);
  font-weight: 500;
  border-bottom-color: var(--accent);
}
.ftabs a.is-on .n { color: #c2410c; }

/* 搜索框：整条胶囊，输入区透明，右侧提交按钮 */
.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  padding: 0 5px 0 15px;
  min-height: 38px;
  min-width: 200px;
}
@media (min-width: 768px) { .searchbox { margin-left: auto; flex: 0 1 320px; } }
.searchbox::before {
  content: "";
  width: 13px; height: 13px;
  border: 1.6px solid var(--text-3);
  border-radius: 50%;
  flex: 0 0 auto;
}
.searchbox:focus-within { border-color: var(--ink-900); }
.searchbox input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--text-1);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox button {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-size: 12.5px;
}
.searchbox button:hover { background: var(--ink-700); }

/* ---------- 区块与两栏布局 ---------- */
.sect { padding: 40px 0; }
@media (min-width: 992px) { .sect { padding: 64px 0; } }

.nlayout { display: grid; gap: 32px; }
@media (min-width: 992px) {
  .nlayout { grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
}
.nlist { display: grid; gap: 24px; align-content: start; }
@media (min-width: 992px) { .nlist { gap: 30px; } }

/* ---------- 图文卡（图左文右） ---------- */
.ncard {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ncard:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
@media (min-width: 576px) {
  .ncard { grid-template-columns: 208px minmax(0, 1fr); gap: 18px; padding: 18px 16px; }
}
@media (min-width: 992px) {
  .ncard { grid-template-columns: 256px minmax(0, 1fr); gap: 20px; }
}
.nthumb {
  display: block;
  position: relative;
  align-self: center;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-100);
}
.nthumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease-out;
}
.ncard:hover .nthumb img { transform: scale(1.04); }

.nbody { display: grid; gap: 6px; align-content: start; }
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ncat {
  font-size: 12px;
  color: var(--ink-900);
  background: var(--ink-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.ndate {
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.ncard h2 { font-size: 16px; line-height: 1.4; margin: 0; }
@media (min-width: 992px) { .ncard h2 { font-size: 17.5px; } }
.ncard h2 a { color: var(--ink-900); }
.ncard:hover h2 a { color: var(--ink-700); }
.ncard .excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 64ch;
  min-height: calc(1.6em * 2);
}
.nfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 0;
}
.nfoot .more { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.nfoot .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 线稿占位模式（后台无内容时的版式示例） ---------- */
.demo-note {
  padding: 11px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--ink-50);
  font-size: 13px;
  color: var(--text-2);
}
.demo-tag {
  font-size: 11px;
  color: #b45309;
  background: var(--accent-soft);
  border: 1px dashed #f0a35e;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.ncard--demo { cursor: default; }
.ncard--demo:hover { transform: none; border-color: var(--line); box-shadow: none; }
.ncard--demo:hover .nthumb img { transform: none; }
.ncard--demo:hover h2 { color: var(--ink-900); }
.ncard--demo .nfoot { color: var(--text-3); }
.hotlist__demo { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

/* ---------- 下滑自动加载（无限滚动） ---------- */
.news-sentinel { width: 100%; height: 1px; }
.news-status {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.news-status::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: news-spin .8s linear infinite;
}
.news-status.is-done::before { display: none; }
@keyframes news-spin { to { transform: rotate(360deg); } }

/* ---------- 右侧粘性边栏 ---------- */
.nside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 992px) { .nside { position: sticky; top: 121px; } }

.scard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.scard h2 {
  font-size: 15px;
  color: var(--ink-900);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.scard h2 .cnt { font-size: 12px; color: var(--text-3); font-weight: 400; }

.hotlist { list-style: none; margin: 0; padding: 0; }
.hotlist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.hotlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.hotlist .idx {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}
.hotlist a { font-size: 13.5px; line-height: 1.5; color: var(--text-1); }
.hotlist a:hover { color: var(--ink-900); }
.hotlist__none { color: var(--text-3); font-size: 13px; display: block !important; }

.slinks { list-style: none; margin: 0; padding: 0; }
.slinks li { border-bottom: 1px dashed var(--line); }
.slinks li:last-child { border-bottom: 0; }
.slinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--text-1);
}
.slinks a:hover { color: var(--ink-900); }
.slinks .arw { color: var(--accent); font-size: 13px; transition: transform .2s; }
.slinks a:hover .arw { transform: translateX(3px); }

.scard--ink { background: var(--ink-900); border-color: var(--ink-900); color: #b9cde5; }
.scard--ink h2 { color: #fff; }
.scard--ink p { font-size: 13.5px; color: #9fbbd8; margin-bottom: 14px; }

/* ---------- 筛选提示 / 空态 ---------- */
.news-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-50);
  font-size: 13.5px;
  color: var(--text-2);
}
.news-result a { color: var(--accent); }

.news-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--text-2);
}

/* ---------- 移动端微调（线稿：图上文下，摘要收两行，tabs 横滑） ---------- */
@media (max-width: 767px) {
  .ftabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .ftabs::-webkit-scrollbar { display: none; }
  .ftabs a { flex: 0 0 auto; }
  .searchbox { flex: 1 1 100%; }
}
@media (max-width: 575px) {
  .ncard { padding: 14px; }
  .ncard .excerpt { -webkit-line-clamp: 2; }
  .scard { padding: 16px; }
}

/* ============================================================
   资讯详情页 · 正文排版
   ============================================================ */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 28px 0 112px; } /* 底部留白翻倍 56→112（2026-11-12） */
.article-head { display: grid; gap: 14px; margin-bottom: 26px; justify-items: start; }
.article-head h1 { font-size: 25px; line-height: 1.38; margin: 0; }
@media (min-width: 768px) { .article-head h1 { font-size: 33px; line-height: 1.3; } }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-3);
}
.article-lead {
  width: 100%;
  margin: 0 0 28px;
  padding: 13px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--ink-50);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}
.article-cover { margin-bottom: 26px; }
.article-cover img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }

.article-body { font-size: 16px; line-height: 1.85; color: var(--text-1); }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 {
  font-size: 20px;
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}
.article-body h3 { font-size: 17px; margin: 24px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 1.35em; list-style: revert; }
.article-body li { margin-bottom: 7px; }
.article-body strong { color: var(--ink-900); font-weight: 500; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 18px 0; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--ink-50);
  border-left: 3px solid var(--ink-900);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-2);
  font-size: 15px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0;
  padding: 24px;
  background: var(--ink-900);
  border-radius: var(--r-lg);
  color: #fff;
}
.article-cta__title { font-size: 18px; font-weight: 500; }
.article-cta__sub { font-size: 13.5px; color: #9fbbd8; margin-top: 6px; }
.article-cta__act { display: flex; flex-wrap: wrap; gap: 10px; }

/* 上一篇/下一篇 · 版一「卡片对开」：移动堆叠、桌面并排，方向箭头 hover 位移 */
.article-pager {
  display: grid;
  gap: 12px;
  /* 正文与上/下篇之间留白翻倍（2026-11-12，用户要求）；下方间距保持 28px */
  margin: 56px 0 28px;
}
@media (min-width: 640px) {
  .article-pager { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.article-pager a.ap-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.article-pager a.ap-card:hover { border-color: var(--accent); background: #fcfdff; }
.article-pager .lab {
  display: flex; align-items: center; gap: 7px;
  font: 600 11px/1 "SF Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;
  color: #b04a00; letter-spacing: .1em;
}
.article-pager .lab .ar { font-size: 14px; color: var(--accent); transition: transform .2s; }
.article-pager a.ap-card:hover .lab .ar { transform: translateX(3px); }
.article-pager .t {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  line-height: 1.5; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.article-pager a.ap-card:hover .t { color: #b04a00; }
.article-pager .d {
  font: 500 11.5px/1 "SF Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;
  color: var(--text-3); margin-top: 8px; letter-spacing: .04em;
}
.article-pager .is-empty { display: none; }

.article-related { margin-top: 34px; }
.article-related h2 { font-size: 18px; margin-bottom: 16px; }
.article-back { margin-top: 28px; font-size: 14px; }
.article-back a { color: var(--ink-900); }

/* ============================================================
   资讯详情页 · 方案 D 杂志专栏型（与列表页方案 A 同外壳同 token）
   ============================================================ */
/* 内页有效宽度与全站 .container 对齐（min(1400px, 100% - 56px)） */
.article--mag { max-width: 1400px; width: 100%; }
.amag__grid { display: grid; gap: 36px; }
@media (min-width: 992px) {
  .amag__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
}
/* 正文放大一档，1400 宽的栏位也能保持舒适行宽 */
.article--mag .article-body--mag { font-size: 17px; line-height: 1.9; }
.amag__rail { display: grid; gap: 20px; align-content: start; }
@media (min-width: 992px) { .amag__rail { position: sticky; top: 121px; } }

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;          /* 拉满整栏：.article-head 是 grid + justify-items:start，不写会缩成内容宽 */
  padding: 14px 0;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-byline .av {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink-900); color: #fff;
  display: grid; place-items: center; font-size: 14px; flex: 0 0 auto;
}
/* 署名与元信息同一行：避免两行堆叠、右侧留一大块空白 */
.article-byline .who { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; flex: 1 1 0; }
.article-byline .meta::before {
  content: ""; width: 1px; height: 12px; background: var(--line);
  margin-right: 8px; align-self: center;
}
.article-byline .name { font-size: 14px; color: var(--ink-900); font-weight: 500; }
.article-byline .meta { font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.article-byline .ncat--feature { margin-left: auto; background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* 首字下沉（段落用 flow-root 兜住浮动，避免字头溢出压到下一段/下一块） */
.article--mag .article-body--mag > p:first-of-type { display: flow-root; }
.article--mag .article-body--mag > p:first-of-type::first-letter {
  float: left;
  font-size: 56px;
  line-height: .9;
  font-weight: 600;
  color: var(--ink-900);
  padding: 2px 12px 0 0;
}

/* 引文：比通用引用块更大、更强调 */
.article--mag .article-body--mag blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--ink-50);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-900);
  font-weight: 500;
}

.article-figure { margin: 26px 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.article-figure figcaption { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 8px; }

.amag-pick { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.amag-pick li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px dashed var(--line);
  counter-increment: pick;
}
.amag-pick li::before {
  content: counter(pick, decimal-leading-zero);
  position: absolute; left: 0; top: 11px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: .04em;
}
.amag-pick li:last-child { border-bottom: 0; padding-bottom: 0; }
.amag-pick a { display: grid; gap: 4px; }
.amag-pick .t { font-size: 14px; line-height: 1.5; color: var(--text-1); }
.amag-pick a:hover .t { color: var(--ink-900); }
.amag-pick .d { font-size: 12px; color: var(--text-3); }

@media (max-width: 767px) {
  .article-byline .ncat--feature { display: none; }
  .article-byline .meta::before { display: none; }
}

@media (max-width: 575px) {
  .article-byline { flex-wrap: wrap; }
  .article-byline .ncat--feature { margin-left: 0; }
  .article--mag .article-body--mag > p:first-of-type::first-letter { font-size: 48px; }
}
