/* ============================================
   文章/页面详情 — 纯净阅读模式
   ============================================ */

html, body {
  height: 100%;
}

body:not(.homepage) {
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1 0 auto;
  padding: 0 24px 80px;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 48px 56px;
  /* box-shadow: 0 1px 8px var(--shadow); */
}

.page-container.list-page {
  max-width: 1200px;
}

@media (max-width: 600px) {
  .page-container {
    padding: 32px 20px;
    border-radius: 8px;
  }
}

/* ---- 面包屑 ---- */
.page-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}

.page-breadcrumb a {
  color: #999;
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: #333;
}

.page-breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

/* ---- 文章头部 ---- */
.page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.page-title {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.page-meta {
  font-size: 14px;
  color: #999;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---- 标签 ---- */
.page-tags {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-tag {
  font-size: 12px;
  color: #8B2500;
  background: rgba(139, 37, 0, 0.06);
  padding: 3px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.page-tag:hover {
  background: rgba(139, 37, 0, 0.12);
}

/* ---- 导读 ---- */
.page-excerpt {
  background: #faf8f5;
  border-left: 3px solid #C5A55A;
  padding: 16px 20px;
  margin-bottom: 36px;
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  border-radius: 0 6px 6px 0;
}

/* ---- 文章内容 ---- */
.page-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.page-content img {
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 24px auto;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---- 底部导航 ---- */
.page-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.page-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-nav-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.nav-label {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
  min-width: 56px;
}

.page-nav-item a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.page-nav-item a:hover {
  color: #8B2500;
}

.nav-empty {
  font-size: 14px;
  color: #ccc;
}

/* ---- 空状态 ---- */
.page-empty {
  text-align: center;
  padding: 80px 0;
  font-size: 16px;
  color: #999;
}

/* ============================================
   列表页
   ============================================ */

.list-section {
  padding-top: 8px;
}

.list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  transition: background 0.2s;
}

.list-item:hover {
  background: #f5f5f5;
}

.list-item-link {
  display: flex;
  gap: 20px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.list-item-thumb {
  width: 180px;
  min-width: 180px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.list-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.list-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-item-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-item-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-item-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 16px;
}

/* 分页 */
.list-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.pagination-list a,
.pagination-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
}

.pagination-list a:hover {
  border-color: #8B2500;
  color: #8B2500;
}

.pagination-list .active span,
.pagination-list .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #8B2500;
  border-radius: 6px;
  font-size: 14px;
  background: #8B2500;
  color: #fff;
}

@media (max-width: 600px) {
  .list-item-link {
    flex-direction: column;
    gap: 12px;
  }

  .list-item-thumb {
    width: 100%;
    min-width: auto;
    height: 200px;
  }
}

/* ---- 响应式 ---- */
@media (max-width: 600px) {
  .page-main {
    padding: 24px 16px 60px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-meta {
    gap: 12px;
  }

  .page-nav-item {
    flex-direction: column;
    gap: 4px;
  }

  .nav-label {
    min-width: auto;
  }
}