/* ==========================================================================
   常青 / EVERGREEN · 资讯与养护知识列表 v2（内容与样式从零重写）
   --------------------------------------------------------------------------
   只负责文章列表页本体：令牌与顶部 / 底部来自 theme.css。
   语义化分节、深色 banner、图片全部带描述性 alt，面向 SEO 与 GEO 摘录。
   不做隐藏式入场动画，内容始终 100% 可见。
   ========================================================================== */

.nl-main { display: block; background: var(--g-cream); }
.nl-wrap { width: min(var(--g-wrap), calc(100% - 64px)); margin-inline: auto; }
.nl-main h1, .nl-main h2, .nl-main h3 { text-wrap: balance; }
.nl-main :focus-visible { outline: 3px solid var(--g-leaf); outline-offset: 3px; }
.nl-main svg { flex-shrink: 0; }

/* ---------- 1. 深色 banner ---------- */
.nl-hero {
  position: relative; overflow: hidden; padding: 34px 0 clamp(56px, 6vw, 88px);
  color: #fff;
  background: var(--g-deep) url('/images/blog-banner.jpg') center / cover no-repeat;
}
.nl-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(13,47,34,.8) 0%, rgba(13,47,34,.62) 46%, rgba(13,47,34,.26) 100%);
}
.nl-hero-glow {
  position: absolute; z-index: 1; right: -200px; top: -300px; width: 660px; height: 660px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(98,173,123,.22), transparent 68%);
}
.nl-hero-in { position: relative; z-index: 2; }
.nl-crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 30px; }
.nl-crumb a:hover { color: var(--g-leaf); }
.nl-crumb i { font-style: normal; opacity: .5; }
.nl-hero .g-eyebrow { color: var(--g-leaf); }
.nl-hero .g-eyebrow::before { background: var(--g-leaf); }
.nl-hero h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.2; margin: 18px 0 20px; color: #fff; letter-spacing: -.03em; }
.nl-hero-lead { font-size: 17px; line-height: 1.85; color: rgba(255,255,255,.85); max-width: 62ch; }
.nl-hero-meta { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 28px; }
.nl-hero-meta span { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.nl-hero-meta b { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: 0; }
.nl-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.nl-hero-btns .g-btn-primary { background: #fff; color: var(--g-deep); box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.nl-hero-btns .g-btn-primary:hover { background: var(--g-leaf); color: var(--g-deep); }
.nl-hero-btns .g-btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.nl-hero-btns .g-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- 2. 内容区：主列表 + 侧栏 ---------- */
.nl-body { padding: clamp(64px, 7vw, 104px) 0; background: var(--g-cream); }
.nl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: clamp(28px, 3.5vw, 52px); align-items: start; }
.nl-primary { min-width: 0; }
.nl-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.nl-sec-head h2 { font-size: clamp(28px, 3.15vw, 42px); line-height: 1.3; margin: 16px 0 0; color: var(--g-ink); }
.nl-count { flex: 0 0 auto; font-size: 13px; color: var(--g-muted); background: #fff; border: 1px solid var(--g-line); border-radius: 999px; padding: 8px 16px; }
.nl-count b { color: var(--g-green); font-size: 16px; }
.nl-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.nl-topics li { font-size: 12.5px; color: var(--g-text); background: var(--g-mint); border: 1px solid var(--g-mint-2); border-radius: 999px; padding: 6px 14px; }

/* ---------- 3. 置顶大图 ---------- */
.nl-featured {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-lg);
  overflow: hidden; box-shadow: var(--g-shadow); margin-bottom: 26px;
  transition: box-shadow .28s;
}
.nl-featured:hover { box-shadow: 0 26px 62px -32px rgba(13,47,34,.5); }
.nl-featured-media { position: relative; margin: 0; overflow: hidden; }
.nl-featured-media img { width: 100%; height: 100%; min-height: 310px; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s var(--g-ease); }
.nl-featured:hover .nl-featured-media img { transform: scale(1.035); }
.nl-featured-media figcaption {
  position: absolute; left: 18px; top: 18px; background: #fff; color: var(--g-ink);
  font-size: 12px; font-weight: 700; padding: 7px 15px; border-radius: 999px;
  box-shadow: 0 8px 22px -14px rgba(13,47,34,.6);
}
.nl-featured-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.nl-featured-tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--g-green); background: var(--g-mint); border: 1px solid var(--g-mint-2); border-radius: 999px; padding: 5px 13px; }
.nl-featured-body h3 { font-size: clamp(21px, 2.1vw, 29px); line-height: 1.42; margin: 16px 0 12px; color: var(--g-ink); }
.nl-featured-body > p { font-size: 15px; line-height: 1.9; color: var(--g-muted); max-width: 52ch; }

