/* ============================================================
   联系我们页面样式
   ============================================================ */

/* ========== 联系方式 - 地图卡片 ========== */
.contact-info-sec {
  padding: 80px 0;
}
.contact-section-head {
  text-align: center;
  margin-bottom: 40px;
}
.contact-section-head .section-label {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-gray-mid, #999);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.contact-info-sec .section-title {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: var(--fw-title);
  color: var(--ink);
  margin: 0;
}
.contact-map-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  background: var(--border);
}
.contact-map-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/reinwind_images/pic/big/company.jpg') center 30%/cover;
  filter: brightness(0.85);
}
.contact-map-pin {
  position: absolute;
  right: 20%;
  top: 50%;
  width: 80px;
  height: 100px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.contact-map-info {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 2;
}
.contact-map-info h3 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}
.contact-map-info .info-divider {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}
.contact-map-info .info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 16px;
}
.contact-map-info .info-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #fff;
}
.contact-map-info .info-item a {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.contact-map-info .info-item a:hover {
  color: var(--color-primary);
}

/* ========== 直接联系 ========== */
.contact-direct-sec {
  padding: 80px 0;
  background: #fff;
}
.contact-direct-sec .section-title {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: var(--fw-title);
  color: var(--ink);
  margin: 0;
}
.contact-direct-sec .section-desc {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}
.direct-list {
  max-width: 860px;
  margin: 0 auto;
}
.direct-group {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius, 10px);
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: box-shadow .2s, border-color .2s;
}
.direct-group:hover {
  border-color: var(--color-primary, #145ffb);
  box-shadow: 0 4px 20px rgba(20, 95, 251, 0.08);
}
.direct-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.direct-group-icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary, #145ffb);
  flex-shrink: 0;
}
.direct-group-head h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.direct-group-note {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 16px 40px;
  line-height: 1.5;
}
.direct-contacts {
  display: grid;
  gap: 0;
  padding-left: 40px;
}
.direct-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line, #eef0f3);
}
.direct-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}
.direct-item:first-child {
  padding-top: 4px;
}
.direct-name {
  font-weight: 500;
  color: var(--ink);
  min-width: 56px;
}
.direct-phone,
.direct-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy, #033b79);
  text-decoration: none;
  transition: color .2s;
}
.direct-phone svg,
.direct-email svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}
.direct-phone:hover,
.direct-email:hover {
  color: var(--color-primary, #145ffb);
}
.direct-consult-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.direct-consult-btn:hover {
  background: #06ad56;
  transform: translateY(-1px);
}
.direct-consult-btn svg {
  width: 16px;
  height: 16px;
}

/* 微信二维码弹窗 */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
.qr-modal.active {
  display: flex;
}
.qr-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  position: relative;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-modal-close:hover {
  background: #e8e8e8;
}
.qr-modal-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}
.qr-modal-box img {
  display: block;
  margin: 0 auto;
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
}
.qr-modal-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ========== 表单联系 ========== */
.contact-form-sec {
  padding: 80px 0;
  background: var(--color-gray-light);
}
.contact-form-sec .section-title {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: var(--fw-title);
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-form-sec .section-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
  text-align: center;
}
.contact-form {
  max-width: 900px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.form-group {
  position: relative;
}
.form-group--full {
  margin-bottom: 30px;
}
.form-group input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s;
}
.form-group input:focus {
  outline: none;
  border-bottom-color: var(--navy);
}
.form-group input::placeholder {
  color: var(--muted);
}
.form-group label {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s;
}
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
  opacity: 1;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.form-check a {
  color: var(--navy);
}
.btn-submit {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(20, 95, 251, 0.3);
}
.btn-submit:hover {
  background: #0E4BDB;
  border-color: #0E4BDB;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 95, 251, 0.4);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-success {
  display: none;
  padding: 16px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  margin-top: 20px;
}

/* ========== 表单增强：蜜罐 / 下拉 / 多行 / 错误态 / loading ========== */

/* 蜜罐字段：视觉完全隐藏，但保留可聚焦性以防屏幕阅读器异常 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* select 下拉：与 input 下划线风格一致 */
.form-group select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 18px;
  padding-right: 28px;
}
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--navy);
}
.form-group select:invalid {
  color: var(--muted);
}

/* textarea 多行输入 */
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--navy);
}
.form-group textarea::placeholder {
  color: var(--muted);
}
.form-group textarea:not(:placeholder-shown)+label {
  opacity: 1;
}

/* 字段错误态 */
.form-group input.has-error,
.form-group textarea.has-error,
.form-group select.has-error {
  border-bottom-color: #e53935;
}
.field-error {
  display: block;
  font-size: 12px;
  color: #e53935;
  margin-top: 4px;
  min-height: 0;
}

/* 表单级错误提示条 */
.form-alert {
  display: none;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.form-alert.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.form-alert.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* 按钮 loading 动画 */
.btn-submit {
  position: relative;
}
.btn-submit .btn-loading {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  animation: btn-spin 0.7s linear infinite;
}
.btn-submit.is-loading .btn-loading {
  display: inline-block;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ========== 响应式 ========== */
@media (max-width: 980px) {
  .contact-info-sec,
  .contact-form-sec,
  .contact-direct-sec {
    padding: 60px 0;
  }
  .contact-map-card {
    height: 280px;
  }
  .contact-map-pin {
    width: 60px;
    height: 80px;
    right: 15%;
  }
  .contact-map-info {
    left: 20px;
  }
  .contact-map-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .contact-map-info .info-item {
    font-size: 14px;
    gap: 10px;
    margin-bottom: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .direct-group {
    padding: 20px;
  }
  .direct-contacts {
    padding-left: 0;
  }
  .direct-group-note {
    margin-left: 0;
  }
  .direct-item {
    gap: 10px;
    font-size: 14px;
  }
}
