/* 食堂展示轮播样式 */
.canteen-section {
  padding: 20px 0;
  background: #f8f9fa;
}

.canteen-carousel {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.canteen-track {
  display: flex;
  transition: transform 0.3s ease;
}

.canteen-item {
  flex: 0 0 20%;
  padding: 0 6px;
}

.canteen-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.canteen-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 90%;
  overflow: hidden;
}

.canteen-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.canteen-card:hover .canteen-img-wrapper img {
  transform: scale(1.1);
}

.canteen-title {
  padding: 12px;
  font-size: 14px;
  color: #333;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.canteen-card:hover .canteen-title {
  color: var(--si-theme-red);
}

.canteen-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.canteen-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.canteen-dots .dot.active {
  width: 24px;
  border-radius: 5px;
  background: #dc3545;
}

/* 桌面端样式 */
@media (min-width: 768px) {
  .canteen-item {
    flex: 0 0 calc(20% - 16px);
    padding: 0 8px;
  }
  
  .canteen-img-wrapper {
    padding-bottom: 75%;
  }
}

/* 平板端样式 */
@media (max-width: 768px) {
  .canteen-item {
    flex: 0 0 33.33%;
    padding: 0 6px;
  }
  
  .canteen-title {
    padding: 10px;
    font-size: 13px;
  }
}

/* 手机端样式 */
@media (max-width: 576px) {
  .canteen-section {
    padding: 15px 0;
  }
  
  .canteen-carousel {
    padding: 5px 0;
  }
  
  .canteen-item {
    flex: 0 0 50%;
    padding: 0 5px;
  }
  
  .canteen-img-wrapper {
    padding-bottom: 75%;
  }
  
  .canteen-title {
    padding: 8px;
    font-size: 12px;
  }
  
  .canteen-dots {
    gap: 6px;
    margin-top: 12px;
  }
  
  .canteen-dots .dot {
    width: 8px;
    height: 8px;
  }
  
  .canteen-dots .dot.active {
    width: 20px;
  }
}