/* ========== 行业资讯栏目 ========== */

.news-article { padding-top: calc(var(--nav-height) + 0px); }

/* ---------- 详情页 ---------- */
.article-header {
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 44px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-light); margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb .current { color: var(--deep-blue); font-weight: 600; }

.article-cat {
  display: inline-block;
  background: #fef2f2; color: var(--brand-red);
  font-size: 0.78rem; font-weight: 600;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}
.article-header h1 {
  font-size: 1.95rem; line-height: 1.4; font-weight: 800;
  color: var(--deep-blue); margin-bottom: 18px; max-width: 820px;
}
.article-lead {
  font-size: 1.05rem; line-height: 1.8; color: var(--text-light);
  max-width: 760px; margin-bottom: 22px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: var(--text-light);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.article-body-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px; padding-top: 48px; padding-bottom: 64px; align-items: start;
}
.article-body { min-width: 0; }
.article-body p {
  font-size: 1.02rem; line-height: 2; color: var(--text); margin-bottom: 22px;
}
.article-body h2 {
  font-size: 1.28rem; font-weight: 800; color: var(--deep-blue);
  margin: 40px 0 16px; padding-left: 14px;
  border-left: 3px solid var(--brand-red); line-height: 1.5;
}
.article-body ul { margin: 0 0 24px; padding-left: 0; list-style: none; }
.article-body ul li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
  font-size: 1rem; line-height: 1.85; color: var(--text);
}
.article-body ul li::before {
  content: ''; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

.article-footer {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
}
.article-footer p { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; }
.article-footer .disclaimer { margin-top: 6px; font-size: 0.82rem; color: #9ca3af; }

/* 侧栏核心要点 */
.article-aside { position: sticky; top: calc(var(--nav-height) + 24px); }
.key-points {
  background: var(--bg-gray); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
}
.key-points h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--deep-blue);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.key-points ul { list-style: none; }
.key-points li {
  position: relative; padding-left: 18px; margin-bottom: 12px;
  font-size: 0.87rem; line-height: 1.7; color: var(--text-light);
}
.key-points li:last-child { margin-bottom: 0; }
.key-points li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-red);
}

/* 相关阅读 */
.related { background: var(--bg-gray); padding: 56px 0; }
.related-list { display: grid; gap: 14px; }
.related-item {
  display: flex; align-items: baseline; gap: 16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; transition: all 0.2s;
}
.related-item:hover { border-color: var(--brand-red); transform: translateX(4px); box-shadow: var(--shadow-md); }
.related-date { font-size: 0.82rem; color: var(--text-light); white-space: nowrap; }
.related-title { font-size: 0.95rem; font-weight: 600; color: var(--deep-blue); line-height: 1.6; }

