/* 首页样式 */
h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #165DFF;
}

/* 筛选栏 */
.filter-bar {
  background-color: white; /* 筛选栏保持白色，突出功能区 */
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar input, .filter-bar select {
  padding: 8px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  flex: 1;
  min-width: 120px;
}

.filter-bar button {
  white-space: nowrap;
}

/* 电影列表 */
.movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* 电影卡片（深淡灰色+边框，与淡绿色背景对比） */
.movie-card {
  background-color: #EEEEEE; /* 卡片保留深淡灰色 */
  border: 1px solid #E2E8F0; /* 浅灰边框，强化区分 */
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* 卡片悬浮效果 */
.movie-card:hover {
  transform: translateY(-5px);
  border-color: #165DFF; /* 边框变主题蓝 */
  background-color: #FFFFFF; /* 悬浮时变白，对比更强烈 */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.movie-card h3 {
  color: #1E293B;
  margin-bottom: 12px;
  font-size: 18px;
}

.movie-card p {
  margin-bottom: 8px;
  color: #64748B;
  font-size: 14px;
}

.movie-card button {
  width: 100%;
  margin-top: 12px;
}

/* 分页 */
.pagination {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.pagination span {
  color: #64748B;
  font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .movie-list {
    grid-template-columns: 1fr;
  }
}