/* 阻止页面滚动 */
body.body-lock-scroll {
  overflow: hidden;
}

/* 抽奖弹窗容器 - 全屏遮罩 */
.modal-prize {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 8000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 弹窗显示状态 */
.modal-prize.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗内容区域 */
.modal-prize .popup-content {
  position: relative;
  width: 590px;
  height: 452px;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 100px rgba(255, 215, 0, 0.3);
  text-align: center;
  transform: scale(0.7) translateY(-50px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: glow 2s ease-in-out infinite alternate;
}

.modal-prize.active .popup-content {
  transform: scale(1) translateY(0);
}

/* 金色光晕动画 */
@keyframes glow {
  from {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 80px rgba(255, 215, 0, 0.3);
  }
  to {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 120px rgba(255, 215, 0, 0.5);
  }
}

/* 主内容区域 */
.modal-prize .main-content {
  position: relative;
}
.modal-close.modal-prize-close{
  position: absolute;
  top: -10px;
  right: 0px;
  z-index: 9999;
}
.modal-close.modal-prize-close img{
  height: 20px;
}

/* 标题样式 */
.modal-prize .title {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

@keyframes titleShine {
  0%,
  100% {
    background-position: -200% center;
  }
  50% {
    background-position: 200% center;
  }
}

/* 奖品信息区域 */
.modal-prize .prize-info {
  width: 265px;
  height: 201px;
  background: #FFF4E5;
  border-radius: 15px;
  padding: 20px;
  margin: 50px auto;
  border: 2px solid #FBC898;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.modal-prize .prize-info .prize-info-icon{

}
.modal-prize .prize-info .prize-info-icon img{
  width: 210px;
  height: 122px;
}
.modal-prize .prize-info .prize-info-name{
   color: #E43B21;
   font-size: 16px;
   font-weight: 550;
   margin-top: 16px;
}

/* 复制按钮样式 */
.modal-prize .function-btn {
  width: 220px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FF4232;
  color: white;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(238, 90, 36, 0.4);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.modal-prize .function-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.modal-prize .function-btn:hover::before {
  left: 100%;
}

.modal-prize .function-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(238, 90, 36, 0.6);
}

.modal-prize .function-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(238, 90, 36, 0.4);
}

/* 雪花背景效果（可选） */
.modal-prize::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(255, 215, 0, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 215, 0, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 40% 60%,
      rgba(255, 215, 0, 0.1) 2px,
      transparent 2px
    );
  background-size: 100px 100px;
  animation: float 20s linear infinite;
  pointer-events: none;
}

@keyframes float {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 100px 100px, 200px 200px, 300px 300px;
  }
}

/* 历史记录弹窗 */

/* 中奖记录弹窗样式 */
.modal-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 8000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.modal-popup.active {
  opacity: 1;
  visibility: visible;
}

.modal-popup .popup-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-height: 80vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-popup.active .popup-content {
  transform: translateY(0);
}

.modal-popup .main-content {
  padding: 20px;
  position: relative;
}

/* 关闭按钮 */
.modal-popup .modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-popup .modal-close:hover {
  background: #e0e0e0;
}

.modal-popup .modal-close img {
  width: 12px;
  height: 12px;
}
.modal-probability .popup-content {
  width: 830px;
  height: 487px;
}

.modal-history .popup-content {
  width: 830px;
  height: 487px;
}

.modal-popup.modal-address{
  z-index: 9000;
}
.modal-address .popup-content {
  width: 670px;
  height: 487px;
}
/* 标题 */
.modal-popup .title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.main-content .popup-page {
  text-align: center;
} 
/* 历史记录列表 */
.modal-popup .popup-page-list {
  height: 335px;
}
#history-list {
  overflow-y: auto;
}
/* 滚动条样式 */
.modal-popup .popup-page-list::-webkit-scrollbar {
  width: 4px;
}

.modal-popup .popup-page-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.modal-popup .popup-page-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.modal-popup .popup-page-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 历史记录项 */
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
  transition: transform 0.2s ease;
}

.history-item:hover {
  transform: translateX(5px);
  background: #e9ecef;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item .prize-info {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

.history-item .prize-time {
  font-size: 0.85rem;
  color: #666;
}

.history-item .prize-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 8px;
  background: #007bff;
  color: white;
}

.history-item .prize-tag.grand-prize {
  background: #ff6b6b;
}

.history-item .prize-tag.first-prize {
  background: #ffa500;
}

.history-item .prize-tag.second-prize {
  background: #28a745;
}

/* 空状态 */
.history-list:empty::before {
  content: "暂无中奖记录";
  display: block;
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-style: italic;
}

/* 以上都没有用 */


/* 表格样式 */
.popup-page-list {
  width: 100%;
  height: 100%;
}
.table-t {
  height: 42px;
  font-size: 18px;
  color: #96999f;
  background-color: #eeeff0;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.table-t-item1 {
  width: 250px;
  text-align: left;
}
.table-t-item2 {
  width: 100%;
  text-align: center;
}
.table-t-item3 {
  width: 150px;
  text-align: center;
}
.table-t-item3-1 {
  width: 215px;
  text-align: center;
}
.table-i {
  height: 42px;
  font-size: 16px;
  padding: 0 20px;
  margin-top: 10px;
  display: flex;
  align-items: center;
}
.table-i-item1 {
  width: 250px;
  text-align: left;
}
.table-i-item2 {
  width: 100%;
  text-align: center;
}
.table-i-item3 {
  width: 115px;
  text-align: center;
}
.table-i-item3-button {
  width: 115px;
  height: 36px;
  font-size: 16px;
  border: 1px solid #777777;
  border-radius: 10px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.table-i-item3-button:hover {
  background-color: #f5f5f5;
}
.table-i-item3-button:active {
  transform: scale(0.98);
}
.popup-page-list .kong {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-page-list .kong .kong-style {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popup-page-list .kong .kong-style img {
  width: 100px;
  height: 100px;
}
.popup-page-list .kong .kong-style span {
  font-size: 18px;
}