/* ---------- 4. 文章卡片网格 ---------- */
.nl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nl-card {
  display: flex; flex-direction: column; height: 100%; background: #fff;
  border: 1px solid var(--g-line); border-radius: var(--g-r); overflow: hidden;
  transition: transform .28s var(--g-ease), box-shadow .28s, border-color .28s;
}
.nl-card:hover { transform: translateY(-4px); box-shadow: var(--g-shadow); border-color: var(--g-mint-2); }
.nl-card-thumb { margin: 0; overflow: hidden; background: var(--g-mint); }
.nl-card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .45s var(--g-ease); }
.nl-card:hover .nl-card-thumb img { transform: scale(1.04); }
.nl-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.nl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nl-card-tags span { font-size: 11.5px; color: var(--g-green); background: var(--g-mint); border-radius: 999px; padding: 3px 10px; }
.nl-card-body h3 { font-size: 17px; line-height: 1.5; margin: 0 0 9px; color: var(--g-ink); }
.nl-card-body > p { font-size: 13.5px; line-height: 1.8; color: var(--g-muted); margin-bottom: 16px; }
.nl-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; font-size: 12.5px; color: var(--g-muted); }
.nl-card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--g-green); font-weight: 700; }
.nl-card-more svg { width: 14px; height: 14px; }

/* ---------- 5. 空数据状态 ---------- */
.nl-empty {
  background: #fff; border: 1px dashed var(--g-mint-2); border-radius: var(--g-r-lg);
  padding: 68px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.nl-empty svg { color: var(--g-leaf); }
.nl-empty h3 { font-size: 21px; color: var(--g-ink); }
.nl-empty p { font-size: 14.5px; line-height: 1.9; color: var(--g-muted); max-width: 52ch; }
.nl-empty-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }

