.slider-background {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  position: relative;  /* 新增 */
}
.slider-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 calc(11.1% - 10px);
  margin-right: 10px;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.slider-container .prev, 
.slider-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
}
.slider-container .prev { left: 10px; }
.slider-container .next { right: 10px; }

.dots-overlay {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dots-container {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.dot {
  background-color: #fff;
  border: 8px solid #000;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
}

.dot.active {
  background-color: #000;
  border-color: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.9);
}
@media(max-width:768px){
  .slide { flex: 0 0 calc(33.3333% - 10px); }
}
@media(max-width:480px){
  .slide { flex: 0 0 calc(50% - 10px); }
}