* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, SF UI Text, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei,
    WenQuanYi Micro Hei, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none; /* 防止长按弹出菜单 */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* 标准语法 */
}
main {
  width: 100%;
  max-width: 800px;
  height: auto;
  line-height: 1.6;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  user-select: none;
}
header {
  display: none;
  text-align: center;
  font-weight: bold;
  padding: 15px 0;
  width: 100%;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.subtitle {
  font-size: 14px;
  font-weight: normal;
  color: #718096;
  margin-top: 5px;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scl-container {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  padding: 0 10px;
}
.intro-panel {
  display: none;
}

.intro-panel div:nth-child(1) p:nth-child(2) {
  margin: 15px 0;
}

.intro-panel div:nth-child(2) {
  margin-top: 20px;
  padding-left: 30px;
}

.intro-panel div:nth-child(2) ul > li {
  margin-bottom: 2px;
  line-height: 1.6;
}

.intro-panel div:nth-child(3) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 30px auto;
  text-align: center;
}

.answer-panel {
  display: none;
  width: 100%;
  display: none;
  border-radius: 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.progress-container .progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #7f8c8d;
}
.progress-container .progress-bar {
  position: relative;
  top: -10px;
  height: 8px;
  background: #a0aec0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
}
.progress-container .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, #3498db);
  width: 0%;
  transition: width 0.5s ease;
}
.question-container {
  padding: 0 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.question-status .question-each-count {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #27ae60;
  font-weight: 500;
  font-size: 14px;
}
.question-status .question-text {
  font-size: 16px;
  font-weight: 400;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  background-color: #f8f5f5;
}
.question-content .options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  border: 2px solid #eee;
}
.option:hover {
  background: #e8f4fc;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.option:visited {
  background-position: left bottom;
}

