/* ============================================================
   洛阳荣峰塑业有限公司 - 新闻列表 / 新闻详情 公共样式
   依赖首页 style.css（复用 .news-card）与 page-about.css（内页 banner）
   ============================================================ */

/* ---------- 新闻列表区 ---------- */
.news-list-sec{padding:60px 0 70px;background:#fff}
.news-list-sec .section-head{margin-bottom:40px}
.news-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}
/* 复用首页 .news-card，网格内图片略紧凑 */
.news-grid .news-card{height:100%}
.news-grid .news-img img{height:240px}
.news-grid .news-body{padding:20px 20px 24px}
.news-grid .news-body h3{font-size:17px}
.news-grid .news-body p{margin-top:1em;line-height:1.8em; }

/* 列表结构重构：图标改用 FontAwesome，仅作用于新闻列表页（不影响首页雪碧图） */
.news-list-sec .news-img-link{display:block}
.news-list-sec .news-date,
.news-list-sec .news-cat{
  background:none;padding-left:0;
  display:inline-flex;align-items:center;gap:5px;
  text-decoration:none;
}
.news-list-sec .news-date i,
.news-list-sec .news-cat i{font-size:12px;color:inherit}
.news-list-sec .news-body h3 a{color:inherit;text-decoration:none;font-size: 18px;}
.news-list-sec .news-cat:hover{color:var(--green)}



/* ============================================================
   新闻详情
   ============================================================ */
