/* 内页 Banner */
.sub-banner {
  width: 100%;
  height: 350px; /* 比首页矮 */
  background: url("../img/jjy-banner.png") no-repeat center center/cover;
  position: relative;
  margin-top: 0; /* Header是fixed */
}
/* ==================== 4. 页面主体布局 (左右结构) ==================== */
.main-content {
  padding: 50px 0 80px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* --- 右侧内容区 --- */
.page-body {
  flex: 1;
  min-width: 0;
  padding-top: 25px;
  padding-left: 25px;
  padding-right: 25px;
  background: #fff;
}

/* 面包屑标题栏 */
.content-header {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  height: 24px;
  line-height: 24px;
  display: flex;
  align-items: center;
}
.content-header span {
  font-weight: bold;
  color: #333;
  margin-left: 5px;
}
.content-header span a {
  color: #999;
}
.content-header span a:last-child  {
  color: var(--primary-color);
}

/* ================== 列表项样式 (核心部分) ================== */
.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 30px 20px;
  border-bottom: 1px solid #999;
  cursor: pointer;
  position: relative; /* 为绝对定位的伪元素做父级 */
  overflow: hidden; /* 确保背景不溢出 */

  /* 初始状态：向下偏移且透明 (用于JS滚动动画) */
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

/* --- 核心动画1: 背景从左往右进入 --- */
.news-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0; /* 初始宽度为0 */
  /* 模拟设计图中的淡蓝色渐变背景 */
  background-image: url("../img/list-item-bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 0; /* 在内容之下 */
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-item:hover::before {
  width: 100%; /* Hover时宽度撑满 */
  opacity: 1;
}

/* 内容层级需要高于背景 */
.news-item > * {
  position: relative;
  z-index: 1;
}

/* --- 日期部分样式 --- */
.date-box {
  width: 100px;
  text-align: center;
  border-right: 1px solid #ddd;
  margin-right: 25px;
  padding-right: 15px;
}

.date-day {
  font-size: 29px;
  color: #5d4085; /* 紫色数字 */
  font-weight: bold;
  line-height: 1;
  display: block;
  margin-bottom: 5px;
}

.date-ym {
  font-size: 16px;
  color: #666;
}

/* --- 标题部分样式 --- */
.news-title {
  flex: 1;
  font-size: 17px;
  color: #333;
  transition: color 0.3s;
}

/* --- 箭头部分样式 --- */
.arrow-icon {
  font-family: sans-serif; /* 使用简单的字体图标或SVG */
  font-size: 20px;
  color: #999;
  transform: translateX(0);
  transition:
    transform 0.3s,
    color 0.3s;
}

.news-item:hover .news-title { color: #5d4085; }

/* 2. 箭头位移 */
.news-item:hover .arrow-icon {
  color: #5d4085;
  transform: translateX(5px);
}

/* ================== JS 滚动动画激活类 ================== */
/* 当元素进入视口，JS会添加 .visible 类 */
.news-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 分页器 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.page-item {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}
.page-item:hover,
.page-item.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.page-item.dots {
  border: none;
  cursor: default;
}

/* ==================== 6. 移动端适配 ==================== */
@media screen and (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .main-content {
    flex-direction: column;
    gap: 1.875rem;
  }
}
@media screen and (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .sub-banner {
    height: 12.5rem;
  }
  .main-content {
    padding: 1.25rem 0;
    gap: 1.25rem;
  }
  .arrow-icon {
    display: none;
  }
  .pagination {
    gap: 0.1875rem;
  }
  .page-item {
    width: 1.875rem;
    height: 1.875rem;
    font-size: 0.75rem;
  }
}