/* list.css — 文章列表页专属样式（公共部分继承自 index.css） */

/* ===========================
   页面主区域
=========================== */
.list-page {
  background: #f5f0e8;
  min-height: 600px;
  padding: 0 0 60px;
}

/* ===========================
   分类 Tab 栏（横向标签）
=========================== */
.list-tabs {
    background: #FFFAF5;
    margin-bottom: 32px;
}

.list-tabs__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  width: 1200px;
  margin: 0 auto;
}

.list-tab-btn {
  position: relative;
  padding: 8px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  line-height: 1.6;
}

.list-tab-btn:hover {
  color: #bb2027;
  border-color: #bb2027;
}

.list-tab-btn.is-active {
  color: #fff;
  background: #bb2027;
  border-color: #bb2027;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(187,32,39,0.25);
}

/* ===========================
   文章列表容器
=========================== */
.list-container {
  width: 1200px;
  margin: 0 auto;
}

/* ===========================
   文章卡片（左图右文）
=========================== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-item {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 28px 0;
  border-bottom: 1px solid #e4ddd3;
  background: transparent;
  transition: background 0.15s;
}

.article-item:first-child {
  padding-top: 0;
}

.article-item:last-child {
  border-bottom: 0;
}

.article-item__thumb {
  flex-shrink: 0;
  width: 400px;
  height: 210px;
  overflow: hidden;
  border-radius: 2px;
}

.article-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-item:hover .article-item__thumb img {
  transform: scale(1.04);
}

.article-item__body {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  min-width: 0;
  padding-top: 0;
}

.article-item__title {
  margin: 0 0 10px;
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  transition: color 0.2s;
}

.article-item:hover .article-item__title {
  color: #bb2027;
}

.article-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: #5c4a3d;
  background: linear-gradient(165deg, #fdfbf8 0%, #f5ebe3 100%);
  border-radius: 6px;
  border: 1px solid #e8dfd4;
  box-shadow:
    0 1px 2px rgba(60, 40, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.article-item__meta::before {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bb2027' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18M8 2v4M16 2v4'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.92;
}

.article-item:hover .article-item__meta {
  color: #4a392e;
  background: linear-gradient(165deg, #fffdfb 0%, #faf3eb 100%);
  border-color: #dccfbf;
  box-shadow:
    0 2px 6px rgba(187, 32, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.article-item__excerpt {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  margin-top: auto;
}

.article-item__more {
  display: inline-block;
  flex-shrink: 0;
  color: #bb2027;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.article-item__more:hover {
  opacity: 0.75;
}

/* ===========================
   分页
=========================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #ddd6cd;
  border-radius: 3px;
  background: #fff;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-family: inherit;
}

.page-btn:hover {
  border-color: #bb2027;
  color: #bb2027;
}

.page-btn.is-active {
  background: #bb2027;
  border-color: #bb2027;
  color: #fff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}


