/* 背景图层 */
.bg-wrapper {
  position: absolute;    /* 脱离文档流，但随页面滚动 */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  /* 用 min-height 保证它至少撑满视口，还能延伸到内容高度 */
  min-height: 100vh;
  /* 如果页面比视口还高，要它跟随滚动而不是被裁剪 */
  /* 注意：height: auto + min-height:100vh */
  height: auto;
  z-index: -1;

  background: url('../logo/bg.png') no-repeat top center;
  background-size: 100% auto;
  background-attachment: scroll;
}



.pond-head {
  margin-top: 20px;         /* 顶部空隙 */
  margin-bottom: 80px;      /* 与抽奖区域距离 */
  text-align: center;
}

.pond-head img {
  width: 160px;             /* 你 logo 图实际需要多大？可改 */
  height: auto;
}


/* 中心开始按钮 */
.start-btn {
  position: absolute;
  width: 95px;
  height: 95px;
  left: 0; right: 0; top: 0; bottom: 0;
  margin: auto;
  border-radius: 1px;
  cursor: pointer;
}


/* 奖品图片 */
.pond-name-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  position: relative;
  z-index: 1; /* 放在伪元素下方 */
}


/* 弹窗及遮罩 */
.prize,.men{
  position:fixed;
  left:0; top:0;
  width:100vw; height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.25);
  z-index:100;
}

/* 弹窗主体 */
/* 弹窗主体 */
.prize-box {
  background: rgba(255,255,255,0.9) url('../logo/tc1.png') no-repeat center center;
  background-size: 400px 555px;  /* 设置背景图宽度为200px，高度自动 */
  
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}



/* 弹窗奖品图：自适应宽高，保持比例 */
.prize-box img.main {
  width: 90px;
  height: 120px;
  max-width: 100%;
  max-height: 100vh;
  display: block;
  margin: 0 auto;
  object-fit: contain; /* 保持图像完整不变形 */
}


/* 弹窗文字 */
.prize-msg{
  margin-top:8px;
  font-size:14pt;
  word-break:break-all;
}

/* 弹窗按钮区域 */
.btn-area{
  margin-top:20px;
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

/* 按钮样式 */
.btn{
  background:#ff5c5c;
  color:#fff;
  padding:10px 24px;
  border-radius:20px;
  cursor:pointer;
  text-decoration:none;
}
.btn.close{background:#999;}

/* 弹窗关闭按钮 */
.close-x{
  position:absolute;
  right:8px;
  top:8px;
  width:24px;
  height:24px;
  cursor:pointer;
  font-size:18px;
  line-height:24px;
  text-align:center;
  border-radius:50%;
  background:#eee;
}
/* 页面基础布局与字体设定 */
*{margin:0;padding:0;box-sizing:border-box;}
html,body{
  width:100%;
  height:100%;
  background:;
  font-family:"PingFang SC",sans-serif;
  display:flex;
  justify-content:center;
  overflow-x:hidden;
}

.pond-head {
  margin-top: 20px;         /* 顶部空隙 */
  margin-bottom: 80px;      /* 与抽奖区域距离 */
  text-align: center;
}


/* 外层抽奖容器 */
.container-out {
  width: 340px;
  height: 340px;
  background: url('../logo/9wk.png') no-repeat center center;
  border-radius: 8px;
  /* 顶部距离屏幕高度的 10%，左右自动居中，底部保留 16px */
  margin: 14vh auto 16px;
  position: relative;
}


/* 内层九宫格背景 */
.container-in{
  width:320px;
  height:320px;
  background: url('../logo/9gg.png') no-repeat center center; /* 仅显示图片背景 */
  border-radius:10px;
  position:absolute;
  left:0; right:0; top:0; bottom:0;
  margin:auto;
}

/* 奖品格子样式 */
.content-out {
  position: absolute;
  width: 98px;
  height: 98px;
  background: #f5f0fc;
  border-radius: 8px;
  box-shadow: 0 8px 0 #FFCEC0;
  display: flex;                /* ✅ 启用 flex 布局 */
  justify-content: center;      /* ✅ 水平居中 */
  align-items: center;          /* ✅ 垂直居中 */
  transition: background 0.2s;
}


/* 高亮格子 */
/* 高亮格子样式（原本背景色） */
.highlight {
  background: #ffe400 !important;
  position: relative; /* 为了伪元素定位 */
  z-index: 10;         /* 保证高于其他格子 */
}



/* 圆点装饰 */
.circle{
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
}



.flash-highlight {
  font-size: 1.2em;       /* 字体放大到原来的1.5倍 */
  font-weight: bold;      /* 加粗字体 */
  color: #ff3c00;          /* 设置颜色 */
  animation: flashGlow 1s infinite alternate; /* 闪烁动画 */
}

.btn-area {
  text-align: center;
  margin-top: 20px; /* 控制整个按钮区域与弹窗顶部距离 */
}

.btn-img {
  width: 140px;      /* 按钮宽度 */
  height: 50px;      /* 按钮高度 */
  margin: 10px auto; /* 上下间距+居中 */
  display: block;
  cursor: pointer;
}


/* 基本按钮样式 */
.btn-img {
  width: 140px;
  height: 50px;
  margin: 10px auto;
  display: block;
  cursor: pointer;
}

/* 添加闪烁效果 */
.btn-flash {
  animation: flashBtn 1s infinite alternate;
}

/* 定义闪烁动画 */
@keyframes flashBtn {
  from {
    opacity: 1;
    filter: drop-shadow(0 0 5px #fff);
  }
  to {
    opacity: 0.6;
    filter: drop-shadow(0 0 12px #ffe400);
  }
}
