/* === 罗沪帮落户计算器 - 独立样式（无冲突）=== */
.lhb-luohu-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, #6a5acd, #8a7bf5); /* 改为紫色系，区分落户 */
  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: #6a5acd;
  color: #6a5acd;
  background: #f0ecff;
}
.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);
  }
}
@media (max-width: 560px) {
  .lhb-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .lhb-form-step[data-step="3"] .lhb-options-grid,
  .lhb-form-step[data-step="4"] .lhb-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .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: #6a5acd;
  background: #f0ecff;
  color: #5a4ab0;
}

/* 输入框 */
.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: #6a5acd;
  color: white;
}
.lhb-btn-prev:hover {
  background: #e2e8f0;
}
.lhb-btn-next:hover,
.lhb-btn-submit:hover {
  background: #5a4ab0;
}

/* 成功页 */
.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-luohu-page .footer { display: none !important; }
  .lhb-luohu-page .lhb-luohu-container {
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
  }
  .lhb-luohu-page .lhb-form-step { padding: 20px 16px !important; }
  .lhb-luohu-page .lhb-input-group { max-width: 95%; padding: 0; }
  .lhb-luohu-page .lhb-input { padding: 12px; font-size: 15px; }
  .lhb-luohu-page .lhb-form-footer {
    position: static;
    padding: 20px 16px;
    background: white;
    border-top: 1px solid #eee;
  }
}

/* 隐藏顶部导航（移动端） */
@media (max-width: 767px) {
  .lhb-luohu-page nav,
  .lhb-luohu-page header,
  .lhb-luohu-page .main-header {
    display: none !important;
  }
}
/* 多选模式下的按钮行为 */
.lhb-multi-select .lhb-option-btn {
  /* 允许多个选中 */
}
.lhb-multi-select .lhb-option-btn.lhb-selected {
  border-color: #6a5acd;
  background: #f0ecff;
  color: #5a4ab0;
}

/* 提示文字 */
.lhb-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #718096;
  text-align: center;
  line-height: 1.4;
}

/* 移动端优化多选按钮高度 */
@media (max-width: 560px) {
  .lhb-multi-select .lhb-option-btn {
    padding: 10px 6px;
    font-size: 12px;
  }
}
/* === 主站 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;
  }
}