*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 默认（大屏桌面端）轮播图图片样式 */
.slide img {
  width: auto;
  min-width: 0;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== Dots ===== */
.carousel-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ===== Store Buttons (默认大屏样式) ===== */
.store-buttons {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}

/* 明确指定默认大屏下的图片高度 */
.store-btn img {
  height: 60px;
  width: auto;
}

.store-btn:active {
  transform: scale(0.96);
}

.btn-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.btn-text {
  text-align: left;
  line-height: 1.2;
  font-size: 20px;
}

.btn-text small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  display: block;
}


/* ====================================================
   【核心修改】当屏幕宽度小于 768px 时（移动端手机网页）
   ==================================================== */
@media screen and (max-width: 768px) {
  .store-buttons {
    bottom: 24px;       /* 手机端底边距微调 */
    gap: 8px;          /* 缩小两按钮间的间距 */
    width: 92%;        /* 限制容器总宽度，绝对不超出屏幕 */
    max-width: 340px;  /* 给个最大宽度限制，防止在全屏下被拉得太开 */
    justify-content: center;
  }

  .store-btn {
    flex: 1;           /* 让两个按钮均分容器宽度 */
    min-width: 0;      /* 防止内容把 flex 挤变形 */
  }

  .store-btn img {
    width: 100%;       /* 让图片宽度自适应按钮 */
    height: auto;      /* 高度自动等比例缩放，不再死死卡在 60px */
    max-height: 46px;  /* 限制手机端最大高度，保证视觉精致 */
    object-fit: contain;
  }

  /* 手机端轮播图全屏铺满样式 */
  .slide img {
    height: 100%;
    min-width: 100%;
    object-fit: cover;
  }

  .carousel-dots {
    bottom: 90px;      /* 手机端指示点高度微调 */
  }
}