* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  /* 只隐藏水平滚动条 */
  overflow-y: auto;
  /* 允许垂直滚动 */
}

.background-carousel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.background-slide.active {
  opacity: 1;
}

.container {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  /* 居中容器 */
  flex-shrink: 0;
  /* 防止容器收缩 */
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 800;
}

.button-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 20px;
}

.link-button {
  flex: 1;
  min-width: 250px;
  height: 200px;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

/* 按钮一字体颜色 - 粉红色 */
.link-button:nth-child(1) {
  color: #ff69b4;
  /* 粉红色 */
}

/* 按钮二字体颜色 - 黑色 */
.link-button:nth-child(2) {
  color: #000000;
  /* 黑色 */
}

/* 按钮三字体颜色 - 蓝色 */
.link-button:nth-child(3) {
  color: #1e90ff;
  /* 蓝色 */
}

.link-button:hover,
.link-button:focus {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.4);
  outline: none;
}

.link-button h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.carousel-container {
  position: relative;
  width: 720px;
  height: 922px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-slides {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 20%;
  height: 100%;
  position: relative;
}

.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  font-weight: 700;
}

.slide-content h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
}

.nav-btn:hover,
.nav-btn:focus {
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: white;
}

@media (max-width: 768px) {
  .carousel-container {
    width: 100%;
    height: auto;
    aspect-ratio: 720/922;
  }

  .button-section {
    flex-direction: column;
  }

  .link-button {
    min-width: 100%;
  }

  .container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* 售后悬浮按钮 */
.floating-service-btn {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 25px;
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s;
  border: 2px solid #fff;
  animation: float-service 3s ease-in-out infinite;
  width: 50px;
  text-align: center;
}

.floating-service-btn i {
  font-size: 18px;
  margin-bottom: 5px;
}

.floating-service-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
  background: linear-gradient(135deg, #66BB6A, #388E3C);
}

@keyframes float-service {

  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(-55%);
  }
}

/* 响应式调整 - 确保在小屏幕上按钮不会太大 */
@media (max-width: 480px) {
  .floating-service-btn {
    right: 10px;
    padding: 10px 6px;
    width: 45px;
    font-size: 11px;
  }

  .floating-service-btn i {
    font-size: 16px;
  }
}