* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page {
  width: 100%;
  height: 100%;
  position: relative;
}

.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-content.hidden {
  display: none;
}

.zt-img {
  display: block;
  width: 60%;
  height: auto;
  margin-bottom: 0.5rem;
}

.robot-img {
  display: block;
  width: 50%;
  height: auto;
  margin-bottom: 0.5rem;
  margin-top: 28%;
  position: relative;
  left: 10%;
}

.text-img {
  display: block;
  width: 37%;
  height: auto;
  margin-bottom: 0.5rem;
}

.arrow-img {
  display: block;
  width: 0.8rem;
  height: auto;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.2rem);
  }
}

.play-btn {
  display: block;
  width: 2rem;
  height: 0.8rem;
  padding: 0;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  font-size: 0.28rem;
  cursor: pointer;
  line-height: 0.8rem;
}

.swiper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: none;
}

.swiper.active {
  display: block;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.screen-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* 内容包裹器 */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  height: 100%;
  padding-bottom: 0.8rem;
}

.center-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1;
  cursor: pointer;
  transition: opacity 0.2s;
}

.center-image:active {
  opacity: 0.8;
}

.intro-image {
  width: 90%;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.intro-image:active {
  opacity: 0.8;
}

.swiper-slide h2 {
  font-size: 0.48rem;
  color: #333;
}

/* 赛道文字图片 */
.track-text {
  position: absolute;
  cursor: pointer;
  height: auto;
  transition: opacity 0.2s;
  box-sizing: content-box;
  z-index: 1;
}

.track-text:active {
  opacity: 0.7;
}

.track-text[data-track="1"] {
  left: 5%;
  bottom: 20%;
  width: 34%;
  /* 向左下延伸，左边延伸更多 */
  /* clip-path: polygon(0% 0%, 100% 0%, 30% 150%, 0% 150%); */
}

.track-text[data-track="2"] {
  left: 8%;
  bottom: 10%;
  width: 30%;
  /* 向下延伸 */
  /* clip-path: polygon(0% 0%, 100% 0%, 110% 140%, -10% 140%); */
}

.track-text[data-track="3"] {
  left: 30%;
  bottom: 6%;
  width: 17%;
  /* 向下延伸 */
  /* clip-path: polygon(0% 0%, 100% 0%, 105% 130%, -5% 130%); */
}

.track-text[data-track="4"] {
  left: 51%;
  bottom: 11%;
  width: 15%;
  /* 向下延伸 */
  /* clip-path: polygon(0% 0%, 100% 0%, 105% 130%, -5% 130%); */
}

.track-text[data-track="5"] {
  left: 63%;
  bottom: 11%;
  width: 22%;
  /* 向右下延伸，右边延伸更多 */
  /* clip-path: polygon(0% 0%, 100% 0%, 120% 140%, -10% 140%); */
}

.track-text[data-track="6"] {
  left: 63%;
  bottom: 18%;
  width: 31%;
  /* 向右下延伸 */
  /* clip-path: polygon(0% 0%, 100% 0%, 130% 150%, -10% 140%); */
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 99999;
  /* display: none; */
  display: block;
}

.video-container.active {
  display: block;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skip-btn {
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  width: auto;
  height: 0.5rem;
  cursor: pointer;
  z-index: 100000;
  border: none;
  background: transparent;
}

/* 赛道包装器 */
.track-wrapper {
  position: absolute;
  cursor: pointer;
}

.track-wrapper-1 {
  left: 5%;
  bottom: 20%;
  width: 34%;
}

.track-wrapper-2 {
  left: 17%;
  bottom: 15%;
  width: 22%;
}

.track-wrapper-3 {
  left: 31%;
  bottom: 9%;
  width: 17%;
}

.track-wrapper-4 {
  left: 51%;
  bottom: 12%;
  width: 13%;
}

.track-wrapper-5 {
  left: 63%;
  bottom: 11%;
  width: 22%;
}

.track-wrapper-6 {
  left: 63%;
  bottom: 18%;
  width: 31%;
}

.track-wrapper .track-text {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  display: block;
}

.track-extend {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  /* background: rgba(255, 0, 0, 0.3); */
  pointer-events: auto;
}

/* 第1个赛道：从右下向左下延伸 */
.track-wrapper-1 .track-extend {
  clip-path: polygon(0% 50%, 100% 50%, 60% 100%, -40% 100%);
}

/* 第2个赛道：从右下向左下延伸 */
.track-wrapper-2 .track-extend {
  clip-path: polygon(0% 50%, 100% 50%, 70% 100%, -30% 100%);
}

/* 第3个赛道：从右下向左下延伸 */
.track-wrapper-3 .track-extend {
  clip-path: polygon(0% 50%, 100% 50%, 80% 100%, -20% 100%);
}

/* 第4个赛道：从右下向右下延伸 */
.track-wrapper-4 .track-extend {
  clip-path: polygon(0% 50%, 100% 50%, 120% 100%, 20% 100%);
}

/* 第5个赛道：从右下向右下延伸 */
.track-wrapper-5 .track-extend {
  clip-path: polygon(0% 50%, 100% 50%, 130% 100%, 30% 100%);
}

/* 第6个赛道：从右下向右下延伸 */
.track-wrapper-6 .track-extend {
  clip-path: polygon(0% 50%, 100% 50%, 140% 100%, 40% 100%);
}

/* 新的赛道图片样式 */
.track-img {
  position: absolute;
  cursor: pointer;
  height: auto;
  transition: opacity 0.2s;
  pointer-events: none;
}

.track-img-1 {
  left: 5%;
  bottom: 20%;
  width: 34%;
}
.track-img-2 {
  left: 17%;
  bottom: 15%;
  width: 22%;
}
.track-img-3 {
  left: 31%;
  bottom: 9%;
  width: 17%;
}
.track-img-4 {
  left: 51%;
  bottom: 12%;
  width: 13%;
}
.track-img-5 {
  left: 63%;
  bottom: 11%;
  width: 22%;
}
.track-img-6 {
  left: 63%;
  bottom: 18%;
  width: 31%;
}

/* DIV 点击区域 */
.track-click-area {
  position: absolute;
  cursor: pointer;
  background: transparent; /* 调试时可改为 rgba(255, 0, 0, 0.3) */
  transition: background 0.2s;
  z-index: 2;
  transform-origin: top left;
}

.track-click-area:active {
  /* background: rgba(255, 255, 255, 0.2); */
}

/* 赛道1：左下角，向左下倾斜 */
.track-click-1 {
  left: 0%;
  bottom: 8%;
  width: 40%;
  height: 16%;
  transform: skewY(-47deg);
}

/* 赛道2：左下，向左下倾斜 */
.track-click-2 {
  left: 21%;
  bottom: 0%;
  width: 18%;
  height: 25%;
  transform: skewX(-30deg);
}

/* 赛道3：中下，轻微向左下倾斜 */
.track-click-3 {
  left: 31%;
  bottom: 0;
  width: 19%;
  height: 25%;
  transform: skewY(-3deg);
  /* background: #0000004f; */
}

/* 赛道4：中下，轻微向右下倾斜 */
.track-click-4 {
  left: 46%;
  bottom: 0;
  width: 17%;
  height: 25%;
  transform: skewX(11deg);
}

/* 赛道5：右下，向右下倾斜 */
.track-click-5 {
  left: 58%;
  bottom: 0;
  width: 15%;
  height: 25%;
  transform: skewX(30deg);
}

/* 赛道6：右下角，向右下倾斜 */
.track-click-6 {
  left: 63%;
  bottom: 0;
  width: 31%;
  height: 30%;
  transform: skewX(45deg);
}

/* 底部按钮容器 */
.bottom-buttons {
  display: flex;
  gap: 0.8rem;
  z-index: 100;
  flex-shrink: 0;
}

.btn-wl,
.btn-qt {
  height: 0.8rem;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-wl:active,
.btn-qt:active {
  transform: scale(0.95);
}

/* 视频弹窗 */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-bg {
  position: relative;
  width: 80%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-bg-img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.modal-video-player {
  width: 85%;
  height: auto;
  position: relative;
  z-index: 2;
  margin-top: 5%;
  padding: 0.1rem;
}

.modal-close-btn {
  width: 0.8rem;
  height: auto;
  cursor: pointer;
  margin-top: 1rem;
  z-index: 3;
  transition: transform 0.2s;
}

.modal-close-btn:active {
  transform: scale(0.9);
}

/* 图片弹窗 */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  background-image: url("../images/zzt.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-modal.active {
  display: flex;
}

.image-modal-bg {
  position: relative;
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image {
  width: 85%;
  height: auto;
  position: relative;
  z-index: 2;
  margin-top: 5%;
}

/* 遮罩层 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
  pointer-events: none;
}

/* 按钮循环动画 */
.btn-wl,
.btn-qt {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-wl:active,
.btn-qt:active {
  animation: none;
}

/* 小手提示 */
.hand-hint {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 0.8rem;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* 返回首页按钮 */
.back-home-btn {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.8rem;
  height: auto;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.2s;
}

.back-home-btn:active {
  transform: scale(0.9);
}

/* 请选择赛道提示 */
.select-track-hint {
  position: absolute;
  bottom: 37%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: auto;
  z-index: 10;
  pointer-events: none;
  animation: floatHint 2s ease-in-out infinite;
}

@keyframes floatHint {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-0.2rem);
  }
}
