/* 客户意向表单：/consult 独立页（与首页 #intent 视觉一致） */
:root {
  --green-dark: #1a4d2e;
  --green-mid: #2d7a4e;
  --green-light: #8fbc8f;
  --cream: #f9f5ee;
  --text-dark: #1c1c1c;
  --text-mid: #4a4a4a;
  --text-light: #888;
  --white: #fff;
}

.consult-page {
  padding-top: 68px;
  min-height: 100vh;
  background: linear-gradient(180deg, #f0f7f2 0%, #fff 45%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-tag {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'PingFang SC', 'Microsoft YaHei', serif;
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.35;
}
.section-title span {
  color: var(--green-mid);
}
.section-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-mid), var(--gold, #c9962a));
  border-radius: 2px;
  margin: 20px auto 0;
}

.intent-section {
  padding: 36px 0 72px;
}
/* PC：介绍在表单正上方，整块与全站容器同宽、表单区居中收窄 */
.intent-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.intent-intro {
  position: static;
  text-align: left;
  width: 100%;
  padding: 0 2px;
}
@media (max-width: 900px) {
  .intent-grid {
    max-width: 100%;
  }
}
.intent-intro-title {
  font-family: 'PingFang SC', 'Microsoft YaHei', serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}
.intent-intro-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 24px;
}
.intent-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.intent-badge {
  background: var(--cream);
  border: 1px solid #d4e8d8;
  color: var(--green-mid);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
}

.identity-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.id-card {
  border: 2px solid #e0eee5;
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.id-card:hover {
  border-color: var(--green-light);
  background: #f0f9f3;
}
.id-card.active {
  border-color: var(--green-dark);
  background: #e8f5ec;
  box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.08);
}
.id-card .ic-emoji {
  font-size: 28px;
}
.id-card .ic-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.id-card .ic-desc {
  font-size: 11px;
  color: var(--text-mid);
  line-height: 1.4;
}

.intent-form {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid #e4ebe6;
  max-width: 100%;
  box-shadow: 0 8px 32px rgba(26, 77, 46, 0.08);
}
@media (max-width: 768px) {
  .intent-form {
    padding: 22px 16px;
  }
}

.form-step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dark);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.if-group {
  margin-bottom: 18px;
}
.if-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.if-label .req {
  color: #e53e3e;
  margin-left: 2px;
}
.if-label .opt {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  margin-left: 4px;
}
.if-input,
.if-select,
.if-textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dce8dc;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #fff;
  color: var(--text-dark);
  outline: none;
  transition: 0.2s;
  box-sizing: border-box;
}
.if-input:focus,
.if-select:focus,
.if-textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 122, 78, 0.08);
}
.if-textarea {
  min-height: 88px;
  resize: vertical;
}
.if-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .if-row {
    grid-template-columns: 1fr;
  }
}
.if-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.if-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #dce8dc;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-mid);
  transition: 0.2s;
}
.if-check-label:hover {
  border-color: var(--green-mid);
  color: var(--green-mid);
}
.if-check-label input[type='checkbox'] {
  accent-color: var(--green-mid);
  width: 14px;
  height: 14px;
}
.if-check-label.checked {
  border-color: var(--green-mid);
  background: #f0faf4;
  color: var(--green-mid);
  font-weight: 500;
}
.if-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.if-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #dce8dc;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-mid);
  transition: 0.2s;
}
.if-radio-label:hover {
  border-color: var(--green-mid);
}
.if-radio-label input[type='radio'] {
  accent-color: var(--green-mid);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-mid);
  letter-spacing: 1px;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0eae4;
}

.intent-submit {
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  margin-top: 8px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  touch-action: manipulation;
}
.intent-submit:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}
.intent-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.intent-success {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f0faf4, #e8f5e9);
  border-radius: 16px;
  border: 1px solid #c6e8d1;
  display: none;
}
.intent-success .ok-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.intent-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.intent-success p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.75;
}
.intent-success-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.intent-success-actions a {
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 1.5px solid var(--green-mid);
  border-radius: 24px;
  font-size: 14px;
}
.intent-success-actions a:hover {
  background: var(--green-mid);
  color: #fff;
}

.if-dynamic {
  display: none;
}
.if-dynamic.show {
  display: block;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.shake {
  animation: shake 0.4s ease;
  border-color: #e53e3e !important;
}
