@charset "UTF-8";

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

html {
  font-size: calc(100vw / 10);
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 500px) {
  html {
    font-size: 50px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

.page {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: rgba(10, 10, 10, 1);
  position: relative;
}

.content {
  padding-bottom: 1.8rem;
}

.block-image img {
  object-fit: cover;
}

.section-title {
  text-align: center;
  padding: 0.5rem 0.4rem;
  font-size: 0.36rem;
  font-weight: 600;
  color: #fff;
}

/* 轮播 */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

.carousel.is-dragging .carousel-track {
  transition: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  cursor: grab;
}

.carousel.is-dragging .carousel-track {
  cursor: grabbing;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-slide img {
  object-fit: cover;
  aspect-ratio: 750 / 520;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  display: flex;
  justify-content: center;
  gap: 0.12rem;
  pointer-events: none;
}

.carousel-dot {
  width: 0.12rem;
  height: 0.12rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* 底部栏 */
.footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0 0.25rem;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99;
}

.footer-btn {
  position: relative;
  flex: 1;
  max-width: 3.2rem;
  height: 0.91rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.21rem;
  color: #fff;
  font-size: 0.32rem;
  font-weight: 500;
  letter-spacing: 0.027rem;
}

.footer-btn--play {
  background: rgb(22, 120, 255);
}

.footer-btn--download {
  background: rgb(255, 170, 9);
}

.footer-bubble {
  position: absolute;
  right: 0;
  bottom: 1.01rem;
  padding: 0.16rem 0.25rem;
  background: #ea4e3d;
  border-radius: 0.21rem;
  font-size: 0.29rem;
  max-width: calc(100% - 0.25rem);
  white-space: normal;
  word-break: break-all;
  line-height: 1.3;
}

.footer-bubble::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.19rem;
  border: 0.32rem solid transparent;
  border-left-color: #ea4e3d;
}

/* 右侧悬浮（垂直居中） */
.float-tools {
  position: fixed;
  top: 50%;
  right: max(0.13rem, calc(50vw - 250px + 0.13rem));
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-50%);
}

.float-tool {
  width: 1.33rem;
  height: 1.33rem;
  padding: 0;
}

.float-tool img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 500px) {
  .float-tools {
    right: calc(50vw - 250px + 0.13rem);
  }
}
