/* question的样式 */


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f7;
    overflow-x: hidden; /* 新增 */
    width: 100%; /* 新增 */
    position: relative; /* 新增 */
}

/* 修改容器样式 */
body.question-page .container {
    max-width: 800px;
    width: 100%; /* 确保移动端100%宽度 */
    margin: 0 auto;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
}

/* 增强移动端适配 */
@media (max-width: 768px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* 确保所有内容元素也适应全宽 */
    .header, .main-content, .footer {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 按钮也适应全宽 */
    .button {
        width: 90% !important;
    }
}

/* 修改question.html的主内容区域 */
body.question-page .main-content {
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
}

/* 修改question.html的步骤内容 */
body.question-page .step-content {
    background-color: white;
    padding: 0px;
    border-radius: 0px;
    box-shadow: none;  /* 移除灰色阴影边框 */
    margin-bottom: 0px;
    border: none;  /* 确保没有边框 */
    text-align: center;
}

/* 修改question.html的表单容器 */
body.question-page .form-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 0;

}

/* 修改question.html的表单组 */
body.question-page .form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* 修改question.html的标签样式 */
body.question-page .form-label {
    margin-left: 15px;
    text-align: left;
    width: calc(100% - 40px);
    line-height: 1.5;
}

/* 删除原有进度条样式 */
.progress-bar-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px 0;
    background-color: white;
}

/* 新增进度条容器样式 */
.progress-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px 0;
    background-color: white;
}

/* 新增进度条样式 */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 16.66%;
}

.progress-step::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background-color: #e0e0e0;
}

.progress-step.active::before {
    background-color: #007bff;
}

.progress-step span {
    font-size: 14px;
    color: #999;
    font-weight: normal;
}

.progress-step.active span {
    color: #007bff;
    font-weight: bold;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    display: flex;
    justify-content: space-between;
}

.progress-step {
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.active {
    background-color: white;
    color: #007bff;
}

.title {
    text-align: center;
    margin-bottom: 20px;
}

.instruction {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 50px;
}

.form-container {
    width: 100%;
    max-width: 800px;  /* 可根据需要调整最大宽度 */
    margin: 0 auto;
    padding-left: 20px;  /* 左侧固定缩进 */
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* 减小行间距 */
    width: 100%;
}

/* 修改复选框样式，确保统一大小 */
.form-group input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px; /* 新增：确保最小宽度 */
    min-height: 20px; /* 新增：确保最小高度 */
    border: 2px solid #007bff;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-right: 12px;
    flex-shrink: 0; /* 新增：防止复选框被压缩 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .form-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .form-label {
        font-size: 14px; /* 适当减小移动端字体大小 */
        line-height: 1.4;
    }
    
    .form-group {
        padding: 8px 5px; /* 调整移动端内边距 */
    }
}

.form-group input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-group input[type="checkbox"]:hover {
    border-color: #0056b3;
}

.form-group input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* 优化标签样式 */
.form-label {
    margin-left: 10px;
    text-align: left;
    width: calc(100% - 30px);
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-group:hover .form-label {
    color: #007bff;
}

.prev-button, .next-button {
    display: inline-block;
    width: 80%;  /* 修改为80%宽度 */
    height: 50px;  /* 修改为50px高度 */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin: 20px 10px 0;
    text-align: center;
    line-height: 50px;  /* 调整行高匹配新高度 */
    transition: background-color 0.2s ease;
}

.prev-button {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
}

.prev-button:hover, .next-button:hover {
    background-color: #0056b3;
}

.prev-button {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
}

.prev-button:hover {
    background-color: #f0f4f7;
}

/* 在原有样式基础上添加 */
.step-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* 与index页面的间距一致 */
}

.progress-bar-container {
    margin-bottom: 20px; /* 与index页面的间距一致 */
}

.hidden {
    display: none;
}

.description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.result-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.result-badge {
    width: 30%;
    height: 200px;
    margin-bottom: 10px;
}

.result-level {
    font-size: 24px;
    margin: 0;
}

.result-score {
    font-size: 20px;
    margin: 0;
}

.result-risk {
    font-size: 16px;
    margin-top: 5px;
    background-color: #add8e6;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
}

.result-description {
    margin-bottom: 20px;
    
}

