/* === 落户帮积分计算器 - 独立样式（无冲突）=== */
.lhb-integral-container {
  max-width: 800px;
  margin: 30px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
}

.lhb-header {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, #4d9de0, #6bb8e6);
  color: white;
}
.lhb-header h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.lhb-header p {
  font-size: 14px;
  opacity: 0.9;
}

/* 进度条 */
.lhb-progress-bar {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  background: #f1f5f9;
  position: relative;
}
.lhb-progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #cbd5e1;
  transform: translateY(-50%);
  z-index: 1;
}
.lhb-progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #a0aec0;
  position: relative;
  z-index: 2;
}
.lhb-progress-step.lhb-active {
  border-color: #4d9de0;
  color: #4d9de0;
  background: #ebf4fc;
}
.lhb-progress-step.lhb-completed {
  border-color: #48bb78;
  color: white;
  background: #48bb78;
}

/* 表单步骤 */
.lhb-form-step {
  display: none;
  padding: 30px;
}
.lhb-form-step.lhb-active {
  display: block;
}
.lhb-step-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: #2d3748;
  text-align: center;
}

/* 选项网格 - 默认单列 */
.lhb-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* 平板及以上：两列 */
@media (min-width: 560px) {
  .lhb-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机端优化：允许最多 2~3 列，按钮更紧凑 */
@media (max-width: 560px) {
  .lhb-options-grid {
    grid-template-columns: repeat(2, 1fr); /* 默认两列 */
    gap: 12px;
  }

  /* 特别多选项的步骤（如第3步技能）可设为3列 */
  .lhb-form-step[data-step="3"] .lhb-options-grid,
  .lhb-form-step[data-step="4"] .lhb-options-grid {
    grid-template-columns: repeat(2, 1fr); /* 若文字短可改3列 */
  }

  .lhb-option-btn {
    padding: 10px 8px;
    font-size: 13px;
    border-radius: 8px;
  }
}

.lhb-option-btn {
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  word-break: break-word;
}
.lhb-option-btn:hover {
  border-color: #a0aec0;
}
.lhb-option-btn.lhb-selected {
  border-color: #4d9de0;
  background: #ebf4fc;
  color: #2b6cb0;
}

/* 输入框 - 居中优化 */
.lhb-input-group {
  margin-top: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}
.lhb-input {
  width: 100%;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.lhb-input-group label {
  display: block;
  font-size: 14px;
  color: #718096;
  margin-bottom: 6px;
}
.lhb-input-group small {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
  display: block;
  text-align: center;
}

/* 按钮 */
.lhb-form-footer {
  display: flex;
  justify-content: space-between;
  padding: 0 30px 30px;
}
.lhb-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.lhb-btn-prev {
  background: #edf2f7;
  color: #4a5568;
}
.lhb-btn-next,
.lhb-btn-submit {
  background: #4d9de0;
  color: white;
}
.lhb-btn-prev:hover {
  background: #e2e8f0;
}
.lhb-btn-next:hover,
.lhb-btn-submit:hover {
  background: #3a8bd0;
}

/* 成功页 */
.lhb-success-message {
  text-align: center;
  padding: 40px 20px;
}
.lhb-success-message h2 {
  color: #48bb78;
  margin-bottom: 16px;
}
.lhb-success-message p {
  color: #666;
  margin-bottom: 24px;
}

/* 第一步按钮居中 */
.lhb-form-step[data-step="1"].lhb-active ~ .lhb-form-footer {
  justify-content: center;
}
.lhb-form-step[data-step="1"].lhb-active ~ .lhb-form-footer .lhb-btn-prev {
  display: none !important;
}

/* === 手机端专属优化 === */
@media (max-width: 767px) {
  /* 隐藏底部黑条 */
  .lhb-page .footer {
    display: none !important;
  }

  /* 容器去固定高度，允许自然滚动 */
  .lhb-page {
    /* 不再设置 height 或 overflow:hidden */
  }

  .lhb-page .main-content {
    padding-bottom: 0 !important;
  }

  .lhb-page .lhb-integral-container {
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    /* 不再使用 flex 布局，恢复自然流 */
  }

  .lhb-page #lhb-simulatorForm {
    /* 移除 flex 和 overflow，允许滚动 */
  }

  .lhb-page .lhb-form-step {
    padding: 20px 16px !important;
  }

  /* 输入框在移动端更紧凑 */
  .lhb-page .lhb-input-group {
    max-width: 95%;
    padding: 0;
  }
  .lhb-page .lhb-input {
    padding: 12px;
    font-size: 15px;
  }

  /* 按钮区域正常流式布局 */
  .lhb-page .lhb-form-footer {
    position: static; /* 取消 sticky */
    padding: 20px 16px;
    background: white;
    border-top: 1px solid #eee;
  }
}

/* === 主站 footer 在 PC 端的样式（保留）=== */
@media (min-width: 768px) {
  .footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #343639;
    color: #888;
    padding: 12px 0;
    margin-top: 0 !important;
    z-index: 1000;
    font-size: 14px;
    line-height: 1.5;
    font-weight: normal;
    text-align: center;
  }

  .footer .copyright,
  .footer .other {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
    font-size: 14px;
  }

  .footer .copyright {
    text-align: left;
  }

  .footer .other {
    text-align: right;
  }
}
/* === 移动端隐藏底部黑边（footer）=== */
@media (max-width: 767px) {
  .lhb-page .footer {
    display: none !important;
  }
}

/* === 移动端隐藏顶部黑条 === */
@media (max-width: 767px) {
  .lhb-page nav,
  .lhb-page header,
  .lhb-page .main-header {
    display: none !important;
  }
}