@import url("home.css");

/* ============================================================================
   归智 AiPub · 信息公告详情页（news/view）专属细节层
   ----------------------------------------------------------------------------
   基础视觉（crumb / page-head / card / blk-* / facet-item / rank-* / uc-card /
   kv / label / pagination …）全部来自 tpl/aipub/css/tpl-b12.css，
   本文件只写本页专有部分：公告头元信息、正文排版、页脚动作与分享、
   期刊信息小卡，以及移动版（news_view_m.tpl）适配。
   适用于桌面 .news_detail 与移动 .news_detail_m 两个容器。
   ============================================================================ */

/* ==========================================================================
   1. 公告头（page-head 内的元信息行与栏目小标）
   ========================================================================== */
.news_detail .nv-cat {
  display: inline-flex;
  align-items: center;
  margin-left: .5rem;
  padding: .1rem .45rem;
  border-radius: 100px;
  background: #f1f3ff;
  font-size: .68rem;
  letter-spacing: .04em;
  color: #3445e5;
}

.news_detail .nv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.1rem;
  margin-top: .8rem;
  font-size: .82rem;
  color: #7e8299;
}
.news_detail .nv-mi { display: inline-flex; align-items: center; gap: .38rem; }
.news_detail .nv-mi .ico { width: 14px; height: 14px; color: #3445e5; opacity: .85; }
.news_detail .nv-mi b { font-weight: 600; color: #181c32; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   2. 正文排版（服务端下发 HTML，长文阅读优化）
   ========================================================================== */
.news_detail .nv-body {
  padding: 1.45rem 1.7rem 1.7rem;
  font-size: .95rem;
  line-height: 1.95;
  color: #3f4254;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.news_detail .nv-body > *:first-child { margin-top: 0; }
.news_detail .nv-body > *:last-child { margin-bottom: 0; }

.news_detail .nv-body p { margin: 0 0 1.1rem; text-align: justify; }
.news_detail .nv-body p:empty,
.news_detail .nv-body p.nv-blank { display: none; }

.news_detail .nv-body strong,
.news_detail .nv-body b { color: #181c32; font-weight: 700; }
.news_detail .nv-body em { font-style: normal; color: #3445e5; }

.news_detail .nv-body h1,
.news_detail .nv-body h2,
.news_detail .nv-body h3,
.news_detail .nv-body h4 {
  position: relative;
  margin: 1.8rem 0 .9rem;
  padding-left: .7rem;
  font-weight: 700;
  line-height: 1.5;
  color: #181c32;
}
.news_detail .nv-body h1 { font-size: 1.24rem; }
.news_detail .nv-body h2 { font-size: 1.14rem; }
.news_detail .nv-body h3,
.news_detail .nv-body h4 { font-size: 1.02rem; }
.news_detail .nv-body h1::before,
.news_detail .nv-body h2::before,
.news_detail .nv-body h3::before,
.news_detail .nv-body h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  bottom: .28em;
  width: 3px;
  border-radius: 2px;
  background: #3445e5;
}

.news_detail .nv-body a { color: #3445e5; text-decoration: none; border-bottom: 1px solid rgba(52, 69, 229, .28); }
.news_detail .nv-body a:hover { color: #1b2ccf; border-bottom-color: currentColor; }

.news_detail .nv-body img,
.news_detail .nv-body video,
.news_detail .nv-body iframe {
  max-width: 100% !important;
  height: auto;
  border-radius: .35rem;
}
.news_detail .nv-body img { display: block; margin: 1.15rem auto; box-shadow: 0 6px 20px rgba(24, 28, 50, .08); }

.news_detail .nv-body ul,
.news_detail .nv-body ol { margin: 0 0 1.1rem; padding-left: 1.5rem; }
.news_detail .nv-body li { margin: .4rem 0; }
.news_detail .nv-body ul li::marker,
.news_detail .nv-body ol li::marker { color: #3445e5; }

.news_detail .nv-body blockquote {
  margin: 1.2rem 0;
  padding: .85rem 1.1rem;
  border-left: 3px solid #3445e5;
  border-radius: 0 .35rem .35rem 0;
  background: #f8f9fc;
  color: #5e6278;
}
.news_detail .nv-body blockquote p:last-child { margin-bottom: 0; }

.news_detail .nv-body table {
  width: 100%;
  margin: 1.2rem 0;
  border-collapse: collapse;
  font-size: .87rem;
}
.news_detail .nv-body table th,
.news_detail .nv-body table td {
  padding: .6rem .75rem;
  border: 1px solid #ebedf3;
  line-height: 1.7;
}
.news_detail .nv-body table th { background: #f3f6f9; color: #181c32; font-weight: 700; text-align: left; }
.news_detail .nv-body table tr:nth-child(even) td { background: #fbfcfe; }

.news_detail .nv-body pre {
  margin: 1.2rem 0;
  padding: .9rem 1rem;
  border-radius: .35rem;
  background: #f3f6f9;
  font-family: Consolas, Menlo, monospace;
  font-size: .84rem;
  line-height: 1.8;
  color: #5e6278;
  overflow-x: auto;
}
.news_detail .nv-body code {
  padding: .1rem .35rem;
  border-radius: .2rem;
  background: #f3f6f9;
  font-family: Consolas, Menlo, monospace;
  font-size: .85em;
  color: #1b2ccf;
}
.news_detail .nv-body pre code { padding: 0; background: transparent; }

.news_detail .nv-body hr {
  margin: 1.6rem 0;
  border: 0;
  border-top: 1px dashed #ebedf3;
}

/* ==========================================================================
   3. 页脚：返回按钮 + 分享
   ========================================================================== */
.news_detail .nv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.7rem;
}
.news_detail .nv-foot .btn .ico { vertical-align: -.14em; }

.news_detail .nv-share {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  font-size: .8rem;
  color: #7e8299;
}
.news_detail .nv-share-lab { display: inline-flex; align-items: center; gap: .3rem; }
.news_detail .nv-share .share-component { display: inline-flex; align-items: center; }
.news_detail .nv-share .share-component .share-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin: 0 2px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 26px;
  opacity: .9;
}
.news_detail .nv-share .share-component .share-icon:hover { opacity: 1; }

/* ==========================================================================
   4. 右栏 · 期刊信息小卡
   ========================================================================== */
.news_detail .nv-jmini {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding-bottom: .9rem;
  margin-bottom: .9rem;
  border-bottom: 1px dashed #ebedf3;
}
.news_detail .nv-jcover {
 display: block;
  width: 198px;
  flex: 0 0 198px;
  border-radius: .3rem;
  border: 1px solid #ebedf3;
  box-shadow: 0 4px 12px rgba(24, 28, 50, .1);
}
.news_detail .nv-jname { font-size: .93rem; font-weight: 700; line-height: 1.45; color: #181c32; }
.news_detail .nv-jmeta { margin-top: .3rem; font-size: .76rem; line-height: 1.7; color: #7e8299; }

/* ==========================================================================
   5. 移动版（.news_detail_m）
   ========================================================================== */
.news_detail_m .nvd-crumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1rem 0;
  font-size: .8rem;
  color: #7e8299;
}
.news_detail_m .nvd-crumb a { color: #7e8299; }
.news_detail_m .nvd-crumb a:last-of-type { color: #181c32; }
.news_detail_m .card { margin: .7rem .75rem 0; }

.news_detail_m .blk-title { font-size: .95rem; line-height: 1.5; }

.news_detail_m .nvd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  font-size: .76rem;
  color: #7e8299;
}
.news_detail_m .nvd-mi { display: inline-flex; align-items: center; gap: .32rem; }
.news_detail_m .nvd-mi .ico { width: 13px; height: 13px; color: #3445e5; opacity: .85; }
.news_detail_m .nvd-mi b { font-weight: 600; color: #181c32; }

.news_detail_m .nvd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
}
.news_detail_m .nvd-actions .btn { font-size: .82rem; padding: .4rem .8rem; }

.news_detail_m .nvd-body {
  padding: 1rem 1rem 1.2rem;
  font-size: .9rem;
  line-height: 1.9;
  color: #3f4254;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.news_detail_m .nvd-body > *:first-child { margin-top: 0; }
.news_detail_m .nvd-body > *:last-child { margin-bottom: 0; }
.news_detail_m .nvd-body p { margin: 0 0 .95rem; text-align: justify; }
.news_detail_m .nvd-body p:empty,
.news_detail_m .nvd-body p.nv-blank { display: none; }
.news_detail_m .nvd-body strong,
.news_detail_m .nvd-body b { color: #181c32; }
.news_detail_m .nvd-body h1,
.news_detail_m .nvd-body h2,
.news_detail_m .nvd-body h3,
.news_detail_m .nvd-body h4 {
  margin: 1.3rem 0 .7rem;
  padding-left: .55rem;
  border-left: 3px solid #3445e5;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #181c32;
}
.news_detail_m .nvd-body a { color: #3445e5; }
.news_detail_m .nvd-body img,
.news_detail_m .nvd-body video,
.news_detail_m .nvd-body iframe { max-width: 100% !important; height: auto; }
.news_detail_m .nvd-body img { display: block; margin: 1rem auto; border-radius: .3rem; }
.news_detail_m .nvd-body ul,
.news_detail_m .nvd-body ol { padding-left: 1.3rem; }
.news_detail_m .nvd-body table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.news_detail_m .nvd-body table th,
.news_detail_m .nvd-body table td { padding: .5rem .6rem; border: 1px solid #ebedf3; }
.news_detail_m .nvd-body table th { background: #f3f6f9; color: #181c32; }
.news_detail_m .nvd-body blockquote {
  margin: 1rem 0;
  padding: .7rem .9rem;
  border-left: 3px solid #3445e5;
  background: #f8f9fc;
  color: #5e6278;
}

.news_detail_m .nvd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .85rem 1rem;
}
.news_detail_m .nvd-foot .btn { font-size: .84rem; }
.news_detail_m .nvd-share { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; color: #7e8299; }
.news_detail_m .nvd-share .share-component .share-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin: 0 2px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 25px;
}

.news_detail_m .nvd-cats { display: flex; flex-wrap: wrap; gap: .45rem; }
.news_detail_m .nvd-cat {
  display: inline-block;
  padding: .32rem .75rem;
  border: 1px solid #e4e6ef;
  border-radius: 100px;
  background: #fff;
  font-size: .8rem;
  color: #181c32;
}
.news_detail_m .nvd-cat.on,
.news_detail_m .nvd-cat:hover {
  border-color: transparent;
  background: #3445e5;
  color: #fff;
}

.news_detail_m .nvd-jmini { display: flex; gap: .75rem; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px dashed #ebedf3; }
.news_detail_m .nvd-jcover {
  flex: 0 0 62px;
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: .3rem;
  background: #f3f6f9;
}
.news_detail_m .nvd-jname { font-size: .9rem; font-weight: 700; color: #181c32; line-height: 1.4; }
.news_detail_m .nvd-jmeta { margin-top: .25rem; font-size: .74rem; line-height: 1.65; color: #7e8299; }

/* ==========================================================================
   6. 桌面 · 窄屏与中屏收敛
   ========================================================================== */
@media (max-width: 1199.98px) {
  .news_detail .nv-body { padding: 1.25rem 1.25rem 1.4rem; }
  .news_detail .nv-foot { padding: .85rem 1.25rem; }
  .news_detail .page-head .ph-stats { justify-content: flex-start !important; margin-top: .9rem; }
}
@media (max-width: 991.98px) {
  .news_detail .nv-share { margin-left: 0; }
  .news_detail .nv-jcover { flex: 0 0 62px; width: 62px; height: 82px; }
}

/* ==========================================================================
   7. 右栏「期刊信息」卡 · 与菜单页方案一统一（2026-10-21）
   --------------------------------------------------------------------------
   news_view{,_ie}.tpl 用 .nv- 族，news_view_m.tpl 用 .nvd- 族，两族在此统一成
   与菜单页 #JournalCard 完全一致的外观：顶部渐变条 + 右上光斑、封面渐变底座、
   刊号三徽章、键值斑马纹与联系方式分组。
   原有 .news_detail .nv-* / .news_detail_m .nvd-* 特异性均低于 #JournalCard →
   被本段覆盖（注意显式还原 height:auto，抵消移动端的 62/82px 定高裁切）。
   整段删除即回滚，且不影响 /site/privacy 等引擎内置静态页（那里无 #JournalCard）。
   ========================================================================== */
#JournalCard {
  position: relative;
  overflow: hidden;
}

#JournalCard::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #1b2ccf, #3445e5 40%, #8950fc);
}

#JournalCard::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(52, 69, 229, .10), rgba(52, 69, 229, 0) 65%);
  pointer-events: none;
}

#JournalCard .nv-jmini,
#JournalCard .nvd-jmini {
  align-items: center;
  margin-bottom: .9rem;
  padding: .55rem .6rem;
  background: linear-gradient(135deg, #f6f8ff, #fdfdff 60%);
  border: 1px solid #eef1fb;
  border-radius: .35rem;
}

#JournalCard .nv-jcover,
#JournalCard .nvd-jcover {
  display: block;
  width: 92px;
  flex: 0 0 92px;
  height: auto;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  box-shadow: 0 8px 18px rgba(24, 28, 50, .18);
  position: relative;
  z-index: 1;
}

#JournalCard .nv-jmini > div,
#JournalCard .nvd-jmini > div {
  margin-left: .8rem;
}

#JournalCard .nv-jname,
#JournalCard .nvd-jname {
  font-size: 1.02rem;
  font-weight: 700;
}

#JournalCard .nv-jmeta,
#JournalCard .nvd-jmeta {
  margin-top: .45rem;
  display: flex;
  flex-wrap: wrap;
  line-height: 1.2;
  font-size: .68rem;
}

#JournalCard .nv-jmeta i,
#JournalCard .nvd-jmeta i {
  font-style: normal;
  font-size: .68rem;
  line-height: 1.5;
  padding: .12rem .5rem;
  border-radius: 100px;
  margin: 0 .3rem .3rem 0;
  white-space: nowrap;
}

#JournalCard .nv-jmeta i.jm-c1,
#JournalCard .nvd-jmeta i.jm-c1 { background: #f1f3ff; color: #3445e5; }

#JournalCard .nv-jmeta i.jm-c2,
#JournalCard .nvd-jmeta i.jm-c2 { background: #e9fbf7; color: #0f9b95; }

#JournalCard .nv-jmeta i.jm-c3,
#JournalCard .nvd-jmeta i.jm-c3 { background: #fff4de; color: #b8770a; }

#JournalCard .kv { gap: 0; }

#JournalCard .kv li {
  align-items: baseline;
  padding: .48rem .4rem;
  border-bottom: 1px solid #f4f6fb;
  border-radius: .25rem;
}

#JournalCard .kv li:nth-child(even) { background: #fafbff; }

#JournalCard .kv li:hover { background: #f1f3ff; }

/* :nth-child(even) 特异性高于单 :hover，偶数行需补一条同特异性规则 */
#JournalCard .kv li:nth-child(even):hover { background: #f1f3ff; }

#JournalCard .kv li:last-child {
  border-bottom: 0;
  padding-bottom: .15rem;
}

#JournalCard .kv li span { font-size: .78rem; }

#JournalCard .kv li b { line-height: 1.5; }

/* 电话起为「联系方式」区：实线分隔（不加文字小签 —— 英文站会漏出中文） */
#JournalCard .kv li._ServiceTel {
  margin-top: .55rem;
  padding-top: .7rem;
  border-top: 1px solid #ebedf3;
}

@media (max-width: 575.98px) {
  #JournalCard .nv-jmini,
  #JournalCard .nvd-jmini { padding: .5rem; }

  #JournalCard .nv-jcover,
  #JournalCard .nvd-jcover {
    width: 82px;
    flex: 0 0 82px;
  }

  #JournalCard .nv-jname,
  #JournalCard .nvd-jname { font-size: .96rem; }

  #JournalCard .kv li { padding: .45rem .3rem; }
}

/* ======================================================================
   登录板块（用户中心卡）与文章详情页 U1 统一
   ---------------------------------------------------------------------- */
.uc-card { padding: 0; overflow: hidden; }
.uc-card .uc-head {
  display: flex; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1b2ccf, #3445e5 55%, #6d7bf5);
  color: #fff; padding: 1.1rem 1.15rem;
}
.uc-card .uc-head::after {
  content: ""; position: absolute; top: -30px; right: -26px;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.uc-card .uc-head b { display: block; color: #fff; font-size: .95rem; }
.uc-card .uc-head .uc-sub { font-size: .76rem; color: rgba(255, 255, 255, .7); }
.uc-card .uc-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-right: .7rem; flex: 0 0 38px;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.05rem;
}
.uc-card .uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; padding: .9rem; }
.uc-card .uc-grid a {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .7rem .3rem .6rem; border-radius: .42rem; border: 1px solid #ebedf3;
  background: #fff; text-align: center;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.uc-card .uc-grid a i {
  font-style: normal;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: .95rem;
}
.uc-card .uc-grid a b { font-size: .87rem; }
.uc-card .uc-grid a span { font-size: .68rem; opacity: .85; }
/* 四角色语义色：作者蓝 / 专家青 / 编辑紫 / 主编琥珀（与文章详情页 U1 一致） */
.uc-card .uc-grid a:nth-child(1) i { background: #f1f3ff; color: #3445e5; }
.uc-card .uc-grid a:nth-child(2) i { background: #e9fbf7; color: #0f9b95; }
.uc-card .uc-grid a:nth-child(3) i { background: #f6eeff; color: #8950fc; }
.uc-card .uc-grid a:nth-child(4) i { background: #fff4de; color: #b8770a; }
.uc-card .uc-grid a:nth-child(1) b { color: #3445e5; }
.uc-card .uc-grid a:nth-child(2) b { color: #0f9b95; }
.uc-card .uc-grid a:nth-child(3) b { color: #8950fc; }
.uc-card .uc-grid a:nth-child(4) b { color: #b8770a; }
.uc-card .uc-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(24, 28, 50, .12);
}
.uc-card .uc-grid a:nth-child(1):hover { border-color: #3445e5; }
.uc-card .uc-grid a:nth-child(2):hover { border-color: #0f9b95; }
.uc-card .uc-grid a:nth-child(3):hover { border-color: #8950fc; }
.uc-card .uc-grid a:nth-child(4):hover { border-color: #b8770a; }
