/* ==========================================================================
   p-news-detail.css — 新闻详情页专属（几何数值取自 02_新闻详情页.psd）
   ========================================================================== */


.n-wrap {
  width: 14.44rem;
  margin-inline: auto;
}

/* ---- 标题带（PSD 700→963，浅灰底） ---- */
.nd-band {
  background: #f9fafb;
  height: 2.63rem;
  padding-top: 0.79rem;
}
.nd-title {
  font-size: 0.36rem;
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
  color: var(--c-ink);
}
.nd-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: var(--fs-body);
  line-height: 1;
  color: var(--c-ink-3);
}
.nd-meta .share {
  display: flex;
  align-items: center;
  gap: 0.14rem;
}
.share-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  opacity: 0.75;
  filter: brightness(0.5);
}
.share-btn:hover,
.share-btn:focus-visible {
  opacity: 1;
  transform: translateY(-0.02rem) scale(1.1);
}
.nd-meta .share img {
  width: 0.27rem;
  height: 0.24rem;
  object-fit: contain;
}

/* ---- 分享提示 ---- */
.nd-toast {
  position: fixed;
  left: 50%;
  bottom: 0.6rem;
  z-index: 90;
  max-width: 6rem;
  padding: 0.14rem 0.28rem;
  border-radius: 0.04rem;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.16rem);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  pointer-events: none;
}
.nd-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---- 阅读进度（顶部细条，不占布局） ---- */
.nd-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 95;
  width: 100%;
  height: 0.02rem;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---- 正文 ---- */
.nd-body {
  margin-top: 0.66rem;
  font-size: 0.175rem;
  line-height: 0.36rem;
  color: var(--c-ink-2);
}
.nd-body p + p { margin-top: 0.36rem; }

/* ---- 上/下一条 + 返回列表 ---- */
.nd-nav {
  margin-top: 0.9rem;
  border-top: 1px solid var(--c-line);
  padding-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-body);
  line-height: 1;
  color: var(--c-ink-2);
}
.nd-nav a { color: var(--c-ink-2); transition: color 0.2s ease; }
.nd-nav a:hover { color: var(--c-primary); }
/* 上/下一条：下划线从左侧滑入 */
.nd-nav a { position: relative; }
.nd-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.09rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.nd-nav a:hover::after { transform: scaleX(1); }
.nd-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.62rem;
  height: 0.58rem;
  margin: 0.76rem auto 0;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: var(--fs-sm);
  line-height: 1;
  transition: background-color 0.25s ease;
}
.nd-back:hover { background: #0a6ecb; }

/* 内容区底部留白（按钮底 2119 → 页脚 2237） */
.n-wrap { padding-bottom: 1.28rem; }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .n-wrap { width: calc(100% - 0.6rem); }
  .nd-band { height: auto; padding: 0.5rem 0 0.45rem; }
  .nd-title { padding-inline: 0.4rem; }
}
@media (max-width: 768px) {
  .n-wrap { width: calc(100% - 0.48rem); padding-bottom: 0.4rem; }
  .nd-band { padding: 0.4rem 0 0.4rem; }
  .nd-title { font-size: 0.36rem; padding-inline: 0.3rem; line-height: 1.5; }
  .nd-meta { flex-wrap: wrap; gap: 0.15rem 0.25rem; margin-top: 0.25rem; font-size: 0.22rem; }
  .nd-body { margin-top: 0.45rem; font-size: 0.28rem; line-height: 1.8; }
  .nd-body p + p { margin-top: 0.24rem; }
  .nd-nav { margin-top: 0.6rem; padding-top: 0.4rem; font-size: 0.28rem;flex-wrap: wrap; line-height: 1.5;}
  .nd-nav span + span{margin-top: 0.2rem;}
  .nd-back { margin-top: 0.55rem; width: 2.2rem; height: 0.8rem; font-size: 0.24rem; }
}
