/* 儿童绘本阅读网站 - 列表页样式 */

/* 导航横幅样式 - 与首页保持一致 */
.nav-banner {
  background: linear-gradient(135deg, #ffd6e7 0%, #b5f0ff 100%);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #fff;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b9d 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-item {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-item:hover::before {
  left: 0;
}

.nav-item:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.nav-item.active {
  background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
  color: white;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu {
    justify-content: center;
  }

  .nav-item {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.5rem;
  }

  .nav-menu {
    width: 100%;
    justify-content: space-between;
  }

  .nav-item {
    padding: 6px 12px;
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
  }
}

/* 列表页原有样式 */
.list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Comic Neue', cursive, sans-serif;
}

.search-bar {
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.search-input {
  padding: 12px 20px;
  border: 2px solid #ffd6e7;
  border-radius: 25px;
  font-size: 1rem;
  width: 100%;
  max-width: 500px;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #ff6b9d;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.search-button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.content-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.content-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(255, 107, 157, 0.3);
}

.card-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-info {
  padding: 20px;
}

.card-title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #999;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.page-number {
  padding: 10px 15px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-number:hover,
.page-number.active {
  background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
  color: white;
  border-color: #ff6b9d;
}

.filter-section {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.filter-tag {
  padding: 8px 15px;
  background: #e9f7fe;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #bee5eb;
}

.filter-tag:hover,
.filter-tag.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

@media (max-width: 768px) {
  .list-container {
    padding: 15px;
  }
  
  .search-bar {
    flex-direction: column;
    align-items: center;
  }
  
  .search-input {
    max-width: 100%;
    margin-bottom: 10px;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .card-info {
    padding: 15px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-section {
    gap: 10px;
  }
  
  .filter-tag {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}