/* ---------- 列表页 ---------- */
.list-hero { padding: calc(var(--nav-height) + 56px) 0 44px; background: var(--bg-gray); border-bottom: 1px solid var(--border); }
.list-body { padding: 44px 0 72px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  background: #fff; border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 18px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-light);
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { color: var(--brand-red); border-color: #fca5a5; }
.filter-btn.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

.news-list { display: grid; gap: 18px; }
.news-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all 0.25s;
}
.news-card:hover { border-color: #fca5a5; box-shadow: var(--shadow-md); }
.news-card[hidden] { display: none; }
.news-card-body { padding: 26px 28px; }
.news-card-top {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px;
}
.news-cat { background: #fef2f2; color: var(--brand-red); font-weight: 600; padding: 3px 10px; border-radius: 4px; }
.news-card-title { font-size: 1.18rem; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.news-card-title a { color: var(--deep-blue); transition: color 0.2s; }
.news-card-title a:hover { color: var(--brand-red); }
.news-card-summary { font-size: 0.92rem; line-height: 1.85; color: var(--text-light); margin-bottom: 18px; }
.news-card-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-preview {
  background: transparent; border: 1px solid var(--deep-blue); color: var(--deep-blue);
  border-radius: var(--radius); padding: 8px 18px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.btn-preview:hover { background: var(--deep-blue); color: #fff; }
.btn-read { font-size: 0.85rem; font-weight: 600; color: var(--brand-red); transition: opacity 0.2s; }
.btn-read:hover { opacity: 0.75; }

.empty-hint { text-align: center; color: var(--text-light); padding: 48px 0; font-size: 0.95rem; }

.list-cta { background: var(--deep-blue-dark); color: #fff; padding: 56px 0; text-align: center; }
.list-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.list-cta p { color: rgba(255,255,255,0.7); margin-bottom: 22px; }

/* ---------- 预览浮窗 ---------- */
.preview-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.preview-modal[hidden] { display: none; }
.preview-backdrop { position: absolute; inset: 0; background: rgba(7,26,48,0.6); animation: pvFade 0.2s ease; }
.preview-dialog {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 620px; max-height: 86vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22); animation: pvRise 0.24s ease;
}
@keyframes pvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pvRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.preview-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 1.5rem; line-height: 1; color: var(--text-light);
  cursor: pointer; border-radius: var(--radius); transition: all 0.2s;
}
.preview-close:hover { background: var(--bg-gray); color: var(--deep-blue); }

.preview-inner { padding: 32px 34px 28px; }
.preview-thumb {
  margin: -32px -34px 22px; overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--bg-gray);
}
/* 浮窗缩略图：保持原始比例，不做强制裁切 */
.preview-thumb img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .preview-thumb { margin: -26px -22px 18px; }
  .preview-thumb img { height: auto; }   /* 移动端同样保持原比例 */
}
.preview-title { font-size: 1.35rem; font-weight: 800; color: var(--deep-blue); line-height: 1.5; margin: 10px 0 14px; padding-right: 28px; }
.preview-summary { font-size: 0.96rem; line-height: 1.9; color: var(--text); margin-bottom: 22px; }
.preview-points { background: var(--bg-gray); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; }
.preview-points ul { list-style: none; }
.preview-points li {
  position: relative; padding-left: 18px; margin-bottom: 10px;
  font-size: 0.88rem; line-height: 1.75; color: var(--text-light);
}
.preview-points li:last-child { margin-bottom: 0; }
.preview-points li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-red);
}
.preview-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.preview-foot .btn { padding: 10px 24px; font-size: 0.9rem; }
.preview-tip { font-size: 0.8rem; color: #9ca3af; }

/* ---------- 首页资讯区块 ---------- */
.home-news { padding: 72px 0; }
.home-news-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 36px; flex-wrap: wrap;
}
.home-news-head .section-title { text-align: left; margin-bottom: 8px; }
.home-news-head .section-desc { text-align: left; margin: 0; }
.home-news-more {
  font-size: 0.9rem; font-weight: 600; color: var(--brand-red);
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.home-news-more:hover { gap: 10px; }

.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-news-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
  display: flex; flex-direction: column; transition: all 0.25s;
  overflow: hidden;   /* 让顶部封面图跟随卡片圆角裁切 */
}
.home-news-card:hover { border-color: #fca5a5; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.home-news-card .news-card-title { font-size: 1.05rem; margin-bottom: 10px; }
.home-news-card .news-card-summary { flex: 1; margin-bottom: 16px; }
.home-news-card .news-card-actions { margin-top: auto; }

/* 详情页配图 */
.article-figure { margin: 32px 0; }
.article-figure picture { display: block; }
.article-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); background: var(--bg-gray);
}
.article-figure figcaption {
  margin-top: 12px; font-size: 0.85rem; line-height: 1.7;
  color: var(--text-light); text-align: center;
}

/* 列表页缩略图 */
.news-card { display: flex; gap: 0; }
.news-card-body { flex: 1; min-width: 0; }
.news-card-thumb {
  flex-shrink: 0; width: 168px; overflow: hidden;
  border-left: 1px solid var(--border);
  display: flex; align-items: center; background: var(--bg-gray);
}
.news-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.news-card:hover .news-card-thumb img { transform: scale(1.04); }

/* 首页区块封面图（贴卡片上边缘，图片随卡片 hover 轻微放大）
   注意：不得写死 height + object-fit:cover——那会强行裁切改变长宽比。
   封面图多为 2:1 左右的宽幅，裁成固定高度会变成竖条。 */
.home-news-card .news-card-figure {
  display: block; margin: -26px -24px 18px;   /* 负边距抵消卡片 padding，让图贴边 */
  background: var(--bg-gray); overflow: hidden;
}
.home-news-card .news-card-figure img {
  width: 100%;
  height: auto;               /* 保持原始长宽比 */
  aspect-ratio: auto;         /* 不做强制裁切 */
  object-fit: contain;
  display: block;
  transition: transform 0.35s;
}
.home-news-card:hover .news-card-figure img { transform: scale(1.05); }