#lab-type {
    color: blue;  /* 设置蓝色字体 */
    display: inline; /* 新增 */
    white-space: nowrap; /* 防止换行 */
}

.safety-suggestions {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    width: 100%;  /* 改为100%宽度 */
    max-width: 100%;  /* 确保不超过父容器 */
    margin: 0 auto;  /* 水平居中 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;  /* 包含padding在内计算宽度 */
}

.suggestions-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;  /* 移除默认外边距 */
    width: 100%;  /* 自适应宽度 */
}

.suggestions-list li {
    position: relative;
}

.suggestions-list li::before {
    color: #007bff;
    margin-right: 5px;
}

.suggestions-list li span.blue-text {
    color: #007bff;
}

.suggestions-list li {
    margin-bottom: 5px;
    text-align: left;
}

.view-policy {
    display: block;
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
}

.re-test-button {
    display: block;
    width: 80%;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin: 20px auto 0;
}
/* 或者更精确的解决方案 */
.title[data-level="I级"]::before {
    content: "I级";
    color: red;
}

.title[data-level="I级"] {
    display: inline;
}

.title[data-level="I级"]::after {
    content: "实验室评估条目";
    color: inherit;
}
.title[data-level="Ⅱ级"]::before {
    content: "Ⅱ级";
    color: orange;
}

.title[data-level="Ⅱ级"] {
    display: inline;
}

.title[data-level="Ⅱ级"]::after {
    content: "实验室评估条目";
    color: inherit;
}
/* Ⅲ级样式 */
.title[data-level="Ⅲ级"]::before {
    content: "Ⅲ级";
    color: rgba(245, 245, 7, 0.918);
}

.title[data-level="Ⅲ级"] {
    display: inline;
}

.title[data-level="Ⅲ级"]::after {
    content: "实验室评估条目";
    color: inherit;
}

/* Ⅳ级样式 */
.title[data-level="Ⅳ级"]::before {
    content: "Ⅳ级";
    color: blue;
}

.title[data-level="Ⅳ级"] {
    display: inline;
}

.title[data-level="Ⅳ级"]::after {
    content: "实验室评估条目";
    color: inherit;
}

#risk-level[data-level="I级重大风险"] {
    color: red;
    font-weight: bold;
    text-shadow: 0 0 1px rgba(255,0,0,0.3);
}

#risk-level[data-level="II级高风险"] {
    color: orange;
    font-weight: bold;
    text-shadow: 0 0 1px rgba(255,165,0,0.3);
}

#risk-level[data-level="III级中风险"] {
    color: #dbdb25; /* 更鲜明的黄色 */
    font-weight: bold;
    text-shadow: 0 0 1px  rgba(245, 245, 7, 0.918);
}

#risk-level[data-level="IV级低风险"] {
    color: #007bff; /* 使用主题蓝色 */
    font-weight: bold;
    text-shadow: 0 0 1px rgba(0,123,255,0.3);
}

/* index的样式 */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.header {
  margin-bottom: 20px;
}

.header h1 {
  font-size: 36px;
  color: #333;
}

.header p {
  font-size: 14px;
  color: #666;
}

.main-content {
  margin-bottom: 20px;
}

.main-content img {
  width: 100%;
  height: auto;
}

.footer {
    margin-top: auto;  /* 自动填充顶部空间 */
    padding: 20px 0;   /* 增加上下内边距 */
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.button {
  display: block;
  width: 80%;
  height: 50px;
  margin: 20px auto 0;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  line-height: 50px;
}

.button:hover {
  background: linear-gradient(to bottom, #007bff, #004080);
}

.title-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  margin: 35px 0px 0px 0px; /* 上右下左，增加15px上边距 */}

/* 修改step6的实验室分类布局 */
#step6 .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1px;
}

#step6 .form-group input[type="checkbox"] {
    float: none;
    margin: 3px 15px 0 20px;
    vertical-align: top;
    flex-shrink: 0;
}

#step6 .checkbox-wrapper {
    display: flex;
    align-items: flex-start;
}

#step6 .form-label {
    display: inline-block;
    vertical-align: top;
    margin-left: 0;
}

#step6 .description {
    margin: 5px 0 0 30px;
    font-size: 14px;
    color: #666;
}


