#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 35vw;
  background-image: url("myimg/bg.png");
  background-size: 100% 100%;
}

#close-btn {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  width: 8vw;
  height: 8vw;
  z-index: 10;
}

#close-btn img {
  width: 8vw;
  height: 8vw;
}

#popup-content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 4vw;
  line-height: 1.5;
}

#popup-content p {
  margin: 0;
  padding: 1vw 0;
  font-size: 4vw;
  line-height: 1.4;
  color: white;
}

#popup-content hr {
  margin: 1.5vw 0;
}
#confirm-btn {
  position: absolute;
  bottom: 1vh;
  left: 50%;
  transform: translateX(-50%);
  background-image: url("myimg/bg_chips04.png");
  background-size: contain;  /* 确保背景图按比例缩放 */
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  color: white;
}

#confirm-btn span {
  font-size: 3.5vw;         /* 按钮文本字体大小 */
  color: white;
}

#popup-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30vw;
    height: 8vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /*border: none;*/
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4vw;
    color: white;
}
#popup-title span {
  font-size: 4vw;
  color: white;
}

.horizontal-line {
  width: 50vw;
  height: 0.3vh;
  display: block;
  margin: 1.5vh auto;
  object-fit: fill;        /* 覆盖默认拉伸限制 */
}
@media (orientation: landscape) {
  #popup {
    width: 50vw;
    height: 35vw;
  }

  /* 横屏时字体大小调整 */
  #popup-title span,
  #popup-content p,
  #confirm-btn span {
    font-size: 2vw !important; /* 加上 !important 强制覆盖默认样式 */
  }
  #close-btn{
	width: 3vw !important;
    height: 3vw !important;
  }
  #close-btn img {
	width: 4vw !important;
	height: 4vw !important;
  }
  #confirm-btn {
    width: 30vw !important; /* 竖屏时按钮宽度 */
    height: 6vw !important; /* 竖屏时按钮高度 */
	line-height: 5.7vw;
	bottom: 2vw;
  }
  .horizontal-line{
	  width:30vw !important;;
  }
}

@media (orientation: portrait) {
  #popup {
    width: 80vw;
    height: 70vw;
  }
  /* 竖屏时字体大小调整 */
  #popup-title span,
  #popup-content p,
  #confirm-btn span {
    font-size: 4vw !important; /* 竖屏时字体大小 */
  }
  #confirm-btn{
    font-size: 4vw !important; /* 竖屏时字体大小 */
	width: 30vw !important; /* 竖屏时按钮宽度 */
    height: 8vw !important; /* 竖屏时按钮高度 */
  }
  #popup-content p {
    font-size: 4vw !important;  /* 竖屏时更细致调整 */
  }

  #popup-title {
    font-size: 4vw !important;  /* 竖屏时标题字体大小 */
	height: 12vw !important;
  }

  #confirm-btn {
	bottom: 3vw;
    width: 30vw !important; /* 竖屏时按钮宽度 */
    height: 10vw !important; /* 竖屏时按钮高度 */
	line-height: 9.4vw;
  }
  .horizontal-line{
	  width:40vw !important;;
  }
}

