/* 卡片抽奖信息区域 */
.draw-record-box {
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
}

.draw-record-box h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.draw-record-box ul {
  max-height: 200px;
  overflow-y: auto;
  padding-left: 1rem;
  margin-bottom: 0;
}

.draw-record-box li {
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px dashed #ccc;
}

/* 保留换行格式 */
.preserve-format {
  white-space: pre-wrap;
}

/* 盲盒Banner展示 */
.banner-box {
  position: relative;
  width: 100%;
  padding-top: 50%;
  overflow: hidden;
  border-radius: 8px;
}

.banner-box img.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* modal 动画部分整体更大、更居中 */
/* Modal 内容居中紧凑 */
.modal-content {
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
}

/* 动画容器更紧凑，自动适应内容 */
.blindbox-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-bottom: 1rem;
}

.blindbox-animation img {
  width: auto;
  max-width: 100%;
  max-height: 200px; /* 放大动画图像 */
  height: auto;
}

/* 结果文本 */
#resultText {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1rem;
}

/* 关闭按钮 */
#closeResultBtn {
  display: block;
  margin: 0 auto;
  width: 80%;
  padding: 0.6rem;
  font-size: 1rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* 小屏适配 */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
  }

  .blindbox-animation img {
    max-height: 160px;
  }

  #closeResultBtn {
    width: 100%;
  }
}
