html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('../TemplateData/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    z-index: -1;
}

#text-container {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 40%;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9;
  background-image: url('../TemplateData/bqk.png');
  background-size: cover; /* 让背景图覆盖整个滚动框 */
  background-position: center; /* 使背景图居中 */
}

#scrollable-text {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 0px 20px 0px 20px;
  box-sizing: border-box;
  color: white;
  z-index: 1001;
}
.p1{
    font-size: 14px;
    text-align: center;
}
.p2{
    font-size: 12px;
    text-align: left;
}

#button-container {
  position: absolute;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%); /* 将容器向左移动自身宽度的一半 */
  text-align: center;
  z-index: 1000;
}

#action-button {
  width: 60%;
  height: calc(var(--button-width) * (44 / 288.5)); /* 保持原比例 */
  cursor: not-allowed;
}

.checkbox-container {
  display: flex;
  align-items: center; /* 垂直居中对齐 */
  transform: translateX(-50%);
  position: absolute;
  left: 50%;
  bottom: 14%;
  z-index: 1000;
}

.checkbox {
  width: 20px; /* 底框宽度 */
  height: 20px; /* 底框高度 */
  background-image: url('../TemplateData/checkbox-background.png'); /* 勾选框底框 */
  background-size: cover;
  cursor: pointer;
  position: relative; /* 使对勾图片相对定位 */
}

#checkmark {
  display: none; /* 默认不显示 */
  position: absolute; /* 绝对定位 */
  top: 0;
  left: 0;
  width: 100%; /* 使用相同的宽高 */
  height: 100%;
  background-image: url('../TemplateData/checkmark.png'); /* 对勾图片 */
  background-size: contain; /* 确保图片适应框 */
}

.checkbox-label {
  margin-left: 10px; /* 与勾选框保持间距 */
  line-height: 20px; /* 与勾选框高度一致 */
  font-size: 12px;
}
.normal {
  color: white; /* 设置特定颜色 */
}
.highlight {
  color: rgb(239, 224, 153); /* 设置特定颜色 */
}

#fullscreenButton {
  position: absolute;
  bottom: 3%;
  right: 3%;
  width: 3%;
  padding-top: 3%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  z-index: 999;
  display: none;  /* 默认隐藏 */
}


.input-container {
  position: fixed;
  bottom: 5%;
  left: 50%;
  width: 50%;
  transform: translateX(-50%);
  height: 20vh;
  background-color: #f0f0f0; /* 背景色可以根据需求调整 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* 保证处于最上层 */
  pointer-events: none;
  opacity: 0;
}

.input-container input {
  width: 100%; /* 输入框宽度可以根据需求调整 */
  height: 100%; /* 输入框高度可以根据需求调整 */
  font-size: 1.5em; /* 输入框字体大小可以根据需求调整 */
}


 /* 弹窗背景覆盖样式 */
 .modal-overlay {
  display: none; /* 默认隐藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
  z-index: 1000; /* 使弹窗显示在最上层 */
}

/* 弹窗样式 */
.modal {
  overflow-y: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 居中对齐 */
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 80%;
  height: 80%;
  background-image: url('../TemplateData/modal_down.png');
  z-index: 1001; /* 比背景层级更高 */
}

/* 弹窗关闭按钮样式 */
.close-button {
  cursor: pointer; /* 显示手型光标 */
  background-image: url('../TemplateData/modal_close.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* 使背景图片保持比例并适应按钮 */
  background-color: transparent; /* 确保背景颜色透明 */
  border: none; /* 无边框 */
  width: 30px;
  height: 30px;
  padding: 0; /* 去掉默认内边距 */
  float: right;
}
