﻿/* ===== 列表页导航栏固定白色背景 ===== */
.wz-header {
  position: fixed;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wz-header .logo-black {
  color: #333;
}

.wz-header .wz-menu a {
  color: #666;
}

.wz-header .wz-menu a:hover {
  color: #f56c2d;
}

/* ===== 列表页 Banner ===== */
.list-banner {
  background: linear-gradient(135deg, #f56c2d 0%, #e65100 100%);
  color: #fff;
  padding: 80px 20px 60px;
  text-align: center;
  margin-top: 70px;
}

.list-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.list-banner-title {
  font-size: 32px;
  margin: 0 0 16px 0;
  font-weight: bold;
}

.list-breadcrumb {
  font-size: 14px;
  opacity: 0.9;
}

.list-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.list-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.7;
}

.breadcrumb-current {
  opacity: 0.8;
}

/* ===== 列表主体 ===== */
.list-main {
  background: #f5f6f8;
  padding: 40px 20px;
  min-height: 60vh;
}

.list-container {
  max-width: 1100px;
  margin: 0 auto;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== 文章卡片 ===== */
.list-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.list-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}

.list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.list-card:hover .list-card-img img {
  transform: scale(1.05);
}

.list-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.list-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.list-card-title {
  font-size: 16px;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: bold;
}

.list-card-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.list-card-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 12px;
  color: #999;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.list-card-category {
  display: none;
  background: #fff5f0;
  color: #f56c2d;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
}

/* ===== 分页 ===== */
.list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.page-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: #f56c2d;
  color: #f56c2d;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 14px;
  color: #666;
}

/* ===== 加载和空状态 ===== */
.wz-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #999;
  font-size: 14px;
}

.wz-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #999;
  font-size: 14px;
}

.list-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #999;
}

.list-error h3 {
  font-size: 18px;
  color: #666;
  margin-bottom: 12px;
}

.list-error a {
  color: #f56c2d;
  text-decoration: none;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .list-banner {
    padding: 60px 16px 40px;
    margin-top: 56px;
  }

  .list-banner-title {
    font-size: 22px;
  }

  .list-main {
    padding: 20px 12px;
  }

  .list-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .list-card-img {
    height: 160px;
  }
}