/* ---------- 三级标题（选型类文章的细分小节） ---------- */
.article-body h3 {
  font-size: 1.06rem; font-weight: 700; color: var(--deep-blue);
  margin: 28px 0 12px; line-height: 1.6;
}

/* ---------- 有序列表（自检清单、步骤序列） ---------- */
.article-body ol {
  margin: 0 0 24px; padding-left: 0; list-style: none;
  counter-reset: article-ol;
}
.article-body ol li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  font-size: 1rem; line-height: 1.85; color: var(--text);
  counter-increment: article-ol;
}
.article-body ol li::before {
  content: counter(article-ol);
  position: absolute; left: 0; top: 5px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fef2f2; color: var(--brand-red);
  font-size: 0.72rem; font-weight: 700; line-height: 19px; text-align: center;
}

/* ---------- 规格对照表（GEO：供模型抽取「条件—结论」对） ---------- */
.article-body .table-wrap {
  margin: 28px 0 14px; overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.article-body table {
  width: 100%; min-width: 620px; border-collapse: collapse;
  font-size: 0.92rem; line-height: 1.7; background: var(--bg);
}
.article-body table caption {
  caption-side: top; text-align: left; padding: 14px 16px 0;
  font-size: 0.86rem; font-weight: 700; color: var(--text-light);
}
.article-body thead th {
  background: var(--bg-gray); color: var(--deep-blue);
  font-weight: 700; text-align: left; white-space: nowrap;
}
.article-body th,
.article-body td {
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border); vertical-align: top; text-align: left;
}
.article-body thead th:last-child,
.article-body td:last-child { border-right: 0; }
.article-body tbody th { font-weight: 600; color: var(--deep-blue); white-space: nowrap; }
.article-body tbody tr:last-child th,
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) td { background: #fcfdff; }
.article-body .table-note {
  font-size: 0.85rem; line-height: 1.8; color: var(--text-light);
  margin: 0 0 26px;
}

/* ---------- FAQ（同时输出 FAQPage 结构化数据） ---------- */
.article-body .article-faq { margin-top: 44px; }
.article-body .article-faq .subsection-title {
  font-size: 1.28rem; font-weight: 800; color: var(--deep-blue);
  margin: 0 0 18px; padding-left: 14px; border-left: 3px solid var(--brand-red);
  line-height: 1.5;
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq-q {
  font-size: 1rem; font-weight: 700; color: var(--deep-blue);
  line-height: 1.7; margin: 0 0 8px;
}
.faq-a {
  font-size: 0.97rem; line-height: 1.9; color: var(--text); margin: 0;
}

/* ---------- CTA 与延伸链接 ---------- */
.article-cta {
  margin-top: 36px; padding: 24px 26px;
  background: var(--bg-gray); border: 1px solid var(--border);
  border-left: 3px solid var(--brand-red);
  border-radius: var(--radius-lg);
}
.article-cta .cta-text {
  font-size: 0.95rem; line-height: 1.9; color: var(--text); margin: 0;
}
.article-cta .cta-links {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; gap: 8px;
}
.article-cta .cta-links li { margin: 0; padding: 0; }
.article-cta .cta-links li::before { content: none; }
.article-cta .cta-links a {
  font-size: 0.92rem; font-weight: 600; color: var(--deep-blue);
  border-bottom: 1px dashed #cbd5e1; transition: color 0.2s, border-color 0.2s;
}
.article-cta .cta-links a:hover { color: var(--brand-red); border-color: var(--brand-red); }

/* 正文行内链接与强调 */
.article-body a {
  color: var(--brand-red); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.article-body a:hover { color: var(--brand-red-dark); }
.article-body strong { font-weight: 700; color: var(--deep-blue); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .article-body-wrap { grid-template-columns: 1fr; gap: 32px; }
  .article-aside { position: static; }
  .home-news-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.55rem; }
  .preview-inner { padding: 26px 22px 22px; }
  .preview-title { font-size: 1.15rem; }
  .related-item { flex-direction: column; gap: 6px; }
  .news-card-thumb { width: 110px; }
  .article-body table { font-size: 0.86rem; }
  .article-body th, .article-body td { padding: 9px 11px; }
  .article-cta { padding: 20px 18px; }
}