.option.selected {
  background: #d1ecf1;
  border-color: #00cc33;
}
.option input {
  margin-right: 12px;
  transform: scale(1.2);
}
.option-label {
  font-size: 15px;

}
.option-value {
  background: #3498db;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}
.navigation {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.result-warning {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  border-right: 5px solid #ffc107;
  padding: 5px;
  border-radius: 8px;
  color: #856404;
  text-align: center;
}
.result-panel {
  display: none;
  width: 100%;
}
.score-card {
  display: flex;
}
.score-card div {
  padding: 15px 10px;
  border-radius: 10px;
  margin: 10px 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  transition: all 0.3s ease;
}
.score-card div:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.score-card div:nth-child(1) {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background-color: #6495ed;
}
.score-card div:nth-child(1) .total-score {
  padding-top: 10px;
}
.score-card div:nth-child(2) {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background-color: #8fbc8f;
}
.score-card div:nth-child(2) .positive-items-detail {
  padding-top: 10px;
}
.score-interpretation {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #3498db;
}
.score-interpretation .averge-interpretation {
  padding-top: 10px;
}
.normal {
  color: white;
  background-color: #28a745 !important;
}
.mild {
  color: white;
  background-color: #ffc107 !important;
}
.moderate {
  color: white;
  background-color: #fd7e14 !important;
}
.severe {
  color: white;
  background-color: #dc3545 !important;
}
.overall-assessment {
  margin: 20px 0;
  padding: 15px;
  background-color: #f0f8ff;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}
.section-title {
  font-size: 20px;
  color: #2c3e50;
  margin: 25px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecf0f1;
}
.factors-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}

.factors-table th,
.factors-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.factors-table td:nth-child(4) {
  display: flex;
  justify-content: center;
}
.factors-table td:nth-child(4) p {
  height: 28px;
  line-height: 28px;
  width: 90px;
  border-radius: 10px;
  font-size: 13px;
}
.factors-table td:nth-child(4) .normal {
  color: white;
  background-color: #28a745;
}
.factors-table td:nth-child(4) .mild {
  color: white;
  background-color: #ffc107;
}
.factors-table td:nth-child(4) .moderate {
  color: white;
  background-color: #fd7e14;
}
.factors-table td:nth-child(4) .severe {
  color: white;
  background-color: #dc3545;
}

.factors-table th {
  background: #2980b9;
  color: white;
  font-weight: 600;
}

.factors-table tr:nth-child(even) {
  background: #f8f9fa;
}

.factor-details {
  margin-top: 25px;
}
.symptom-list {
  padding-left: 15px;
  margin: 10px 0;
}
.symptom-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.factor {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
}

.factor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.factor-name {
  font-weight: bold;
  font-size: 16px;
  color: #2c3e50;
}

.factor-score {
  font-weight: bold;
  font-size: 18px;
}

.factor-progress {
  height: 8px;
  background: #ecf0f1;
  border-radius: 5px;
  overflow: hidden;
  margin: 10px 0;
}

.factor-progress-bar {
  height: 100%;
  border-radius: 5px;
}
.interpretation {
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}
.interpretation-indicator-note {
  margin-top: 12px;
  font-size: 15px;
}
.general-interpretation-color p {
  margin: 8px 0;
  height: 20px;
  display: flex;
  align-items: center;
}
.general-interpretation-color span:nth-child(1) {
  width: 50px;
  height: 20px;
  display: inline-block;
  border-radius: 5px;
}
.general-interpretation-color span:nth-child(2) {
  margin-left: 5px;
  font-size: 14px;
  color: #2c3e50;
  font-weight: bold;
}
.general-interpretation-color p:nth-child(1) span:nth-child(1) {
  background-color: #28a745;
}
.general-interpretation-color p:nth-child(2) span:nth-child(1) {
  background-color: #ffc107;
}

.general-interpretation-color p:nth-child(3) span:nth-child(1) {
  background-color: #fd7e14;
}

.general-interpretation-color p:nth-child(4) span:nth-child(1) {
  background-color: #dc3545;
}
/* .general-interpretation-color p:nth-child(1) span:nth-child(2) {
    margin-left: 5px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: bold;
  } */

.interpretation-title {
  margin-bottom: 15px;
}
.interpretation-title p {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #2c3e50;
}
.interpretation-title span {
  font-size: 14px;
}
.interpretation h3 {
  color: #2c3e50;
  font-size: 16px;
}
.interpretation-note {
  margin-top: 25px;
  font-size: 14px;
}
.result-content {
  display: flex;
  align-items: center;
  font-size: 16px;
}
.result-content span {
  font-size: 18px;
  font-weight: bold;
  color: #3498db;
  padding-right: 5px;
}
.feature-list {
  margin: 20px 0;
}
.feature {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}
.feature i {
  background: #3498db;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 15px;
  flex-shrink: 0;
}
.btn-prev,
.btn-submit,
.btn-start,
.btn-reset,
.btn-back {
  width: 100%;
  max-width: 280px;
  height: 50px;
  border: none;
  border-radius: 5px;
  background-color: lightseagreen;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}
.btn-prev:hover,
.btn-submit:hover,
.btn-start:hover,
.btn-reset:hover,
.btn-back:hover {
  transform: translateY(-2px);
}
.btn-prev {
  margin-right: 20px;
}
.reset-btn {
  display: flex;
  justify-content: center;
}
/* 无效链接 */
.invalid-panel {
  display: none;
  width: 400px;
  height: 240px;
  line-height: 140px;
  margin: 80px auto;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background-color: #fff;
  user-select: none;
}
.invalid-panel p:nth-child(1) {
  font-size: 50px;
}
.invalid-panel p:nth-child(2) {
  width: 120px;
  height: 50px;
  line-height: 50px;
  margin: 0 auto;
  text-align: center;
  border-radius: 15px;
  color: #fff;
  transition: all 0.2s ease;
  font-weight: 600;
  background-color: #dc3545;
  cursor: pointer;
}
.invalid-panel p:nth-child(2):hover {
  transform: translateY(-2px);
}
/* 控制台禁止访问 */
.console-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  text-align: center;
  flex-direction: column;
}

.console-message {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.console-message h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ff6b6b;
}

.console-message p {
  color: #ddd;
  margin-bottom: 25px;
}

.close-btn {
  background: #ff6b6b;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 26px;
  transition: background 0.3s;
  display: inline-block;
  font-size: 14px;
}

.close-btn:hover {
  background: #ff5252;
}

/* 小屏幕手机优化 (小于 480px) */
@media (max-width: 480px) {
  main {
    width: 95%;
  }
  .navigation {
    flex-wrap: wrap;
    align-items: center;
  }
  .btn-prev {
    margin-left: 20px;
  }
  .score-card {
    flex-direction: column;
  }
  .result-content {
    display: block;
  }
  .invalid-panel {
    width: 95%;
    height: 180px;
    line-height: 100px;
  }
  .invalid-panel p:nth-child(1) {
    font-size: 30px;
  }
  .invalid-panel p:nth-child(2) {
    width: 100px;
    height: 40px;
    line-height: 40px;
  }
 .option .option-label {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}
/* 平板样式 (768px 及以上) */
@media (min-width: 768px) {
  main {
    max-width: 900px;
  }
  .invalid-panel p:nth-child(1) {
    font-size: 40px;
  }
  .invalid-panel p:nth-child(2) {
    width: 130px;
    height: 50px;
    line-height: 50px;
  }
}
/* 桌面样式 (1024px 及以上) */
@media (min-width: 1024px) {
  main {
    max-width: 996px;
  }
  .invalid-panel p:nth-child(1) {
    font-size: 40px;
  }
  .invalid-panel p:nth-child(2) {
    width: 130px;
    height: 50px;
    line-height: 50px;
  }
}
