/* ========== 新闻资讯列表页样式 ========== */

/* ========== 内页 Banner ========== */
.ny-banner {
  position: relative;
  width: 100%;
  height: 380px;
  background: url('../images/news.jpg') no-repeat center center;
  background-size: cover;
}
.ny-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.ny-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
  text-align: center;
  color: #fff;
}
.ny-banner-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 4px;
}
.ny-banner-text p {
  font-size: 16px;
  opacity: .85;
  letter-spacing: 2px;
}

/* ========== 内容区域 ========== */
.news-main {
  padding: 60px 0 80px;
  background: #f7f8fa;
}
.news-layout {
  display: flex;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== 左侧菜单 ========== */
.news-sidebar {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  align-self: flex-start;
  position: sticky;
  top: 120px;
}
.sidebar-title {
  background: #003B90;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 24px 20px;
  letter-spacing: 3px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 28px;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: all .3s ease;
  position: relative;
  cursor: pointer;
}
.sidebar-nav a::before {
  content: '';
  width: 4px;
  height: 0;
  background: #003B90;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: height .3s ease;
}
.sidebar-nav a:hover {
  color: #003B90;
  background: #f5f7fb;
}
.sidebar-nav a.active {
  color: #fff;
  background: #003B90;
  font-weight: 600;
}
.sidebar-nav a.active::before {
  height: 100%;
}
.sidebar-nav a .count {
  margin-left: auto;
  font-size: 12px;
  opacity: .7;
}

/* ========== 右侧列表 ========== */
.news-content {
  flex: 1;
  min-width: 0;
}

/* 新闻列表 */
.news-list {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.news-item {
  display: flex;
  padding: 24px 30px;
  border-bottom: 1px solid #f0f0f0;
  transition: all .3s ease;
  cursor: pointer;
  gap: 24px;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item:hover {
  background: #f9fafb;
}
.news-item:hover .news-item-title {
  color: #003B90;
}

/* 日期徽章 */
.news-date-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #f7f8fa;
  border-radius: 8px;
  transition: all .3s ease;
}
.news-item:hover .news-date-badge {
  background: #003B90;
}
.news-date-badge .day {
  font-size: 24px;
  font-weight: 700;
  color: #003B90;
  line-height: 1;
}
.news-item:hover .news-date-badge .day {
  color: #fff;
}
.news-date-badge .month {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.news-item:hover .news-date-badge .month {
  color: rgba(255,255,255,.7);
}

/* 新闻信息 */
.news-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-item-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color .3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 缩略图 */
.news-item-thumb {
  flex: 0 0 160px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
}
.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-item:hover .news-item-thumb img {
  transform: scale(1.08);
}

/* ========== 分页 ========== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 4px;
}
.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  color: #555;
  background: #fff;
  border: 1px solid #e0e4ec;
  border-radius: 6px;
  transition: all .3s ease;
  cursor: pointer;
  text-decoration: none;
}
.pagination-wrap a:hover {
  color: #003B90;
  border-color: #003B90;
}
.pagination-wrap .active {
  background: #003B90;
  color: #fff;
  border-color: #003B90;
  cursor: default;
}
.pagination-wrap .disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-wrap .pagination-info {
  font-size: 13px;
  color: #999;
  margin-left: 16px;
}

/* 面包屑 */
.breadcrumb-bar {
  padding: 10px 0;
  font-size: 13px;
  color: #999;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 15px;
}
.breadcrumb-bar a {
  color: #999;
  transition: color .2s;
}
.breadcrumb-bar a:hover {
  color: #003B90;
}
.breadcrumb-bar span.sep {
  margin: 0 6px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .ny-banner { height: 260px; }
  .ny-banner-text h2 { font-size: 28px; }
  .news-layout { flex-direction: column; gap: 20px; }
  .news-sidebar { flex: 0 0 auto; position: static; }
  .sidebar-nav { display: flex; flex-wrap: wrap; }
  .sidebar-nav a {
    flex: 1; min-width: 100px; justify-content: center;
    padding: 14px 16px; font-size: 14px; text-align: center;
  }
  .sidebar-nav a::before { display: none; }
  .news-item { padding: 20px 24px; }
  .news-item-date { min-width: 50px; }
}
@media (max-width: 768px) {
  .ny-banner { height: 200px; }
  .ny-banner-text h2 { font-size: 24px; }
  .sidebar-nav a { min-width: 33.33%; flex: 1 1 33.33%; }
  .news-item { flex-wrap: wrap; padding: 16px 18px; gap: 14px; }
  .news-item-thumb { flex: 0 0 100%; height: 180px; order: -1; }
  .news-date-badge { width: 50px; height: 50px; }
  .news-date-badge .day { font-size: 20px; }
  .news-item-title { font-size: 15px; white-space: normal; }
}