/* 修改question.html的表单组 */
.form-group.question-group {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
/* 添加全局样式 */
html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f7;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    touch-action: pan-y; /* 只允许垂直滑动 */
}

/* 修改容器样式 */
body.question-page .container {
    max-width: 800px;
    width: 100%; /* 确保移动端100%宽度 */
    margin: 0 auto;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
}

/* 增强移动端适配 */
@media (max-width: 768px) {
    body.question-page .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px;
        border-radius: 0;
    }
    
    .progress-container,
    .step-content,
    .form-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px;
    }
    
    .form-group {
        padding: 8px 0;
    }
}

/* 修改question.html的主内容区域 */
body.question-page .main-content {
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
}

/* 修改question.html的步骤内容 */
body.question-page .step-content {
    background-color: white;
    padding: 0px;
    border-radius: 0px;
    box-shadow: none;  /* 移除灰色阴影边框 */
    margin-bottom: 0px;
    border: none;  /* 确保没有边框 */
    text-align: center;
}

/* 修改question.html的表单容器 */
body.question-page .form-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 0;

}

/* 修改question.html的表单组 */
body.question-page .form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* 修改question.html的标签样式 */
body.question-page .form-label {
    margin-left: 15px;
    text-align: left;
    width: calc(100% - 40px);
    line-height: 1.5;
}

/* 删除原有进度条样式 */
.progress-bar-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px 0;
    background-color: white;
}

/* 新增进度条容器样式 */
.progress-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px 0;
    background-color: white;
}

/* 新增进度条样式 */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 16.66%;
}

.progress-step::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background-color: #e0e0e0;
}

.progress-step.active::before {
    background-color: #007bff;
}

.progress-step span {
    font-size: 14px;
    color: #999;
    font-weight: normal;
}

.progress-step.active span {
    color: #007bff;
    font-weight: bold;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    display: flex;
    justify-content: space-between;
}

.progress-step {
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.active {
    background-color: white;
    color: #007bff;
}

.title {
    text-align: center;
    margin-bottom: 20px;
}

.instruction {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 50px;
}

.form-container {
    width: 100%;
    max-width: 800px;  /* 可根据需要调整最大宽度 */
    margin: 0 auto;
    padding-left: 20px;  /* 左侧固定缩进 */
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* 减小行间距 */
    width: 100%;
}

/* 修改复选框样式，确保统一大小 */
.form-group input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px; /* 新增：确保最小宽度 */
    min-height: 20px; /* 新增：确保最小高度 */
    border: 2px solid #007bff;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-right: 12px;
    flex-shrink: 0; /* 新增：防止复选框被压缩 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .form-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .form-label {
        font-size: 14px; /* 适当减小移动端字体大小 */
        line-height: 1.4;
    }
    
    .form-group {
        padding: 8px 5px; /* 调整移动端内边距 */
    }
}

.form-group input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-group input[type="checkbox"]:hover {
    border-color: #0056b3;
}

.form-group input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* 优化标签样式 */
.form-label {
    margin-left: 10px;
    text-align: left;
    width: calc(100% - 30px);
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-group:hover .form-label {
    color: #007bff;
}

.prev-button, .next-button {
    display: inline-block;
    width: 80%;  /* 修改为80%宽度 */
    height: 50px;  /* 修改为50px高度 */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin: 20px 10px 0;
    text-align: center;
    line-height: 50px;  /* 调整行高匹配新高度 */
    transition: background-color 0.2s ease;
}

.prev-button {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
}

.prev-button:hover, .next-button:hover {
    background-color: #0056b3;
}

.prev-button {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
}

.prev-button:hover {
    background-color: #f0f4f7;
}

/* 在原有样式基础上添加 */
.step-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* 与index页面的间距一致 */
}

.progress-bar-container {
    margin-bottom: 20px; /* 与index页面的间距一致 */
}

.hidden {
    display: none;
}

.description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.result-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.result-badge {
    width: 30%;
    height: 200px;
    margin-bottom: 10px;
}

.result-level {
    font-size: 24px;
    margin: 0;
}

.result-score {
    font-size: 20px;
    margin: 0;
}

.result-risk {
    font-size: 16px;
    margin-top: 5px;
    background-color: #add8e6;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
}


#lab-type {
    color: blue;  /* 设置蓝色字体 */
}

