* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* 去除移动端点击高亮 */
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: "Microsoft Yahei", sans-serif;
  /* padding: 20px; */ /* 移动端边距 */
  background: url("../images/choujiang_bg.jpg") no-repeat 100% 100%;
  background-size: 100% 100%;
}

/* 抽奖容器 - 响应式尺寸 */
.lottery-container {
  position: relative;
  width: 90vw; /* 占屏幕宽度90% */
  max-width: 500px; /* 最大宽度限制 */
  height: 90vw; /* 宽高相等保持圆形 */
  max-height: 500px;
  margin: 30% auto 0 auto;
}

/* 转盘样式 - 核心：只旋转背景图，文字层跟随旋转 */
.lottery-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /*overflow: hidden;*/
  position: relative;
  transition: transform 6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: rotate(0deg);
  touch-action: none;
}

/* 转盘背景图 - 单独层级，避免遮挡文字 */
.wheel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* 背景图在最下层 */
}

/* 扇形区域 - 仅用于显示文字，不遮挡背景图 */
.wheel-sector {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%; /* 以圆心为旋转原点 */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 文字从顶部开始排列 */
  color: #fff;
  font-size: calc(2.5vw + 2px); /* 缩小字体适配长文字 */
  font-weight: bold;
  padding-top: 15px; /* 调整文字距离顶部 */
  z-index: 2; /* 文字在背景图上层 */
  opacity: 0;
}

/* 6个扇形的角度（匹配实际转盘图片的奖项位置） */
.sector-1 { transform: rotate(0deg); }   /* 川小宝、蜀小宝联名围裙 0-60度 */
.sector-2 { transform: rotate(60deg); }  /* 川小宝全家福购物袋 60-120度 */
.sector-3 { transform: rotate(120deg); } /* 川小宝、蜀小宝联名购物袋 120-180度 */
.sector-4 { transform: rotate(180deg); } /* 谢谢参与 180-240度 */
.sector-5 { transform: rotate(240deg); } /* 微信红包 240-300度 */
.sector-6 { transform: rotate(300deg); } /* 青绿蜀韵 315安心鼠标垫 300-360度 */

/* 奖项文字调整（适配长文字，防止重叠） */
.wheel-sector span {
  display: block;
  transform: rotate(-30deg); /* 文字跟随扇形角度修正 */
  width: 100%;
  text-align: center;
  line-height: 1.2; /* 缩小行高适配长文字 */
  padding: 0 5px;
  text-shadow: 1px 1px 2px #000; /* 增加文字阴影，提升可读性 */
}

/* 指针样式 - 精准居中+指向顶部（核心修复） */
.lottery-pointer {
  position: absolute;
  top: 50%;          /* 垂直居中 */
  left: 50%;         /* 水平居中 */
  transform: translate(-50%, -50%); /* 精准居中 */
  width: calc(20vw); /* 响应式宽度 */
  /* max-width: 50px; */
  height: calc(20vw);
  /* max-height: 50px; */
  z-index: 10;
  /* 指针图片（替换为你的图片路径） */
  background: url("../images/zhizhen.png") no-repeat center center;
  background-size: 100% 100%;
  /* 关键：让指针的尖端指向转盘顶部（0度） */
  transform-origin: center center;
  /* 如果指针图片本身方向不对，可添加旋转修正：比如 rotate(-90deg) */
  /* transform: translate(-50%, -50%) rotate(-90deg); */
}

/* 抽奖按钮 - 响应式 */
.lottery-btn {
  position: absolute;
  bottom: calc(-16vw); /* 响应式底部间距 */
  left: 50%;
  transform: translateX(-50%);
  width: 60%; /* 响应式宽度 */
  height: calc(10.6vw); /* 响应式高度 */
  max-height: 70px;
  background-color: #ff8321;
  color: #fff;
  border: none;
  border-radius: 8px; /* 响应式圆角 */
  font-size: calc(3vw + 4px); /* 响应式字体 */
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  -webkit-appearance: none; /* 去除移动端默认按钮样式 */
  border: 1.9px solid #fff;
  z-index: 3;
}
.lottery-btn2{bottom: calc(-30vw); /* 响应式底部间距 */background: #2686ff;}
.choujiang_jihui{
  position: absolute;
  bottom: calc(-38vw); /* 响应式底部间距 */
  left: 50%;
  transform: translateX(-50%);
  width: 60%; /* 响应式宽度 */
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}
/*.lottery-btn:hover,*/
/*.lottery-btn:active { !* 移动端点击反馈 *!*/
/*  background-color: #ff3838;*/
/*}*/

.lottery-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 提示文字 - 响应式 */
.tip-text {
  position: absolute;
  top: calc(-8vw); /* 响应式顶部间距 */
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(3vw + 2px); /* 响应式字体 */
  color: #333;
  text-align: center;
  width: 100%;
}

/* 适配小屏手机 */
@media (max-width: 375px) {
  .wheel-sector {
    font-size: 12px;
    padding-top: 10px;
  }
  .tip-text {
    font-size: 14px;
  }
  .lottery-btn {
    font-size: 16px;
  }
}

/* 适配大屏手机/平板 */
@media (min-width: 768px) {
  .wheel-sector {
    font-size: 16px;
    padding-top: 20px;
  }
  .tip-text {
    font-size: 18px;
  }
  .lottery-btn {
    font-size: 20px;
  }
}

.head_top{
  width: 65%;
  top: 3%;
  left: 3%;
}
.abs_imgs{
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pic01{
  margin-left: 8vw;
  width: 18%;
  margin-top: -52%;
}
.pic03{
  width: 22%;
  margin-top: 97vw;
  margin-right: 5vw;
}
.cj_bgs{
  width: 100%;
  height: 100%;
}
.cj_bgsImg{
  margin-top: 65vw;
  width: 43%;
  margin: 105vw auto 0 auto;
}