@charset "utf-8";

/* ===== 列表页主体区域 ===== */
.list-page-section {
  padding: 0.3rem 0 0.5rem;
  background: #fff;
  min-height: 6rem;
}

/* ===== 列表标题 + 面包屑导航 ===== */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  padding: 0 0.2rem;
  background: url('../img/list.png') no-repeat left center;
  background-size: 100% 100%;
  width: 100%;
  height: 0.5rem;
}

.list-title {
  width: 1.35rem;
  height: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: left;
  font-size: 0.20rem;
  font-weight: bold;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02rem;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 0.14rem;
  color: #666;
}

.breadcrumb a {
  color: #666;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #0066cc;
}

.breadcrumb .separator {
  margin: 0 0.08rem;
  color: #999;
}

.breadcrumb .current {
  color: #0066cc;
  font-weight: bold;
}

/* ===== 列表内容 ===== */
.list-content {
  padding: 0 0.2rem;
}

/* 复用 .news-list 样式，此处添加列表页特有样式 */
.list-content .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-content .news-list li {
  border-bottom: 1px solid #f0f0f0;
}

.list-content .news-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0;
  transition: all 0.3s ease;
}

.list-content .news-list li a:hover {
  color: #0066cc;
}

.list-content .news-list li a:hover .news-text {
  color: #0066cc;
}

.list-content .news-text {
  flex: 1;
  font-size: 0.16rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.2rem;
  transition: all 0.3s ease;
}

.list-content .news-date {
  font-size: 0.14rem;
  color: #999;
  flex-shrink: 0;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0 0.2rem;
  gap: 0.08rem;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0.35rem;
  height: 0.35rem;
  padding: 0 0.12rem;
  font-size: 0.14rem;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.04rem;
  transition: all 0.3s ease;
}

.page-link:hover {
  color: #0066cc;
  border-color: #0066cc;
  text-decoration: none;
}

.page-link.active {
  color: #fff;
  background: #0066cc;
  border-color: #0066cc;
}

.page-link.prev,
.page-link.next {
  padding: 0 0.15rem;
}

/* ===== 详情页专用样式 ===== */

/* 文章标题 */
.detail-title {
  font-size: 0.28rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 0.15rem;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.02rem;
}

/* 发布信息 */
.detail-meta {
  text-align: center;
  margin-bottom: 0.2rem;
  font-size: 0.14rem;
  color: #999;
}

.detail-author,
.detail-date,
.detail-views {
  display: inline;
}

.meta-separator {
  margin: 0 0.1rem;
  color: #ccc;
}

/* 正文内容 */
.detail-body {
  padding: 0 0.2rem 0.3rem;
  min-height: 4rem;
}

.detail-body p {
  font-size: 0.16rem;
  color: #333;
  line-height: 1.8;
  margin: 0 0 0.2rem;
  text-align: justify;
  text-indent: 2em;
}

.detail-body p:last-child {
  margin-bottom: 0;
}

.detail-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.25rem auto;
  border-radius: 0.04rem;
}

/* 上一篇/下一篇导航 */
.detail-nav {
  padding: 0.2rem 0;
}

.detail-nav .prev-article,
.detail-nav .next-article {
  display: flex;
  align-items: center;
  padding: 0.08rem 0;
  font-size: 0.14rem;
  color: #666;
}

.detail-nav .nav-label {
  color: #999;
  flex-shrink: 0;
  margin-right: 0.08rem;
}

.detail-nav a {
  flex: 1;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.detail-nav a:hover {
  color: #0066cc;
}

/* ===== 响应式 ===== */
@media (max-width: 800px) {
  .list-page-section {
    padding: 0.2rem 0 0.3rem;
    min-height: auto;
  }

  .list-header {
    margin-bottom: 0.2rem;
    padding: 0 0.1rem;
    height: 0.35rem;
    background-image: url('../img/listicon.png');
  }

  .list-title {
    width: 0.8rem;
    height: 0.35rem;
    font-size: 0.14rem;
  }

  .breadcrumb {
    font-size: 0.12rem;
  }

  .breadcrumb .separator {
    margin: 0 0.05rem;
  }

  .list-content {
    padding: 0;
  }

  .list-content .news-list li a {
    padding: 0.12rem 0;
  }

  .list-content .news-text {
    font-size: 0.14rem;
    padding-right: 0.1rem;
  }

  .list-content .news-date {
    font-size: 0.12rem;
  }

  .pagination {
    padding: 0.25rem 0 0.15rem;
    gap: 0.05rem;
  }

  .page-link {
    min-width: 0.3rem;
    height: 0.3rem;
    padding: 0 0.08rem;
    font-size: 0.12rem;
  }

  .page-link.prev,
  .page-link.next {
    padding: 0 0.1rem;
  }

  /* 详情页响应式 */
  .detail-title {
    font-size: 0.2rem;
    margin-bottom: 0.1rem;
  }

  .detail-meta {
    font-size: 0.12rem;
    margin-bottom: 0.15rem;
  }

  .meta-separator {
    margin: 0 0.05rem;
  }

  .detail-body {
    padding: 0 0.1rem 0.2rem;
  }

  .detail-body p {
    font-size: 0.14rem;
    line-height: 1.6;
    margin-bottom: 0.15rem;
  }

  .detail-nav .prev-article,
  .detail-nav .next-article {
    padding: 0.1rem 0;
    font-size: 0.12rem;
  }
}
