@charset "utf-8";

/* ============================================================
   news-detail.css —— 新闻详情页专用样式，nd- 前缀
   头部/页脚复用 common.css；风格与 news.css 保持一致
   ============================================================ */
.nd-page { padding-top: 100px; }

/* ============================================================
   2. 主体布局
   ============================================================ */
.nd-wrap { display: flex; align-items: flex-start; padding: 30px 0 100px; }
.nd-main { flex: 1; background: #fff; border-radius: 10px; padding: 48px 54px; border: 1px solid #c7cdd4; }
.nd-side { flex: 0 0 340px; margin-left: 30px; }

/* ============================================================
   3. 文章
   ============================================================ */
.nd-article h2.title { font-size: 30px; font-weight: bold; color: #2b3138; line-height: 1.5; }
.nd-meta { display: flex; align-items: center; flex-wrap: wrap; margin-top: 22px; padding-bottom: 24px; border-bottom: 1px solid #eef0f1; }
.nd-meta .m { display: flex; align-items: center; margin-right: 26px; font-size: 13px; color: #9aa0a6; }
.nd-meta .m svg { width: 15px; height: 15px; margin-right: 7px; }
.nd-meta .tag { margin-left: auto; padding: 5px 14px; background: #eaf7f1; color: var(--green); border-radius: 14px; font-size: 12px; }
.nd-content { margin-top: 30px; }
.nd-content p { font-size: 15px; color: #4a5158; line-height: 1.75; margin-bottom: 15px; }
.nd-content p span {text-wrap-mode: wrap !important;}
.nd-content h3 { position: relative; margin: 34px 0 18px; padding-left: 16px; font-size: 20px; font-weight: bold; color: #2b3138; }
.nd-content h3:before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, #10ad77, #08a06b); }
.nd-content .fig { margin: 28px 0; border-radius: 10px; overflow: hidden; }
.nd-content .fig img { width: 100%; display: block; }
.nd-content .fig figcaption { padding: 12px 16px; font-size: 13px; color: #9aa0a6; background: #f7f8f9; text-align: center; }
.nd-content blockquote { margin: 26px 0; padding: 20px 26px; background: #f3faf6; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; font-size: 15px; color: #3f5b50; line-height: 1.95; }
.nd-content ul.dot { margin: 8px 0 24px; }
.nd-content ul.dot li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 15px; color: #4a5158; line-height: 1.8; }
.nd-content ul.dot li:before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* 标签 */
.nd-tags { display: flex; align-items: center; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid #eef0f1; }
.nd-tags .lb { font-size: 14px; color: #9aa0a6; margin-right: 14px; }
.nd-tags a { margin: 0 10px 10px 0; padding: 6px 16px; background: #f3f5f6; color: #5a636a; border-radius: 16px; font-size: 13px; transition: .2s; }
.nd-tags a:hover { background: var(--green); color: #fff; }

/* 上一篇 / 下一篇 */
.nd-pager { margin-top: 30px; border-top: 1px solid #eef0f1; padding-top: 24px; }
.nd-pager a { display: flex; align-items: center; padding: 12px 0; font-size: 14px; color: #5a636a; transition: color .2s; }
.nd-pager a:hover { color: var(--green); }
.nd-pager a .k { flex: 0 0 auto; margin-right: 14px; color: #9aa0a6; }
.nd-pager a .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nd-back { display: inline-flex; align-items: center; height: 44px; padding: 0 26px; margin-top: 24px; background: #eef0f1; color: #5a646a; border-radius: 22px; font-size: 14px; transition: .2s; }
.nd-back:hover { background: var(--green); color: #fff; }

/* ============================================================
   4. 侧栏
   ============================================================ */
.nd-card { background: #fff; border-radius: 10px; padding: 28px 26px; border: 1px solid #c7cdd4; margin-bottom: 26px; }
.nd-card .ct-h { display: flex; align-items: center; font-size: 18px; font-weight: bold; color: #2b3138; margin-bottom: 6px; }
.nd-card .ct-h:before { content: ""; width: 4px; height: 18px; margin-right: 10px; border-radius: 2px; background: linear-gradient(180deg, #10ad77, #08a06b); }
.nd-rel a { display: block; padding: 18px 0; border-bottom: 1px solid #f0f2f3; }
.nd-rel a:last-child { border-bottom: none; padding-bottom: 0; }
.nd-rel a h4 { font-size: 14px; color: #3a4047; line-height: 1.6; font-weight: normal; transition: color .2s; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nd-rel a .date { margin-top: 9px; font-size: 12px; color: #9aa0a6; }
.nd-rel a:hover h4 { color: var(--green); }

/* 侧栏 CTA */
.nd-side-cta { position: relative; overflow: hidden; border-radius: 12px; padding: 32px 28px; color: #fff; background: linear-gradient(135deg, #10ad77 0%, #08a06b 100%); }
.nd-side-cta:after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.nd-side-cta h3 { position: relative; z-index: 2; font-size: 20px; font-weight: bold; }
.nd-side-cta p { position: relative; z-index: 2; margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .9); line-height: 1.9; }
.nd-side-cta .tel { position: relative; z-index: 2; margin-top: 16px; font-size: 24px; font-weight: bold; letter-spacing: 1px; }
.nd-side-cta .btn { position: relative; z-index: 2; display: inline-flex; align-items: center; height: 42px; padding: 0 24px; margin-top: 20px; background: #fff; color: var(--green); border-radius: 21px; font-size: 14px; font-weight: bold; transition: transform .2s; }
.nd-side-cta .btn:hover { transform: translateY(-2px); }

/* 热门标签 */
.nd-hot { display: flex; flex-wrap: wrap; }
.nd-hot a { margin: 0 9px 9px 0; padding: 6px 14px; background: #f3f5f6; color: #5a636a; border-radius: 15px; font-size: 13px; transition: .2s; }
.nd-hot a:hover { background: var(--green); color: #fff; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width:992px) {
  .nd-page { padding-top: 10px; }
  .nd-wrap { display: block; padding: 20px 0 50px; }
  .nd-main { padding: 32px 26px; }
  .nd-side { margin-left: 0; margin-top: 26px; }
  .nd-side { flex: none; width: 100%; }
}
@media (max-width:640px) {
  .nd-article h2.title { font-size: 23px; }
  .nd-meta .tag { margin-left: 0; margin-top: 10px; display: none; }
  .nd-content p, .nd-content ul.dot li { font-size: 14px; line-height: 1.75; }
  .nd-content p { margin-bottom: 10px; }
  .nd-main { padding: 20px 20px; }
  .nd-meta .m { margin-right: 15px; font-size: 12px; }
  .nd-meta .m svg { display: none; }
  .nd-meta { margin-top: 15px; padding-bottom: 15px; }
  .nd-content { margin-top: 20px; }
  .nd-content h3 { margin: 25px 0 15px; padding-left: 16px; font-size: 18px; }
  .nd-pager { margin-top: 30px; padding-top: 15px; }
  .nd-pager a { padding: 10px 0; font-size: 14px; }
  .nd-back { height: 40px; padding: 0 20px; margin-top: 20px; font-size: 14px; }
  .nd-pager a .k { margin-right: 0; }
  .nd-pager a .t { overflow: visible; white-space: pre-wrap; text-overflow: unset; }
  .nd-card { padding: 20px 20px; margin-bottom: 26px; display: none;}
  .nd-side-cta { padding: 20px 20px; }
}