/* 新闻内容页专用样式（作用域限定在 .ncontent-main / .ncontent-section 下，不影响其他页面） */

/* 新闻内容页英雄区背景图片 */
.ncontent-main .hero {
  background: url('../images/banner2.jpg') center/cover no-repeat;
}

/* 主体内容区：布局复用问答页 .qalist-layout（不在此处定义列数，避免冲突） */
.ncontent-section { margin-top: 0; }

/* 文章卡片 */
.ncontent-section .article { background: #fff; border: 1px solid #eef2f6; border-radius: 12px; padding: 20px; text-align: left; position: relative;}
@media (min-width: 768px) { .ncontent-section .article { padding: 24px; } }
@media (min-width: 1200px) { .ncontent-section .article { padding: 28px; } }

/* 角标转化入口 */
.conversion-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bolder;
  text-decoration: none;
  border-radius: 0 12px 0 12px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 10;
}
.conversion-badge:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
}
/* 手机端调整：避免遮挡产品简介 */
@media (max-width: 900px) {
  .conversion-badge {
    display: none;
  }
}

/* 面包屑 */
.ncontent-section .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #6b7280; margin: 0 0 10px; }
.ncontent-section .breadcrumb a { color: #6b7280; text-decoration: none; }
.ncontent-section .breadcrumb a:hover { color: var(--brand-primary); text-decoration: underline; }

/* 标题与Meta */
.ncontent-section .article-title { margin: 0 0 10px; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.35; font-weight: 800; color: #111827; }
.ncontent-section .article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #6b7280; margin: 0 0 20px; }
.ncontent-section .article-meta .dot { color: #9ca3af; }

/* 封面图 */
.ncontent-section .article-cover { margin: 12px 0 20px; border-radius: 10px; overflow: hidden; border: 1px solid #eef2f6; background: #f8fafc; }
.ncontent-section .article-cover img { width: 100%; height: auto; display: block; }

/* 桌面端限制图片宽度，避免过宽导致阅读不适 */
@media (min-width: 800px) {
  .ncontent-section .article-cover { max-width: 750px; margin-left: auto; margin-right: auto; }
  .ncontent-section .article-content figure { max-width: 750px; margin-left: auto; margin-right: auto; }
  .ncontent-section .article-content img { max-width: 750px; width: 100%; height: auto; }
}

/* 正文排版 */
.ncontent-section .article-content { color: #1f2937; font-size: 16px; line-height: 1.85; }
.ncontent-section .article-content > *:first-child { margin-top: 0; }
.ncontent-section .article-content > * { margin: 14px 0; }
.ncontent-section .article-content h2 { font-size: 20px; margin: 20px 0 10px; line-height: 1.5; color: #111827; }
.ncontent-section .article-content h2:after { background: var(--brand-gradient);box-shadow: 0 2px 6px rgba(24, 144, 255, .22);content: "";display: block;width: 50px;height: 2px;border-radius: 5px;margin: 5px 0 20px;}
.ncontent-section .article-content h3 { font-size: 18px; margin: 18px 0 8px; line-height: 1.5; color: #111827; }
.ncontent-section .article-content h4 { font-size: 16px; margin: 16px 0 8px; line-height: 1.5; color: #111827; }
.ncontent-section .article-content p { margin: 12px 0; max-width: 100%; font-size: 16px;}
/* 图文：图片与说明文字居中，图注浅灰小号 */
.ncontent-section .article-content figure { margin: 16px auto; text-align: center; }
.ncontent-section .article-content figure img { display: block; margin: 0 auto; height: auto; }
.ncontent-section .article-content img {
  display: block;
  margin: 16px auto; /* 上下留白并水平居中 */
  height: auto !important;
  max-width: 750px !important; /* 统一最大宽度 */
  width: 100% !important;
  box-sizing: border-box; /* 边框计入宽度，避免溢出 */
  border: 1px solid #eef2f6;
  border-radius: 10px;
  background: #f8fafc;
}
.ncontent-section .article-content figcaption { margin-top: 6px; color: #9ca3af; font-size: 12px; line-height: 1.6; text-align: center; }
.ncontent-section .article-content a { color: var(--brand-primary); text-decoration: none; }
.ncontent-section .article-content a:hover { text-decoration: underline; }

/* 列表 */
.ncontent-section .article-content ul,
.ncontent-section .article-content ol { 
    margin: 20px 0;
    font-size: 12px;
    font-weight: 300;
    padding: 10px 10px 10px 30px;
    background: #f5f5f5;
    border-radius: 10px; }
.ncontent-section .article-content li { margin: 10px 0; }
.ncontent-section .article-content li::marker {  }

/* 引用块 */
.ncontent-section .article-content blockquote { margin: 14px 0; padding: 10px 12px; background: #f8fbff; border-left: 3px solid #9ec5ff; color: #374151; border-radius: 6px; }

/* 图片与说明 */
.ncontent-section .article-content figure { margin: 16px 0; text-align: center; }
.ncontent-section .article-content figure img { max-width: 100%; border-radius: 8px; border: 1px solid #eef2f6; }
.ncontent-section .article-content figure figcaption { font-size: 12px; color: #6b7280; margin-top: 6px; }

/* 表格（横向滚动容器） */
.ncontent-section .table-wrap { width: 100%; overflow-x: auto; border: 1px solid #eef2f6; border-radius: 8px; }
.ncontent-section table { width: 100%; border-collapse: collapse; }
.ncontent-section th, .ncontent-section td { border-bottom: 1px solid #eef2f6; padding: 10px 12px; text-align: left; }
.ncontent-section thead th { background: #f9fbff; color: #111827; font-weight: 700; }

/* 标签 */
.ncontent-section .article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ncontent-section .article-tags .tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font-size: 12px; color: var(--brand-primary); background: #eef6ff; border: 1px solid #d6e7fb; border-radius: 999px; text-decoration: none; }
.ncontent-section .article-tags .tag:hover { background: #e6f0ff; }

/* 上/下一篇导航 */
.ncontent-section .article-nav { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
@media (min-width: 640px) { .ncontent-section .article-nav { grid-template-columns: 1fr 1fr; } }
.ncontent-section .nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #e6eef7; background: #fff; color: #374151; text-decoration: none; font-size: 14px; line-height: 1; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.ncontent-section .nav-link:hover { background: #f5faff; border-color: #b7d3f5; color: var(--brand-primary); }
