/* ========== 内页列表模板（对齐南邮 nsjglist / jcddzz/list.htm） ========== */

.list-page {
  background: #fff;
}

.list-page .footer-inner {
  padding-top: 48px;
}

/* 顶栏：默认透明叠在 Banner 上，滚动后实色（沿用 main.js .is-solid） */
.list-page .site-header {
  background: transparent;
}

.list-page .site-header.is-solid {
  background: rgba(0, 63, 151, .96);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .2);
}

/* ---------- Banner ---------- */
.page-banner {
  position: relative;
  z-index: 2;
  min-height: 420px; /* 给 90px 二级栏留足叠放空间 */
  padding-top: 31.25%;
  background: center / cover no-repeat;
  /* 南邮 visible：蓝条负 left 拉到视口左边，hidden 会裁切 */
  overflow: visible;
}

.page-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(transparent, rgba(4, 38, 126, .55));
  opacity: .9;
  pointer-events: none;
}

.page-banner-inner {
  position: absolute;
  inset: 0;
  width: min(100% - 48px, 1400px);
  margin: 0 auto;
  overflow: visible;
}

/* 对齐南邮 .pageBox：绝对底齐、line-height:2，宽度随内容收缩 */
.page-box {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  color: #fff;
  line-height: 2;
  width: auto;
  max-width: 100%;
}

/* 对齐南邮 .pagetop：标题+面包屑，下方留白 0.7rem */
.pagetop {
  margin: 0 0 70px;
}

.page-title {
  display: block;
  font-family: "Noto Serif SC", "Source Han Serif SC", "SourceHanSerifCN-Bold", serif;
  font-size: 44px; /* 南邮 0.44rem */
  font-weight: 700;
  line-height: 2; /* 随 .page-box */
  margin: 0;
}

.page-path {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  font-size: 18.5px; /* 南邮链接 0.185rem */
  line-height: 2;
  white-space: nowrap;
}

.page-path a {
  color: #fff;
  font-size: 18.5px;
  text-decoration: none;
  white-space: nowrap;
}

.page-path a:hover {
  opacity: .85;
}

.path-home {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  margin: 0;
  padding-left: 1.2em;
  padding-right: 0.2em;
  white-space: nowrap;
  background: left center / 0.95em auto no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23fff' d='M7 0L0 6v10h5V10h4v6h5V6z'/%3E%3C/svg%3E");
  flex-shrink: 0;
}

.path-split {
  display: inline-block;
  width: 1em;
  text-align: center;
  padding: 0;
  margin: 0;
  text-indent: 0;
  background: none;
}

.path-split::after {
  content: "/";
  display: inline-block;
  width: 1em;
  font-size: 18px; /* 南邮 0.18rem */
  text-align: center;
}

/* ---------- 斜切栏目导航（对齐南邮 .page_list） ---------- */
.page-list {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  height: 90px; /* 南邮 0.9rem */
  clear: both;
}

/*
 * 蓝条挂在 .page-banner-inner（定宽居中容器）上，才能按南邮公式顶到视口左边：
 * 南邮：width calc(8rem + 50vw); margin-left calc(8rem - 50vw)
 * 其中 8rem = 半个 --widthInner；等价 left: calc(50% - 50vw); width: calc(50% + 50vw)
 * 原先写在 .page-list::after 并用 41.67vw 近似，内容宽 1400 时左边会空一截
 */
