/**
 * 新闻列表 - 通用样式 (LESS版本)
 * 所有页面共享的基础样式
 */
/* 列表容器 */
.list-container {
  overflow: hidden;
  width: 100%;
  min-height: 400px;
  /* 设置最小高度，防止翻页时晃动 */
  position: relative;
  /* 为loading的绝对定位提供参考 */
}
.list-container .newslist {
  width: 100%;
  overflow: hidden;
}
/* 卡片样式 */
.card {
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}
.card:hover {
  background-color: #f5f9ff;
}
.card:last-child {
  border-bottom: none;
}
/* PC端布局 - 默认显示 */
.pc-layout {
  display: block;
}
/* 移动端布局 - 默认隐藏 */
.mobile-layout {
  display: none;
}
/* PC端新闻日期 */
.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  text-align: center;
}
.news-date .date {
  font-size: 36px;
  font-weight: bold;
  color: #294383;
  line-height: 1;
}
.news-date .year {
  font-size: 14px;
  color: #999;
  margin-top: 5px;
}
/* PC端新闻图片 */
.news-pic {
  padding: 0;
}
.news-pic img {
  width: 100%;
  height: auto;
  display: block;
}
/* PC端新闻信息 */
.news-info {
  padding: 0 15px;
  display: flex;
  flex-direction: column;
}
.news-info .title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  word-wrap: break-word;
  word-break: break-all;
  line-height: 1.4;
}
.news-info .title a {
  color: #333;
  text-decoration: none;
}
.news-info .title a:hover {
  color: #294383;
}
.news-info .desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* 加载状态 */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  min-height: 200px;
  /* 确保loading有足够高度 */
}
.loading.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.loading .loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #294383;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #294383;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* 上拉加载提示（默认隐藏，仅移动端显示） */
.pull-to-load {
  display: none;
}
/* 分页 */
.pager {
  display: block;
  margin: 10px 0;
  text-align: center;
  height: auto;
  overflow: hidden;
  font-size: 0;
  width: 100%;
}
.pager ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pager li {
  display: inline-block;
  height: 36px;
  margin: 0 3px 5px 0;
  padding: 0;
  line-height: 36px;
  color: #454545;
  font-size: 16px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  text-align: center;
  padding: 0 12px;
}
.pager li:first-child {
  border-radius: 4px 0 0 4px;
}
.pager li:last-child {
  border-radius: 0 4px 4px 0;
}
.pager li.page-btn {
  width: auto;
  padding: 0 12px;
}
.pager li a {
  cursor: pointer;
  display: block;
  color: #454545;
  text-decoration: none;
}
.pager li a:hover {
  color: #454545;
}
.pager li.active {
  background: #294383;
  border-color: #294383;
  color: #fff;
}
.pager li.active a {
  color: #ffffff;
}
.pager li.active a:hover {
  color: #ffffff;
}
.pager li.disabled {
  color: #999;
  cursor: not-allowed;
}
.pager li.disabled a {
  color: #999;
  cursor: not-allowed;
}
.pager select {
  height: 24px;
  margin: 0 8px;
  padding: 0 8px;
  line-height: 24px;
  color: #333;
  font-size: 16px;
  border: 1px solid #d1d1d1;
}
.pager li.info {
  border: none;
  color: #666;
  font-size: 16px;
  line-height: 36px;
  padding: 0 8px;
}
.pager li.jump {
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.pager li.jump span {
  color: #666;
  font-size: 16px;
}
.pager li.jump input {
  width: 50px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  line-height: 36px;
}
.pager li.jump input:focus {
  outline: none;
  border-color: #294383;
}
.pager li.jump a {
  cursor: pointer;
  display: inline-block;
  height: 36px;
  padding: 0 12px;
  line-height: 36px;
  color: #454545;
  font-size: 14px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  text-decoration: none;
}
.pager li.jump a:hover {
  background: #294383;
  color: #fff;
  border-color: #294383;
}
/* 无数据状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
/* 错误提示 */
.error {
  padding: 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
  margin-bottom: 20px;
}
/* 简单列表 */
.m-lst36 {
  height: auto;
  overflow: hidden;
}
.m-lst36 ul {
  height: auto;
  padding: 8px;
  overflow: hidden;
}
.m-lst36 ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  line-height: 36px;
  font-size: 16px;
  background: url("../../images/common/szf-ic29.png") left center no-repeat;
  padding-left: 16px;
}
.m-lst36 ul li a {
  flex: 1;
  overflow: hidden;
  font-size: 16px;
  color: #000;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-lst36 ul li a:hover {
  color: #294383;
}
.m-lst36 ul li .column {
  padding-right: 10px;
  font-size: 16px;
}
.m-lst36 ul li .time {
  flex-shrink: 0;
  padding-left: 16px;
  font-size: 16px;
  text-align: right;
}
.m-lst36 ul li span {
  flex-shrink: 0;
  padding-left: 16px;
  text-align: right;
}
.m-lst36 ul em {
  float: left;
  padding-right: 10px;
  font-style: revert;
}
/* 移动端样式 */
@media (max-width: 768px) {
  /* 复写列表样式 */
  .list {
    padding: 10px;
  }
  /* 隐藏PC端布局 */
  .pc-layout {
    display: none;
  }
  .main-content {
    padding: 4px;
  }
  .list-container {
    padding: 0px;
    box-sizing: border-box;
  }
  /* 显示移动端布局 */
  .mobile-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    /*3张图片/无图片 标题在内容区域内*/
    /* 标题区域 1-2张图片标题独立在顶部 */
    /* 内容区域：缩略图+摘要 */
    /* 1-2张图片：左侧缩略图 */
    /* 1-2张图片：右侧摘要 */
    /* 移动端多张图片（3张） */
  }
  .mobile-layout .news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0px;
  }
  .mobile-layout .news-info .title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
  }
  .mobile-layout .news-info .title a {
    color: #444;
    text-decoration: none;
  }
  .mobile-layout .news-info .summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .mobile-layout .news-header {
    margin-bottom: 10px;
  }
  .mobile-layout .news-header .title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
  }
  .mobile-layout .news-header .title a {
    color: #444;
    text-decoration: none;
  }
  .mobile-layout .news-body {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
  }
  .mobile-layout .news-thumb {
    flex-shrink: 0;
    width: 33.33%;
    margin-right: 12px;
    overflow: hidden;
    border-radius: 10px;
  }
  .mobile-layout .news-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
  }
  .mobile-layout .news-summary {
    flex: 1;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }
  .mobile-layout .detail {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: space-between;
  }
  .mobile-layout .news-source {
    margin-right: 10px;
  }
  .mobile-layout .news-pics {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
  }
  .mobile-layout .news-pics img {
    width: calc(33.33% - 2px);
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
  }
  /* 移动端新闻卡片 */
  .card {
    padding: 4px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  /* 显示上拉加载 */
  .pull-to-load {
    display: block;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
  }
  .pull-to-load.loading .pull-tip::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #294383;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
  }
  .pull-to-load.no-more .pull-tip {
    color: #ccc;
  }
  .pull-to-load.error .pull-tip {
    color: #d9534f;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .container {
    padding: 10px;
  }
  h1 {
    font-size: 20px;
    margin-bottom: 15px;
  }
}
