/*!
 * new_list.css —— 资讯列表页
 * 依赖 common.css（头部、页脚、面包屑、友情链接、基础变量）
 * 结构：面包屑 → 列表（日期块 + 标题/摘要/时间 + 圆形箭头）→ 分页
 */

/* ============================================================
   1. 列表
   ============================================================ */
.news-page {
  padding: 38px 0 80px;
  background: #fff;
}

/* 整行 hover 高亮：用 ::before 铺蓝底并向左右外扩，不改变盒模型、不引起位移 */
.nitem {
  --nt-lh: 31px; /* 标题首行行高：跟随 .nt 的 font-size/line-height，用于箭头对齐 */
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid #EDF0F7;
}

.nitem::before {
  content: "";
  position: absolute;
  inset: 0 -24px;
  z-index: 0;
  background: var(--blue);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}

.nitem > * {
  position: relative;
  z-index: 1;
}

.nitem:hover { border-bottom-color: transparent; }
.nitem:hover::before { opacity: 1; }

/* ---------- 左侧日期块 ----------
   方块 + 右下角偏移的同形浅色块（box-shadow 实现，不占位） */
.ndate {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: var(--blue);
  box-shadow: -11px 11px 0 #c9d6ff;
  color: #fff;
}

.ndate-d {
  font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
}

.ndate-m {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .92);
}

/* ---------- 右侧文字 ---------- */
.nbody {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

/* 列表标题用 h2 承载（每页仅一个 h1，条目用 h2），视觉仍是原来一行标题 */
.nt {
  display: block;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  transition: color .25s var(--ease);
}

.nt a {
  color: inherit;
}

.nt:hover { color: var(--blue); }

/* 摘要：最多两行，超出省略 */
.nd {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ntime {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #9aa1ad;
}

/* ---------- 行尾圆形箭头 ---------- */
/* 与标题首行居中对齐：偏移 = (标题行高 - 箭头直径) / 2 + .nbody 的 padding-top */
.ngo {
  display: grid;
  flex: none;
  place-items: center;
  width: 50px;
  height: 34px;
  margin-top: calc((var(--nt-lh) - 34px) / 2 + 2px);
  border-radius: 25px;
  background: var(--blue);
  color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.ngo .ic {
  width: 16px;
  height: 16px;
}

.ngo:hover {
  background: var(--blue-deep);
  transform: translateX(3px);
}

/* ---------- hover 高亮时的配色（日期块转红、文字转白、箭头转红） ---------- */
.nitem:hover .ndate {
  background: var(--red);
  box-shadow: -11px 11px 0 rgba(230, 0, 18, .22);
}

.nitem:hover .nt,
.nitem:hover .nt:hover { color: #fff; }
.nitem:hover .nd { color: rgba(255, 255, 255, .88); }
.nitem:hover .ntime { color: rgba(255, 255, 255, .55); }

.nitem:hover .ngo { background: var(--red); }
.nitem:hover .ngo:hover { background: #c00010; }

/* ============================================================
   3. 分页
   ============================================================ */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

/* 上一页 / 下一页：蓝色圆形按钮 */
.pg-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transition: background .25s var(--ease);
}

.pg-arrow .ic {
  width: 16px;
  height: 16px;
}

.pg-arrow:hover { background: var(--blue-deep); }

.pg-arrow--disabled {
  background: #c9d3ea;
  pointer-events: none;
}

/* 页码胶囊：浅底圆角容器 + 圆形页码 */
.pg-nums {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F5F7FC;
}

.pg-nums a {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #4a4f5c;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.pg-nums a:hover { color: var(--blue); }

/* 当前页：蓝色描边圈 + 蓝色文字 */
.pg-nums a.on {
  border-color: var(--blue);
  color: var(--blue);
}

.pg-more {
  padding: 0 3px;
  font-size: 14px;
  letter-spacing: .5px;
  color: #9aa1ad;
}

.pg-total {
  margin-left: 4px;
  font-size: 14px;
  color: #333;
}

/* 跳转 */
.pg-jump {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4a4f5c;
}

.pg-jump input {
  width: 58px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #E4E8F2;
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  outline: none;
  transition: border-color .25s var(--ease);
}

.pg-jump input:focus { border-color: var(--blue); }

.pg-jump button {
  height: 32px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--blue);
  font-size: 14px;
  color: #fff;
  transition: background .25s var(--ease);
}

.pg-jump button:hover { background: var(--blue-deep); }

/* ============================================================
   4. 响应式
   ============================================================ */
@media (max-width: 1200px) {
  .nitem { gap: 30px; }
}

@media (max-width: 992px) {
  .news-page { padding: 28px 0 60px; }
  .nitem { --nt-lh: 26.35px; gap: 24px; padding: 26px 0; }

  .ndate { width: 96px; height: 96px; box-shadow: 10px 10px 0 #c9d6ff; }
  .ndate-d { font-size: 34px; }
  .ndate-m { margin-top: 7px; font-size: 12px; }

  .nt { font-size: 17px; }
  .nd { font-size: 14px; line-height: 1.85; }
  .ntime { font-size: 13px; }

  .ngo { width: 34px; height: 34px; }
  .ngo .ic { width: 16px; height: 16px; }

  .nitem::before { inset: 0 -12px; }
  .pager { margin-top: 36px; }
}

@media (max-width: 640px) {
  .news-page { padding-bottom: 48px; }

  /* 窄屏：日期块缩小、箭头收到文字下方，避免挤压标题 */
  .nitem {
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 0;
  }

  .ndate {
    width: 64px;
    height: 64px;
    box-shadow: 7px 7px 0 #c9d6ff;
  }
  .ndate-d { font-size: 24px; letter-spacing: 0; }
  .ndate-m { margin-top: 4px; font-size: 10px; }

  .nbody { flex: 1 1 0; padding-top: 0; }
  .nt { font-size: 15px; line-height: 1.6; }
  .nd {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.75;
    -webkit-line-clamp: 3;
  }
  .ntime { margin-top: 8px; font-size: 12px; }

  .ngo { display: none; }

  .nitem:hover .ndate { box-shadow: 7px 7px 0 rgba(230, 0, 18, .22); }

  /* 分页在窄屏折行，跳转区独立成行 */
  .pager { gap: 10px; margin-top: 36px; }
  .pg-jump { flex: 1 0 100%; justify-content: center; margin-top: 4px; }
}

/* 空列表 */
.nlist-empty { padding: 90px 0 110px; text-align: center; color: #98a2b3; font-size: 16px; }

