﻿/* 基础样式重置（消除浏览器默认样式差异） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* 容器：控制列表整体宽度和居中 */
.list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* 列表标题 */
.list-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #212529;
  text-align: center;
}

/* 列表网格容器：核心响应式布局 */
.list-grid {
  display: grid;
  /* 基础：移动端1列 */
  grid-template-columns: 1fr;
  gap: 20px; /* 列表项之间的间距 */
}

/* 列表项样式 */
.list-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* 列表项 hover 效果 */
.list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 列表项内部元素 */
.item-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #007bff;
}

.item-desc {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #868e96;
}

/* 响应式断点适配 */
/* 平板：768px 以上，2列 */
@media (min-width: 768px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .list-title {
    text-align: left;
  }
}

/* 桌面端：992px 以上，3列 */
@media (min-width: 992px) {
  .list-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

/* 大屏桌面：1200px 以上，4列 */
@media (min-width: 1200px) {
  .list-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}