/* ============================================================
   ZMONIT 新闻资讯 · 列表页 + 文章详情页共用样式
   依赖：css/style.css（设计变量 / 导航）、css/footer.css（页脚）
   所有类名以 news- / art- 开头，不覆盖全局样式
   ============================================================ */

.news-page,
.art-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  color: var(--text);
  background: var(--bg);
}

.news-wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.news-page img,
.art-page img { display: block; max-width: 100%; }

/* ============================================================
   一、列表页 · 标题区
   ============================================================ */
.news-hero {
  padding: 158px 0 44px;
  text-align: center;
}

.news-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 16px;
}

.news-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}

.news-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* ============================================================
   二、列表页 · 最新发布轮播
   ============================================================ */
.news-latest { padding-bottom: 56px; }

.news-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.news-section-left { display: flex; align-items: center; gap: 12px; }

.news-section-left h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.news-latest-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 93, 59, .18);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.news-slider-ctrl { display: flex; align-items: center; gap: 10px; }

.news-slider-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.news-slider-count b { color: var(--accent); font-weight: 700; }

.news-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .25s ease;
}

.news-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.news-feature {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}

.news-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.news-feature-img { overflow: hidden; background: #f3f4f6; }
.news-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-feature:hover .news-feature-img img { transform: scale(1.03); }

.news-feature-body {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 100px;
  background: #fdece7;
  color: #c2482b;
  font-size: 12px;
  font-weight: 600;
}

.news-pill-new { background: var(--accent); color: #fff; }

.news-feature-body h3 {
  font-size: 27px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.02em;
}

.news-feature-body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feature-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-feature-more {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.news-slider-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.news-dots { display: flex; gap: 7px; }

.news-dot {
  width: 7px;
  height: 7px;
  border-radius: 100px;
  border: none;
  background: #d8dbe0;
  cursor: pointer;
  transition: all .25s ease;
  padding: 0;
}

.news-dot.is-active { width: 22px; background: var(--accent); }

.news-slider-hint { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   三、列表页 · 分类 / 卡片网格 / 分页
   ============================================================ */
.news-list { padding-bottom: 110px; }

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 26px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  margin-bottom: 26px;
}

.news-filter {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .22s ease;
}

.news-filter:hover { border-color: var(--accent); color: var(--accent); }

.news-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 93, 59, .2);
}

.news-card-img {
  height: 158px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #e9ecf1);
}

.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  gap: 9px;
}

.news-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.news-card-cat { font-size: 11px; font-weight: 600; color: var(--accent); }
.news-card-date { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.news-card-title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.news-card-sum {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

.news-card-foot span:last-child { color: var(--accent); font-weight: 600; }

.news-empty {
  grid-column: 1 / -1;
  padding: 70px 20px;
  text-align: center;
  color: var(--text-muted);
  background: #fff;
  border-radius: 18px;
  border: 1px dashed var(--border-strong);
}

.news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.news-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.news-page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

.news-page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.news-page-btn:disabled { opacity: .4; cursor: default; }

.news-count { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-muted); }

/* ============================================================
   四、详情页 · 头部
   ============================================================ */
.art-page { padding-bottom: 100px; }

.art-crumb {
  padding: 140px 0 26px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.art-crumb a:hover { color: var(--accent); }
.art-crumb span { margin: 0 8px; opacity: .6; }

.art-head { margin-bottom: 28px; }

.art-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.art-meta-row > span:last-child { font-size: 12.5px; color: var(--text-muted); }

.art-title {
  font-size: 42px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  max-width: 960px;
}

.art-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 900px;
  margin-bottom: 22px;
}

.art-author { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }

.art-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.art-cover {
  width: 100%;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 34px;
}

.art-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   五、详情页 · 三栏布局
   ============================================================ */
.art-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

/* 左目录较矮，跟随滚动；右侧栏卡片较多，不 sticky 以免底部内容被挡 */
.art-toc { position: sticky; top: 110px; }
.art-side { display: flex; flex-direction: column; gap: 20px; }

.art-toc-card,
.art-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 18px;
}