.page-banner-inner::after {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  bottom: 0;
  z-index: 0;
  width: calc(50% + 50vw);
  height: 90px;
  background: #04267e;
  clip-path: polygon(0 0, 98% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-listcolumn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-column {
  list-style: none;
  flex: 0 0 auto;
}

/* 南邮：padding 0.28rem / font-size 0.17rem / 竖线分隔 */
.col-item-link {
  position: relative;
  display: block;
  padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.page-column:first-child .col-item-link {
  border-left: 0;
}

.page-column.selected .col-item-link,
.col-item-link.selected {
  color: #2eeff1;
}

.page-column.selected .col-item-link:hover {
  color: #2eeff1;
}

/* 选中态双色小方块：0.06×0.04rem，left 0.18rem */
.page-column.selected .col-item-link::before,
.page-column.selected .col-item-link::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 6px;
  height: 4px;
  display: block;
}

.page-column.selected .col-item-link::before {
  margin-top: -2px; /* 南邮 -0.02rem：青块偏上 */
  background: #2eeff1;
}

.page-column.selected .col-item-link::after {
  /* 南邮无 margin：蓝块顶边落在中线 */
  background: #385cf8;
}

.page-arrow {
  display: none;
}

/* ---------- 三栏标题列表（对齐南邮 .nsjglist ul.newsList） ---------- */
.page-news {
  padding: 56px 0 80px;
  background: #fff;
}

.page-news-inner {
  width: min(100% - 48px, 1400px);
  margin: 0 auto;
}

.news-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list .news {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 33.333%;
  /* 南邮 .nsjglist：height 0.54rem ≈ 54px */
  height: 54px;
  /* 对齐南邮：竖线贴图标，列间用右边框分隔 */
  padding: 0 20px 0 0;
  border-right: 1px solid #e6eef8;
  border-left: 0;
}

/* 用 nth-of-type：站群会在 ul 内插入 script，nth-child 会错位 */
.news-list .news:nth-of-type(3n) {
  border-right: 0;
  padding-right: 0;
}

/* 第一列左侧竖线贴着图标（不要加 padding-left，否则会离图标远） */
.news-list .news:nth-of-type(3n + 1) {
  border-left: 1px solid #e6eef8;
  padding-left: 0;
}

.news-ico {
  display: inline-block;
  flex: 0 0 auto;
  /* 南邮 span：0.26rem / margin-right 0.2rem（按 1rem=100px） */
  width: 26px;
  height: 26px;
  margin-right: 20px;
  background: url("../assets/newsbg2.svg") center / contain no-repeat;
}

.news-title {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.news-title a {
  display: block;
  overflow: hidden;
  color: #333;
  /* 南邮 a：font-size 0.15rem / line-height 1.6 */
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s;
}

.news-title a:hover {
  color: #04267e;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .page-banner-inner {
    width: min(100% - 32px, 1400px);
  }

  .page-news-inner {
    width: min(100% - 32px, 1400px);
  }

  .page-title {
    font-size: 36px;
  }

  .page-path,
  .page-path a {
    font-size: 16px;
  }

  .pagetop {
    margin-bottom: 48px;
  }

  .col-item-link {
    padding: 0 20px;
    font-size: 15px;
  }

  .page-list {
    height: 72px;
  }

  .page-banner-inner::after {
    height: 72px;
  }
}

/* 对齐南邮 H5：max-width 767px 时二级栏收为下拉 */
@media (max-width: 767px) {
  .page-banner {
    padding-top: 52.0833%;
  }

  .page-box {
    width: 100%;
  }

  .pagetop {
    margin-bottom: 0; /* 南邮 H5 */
  }

  .page-title {
    font-size: 34px; /* 南邮 0.34rem @ 移动根字号 */
  }

  .page-path,
  .page-path a {
    font-size: 14px;
  }

  .page-list {
    height: 40px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .page-banner-inner::after {
    left: calc(50% - 50vw);
    width: 100vw;
    height: 40px;
    clip-path: polygon(0 0, 97% 0, 100% 100%, 0 100%);
  }

  .page-listcolumn {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    background: #04267e;
    z-index: 5;
    box-sizing: border-box;
  }

  .page-list.is-open .page-listcolumn {
    display: flex;
  }

  .page-column {
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    text-align: center;
  }

  .col-item-link {
    border-left: 0;
    padding: 0;
    line-height: 43px;
    font-size: 16px;
  }

  .page-column.selected .col-item-link::before,
  .page-column.selected .col-item-link::after {
    left: calc(50% - 56px);
  }

  .page-arrow {
    display: block;
    position: absolute;
    right: 34px;
    top: 12px;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent center / 14px no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    cursor: pointer;
  }

  .news-list .news {
    width: 50%;
    min-height: 52px;
    padding: 8px 12px 8px 0;
    border-right: 1px solid #e6eef8;
    border-left: 0;
  }

  .news-list .news:nth-of-type(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .news-list .news:nth-of-type(2n + 1) {
    border-left: 1px solid #e6eef8;
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .page-banner {
    padding-top: 56%;
  }

  .news-list .news {
    width: 100%;
    min-height: 48px;
    margin-bottom: 4px;
    padding: 8px 0;
    border-left: 1px solid #e6eef8;
    border-right: 0 !important;
  }

  .news-title a {
    white-space: normal;
  }
}