/* ---------- 6. 分页 ---------- */
.nl-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 38px; }
.nl-pg-btn {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px; background: #fff; border: 1px solid var(--g-line); border-radius: 10px;
  color: var(--g-text); font-size: 14px; font-weight: 600;
}
.nl-pg-btn:hover { border-color: var(--g-green); color: var(--g-green); }
.nl-pg-btn.is-active { background: var(--g-green); border-color: var(--g-green); color: #fff; }
.nl-pg-btn.is-disabled { opacity: .42; cursor: not-allowed; }
.nl-pg-dots { color: var(--g-muted); }

/* ---------- 7. 侧栏 ---------- */
.nl-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.nl-side-card { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 22px 22px 24px; }
/* 侧栏别名卡：热门排行 / 相关服务（内容结构由 .nl-side-card + 内部列表承担） */
.nl-rank, .nl-services { min-width: 0; }
.nl-side-head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--g-line); }
.nl-side-head h3 { font-size: 16.5px; color: var(--g-ink); }
.nl-rank-list { display: grid; }
.nl-rank-list a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--g-line); }
.nl-rank-list li:last-child a { border-bottom: 0; }
.nl-rank-no { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--g-green-2); padding-top: 2px; }
.nl-rank-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nl-rank-body strong { font-size: 14px; line-height: 1.55; font-weight: 600; color: var(--g-text); }
.nl-rank-list a:hover strong { color: var(--g-green); }
.nl-rank-body em { font-style: normal; font-size: 12px; color: var(--g-muted); }
.nl-side-links a { display: block; font-size: 14px; color: var(--g-text); padding: 10px 0; border-bottom: 1px dashed var(--g-line); }
.nl-side-links li:last-child a { border-bottom: 0; }
.nl-side-links a:hover { color: var(--g-green); }
.nl-svc-list { display: grid; gap: 6px; }
.nl-svc-list a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; background: var(--g-cream); border: 1px solid transparent; }
.nl-svc-list a:hover { background: var(--g-mint); border-color: var(--g-mint-2); }
.nl-svc-list a > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.nl-svc-list strong { font-size: 14px; color: var(--g-ink); }
.nl-svc-list em { font-style: normal; font-size: 12px; color: var(--g-muted); }
.nl-svc-list svg { width: 16px; height: 16px; color: var(--g-green); }
.nl-contact { background: var(--g-deep); border-color: var(--g-deep); color: #fff; }
.nl-contact .g-eyebrow { color: var(--g-leaf); }
.nl-contact .g-eyebrow::before { background: var(--g-leaf); }
.nl-contact h3 { font-size: 19px; color: #fff; margin: 12px 0 10px; }
.nl-contact p { font-size: 13.5px; line-height: 1.85; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.nl-contact .g-btn-white { align-self: flex-start; }
.nl-contact-tel { display: block; margin-top: 14px; font-size: 13px; color: var(--g-leaf); font-weight: 700; }
.nl-contact-tel:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 8. 收尾内链 ---------- */
.nl-next { background: var(--g-mint); border-top: 1px solid var(--g-line); padding: 24px 0; }
.nl-next-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.nl-next-in > span { font-size: 13px; font-weight: 800; color: var(--g-green); letter-spacing: .06em; margin-right: 4px; }
.nl-next-in > a:not(.g-btn) { font-size: 14px; font-weight: 600; color: var(--g-text); }
.nl-next-in > a:not(.g-btn):hover { color: var(--g-green); text-decoration: underline; text-underline-offset: 5px; }
.nl-next-in .g-btn { margin-left: auto; min-height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nl-layout { grid-template-columns: minmax(0, 1fr) 288px; gap: 26px; }
  .nl-featured { grid-template-columns: 1fr; }
  .nl-featured-media img { aspect-ratio: 16 / 8; min-height: 0; }
}
@media (max-width: 980px) {
  .nl-layout { grid-template-columns: 1fr; }
  .nl-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-contact { grid-column: 1 / -1; }
  .nl-sec-head h2 { font-size: clamp(26px, 3.6vw, 36px); }
}
@media (max-width: 620px) {
  .nl-wrap { width: calc(100% - 36px); }
  .nl-body { padding: 58px 0; }
  .nl-hero { padding: 28px 0 52px; }
  .nl-hero h1 { font-size: 33px; }
  .nl-hero-lead { font-size: 15.5px; }
  .nl-hero-btns .g-btn { width: 100%; }
  .nl-sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nl-grid { grid-template-columns: 1fr; }
  .nl-side { grid-template-columns: 1fr; }
  .nl-featured-body { padding: 22px; }
  .nl-card-thumb img { aspect-ratio: 16 / 9; }
  .nl-next-in { gap: 10px 16px; }
  .nl-next-in .g-btn { margin-left: 0; width: 100%; }
}

/* 窄屏已有底部四宫格客服栏，隐藏右侧浮动客服避免压住正文。
   用 body 前缀提高优先级：theme.css 最后加载，同级规则会覆盖本规则。 */
@media (max-width: 760px) {
  body .cs-float { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-card, .nl-featured, .nl-card-thumb img, .nl-featured-media img { transition: none; }
  .nl-card:hover, .nl-featured:hover { transform: none; }
  .nl-card:hover .nl-card-thumb img, .nl-featured:hover .nl-featured-media img { transform: none; }
}
