* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

/* 标题区域 */
.page-title {
  text-align: center;
  margin-bottom: 50px;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.page-title p {
  font-size: 16px;
  color: #666;
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 30px;
}

/* 分类卡片 */
.category-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.category-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.category-card h3 {
  padding: 20px;
  text-align: center;
  font-size: 19px;
  font-weight: 500;
  color: #333;
}

/* 详情页样式保留 */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.back-btn {
  padding: 12px 24px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #555;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.image-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.image-item img:hover {
  transform: scale(1.02);
}