/* ========= 兼容版 consult.css ========= */
body {
  overflow-x: hidden; /* 仅防横向滚动 */
}
.consult {
  padding: 0 5vw;
  margin-top: 100px;
}
.consult-container main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.consult-container form {
  flex: 1;
  padding-left: 5%;
}
.consult-container form input,
.consult-container form textarea {
  width: 100%; /* 先占满，大屏再限宽 */
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #cda292;
  border-radius: 5px;
  font-size: clamp(16px, 2.5vw, 20px);
}
.consult-container form input {
  height: 50px;
}
.consult-container form textarea {
  height: 140px;
  resize: vertical;
}
.consult-container form button {
  width: 100%;
  background: #cda292;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  height: 60px;
  font-size: clamp(18px, 3vw, 22px);
}
.consult-cat {
  flex: 1;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  padding-right: 40px;
}
.consult h1 {
  font-size: clamp(32px, 5vw, 60px);
  color: #cda292;
  margin-bottom: 20px;
}

/* ========= 响应式 ========= */
@media (max-width: 1024px) {
  .consult-container main {
    gap: 20px;
  }
  .consult-cat {
    padding-right: 0;
  }
}

/* iPad 竖屏及以下：左右→上下 */
@media (max-width: 767px) {
  .consult-container main {
    flex-direction: column;
    align-items: stretch;
  }
  .consult-container form {
    padding-left: 0;
  }
  .consult-cat {
    width: 100%;
    margin-top: 30px;
  }
  .consult h1 {
    text-align: center;
  }
}