.art-toc-card h4,
.art-card h4 {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.art-toc-item {
  display: block;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 6px 0;
  text-decoration: none;
  transition: color .2s ease;
}

.art-toc-item:hover { color: var(--accent); }
.art-toc-item.is-active { color: var(--accent); font-weight: 700; }
.art-toc-item.toc-sum { font-weight: 700; }

.art-toc-line { height: 1px; background: var(--border); margin: 14px 0 12px; }
.art-toc-time { font-size: 11.5px; color: var(--text-muted); }

.art-side { display: flex; flex-direction: column; gap: 20px; }

.art-hot-item {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.art-hot-item:last-child { border-bottom: none; }

.art-hot-title {
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-hot-item:hover .art-hot-title { color: var(--accent); }
.art-hot-item:first-child .art-hot-title { color: var(--accent); }

.art-hot-meta { display: block; margin-top: 4px; font-size: 10.5px; color: var(--text-muted); }

.art-side-link { display: block; font-size: 12.5px; color: var(--text-secondary); padding: 7px 0; text-decoration: none; line-height: 1.6; }
.art-side-link:hover { color: var(--accent); }

.art-side-all { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--accent); }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.art-tag {
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg-soft);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.art-consult {
  background: #1b2434;
  color: #fff;
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.art-consult-tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #9ba6b8; }
.art-consult h4 { color: #fff; font-size: 15px; line-height: 1.6; margin: 0; font-weight: 700; }
.art-consult p { font-size: 12px; line-height: 1.8; color: #aeb8c8; margin: 0; }

.art-consult-btn {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--text);
  border-radius: 100px;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
}

/* ============================================================
   六、详情页 · 正文模块
   ============================================================ */
.art-main { min-width: 0; }

.art-ai,
.art-keys,
.art-sum-box,
.art-faq,
.art-more { margin-bottom: 22px; }

.art-ai {
  background: #fff;
  border: 1px solid rgba(79, 70, 229, .12);
  border-radius: 20px;
  padding: 24px 26px;
}

.art-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.art-ai-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }

.art-ai-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #eef0ff;
  color: var(--indigo);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.art-ai-note { font-size: 11px; color: var(--text-muted); }

.art-ai p,
.art-keys p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-top: 8px;
}

.art-keys {
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 20px;
  padding: 22px 26px;
}

.art-keys h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.art-keys ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.art-keys li {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.art-keys li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.art-body { margin-bottom: 26px; }

.art-body p {
  font-size: 15px;
  line-height: 2;
  color: #374151;
  margin-bottom: 18px;
}

.art-body h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 34px 0 16px;
  scroll-margin-top: 110px;
}

.art-quote {
  background: #fdece7;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 22px 0;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
  color: #c2482b;
}

.art-bullets { list-style: none; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }

.art-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
}

.art-bullets li::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 11px;
}

.art-sum-box,
.art-faq,
.art-more { padding-top: 24px; border-top: 1px solid var(--border); scroll-margin-top: 110px; }

.art-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.art-block-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.art-block-head span { font-size: 12px; color: var(--text-muted); }

.art-sum-text {
  background: #fdece7;
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 15.5px;
  line-height: 1.9;
  font-weight: 700;
  color: #c2482b;
}

.art-faq-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.art-faq-item:last-child { border-bottom: none; }
.art-faq-q { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.art-faq-a { font-size: 13px; line-height: 1.8; color: var(--text-secondary); }

.art-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.art-more-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.art-more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.art-more-img { height: 92px; overflow: hidden; background: var(--bg-soft); }
.art-more-img img { width: 100%; height: 100%; object-fit: cover; }

.art-more-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.art-more-title {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-more-meta { margin-top: auto; font-size: 11px; color: var(--text-muted); }

/* ---- 试用邀请框 ---- */
.art-cta {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: 32px 34px;
  border-radius: 26px;
  border: 1px solid rgba(232, 93, 59, .22);
  background: radial-gradient(ellipse at 100% 10%, rgba(232, 93, 59, .16), transparent 62%),
              linear-gradient(180deg, #fff8f5 0%, #fffdfc 100%);
  box-shadow: 0 12px 40px rgba(232, 93, 59, .07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.art-cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-hover);
}

.art-cta-kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.art-cta h3 {
  margin: 10px 0;
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -.022em;
  font-weight: 800;
  color: #c2482b;
}

.art-cta p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 480px;
}

.art-cta-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.art-cta-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 11px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid rgba(232, 93, 59, .16);
  font-size: 11.5px;
  font-weight: 600;
  color: #a8472c;
}

.art-cta-facts svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.art-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 30px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all .25s ease;
}

.art-cta-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ---- 上下篇 / 返回 ---- */
.art-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.art-pn {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}

.art-pn:hover { border-color: var(--accent); transform: translateY(-2px); }
.art-pn small { display: block; font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.art-pn strong { font-size: 14px; font-weight: 600; line-height: 1.6; }
.art-pn.next { text-align: right; }

.art-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .22s ease;
}

.art-back:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   七、响应式
   ============================================================ */
@media (max-width: 1180px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-layout { grid-template-columns: 140px minmax(0, 1fr) 250px; gap: 18px; }
}

@media (max-width: 1000px) {
  .art-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .art-toc { display: none; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-title { font-size: 44px; }
  .art-title { font-size: 34px; }
  .art-cover { height: 320px; }
}

@media (max-width: 760px) {
  .news-wrap { width: calc(100% - 32px); }
  .news-hero { padding: 130px 0 32px; }
  .news-title { font-size: 36px; }
  .news-desc { font-size: 14px; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-img { height: 190px; }
  .news-feature-body { padding: 24px; }
  .news-feature-body h3 { font-size: 21px; }
  .news-latest { padding-bottom: 36px; }
  .news-list { padding-bottom: 70px; }
  .art-crumb { padding-top: 118px; }
  .art-title { font-size: 27px; }
  .art-lead { font-size: 14px; }
  .art-cover { height: 210px; border-radius: 18px; }
  .art-layout { grid-template-columns: 1fr; }
  .art-side { position: static; }
  .art-more-grid { grid-template-columns: 1fr; }
  .art-more-img { height: 140px; }
  .art-cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 20px; }
  .art-cta p { max-width: none; }
  .art-cta-btn { width: 100%; }
  .art-prevnext { grid-template-columns: 1fr; }
  .art-pn.next { text-align: left; }
}

@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card-img { height: 180px; }
  .news-section-left h2 { font-size: 20px; }
  .news-slider-hint { display: none; }
  .news-filter { padding: 8px 14px; font-size: 12px; }
}
