/* overlay */
.box2-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  padding: 20px;
}

/* visible */
.box2-modal.open {
  display: flex;
}

/* content */
.box2-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 80vh;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* close button (右上角 X) */
.box2-close {
  position: absolute;
  right: 8px;
  top: 6px;
  z-index: 3;
  background: transparent;
  border: 0;
  color: #ff0000; /* 红色 */
  font-size: 32px; /* 增大字体大小 */
  line-height: 1;
  padding: 8px 12px; /* 增加内边距 */
  cursor: pointer;
  transition: all 0.3s ease; /* 添加过渡效果 */
}

/* 添加悬停效果 */
.box2-close:hover {
  color: #cc0000; /* 深红色 */
  transform: scale(1.1); /* 轻微放大效果 */
}

/* iframe wrapper and responsive iframe */
.box2-iframe-wrapper {
  width: 100%;
  height: 100%;
  display: block;
  background: #fff;
}

.box2-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 小屏幕适配：全屏高度更高 */
@media (max-width: 600px) {
  .box2-modal-content {
    width: 100%;
    height: 94vh;
    border-radius: 4px;
  }
  .box2-close {
    font-size: 22px;
    top: 8px;
    right: 10px;
  }
}