/* ========================================
   学而升本官网 - 联系我们页面
   ======================================== */

/* Hero */
.contact-hero {
  background: linear-gradient(135deg, #014DB2 0%, #001B4D 100%);
  color: #fff;
  padding: 64px 24px 56px;
  text-align: center;
}
.contact-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.contact-hero__crumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.contact-hero__crumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.contact-hero__crumb a:hover { text-decoration: underline; }
.contact-hero__title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.contact-hero__subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 主体两栏 */
.contact-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.contact-col--left { flex: 1; min-width: 0; }
.contact-col--right { width: 440px; flex-shrink: 0; }

/* 信息卡 */
.contact-info {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(1, 27, 77, 0.06);
  margin-bottom: 24px;
}
.contact-info__name {
  font-size: 20px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EEF1F6;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #E8F0FE;
  color: #014DB2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info__body { flex: 1; min-width: 0; }
.contact-info__label {
  font-size: 13px;
  color: #999;
  margin-bottom: 3px;
}
.contact-info__value {
  font-size: 15px;
  color: #1A2740;
  font-weight: 500;
  word-break: break-all;
}

/* 微信二维码（内嵌信息卡底部） */
.contact-info__wechat {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-info__qr-wrap {
  flex-shrink: 0;
}
.contact-info__qr {
  width: 88px;
  height: 88px;
  background: #F5F7FA;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  border: 1px solid #E2E8F0;
}
.contact-info__qr--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0B8C4;
  font-size: 12px;
}
.contact-info__qr-text {
  flex: 1;
  min-width: 0;
}
.contact-info__qr-title {
  font-size: 14px;
  font-weight: 600;
  color: #014DB2;
  margin-bottom: 4px;
}
.contact-info__qr-id {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.contact-info__copy-btn {
  display: inline-block;
  padding: 6px 18px;
  background: #014DB2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.contact-info__copy-btn:hover { background: #001B4D; }
.contact-info__copy-btn--done { background: #10B981; }

/* 咨询表单卡 */
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(1, 27, 77, 0.06);
  position: sticky;
  top: 20px;
}
.contact-form__title {
  font-size: 20px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 6px;
}
.contact-form__sub {
  font-size: 14px;
  color: #999;
  margin-bottom: 22px;
}
.contact-form__group { margin-bottom: 16px; }
.contact-form__group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.contact-form__group label .req { color: #EF4444; margin-left: 2px; }
.contact-form__group input,
.contact-form__group select,
.contact-form__group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #E0E4EA;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}
.contact-form__group input:focus,
.contact-form__group select:focus,
.contact-form__group textarea:focus { border-color: #014DB2; }
.contact-form__group textarea { min-height: 90px; resize: vertical; }
.contact-form__submit {
  width: 100%;
  padding: 13px;
  background: #014DB2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
  transition: background 0.2s;
}
.contact-form__submit:hover { background: #001B4D; }
.contact-form__submit:disabled { background: #9DB2D4; cursor: not-allowed; }
.contact-form__msg {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  display: none;
}
.contact-form__msg--ok { display: block; background: #D1FAE5; color: #047857; }
.contact-form__msg--err { display: block; background: #FEE2E2; color: #DC2626; }

/* 地图区 */
.contact-map {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.contact-map__frame {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(1, 27, 77, 0.06);
}

/* CTA */
.contact-cta {
  text-align: center;
  padding: 48px 24px 64px;
  background: #F9F9F9;
}
.contact-cta__title {
  font-size: 26px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 10px;
}
.contact-cta__sub {
  font-size: 15px;
  color: #666;
  margin-bottom: 22px;
}
.contact-cta__btn {
  display: inline-block;
  padding: 13px 36px;
  background: #014DB2;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.contact-cta__btn:hover { background: #001B4D; }

/* 响应式：窄屏单栏 */
@media (max-width: 900px) {
  .contact-main { flex-direction: column; }
  .contact-col--right { width: 100%; }
  .contact-form-card { position: static; }
  .contact-hero__title { font-size: 30px; }
}

/* ===== 右侧表单 双 Tab（快速留言 / 微信咨询）===== */
.contact-form__tabs {
  display: flex;
  gap: 4px;
  background: #F3F4F6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}
.contact-form__tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.contact-form__tab:hover { color: #374151; }
.contact-form__tab--active {
  background: #fff;
  color: #014DB2;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.contact-form__panels { position: relative; }
.contact-form__panel { display: none; }
.contact-form__panel--active {
  display: block;
  animation: chatFadeIn 0.25s ease;
}

/* 右侧微信咨询面板 */
.contact-wechat-panel {
  text-align: center;
  padding: 6px 0 4px;
}
.contact-wechat__hint {
  font-size: 15px;
  font-weight: 600;
  color: #0A1628;
  margin-bottom: 16px;
}
.contact-wechat__qr-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contact-wechat__qr {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}
.contact-wechat__ph {
  font-size: 12px;
  color: #9CA3AF;
}
.contact-wechat__id {
  font-size: 14px;
  color: #374151;
  margin-bottom: 14px;
}
.contact-wechat__id strong {
  color: #014DB2;
  font-weight: 600;
}
.contact-wechat__copy {
  display: inline-block;
  padding: 8px 22px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 22px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.contact-wechat__copy:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
}
.contact-wechat__copy--done {
  background: #D1FAE5;
  border-color: #6EE7B7;
  color: #047857;
}
.contact-wechat__sub {
  font-size: 12px;
  color: #6B7280;
  margin-top: 14px;
}
