/* 联系我们页 Hero — 对齐设计稿：深蓝科技底 + 居中白字标题/说明 */
.lxwm-hero {
  --lxwm-navy: #0a1f4d;
  position: relative;
  width: 100%;
  min-height: 296px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--lxwm-navy);
  box-sizing: border-box;
}

.lxwm-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lxwm-hero__pic,
.lxwm-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.lxwm-hero__img {
  object-fit: cover;
  object-position: center center;
}

/* 左侧略深保证可读，右侧透出手机/网络图 */
.lxwm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(8, 28, 72, 0.82) 0%,
    rgba(10, 36, 90, 0.55) 42%,
    rgba(12, 40, 96, 0.42) 100%
  );
}

.lxwm-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
  box-sizing: border-box;
}

/* 不用依赖 h1 标签样式，避免被主题 Equip/灰字色覆盖 */
.lxwm-hero__title {
  display: block !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.lxwm-hero__desc {
  display: block !important;
  margin: 0 auto !important;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.95) !important;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

@media (max-width: 768px) {
  .lxwm-hero {
    min-height: 240px;
  }
  .lxwm-hero__inner {
    padding: 40px 20px;
  }
  .lxwm-hero__title {
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }
  .lxwm-hero__desc {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
}

/* ===== 表单区块 ===== */
.lxwm-form-section {
  background: #F7F7F7;
  padding: 56px 24px 72px;
  box-sizing: border-box;
}

/* 白色卡片容器 */
.lxwm-form-card {
  background: #fff;
  border-radius: 12px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 52px 56px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}
.lxwm-form-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.3;
}
.lxwm-form-card__divider {
  width: 100%;
  height: 1px;
  background: #e8ecf2;
  margin-bottom: 36px;
}

/* ===== 表单整体 ===== */
.lxwm-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 3列网格 */
.lxwm-form__grid {
  display: grid;
  gap: 20px;
}
.lxwm-form__grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* 字段组 */
.lxwm-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lxwm-form__group--full {
  grid-column: 1 / -1;
}

/* 标签 */
.lxwm-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}
.lxwm-form__label-hint {
  font-weight: 400;
  color: #999;
  font-size: 0.85rem;
}

/* 输入框 */
.lxwm-form__input,
.lxwm-form__select,
.lxwm-form__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #d9e4f2;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.lxwm-form__input::placeholder,
.lxwm-form__textarea::placeholder {
  color: #bbb;
}
.lxwm-form__input:focus,
.lxwm-form__select:focus,
.lxwm-form__textarea:focus {
  border-color: #2257a6;
  box-shadow: 0 0 0 3px rgba(34, 87, 166, 0.1);
}
.lxwm-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

/* 下拉选择包裹 */
.lxwm-form__select-wrap {
  position: relative;
}
.lxwm-form__select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #888;
  pointer-events: none;
}
.lxwm-form__select {
  padding-right: 40px;
  cursor: pointer;
}

/* ===== 自定义复选框 ===== */
.lxwm-form__checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.lxwm-form__checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: #333;
}
.lxwm-form__checkbox-item input[type="checkbox"],
.lxwm-form__checkbox-item input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.lxwm-form__checkbox-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid #d9e4f2;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.lxwm-form__checkbox-item input[type="checkbox"]:checked + .lxwm-form__checkbox-box,
.lxwm-form__checkbox-item input[type="radio"]:checked + .lxwm-form__checkbox-box {
  background: #2257a6;
  border-color: #2257a6;
}
.lxwm-form__checkbox-item input[type="checkbox"]:checked + .lxwm-form__checkbox-box::after,
.lxwm-form__checkbox-item input[type="radio"]:checked + .lxwm-form__checkbox-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.lxwm-form__checkbox-item:hover .lxwm-form__checkbox-box {
  border-color: #2257a6;
}
.lxwm-form__checkbox-text {
  line-height: 1.4;
}

/* ===== 验证码区域 ===== */
.lxwm-form__captcha-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lxwm-form__captcha-input {
  flex: 1;
  min-width: 0;
}
.lxwm-form__captcha-img {
  height: 44px;
  border-radius: 6px;
  border: 1.5px solid #d9e4f2;
  cursor: pointer;
  flex-shrink: 0;
  display: block;
}
.lxwm-form__captcha-img:hover {
  border-color: #2257a6;
}

/* ===== 上传区域 ===== */
.lxwm-form__upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed #d9e4f2;
  border-radius: 8px;
  padding: 28px 24px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafbfd;
  min-height: 80px;
  box-sizing: border-box;
}
.lxwm-form__upload:hover,
.lxwm-form__upload:focus {
  border-color: #2257a6;
  background: #f0f5ff;
  outline: none;
}
.lxwm-form__upload-icon {
  font-size: 1.75rem;
  color: #2257a6;
  line-height: 1;
  font-weight: 400;
}
.lxwm-form__upload-text {
  font-size: 0.9rem;
  color: #2257a6;
  font-weight: 500;
}
.lxwm-form__upload-filename {
  font-size: 0.82rem;
  color: #888;
  word-break: break-all;
  text-align: center;
  display: none;
}
.lxwm-form__upload-filename:not(:empty) {
  display: block;
}

/* ===== 提交按钮 ===== */
.lxwm-form__submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.lxwm-form__submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2257a6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.lxwm-form__submit-btn:hover {
  background: #1a4285;
  box-shadow: 0 4px 16px rgba(34, 87, 166, 0.3);
}
.lxwm-form__submit-btn:active {
  transform: translateY(1px);
}
.lxwm-form__submit-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .lxwm-form__grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .lxwm-form-card {
    padding: 40px 36px 48px;
  }
}
@media (max-width: 768px) {
  .lxwm-form-section {
    padding: 36px 16px 52px;
  }
  .lxwm-form-card {
    padding: 28px 20px 36px;
    border-radius: 10px;
  }
  .lxwm-form-card__title {
    font-size: 1.4rem;
  }
  .lxwm-form__grid--3col {
    grid-template-columns: 1fr;
  }
  .lxwm-form__checkbox-group {
    gap: 10px 16px;
  }
}
@media (max-width: 480px) {
  .lxwm-form__submit-btn {
    padding: 13px 32px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }
  .lxwm-form__checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
