html, body {
  touch-action: none;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
}
#main, iframe {
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    border: none;
    background-color: transparent; /* 使iframe背景透明 */
}

.hidden {
    visibility: hidden; /* 只隐藏，但保留 iframe 的加载状态 */
    pointer-events: none; /* 防止被点击 */
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

input[type="text"] {
    width: 60%; /* 调整输入框宽度 */
    margin-right: 10px; /* 添加间隔 */
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}

button:hover {
  opacity: 0.9;
}


/* 通知条的基础样式 */
.notification {
  display: flex;
  flex-direction: column; /* 列方向排列：标题和内容分为两行 */
  position: fixed;
  top: -100px; /* 初始位置在屏幕外 */
  left: 0;
  right: 0;
  padding: 10px 20px;
  background-color: #333;  /* 黑色背景 */
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  border-radius: 5px;
  z-index: 9999;
  opacity: 0;
  transition: top 0.5s ease, opacity 0.5s ease; /* 动画 */
  max-width: 100%;
  box-sizing: border-box;
}

.notification.show {
  top: 0; /* 显示时置于顶部 */
  opacity: 1; /* 使通知条透明度为1 */
}

.notification-header {
  display: flex;
  align-items: center; /* 图标和标题在同一行垂直居中 */
  margin-bottom: 5px; /* 图标和标题之间有间距 */
}

.notification-icon {
  width: 20px;  /* 图标宽度 */
  height: 20px; /* 图标高度 */
  margin-right: 10px; /* 图标与标题之间的间距 */
}

.notification-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;  /* 保证标题与图标的高度一致 */
}

.notification-message {
  font-size: 14px;
  margin-top: 5px; /* 内容和标题之间有间距 */
  line-height: 18px;
  text-align: left; /* 让内容左对齐 */
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 5px;
  right: 10px;
}

.close-btn:hover {
  color: #ddd;
}


.notification-btn {
  font-size: 14px;
  margin-top: 5px; /* 内容和标题之间有间距 */
  line-height: 16px;
  text-align: center; /* 让按钮内容居中 */
  background-color: #4caf50; /* 按钮的背景颜色 */
  border: none;
  color: white;
  padding: 10px;
  width: 100%; /* 按钮宽度为屏幕宽度 */
  cursor: pointer;
  border-radius: 5px;
}

.popup-text1 {
  margin: 0;
  font-size: 14px;
  text-align: left; /* 让内容左对齐 */
  letter-spacing: 1px; /* 增加字间距 */
}

.popup-icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

/* iOS PWA：添加到主屏幕引导（贴底 bottom sheet） */
.overlay_ios {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 2147483645;
  padding: 0;
  box-sizing: border-box;
}

.overlay_ios.is-visible {
  display: flex;
}

.modal_ios {
  border-radius: 16px 16px 0 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 85%;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-y: auto;
  background: #fff;
}

.close-btn_ios {
  position: absolute;
  top: 30px;
  right: 31px;
  width: 44px;
  height: 44px;
  background: none !important;
  border: none;
  font-size: 25px;
  color: transparent;
  cursor: pointer;
  appearance: none;
  outline: none;
  z-index: 1;
}

.modal_ios img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100vh;
  display: block;
  margin: 0 auto;
}
