/* nd-detail-173.css — 资讯详情页（2026-09-27 khp 效果图拍）
 * 作用域：仅 .nd-body 页面（/news/{id}.html SSG 页）。蓝 #155eae + 橙 #f97316，白底圆角轻阴影。
 * 移动端：单列、顶部「← 资讯 …」、无底部导航（本页不加载 BottomNav，零占位）。
 * 稳定文件名（public/ 原样复制，无 hash）；禁改动其他页面的选择器。 */

.nd-body { margin: 0; background: #f4f6f9; color: #16233d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
.nd-body .skip { position: absolute; left: -9999px; }

/* 阅读进度条 */
.nd-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, #155eae, #f97316); z-index: 60; transition: width .1s linear; }
.nd-toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); padding: 9px 20px; border-radius: 20px; background: rgba(22,35,61,.92); color: #fff; font-size: 13px; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.nd-toast.show { opacity: 1; }

/* ---------- 移动端顶栏（<1024 显示）---------- */
.nd-mtop { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 10px; background: #fff; box-shadow: 0 1px 4px rgba(15,43,80,.08); position: sticky; top: 0; z-index: 50; }
.nd-mtop-back { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #16233d; text-decoration: none; }
.nd-mtop-back svg { width: 22px; height: 22px; }
.nd-mtop-title { font-size: 15px; font-weight: 700; color: #16233d; }
.nd-mtop-more { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #41506a; text-decoration: none; }
.nd-mtop-more svg { width: 20px; height: 20px; }

/* ---------- 桌面 Header（≥1024 显示；复用现有 logo-3d 资产 + 既有路由）---------- */
.nd-dhead { display: none; background: #fff; box-shadow: 0 1px 4px rgba(15,43,80,.08); }
.nd-dhead-bar { max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.nd-logo { display: block; flex: 0 0 auto; text-decoration: none; }
.nd-logo img { display: block; width: 128px; height: auto; }
.nd-dnav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nd-dnav a { display: inline-block; padding: 8px 13px; border-radius: 8px; color: #2b3a54; font-size: 14px; font-weight: 600; text-decoration: none; }
.nd-dnav a:hover { background: #eef4fd; color: #155eae; }
.nd-dnav a.on { color: #155eae; background: #eef4fd; }
.nd-dloc { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #e6ebf2; border-radius: 999px; color: #41506a; font-size: 13px; font-weight: 600; text-decoration: none; }
.nd-dloc svg { width: 15px; height: 15px; color: #f97316; }
.nd-dlogin { flex: 0 0 auto; padding: 8px 18px; border: none; border-radius: 999px; background: #155eae; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }

/* ---------- 面包屑 ---------- */
.nd-crumb { max-width: 1200px; margin: 0 auto; padding: 12px 24px 0; }
.nd-crumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: #8593aa; min-width: 0; }
.nd-crumb li + li::before { content: '›'; margin: 0 6px; color: #c3cddd; }
.nd-crumb a { color: #5b6b85; text-decoration: none; }
.nd-crumb a:hover { color: #155eae; }
.nd-crumb li { display: block; min-width: 0; }
.nd-crumb li:last-child { flex: 0 1 auto; min-width: 0; }
.nd-crumb li:last-child span { display: inline-block; max-width: 46vw; vertical-align: bottom; color: #2b3a54; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 布局：移动单列 / 桌面两栏 ---------- */
.nd-wrap { max-width: 1200px; margin: 0 auto; padding: 10px 12px 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.nd-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* 移动端单列顺序（对齐 §12 效果图）：标题→封面→正文→AI摘要→关键信息→相关车型→相关服务→相关文章→上一篇/下一篇→找车
 * 原理：main/aside 展平为 flex 子项，上一篇与找车入口后移（order），右栏三卡按 DOM 顺序插入关键信息之后。 */
@media (max-width: 1023px) {
  .nd-wrap { display: flex; flex-direction: column; }
  .nd-main, .nd-side { display: contents; }
  .nd-pn, .nd-findcar { order: 1; }
}

/* ---------- 标题区 ---------- */
.nd-ath { background: #fff; border-radius: 14px; padding: 18px 16px 14px; box-shadow: 0 1px 4px rgba(15,43,80,.06); }
.nd-atitle { margin: 0 0 12px; font-size: 21px; font-weight: 800; line-height: 1.45; color: #16233d; overflow-wrap: break-word; }
.nd-ameta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; font-size: 12.5px; color: #8593aa; }
.nd-mitem b { color: #2b3a54; font-weight: 700; }
.nd-acts { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.nd-act { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border: 1px solid #e6ebf2; border-radius: 999px; background: #f8fafc; color: #41506a; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; -webkit-tap-highlight-color: transparent; }
.nd-act svg { width: 16px; height: 16px; }
.nd-act:hover { border-color: #155eae; color: #155eae; background: #eef4fd; }
.nd-act.on { border-color: #f97316; color: #f97316; background: #fff3e8; }

/* ---------- 封面 / 正文 ---------- */
.nd-cover { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(15,43,80,.06); background: #dfe7f2; }
.nd-cover img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.nd-article { background: #fff; border-radius: 14px; padding: 20px 18px; box-shadow: 0 1px 4px rgba(15,43,80,.06); font-size: 15.5px; line-height: 1.95; color: #2b3a54; overflow-wrap: break-word; }
.nd-article p { margin: 0 0 16px; }
.nd-article p:last-child { margin-bottom: 0; }
.nd-article h2, .nd-article .nd-h2 { margin: 26px 0 12px; font-size: 18px; font-weight: 800; color: #16233d; padding-left: 10px; border-left: 4px solid #f97316; line-height: 1.5; }
.nd-article h3, .nd-article .nd-h3 { margin: 22px 0 10px; font-size: 16px; font-weight: 700; color: #16233d; }
.nd-article ul, .nd-article .nd-ul { margin: 0 0 16px; padding-left: 20px; }
.nd-article li { margin-bottom: 8px; }
.nd-article img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 14px auto; }
.nd-article a { color: #155eae; text-decoration: none; }
.nd-article a:hover { text-decoration: underline; }
.nd-article figure, .nd-article .nd-fig { margin: 16px 0; }
.nd-article .nd-fig img { margin: 0 auto 6px; }
.nd-article .nd-fig-cap, .nd-article figcaption { text-align: center; font-size: 12.5px; color: #8593aa; margin-bottom: 8px; }
.nd-article .nd-no-content { color: #93a1b8; }
.nd-article strong { color: #16233d; }

/* ---------- AI摘要 / 关键信息卡 ---------- */
.nd-card { border-radius: 14px; padding: 16px; box-shadow: 0 1px 4px rgba(15,43,80,.06); }
.nd-ai { background: linear-gradient(135deg, #fff8f0 0%, #f4f6f9 60%); border: 1px solid #fdeee1; }
.nd-ai-t { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #16233d; }
.nd-ai-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f97316; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.nd-ai-q { font-weight: 500; color: #8593aa; font-size: 13px; }
.nd-ai-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nd-ai-list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.7; }
.nd-ai-k { flex: 0 0 auto; min-width: 64px; color: #ea6a1a; font-weight: 700; }
.nd-ai-v { flex: 1; min-width: 0; color: #2b3a54; }

.nd-key { background: #fff; }
.nd-key-t { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #16233d; display: flex; align-items: center; gap: 6px; }
.nd-key-t::before { content: ''; width: 4px; height: 14px; background: #155eae; border-radius: 2px; }
.nd-key-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.nd-key-cell { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.nd-key-cell dt { font-size: 11.5px; color: #8593aa; margin-bottom: 4px; }
.nd-key-cell dd { margin: 0; font-size: 13.5px; font-weight: 700; color: #16233d; line-height: 1.55; overflow-wrap: break-word; }

/* ---------- 上一篇 / 下一篇 ---------- */
.nd-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nd-pn-item { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 12px 14px; text-decoration: none; min-width: 0; box-shadow: 0 1px 3px rgba(15,43,80,.05); }
.nd-pn-item-r { text-align: right; align-items: flex-end; }
.nd-pn-l { font-size: 11.5px; color: #8593aa; font-weight: 600; }
.nd-pn-t { font-size: 13px; font-weight: 600; color: #2b3a54; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.nd-pn-item:hover { border-color: #155eae; }
a.nd-pn-item:hover .nd-pn-t { color: #155eae; }
.nd-pn-off { border: none; background: none; box-shadow: none; }

/* ---------- 找车入口 ---------- */
.nd-findcar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 14px; padding: 16px 18px; background: linear-gradient(120deg, #155eae 0%, #1e7fe0 100%); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(21,94,174,.25); }
.nd-findcar-l { display: flex; flex-direction: column; min-width: 0; }
.nd-findcar-l strong { font-size: 16px; font-weight: 800; }
.nd-findcar-l span { font-size: 12px; color: #cfe0f7; margin-top: 3px; }
.nd-findcar-b { flex: 0 0 auto; background: #f97316; color: #fff; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; }

/* ---------- 右侧栏 ---------- */
.nd-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nd-scard { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 4px rgba(15,43,80,.06); }
.nd-scard-t { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #16233d; display: flex; align-items: center; gap: 7px; }
.nd-scard-bar { width: 4px; height: 14px; background: #f97316; border-radius: 2px; flex: 0 0 auto; }

/* 相关车型（运行时真实车源） */
.nd-cars { display: flex; flex-direction: column; }
.nd-car { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef2f7; text-decoration: none; }
.nd-car:last-child { border-bottom: none; padding-bottom: 2px; }
.nd-car-img { width: 74px; height: 52px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #eef2f7; }
.nd-car-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nd-car-n { font-size: 13.5px; font-weight: 700; color: #2b3a54; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-car-p { font-size: 13px; font-weight: 800; color: #d4380d; }
a.nd-car:hover .nd-car-n { color: #155eae; }
.nd-cars-tip { padding: 18px 8px; font-size: 12.5px; color: #93a1b8; text-align: center; }

/* 相关服务（真实路由 + 图标） */
.nd-svcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nd-svc { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.nd-svc-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #eef4fd; color: #155eae; }
.nd-svc:nth-child(4n+1) .nd-svc-ic { background: #eef4fd; color: #155eae; }
.nd-svc:nth-child(4n+2) .nd-svc-ic { background: #e6f6ec; color: #178a4c; }
.nd-svc:nth-child(4n+3) .nd-svc-ic { background: #fdeee1; color: #ea6a1a; }
.nd-svc:nth-child(4n+4) .nd-svc-ic { background: #f0edff; color: #7c3aed; }
.nd-svc-ic svg { width: 22px; height: 22px; }
.nd-svc-l { font-size: 12.5px; font-weight: 700; color: #2b3a54; }
.nd-svc-s { font-size: 10.5px; color: #93a1b8; }
a.nd-svc:hover .nd-svc-l { color: #155eae; }

/* 相关文章 */
.nd-rels { display: flex; flex-direction: column; }
.nd-rel { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef2f7; text-decoration: none; }
.nd-rel:last-child { border-bottom: none; padding-bottom: 2px; }
.nd-rel-th { flex: 0 0 auto; width: 56px; height: 44px; border-radius: 9px; background: #eef4fd; color: #155eae; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.nd-rel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nd-rel-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nd-rel-t { font-size: 13px; font-weight: 600; color: #2b3a54; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nd-rel-m { font-size: 11px; color: #93a1b8; }
a.nd-rel:hover .nd-rel-t { color: #155eae; }

/* ---------- Footer ---------- */
.nd-foot { text-align: center; padding: 22px 16px 30px; font-size: 12px; color: #93a1b8; line-height: 2; }
.nd-foot a { color: #5b6b85; text-decoration: none; }
.nd-foot a:hover { color: #155eae; }

/* ---------- 桌面两栏（≥1024px）---------- */
@media (min-width: 1024px) {
  .nd-mtop { display: none; }
  .nd-dhead { display: block; }
  .nd-crumb { padding-top: 14px; }
  .nd-crumb li:last-child span { max-width: 560px; }
  .nd-wrap { padding: 16px 24px 34px; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
  .nd-ath { padding: 24px 26px 18px; }
  .nd-atitle { font-size: 26px; line-height: 1.4; }
  .nd-ameta { font-size: 13px; gap: 8px 20px; }
  .nd-article { padding: 28px 30px; font-size: 16px; line-height: 2; }
  .nd-card { padding: 20px 22px; }
  .nd-key-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nd-pn { gap: 12px; }
  .nd-pn-t { -webkit-line-clamp: 1; }
  .nd-cover img { max-height: 520px; }
}