.safety-suggestions {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    width: 100%;  /* 改为100%宽度 */
    max-width: 100%;  /* 确保不超过父容器 */
    margin: 0 auto;  /* 水平居中 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;  /* 包含padding在内计算宽度 */
}

.suggestions-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;  /* 移除默认外边距 */
    width: 100%;  /* 自适应宽度 */
}

.suggestions-list li {
    position: relative;
}

.suggestions-list li::before {
    color: #007bff;
    margin-right: 5px;
}

.suggestions-list li span.blue-text {
    color: #007bff;
}

.suggestions-list li {
    margin-bottom: 5px;
    text-align: left;
}

.view-policy {
    display: block;
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
}

.re-test-button {
    display: block;
    width: 80%;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin: 20px auto 0;
}
/* 或者更精确的解决方案 */
.title[data-level="I级"]::before {
    content: "I级";
    color: red;
}

.title[data-level="I级"] {
    display: inline;
}

.title[data-level="I级"]::after {
    content: "实验室评估条目";
    color: inherit;
}
.title[data-level="Ⅱ级"]::before {
    content: "Ⅱ级";
    color: orange;
}

.title[data-level="Ⅱ级"] {
    display: inline;
}

.title[data-level="Ⅱ级"]::after {
    content: "实验室评估条目";
    color: inherit;
}
/* Ⅲ级样式 */
.title[data-level="Ⅲ级"]::before {
    content: "Ⅲ级";
    color: rgba(218, 218, 36, 0.688);
}

.title[data-level="Ⅲ级"] {
    display: inline;
}

.title[data-level="Ⅲ级"]::after {
    content: "实验室评估条目";
    color: inherit;
}

/* Ⅳ级样式 */
.title[data-level="Ⅳ级"]::before {
    content: "Ⅳ级";
    color: blue;
}

.title[data-level="Ⅳ级"] {
    display: inline;
}

.title[data-level="Ⅳ级"]::after {
    content: "实验室评估条目";
    color: inherit;
}

#risk-level[data-level="I级重大风险"] {
    color: red;
}
#risk-level[data-level="Ⅱ级高风险"] {
    color: orange;
}
#risk-level[data-level="Ⅲ级中风险"] {
    color: rgba(183, 183, 23, 0.688);
}
#risk-level[data-level="Ⅳ级低风险"] {
    color: blue;
}

/* index的样式 */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.header {
  margin-bottom: 20px;
}

.header h1 {
  font-size: 36px;
  color: #333;
}

.header p {
  font-size: 14px;
  color: #666;
}

.main-content {
  margin-bottom: 20px;
}

.main-content img {
  width: 100%;
  height: auto;
}

.footer {
    margin-top: auto;  /* 自动填充顶部空间 */
    padding: 20px 0;   /* 增加上下内边距 */
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.button {
  display: block;
  width: 80%;
  height: 50px;
  margin: 20px auto 0;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  line-height: 50px;
}

.button:hover {
  background: linear-gradient(to bottom, #007bff, #004080);
}

.title-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  margin: 35px 0px 0px 0px; /* 上右下左，增加15px上边距 */}

/* 修改step6的实验室分类布局 */
#step6 .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1px;
}

#step6 .form-group input[type="checkbox"] {
    float: none;
    margin: 3px 15px 0 20px;
    vertical-align: top;
    flex-shrink: 0;
}

#step6 .checkbox-wrapper {
    display: flex;
    align-items: flex-start;
}

#step6 .form-label {
    display: inline-block;
    vertical-align: top;
    margin-left: 0;
}

#step6 .description {
    margin: 5px 0 0 30px;
    font-size: 14px;
    color: #666;
}


/* 修改question.html的表单组 */
.form-group.question-group {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
/* 添加全局样式 */
html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f7;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    touch-action: pan-y; /* 只允许垂直滑动 */
}

/* 修改容器样式 */
body.question-page .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* 确保所有内容不超过视口宽度 */
img, video, iframe, .progress-container, .step-content, .form-group {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.doc-link {
    display: block;
    color: #007bff;
    text-decoration: none;
    margin: 20px 0;
    text-align: left;  /* 确保文字左对齐 */
    clear: both;
    padding-left: 20px; /* 添加左边距保持美观 */
}