.news-detail-sec{padding:46px 0 72px;background:#fff}
.news-detail-layout{display:flex;align-items:flex-start;gap:50px}
.news-main-col{flex:1 1 auto;min-width:0;max-width:1200px}
.news-detail{display:block;max-width:100%;margin:0}
html{scroll-behavior:smooth}

/* 面包屑（复用 page-about.css 的 .page-crumb 视觉，这里独立成一行） */
.news-crumb{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:14px;color:var(--text-light);margin-bottom:26px;
}
.news-crumb a{color:var(--text-light)}
.news-crumb a:hover{color:var(--green);text-decoration:underline}
.news-crumb .sep{color:#c4cdcb}
.news-crumb .cur{color:var(--green);font-weight:600}

/* 文章头部 */
.news-article-head{margin-bottom:26px}
.news-article-head h1{
  font-size:32px;line-height:1.4;letter-spacing:.5px;color:var(--text);
  font-weight:700;margin-bottom:18px;
}
.news-article-meta{
  display:flex;align-items:center;flex-wrap:wrap;gap:18px;
  font-size:14px;color:var(--text-light);
  padding-bottom:18px;border-bottom:1px solid #eee;
}
.news-article-meta .na-item{display:inline-flex;align-items:center;gap:7px}
.news-article-meta .na-cat{
  color:#fff;background:var(--green);padding:3px 12px;border-radius:20px;font-size:13px;
}
.news-article-meta time{font-variant-numeric:tabular-nums}

/* 封面图 */
.news-cover{margin:26px 0 30px;border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.news-cover img{width:100%;height:auto;display:block}

/* 正文 */
.news-article-body{font-size:16px;color:#3b4543;line-height:1.8}
.news-article-body h2{
  font-size:24px;color:var(--text);
  margin:16px 0 16px;position:relative;font-weight:700;
  scroll-margin-top:88px;
}
.news-article-body h3{
  font-size:18px;margin:12px 0 12px;font-weight:600;
}
.news-article-body p{margin-bottom:18px;text-align:justify}
.news-article-body strong{color:var(--text);font-weight:700}
.news-article-body figure{margin:24px 0}
.news-article-body  img{max-width: 100%; display: inline-block;}
.news-article-body figcaption{text-align:center;font-size:13.5px;color:var(--text-light);margin-top:10px}
.news-article-body ul.lead-list{margin:6px 0 20px;padding-left:0;list-style:none}
.news-article-body ul.lead-list li{
  position:relative;padding-left:20px;margin-bottom:12px;line-height:1.85;color:var(--text-light);
}
.news-article-body ul.lead-list li::before{
  content:"";position:absolute;left:4px;top:11px;width:6px;height:6px;border-radius:50%;background:var(--green);
}

table {
            width: 100%;
            border-collapse: collapse;
            font-size: 16px;
            background: #fafcfe;
            overflow: hidden;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
	 margin-bottom: 1em;
	overflow-x: auto;
    -webkit-overflow-scrolling: touch;  /* iOS 惯性滚动，手感更顺 */
        }
        th {
            background: #eaf0f6;
            text-align: left;
            padding: 14px 18px;
            font-weight: 600;
            color: #1e2a3a;
        }
        td {
            padding: 13px 18px;
            border: 1px solid #e4e9ef;
        }
/* 要点提示框（营销转化钩子） */
.news-tip{
  background:linear-gradient(150deg,#f3f9f7,#eef5f3);
  border-left:4px solid var(--green);border-radius:0 12px 12px 0;
  padding:20px 24px;margin:24px 0;
}
.news-tip h4{font-size:17px;color:var(--green);margin-bottom:8px}
.news-tip p{margin:0;font-size:15px;color:var(--text-light);line-height:1.85}

/* 文末分享 / 标签 */
.news-article-foot{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;
  margin-top:34px;padding-top:24px;border-top:1px solid #eee;
}
.news-tags{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.news-tags .nt-label{font-size:14px;color:var(--text-light)}
.news-tags a{
  font-size:13px;color:var(--text-light);background:#f1f5f4;
  padding:6px 14px;border-radius:20px;transition:.25s;
}
.news-tags a:hover{background:var(--green);color:#fff}
.news-share{display:flex;align-items:center;gap:10px}
.news-share .ns-label{font-size:14px;color:var(--text-light)}
.news-share a{
  width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#f1f5f4;transition:.25s;
}
.news-share a:hover{background:var(--green);transform:translateY(-2px)}
.news-share a i{font-size:18px;line-height:1;color:var(--text-light);transition:.25s}
.news-share a:hover i{color:#fff}

/* 上一篇 / 下一篇 */
.news-prev-next{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  flex-basis:100%;width:100%;
  margin:0px auto 0;
}
.news-prev-next .npn-item{
  flex:1 1 280px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;
  padding:18px 22px;border:1px solid #eee;border-radius:12px;background:#fff;
  transition:.25s;
}
.news-prev-next .npn-item:hover{border-color:var(--green);box-shadow:0 6px 20px rgba(10,102,89,.12)}
.news-prev-next .npn-label{font-size:14px;color:var(--text-light)}
.news-prev-next .npn-title{
  display:block;max-width:100%;
  font-size:18px;font-weight:600;color:var(--text);
  text-decoration:none;transition:.25s;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.news-prev-next .npn-title:hover{color:var(--green);text-decoration:underline}

/* 详情侧栏（两栏右侧） */
.news-sidebar{
  flex:0 0 380px;width:380px;
  position:sticky;top:90px;
  display:flex;flex-direction:column;gap:22px;
}
.nsb-card{border:1px solid #eee;border-radius:12px;background:#fff;padding:25px 20px}
.nsb-title{
  font-size:16px;font-weight:700;color:var(--text);
  margin:0 0 14px;padding-left:12px;border-left:3px solid var(--green);line-height:1.3;
}
/* 文章目录 */
.nsb-toc ol{list-style:none;margin:0;padding:0;counter-reset:toc}
.nsb-toc li{counter-increment:toc;margin-bottom:4px;display:flex;align-items:baseline}
.nsb-toc li::before{content:counter(toc) ".";color:var(--green);font-weight:700;flex:0 0 auto;margin-right:6px}
.nsb-toc a{
  flex:1;font-size:14px;color:var(--text-light);text-decoration:none;
  line-height:1.6;padding:7px 10px;border-radius:6px;transition:.2s;
}
.nsb-toc a:hover{background:#f1f5f4;color:var(--green)}
/* 热门阅读 */
.nsb-hot-item{display:flex;gap:10px;align-items:flex-start;padding:11px 0;border-bottom:1px dashed #eee}
.nsb-hot-item:last-child{border-bottom:none;padding-bottom:0}
.nsb-hot .rank{
  flex:0 0 22px;height:22px;border-radius:6px;background:var(--green);color:#fff;
  font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;
}
.nsb-hot-item:nth-child(n+4) .rank{background:#c4cdcb}
.nsb-hot a{font-size:14px;color:var(--text);text-decoration:none;line-height:1.5}
.nsb-hot a:hover{color:var(--green)}
/* 相关产品推荐 */
.nsb-prod-item{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px dashed #eee;text-decoration:none}
.nsb-prod-item:last-child{border-bottom:none;padding-bottom:0}
.nsb-prod .pp-img{width:56px;height:56px;border-radius:8px;object-fit:cover;flex-shrink:0;background:#f1f5f4}
.nsb-prod .pp-name{font-size:14px;color:var(--text);line-height:1.4;transition:.2s}
.nsb-prod-item:hover .pp-name{color:var(--green)}
/* 企业名片 */
.nsb-company{text-align:center;}
.nsb-company .nc-logo{height:46px;width:auto;margin:0 auto 8px;display:block}
.nsb-company .nc-name{font-size:18px;font-weight:700;color:var(--text)}
.nsb-company .nc-slogan{font-size:14px;color:var(--text-light);margin:4px 0 12px}
.nsb-company .nc-info{font-size:14px;color:var(--text-light);line-height:1.9;text-align:center; margin-bottom: 20px;}
.nsb-company .nc-info a{color:var(--green)}
.nsb-btn{
  display:block;width:100%;text-align:center;margin-top:16px;
  padding:11px 0;border-radius:25px;border:1px solid var(--green);
  color:var(--green);font-size:15px;font-weight:700;letter-spacing:1px;text-decoration:none;transition:.25s;
   
}
.nsb-btn:hover{background:var(--green);color:#fff}

/* 相关新闻 */
.news-related{background:#f8f9f9;padding:60px 0}
.news-related .section-head{margin-bottom:36px}
.news-related .news-grid{grid-template-columns:repeat(4,1fr)}
/* 相关新闻 日期/分类图标与新闻列表页统一（FontAwesome） */
.news-related .news-date,
.news-related .news-cat{
  background:none;padding-left:0;
  display:inline-flex;align-items:center;gap:5px;
  text-decoration:none;
}
.news-related .news-date i,
.news-related .news-cat i{font-size:12px;color:inherit}
.news-related .news-cat:hover{color:var(--green)}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width:1200px){
  .news-grid{gap:20px}
  .news-related .news-grid{gap:20px}
}
@media (max-width:992px){
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .news-related .news-grid{grid-template-columns:repeat(2,1fr)}
  .news-grid .news-img img{height:220px}
  .news-detail-sec{padding:36px 0 56px}
  .news-article-head h1{font-size:27px}
  .news-article-body h2{font-size:21px}
  .news-detail-layout{flex-direction:column;gap:30px}
  .news-main-col{max-width:100%}
  .news-sidebar{flex-basis:auto;width:100%;position:static;flex-direction:row;flex-wrap:wrap}
  .news-sidebar .nsb-card{flex:1 1 260px}
}
@media (max-width:768px){
  .news-list-sec{padding:40px 0 50px}
  .news-list-sec .section-head{margin-bottom:28px}
  .news-grid .news-img img{height:190px}
  .news-grid .news-body{padding:16px 16px 20px}
  .news-grid .news-body h3{font-size:16px}
  .nl-pagination{margin-top:36px;gap:8px}
  .pagi{min-width:40px;height:40px;font-size:14px;padding:0 12px}
  .news-detail{max-width:100%}
  .news-article-head h1{font-size:23px;line-height:1.4;margin-bottom:14px}
  .news-article-meta{gap:12px;font-size:13px}
  .news-article-body{font-size:15.5px;line-height:1.9}
  .news-article-body h2{font-size:19px;margin:30px 0 14px}
  .news-article-body h3{font-size:17px}
  .news-related{padding:44px 0}
  .news-related .news-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .news-grid{grid-template-columns:1fr}
}
@media (max-width:480px){
  .news-grid .news-body{padding: 16px 0px;}
  .news-prev-next .npn-title{font-size: 16px;}
  .news-prev-next .npn-item{padding:16px 0px}
  .news-prev-next .npn-item{border: none; border-radius: 0px;}
  .news-prev-next{gap:0px}
}

