/* 在线测评弹窗样式 */
.assessment-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.assessment-popup-container {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 1200px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}

.assessment-content {
  padding: 30px;
  max-height: 92vh;
  overflow-y: auto;
}

/* 头部样式 */
.assessment-header {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.assessment-header h2 {
  font-family: Source Han Sans CN;
  font-weight: bold;
  font-size: 36px;
  color: #1c1c1c;
  position: relative;
}
.assessment-header h2::before,
.assessment-header h2::after {
  content: "";
  width: 288px;
  height: 2px;
  background-color: #c6c6c6;
  position: absolute;
  top: 26px;
}
.assessment-header h2::before {
  left: -330px;
}
.assessment-header h2::after {
  right: -330px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: absolute;
  top: 0;
  right: 0;
}

.close-btn:hover {
  background-color: #f5f5f5;
  color: #666;
}

.assessment-content {
}

/* 表单样式 */
.assessment-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 130px;
}

.question-group {
  flex: 50%;
  margin-bottom: 25px;
}

.question-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.5;
}

.required {
  color: #ff4444;
  margin-left: 2px;
}

.options-grid {
  margin-left: 20px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 8px 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-radius: 4px;
}

.option-item:hover {
  background-color: #f8f9fa;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 2px;
  flex-shrink: 0;
}

.option-item span {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.question-group:first-child .options-grid,
.question-group:last-child .options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

/* 联系信息样式 */
.contact-info {
  margin: 30px 0 20px 0;
}

.input-group {
  width: 100%;
  display: flex;
  gap: 20px;
}

.input-group input {
  flex: 1;
  padding: 10px 16px;
  background-color: #edf6fc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  color: #333;
}

.input-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.input-group input::placeholder {
  color: #999;
}

/* 提交按钮样式 */
.submit-btn {
  width: 226px;
  background: #1e8af9;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover,
.submit-btn:active {
  background-color: #007bff;
  color: #fff;
}

/* 隐私条款样式 */
.privacy-notice {
  margin: 20px 0;
  font-size: 13px;
  color: #666;
  display: flex;
  justify-content: space-between;
}

.privacy-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
}

.privacy-checkbox input {
  margin-right: 8px;
}

.privacy-checkbox a {
  color: #1e8af9;
}

.privacy-text {
  margin: 10px 0;
  font-size: 12px;
  color: #888;
}

.statistics {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.statistics .highlight {
  color: #ff4444;
  font-weight: 600;
}

.statistics .note {
  color: #999;
  font-size: 11px;
  text-align: right;
  margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .assessment-popup-overlay {
    padding: 10px;
  }

  .assessment-popup-container {
    margin-top: 10vh;
  }

  .assessment-content {
    padding: 20px;
    max-height: 80vh;
  }

  .assessment-header {
    padding: 0;
    h2 {
      font-size: 24px;
      &::before,
      &::after {
        display: none;
      }
    }
  }

  .assessment-form {
    display: block;
  }

  .options-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin-left: 10px;
  }

  .input-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .question-title {
    font-size: 15px;
  }

  .option-item span {
    font-size: 13px;
  }

  .submit-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
  }

  .privacy-notice {
    display: block;
  }
}

/* 滚动条样式 */
.assessment-popup-container::-webkit-scrollbar {
  width: 8px;
}

.assessment-popup-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.assessment-popup-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.assessment-popup-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 动画效果 */
.assessment-popup-overlay {
  animation: fadeIn 0.3s ease;
}

.assessment-popup-container {
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
