/* ============================================================
   news-extra.css — 咨询动态配图卡片 + 浏览人数 + 焦点媒体位
   culture.html / news.html 共用
   ============================================================ */

/* ---------------- 焦点新闻：媒体位（封面图） ---------------- */
.nw-feat__media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 240px;
}
.nw-feat__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.nw-feat:hover .nw-feat__media img { transform: scale(1.05); }
.nw-feat__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 26px rgba(6, 18, 48, .28);
}
.nw-feat__badge svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--c, #006aff);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nw-feat { text-decoration: none; color: inherit; }
a.nw-feat:hover { text-decoration: none; }
.nw-meta { flex-wrap: wrap; }
.nw-meta-v { display: inline-flex; margin-left: auto; }

/* ---------------- 新闻卡：配图 ---------------- */
.nw-card {
  text-decoration: none;
  color: inherit;
  padding: 0 0 16px;
}
a.nw-card:hover { text-decoration: none; }
.nw-card__cover {
  display: block;
  position: relative;
  height: 138px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #eaf1fb;
}
.nw-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.nw-card:hover .nw-card__cover img { transform: scale(1.06); }
.nw-card__top { padding: 0 22px; }
.nw-card h3 { padding: 0 22px; }
.nw-card p { padding: 0 22px; }
.nw-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 8px 22px 0;
}
.nw-card__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c, #006aff);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .4s, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.nw-card__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nw-card:hover .nw-card__go { opacity: 1; transform: none; }

/* ---------------- 浏览人数徽章 ---------------- */
.nw-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #64748b);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 36, 63, .05);
  border: 1px solid rgba(20, 36, 63, .08);
  white-space: nowrap;
}
.nw-views svg { width: 13px; height: 13px; }
.nw-card:hover .nw-views { color: var(--c, #006aff); border-color: color-mix(in srgb, var(--c, #006aff) 30%, #fff); }

/* ---------------- 分页条 ---------------- */
.nw-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.nw-pg {
  appearance: none;
  border: 1px solid var(--line, #e3eaf5);
  background: #fff;
  color: var(--ink-2, #2a3a56);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  cursor: pointer;
  transition: color .3s, border-color .3s, background .3s, transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
.nw-pg:hover:not(:disabled):not(.is-here) {
  color: var(--blue, #0069f5);
  border-color: rgba(0, 106, 245, .35);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 106, 255, .12);
}
.nw-pg.is-here {
  color: #fff;
  background: var(--grad-brand-135, linear-gradient(135deg, #006AFF, #00D168));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 106, 255, .28);
}
.nw-pg:disabled { opacity: .38; cursor: default; }
.nw-pg--nav { letter-spacing: .02em; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1060px) {
  .nw-feat__media { min-height: 200px; }
}
@media (max-width: 640px) {
  .nw-feat__media { min-height: 168px; }
  .nw-card__cover { height: 150px; }
  .nw-card__top, .nw-card h3, .nw-card p { padding-left: 18px; padding-right: 18px; }
  .nw-card__foot { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-feat__media img, .nw-card__cover img { transition: none !important; }
  .nw-feat:hover .nw-feat__media img, .nw-card:hover .nw-card__cover img { transform: none; }
}
