/* ============================================================
   MOSINTER GROUP 联系我们页面 - 页面特有样式
   ============================================================ */

/* ---------- CSS 变量（仅本页特有变量） ---------- */
:root {
  --green-dark:    #1a5c3a;
  --green-main:   #2d7a4f;
  --green-mid:    #3a8f5f;
  --green-light:  #e8f5ee;
  --green-border: #c5e0cf;
  --text-dark:    #1a1a1a;
  --text-mid:     #444444;
  --text-light:   #777777;
  --bg-white:     #ffffff;
  --bg-gray:      #f7f8f6;
  --border-gray:  #e0e0e0;
  --shadow-card:  0 2px 16px rgba(0,0,0,0.08);
  --radius-card:  8px;
  --transition:  0.25s ease;
}

/* ============================================================
   BANNER（顶部横幅）
   ============================================================ */
.banner {
  position: relative;
  min-height: clamp(200px, 28vw, 360px);
  background: var(--green-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center right;
  opacity: 1;
}

/* 左侧渐变遮罩，确保文字可读 */
.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 50%;
  padding: clamp(24px, 3vw, 48px) clamp(24px, 4vw, 80px) clamp(40px, 6vw, 80px) clamp(60px, 8vw, 120px);
  margin-left: 0;
  text-align: left;
}

.banner-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.banner-subtitle {
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 600;
  color: #1a5c3a;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.banner-desc {
  font-size: clamp(14px, 1.2vw, 18px);
  color: rgba(0, 0, 0, 0.85);
  max-width: 640px;
  margin: 0 0 28px;
  line-height: 1.7;
}

/* Banner 特性标签（无 icon） */
.banner-features {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.banner-feature-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 72px;
}

.feature-title {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.02em;
}

.feature-sub {
  font-size: clamp(11px, 0.9vw, 13px);
  color: rgba(0, 0, 0, 0.65);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: clamp(12px, 1vw, 14px);
}

.breadcrumb a {
  color: rgba(0, 0, 0, 0.7);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: #000000;
}

.breadcrumb .sep {
  display: flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.4);
}
.breadcrumb .sep svg {
  width: 14px;
  height: 14px;
}

.breadcrumb .current {
  color: rgba(0, 0, 0, 0.9);
}

/* banner 内快捷联系信息 */
.banner-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.banner-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.banner-contact-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: rgba(0, 0, 0, 0.9);
}

.banner-contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-contact-label {
  font-size: clamp(11px, 0.85vw, 12px);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

.banner-contact-value {
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--transition);
}

a.banner-contact-value:hover {
  color: #ffffff;
}

/* ============================================================
   CONTACT SECTION（表单 + 信息）
   ============================================================ */
.contact-section {
  padding: clamp(40px, 5vw, 80px) 0;
  background: var(--bg-white);
}

/* 两列：左侧表单 / 右侧信息 */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: stretch;
}

/* ---- 表单卡片 ---- */
.form-section {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-card);
  padding: clamp(24px, 2.5vw, 40px) clamp(20px, 2vw, 36px);
  box-shadow: var(--shadow-card);
  height: 100%;
}

.form-title {
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* 表单布局 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-size: clamp(13px, 1vw, 14px);
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-light);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(45,122,79,0.1);
}

.form-row input.invalid,
.form-row textarea.invalid {
  border-color: #e05252;
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
  flex: 1;
}

.btn-submit {
  margin-top: auto;
  width: 100%;
  padding: 16px 24px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: clamp(14px, 1vw, 15px);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.5px;
}
.btn-submit:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit.is-loading,
.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}
.btn-submit.is-success {
  background: #27ae60;
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 16px;
}
.form-privacy svg {
  flex-shrink: 0;
}

/* ---- 右侧信息列 ---- */
.info-col {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-card);
  padding: clamp(14px, 1.5vw, 22px) clamp(12px, 1.2vw, 20px);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}
.info-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }

.info-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--green-dark);
}

.info-card-body h4 {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.info-card-body p {
  font-size: clamp(12px, 0.85vw, 13px);
  color: var(--text-mid);
  line-height: 1.6;
}
.info-card-body a {
  color: var(--text-mid);
  transition: color var(--transition);
}
.info-card-body a:hover {
  color: var(--green-main);
}
.info-sub {
  font-size: clamp(11px, 0.8vw, 12px);
  color: var(--text-light);
  margin-top: 4px;
}

/* Leaflet 地图 */
.map-container {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-gray);
  min-height: 260px;
}
.leaflet-map {
  width: 100%;
  height: 280px;
}

/* ============================================================
   CONTACT WAYS
   ============================================================ */

/* 外层包裹：控制与页脚的间距 */
.contact-ways-wrap {
  padding: clamp(40px, 5vw, 80px) 0;
  background: var(--bg-white);
}

/* 内层卡片：圆角、背景图 */
.contact-ways {
  position: relative;
  background-color: var(--green-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.contact-ways-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 72px);
}

.ways-text {
  flex: 1;
  min-width: 0;
}

.ways-text h3 {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
}

.ways-text > p {
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: clamp(20px, 2.5vw, 36px);
}

.ways-list {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  flex-wrap: wrap;
}

.way-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 72px;
}

.way-icon {
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.way-icon svg {
  width: clamp(18px, 1.6vw, 24px);
  height: clamp(18px, 1.6vw, 24px);
  stroke: #1a5c3a;
}
.way-item:hover .way-icon {
  background: rgba(255,255,255,0.15);
  border-color: rgba(0, 0, 0, 0.8);
}

.way-name {
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 600;
  color: #000000;
}
.way-desc {
  font-size: clamp(11px, 0.85vw, 13px);
  color: rgba(0, 0, 0, 0.65);
}

/* Ways 图片 */
.ways-image {
  width: clamp(200px, 28%, 420px);
  flex-shrink: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  min-height: 220px;
}
.ways-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .contact-ways-inner {
    flex-direction: column;
    padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  }
  .ways-image {
    width: 100%;
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
  .ways-list {
    gap: 14px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  /* 表单响应式 */
  .form-row {
    grid-template-columns: 1fr;
  }
}
