/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Contact 页面不覆盖公共 .container，避免影响顶部导航栏和底部导航栏布局。 */
.contact-section > .container {
  max-width: 1480px;
  width: min(1480px, calc(100% - 48px));
}

/* ===== Contact Banner: factory-style top banner ===== */
.contact-page .banner {
  position: relative;
  min-height: 245px;
  margin-top: var(--site-header-height);
  overflow: hidden;
  color: #fff;
  background: #060809;
}

.contact-page .banner-bg,
.contact-page .banner-overlay {
  position: absolute;
  inset: 0;
}

.contact-page .banner-bg {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 62% 42%, rgba(226,142,16,0.42), transparent 22%),
    radial-gradient(circle at 84% 54%, rgba(255,189,49,0.20), transparent 18%),
    linear-gradient(135deg, #050708, #242928 52%, #070808 100%);
}

.contact-page .banner-overlay {
  z-index: 1;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.contact-page .banner-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.74) 30%, rgba(0,0,0,0.36) 60%, rgba(0,0,0,0.14) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.34));
}

.contact-page .banner-content {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, 1480px);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  padding-top: 38px;
  padding-bottom: 24px;
}

.contact-page .banner-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.contact-page .banner-content p {
  margin: 0 0 10px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  color: rgba(255,255,255,0.96);
}

.contact-page .banner-desc {
  max-width: 600px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 500;
  color: rgba(255,255,255,0.86);
}

.contact-page .banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
}

.contact-page .banner .breadcrumb a:hover {
  color: #f0a500;
}

.contact-page .banner .breadcrumb .sep svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 58px 0 52px;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(400px, 480px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  width: 100%;
}

.contact-info {
  padding-right: 24px;
  border-right: 1px solid #eeeeee;
}

.contact-info h2 {
  margin: 0 0 14px;
  font-size: 27px;
  line-height: 1.22;
  font-weight: 800;
  color: #171717;
  letter-spacing: -0.02em;
}

.contact-info h2 .highlight {
  color: #f4b21a;
}

.contact-desc {
  max-width: 440px;
  margin: 0 0 42px;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
  color: #646464;
}

.info-list {
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0 28px;
  border-bottom: 1px solid #eeeeee;
}

.info-item:first-child {
  padding-top: 0;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: #fffdf8;
  border: 1.5px solid rgba(244, 178, 26, 0.54);
  box-shadow: 0 0 0 4px rgba(244, 178, 26, 0.08);
}

.info-icon svg {
  width: 21px;
  height: 21px;
  stroke: #f4b21a;
}

.info-content h4 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #232323;
}

.info-content p {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
  color: #555;
}

.info-content p a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-content p a:hover {
  color: #f4b21a;
}

.info-content .info-sub {
  font-size: 13px;
  color: #7a7a7a;
}

.contact-right {
  min-width: 0;
}

/* ===== Leaflet Map ===== */
.map-container {
  width: 100%;
  margin: 0 0 26px;
}

.leaflet-map {
  width: 100%;
  height: 206px;
  border-radius: 5px;
  overflow: hidden;
  background: #f2f2f2;
  border: 1px solid #eeeeee;
  box-shadow: none;
}

.leaflet-map .leaflet-tile-pane {
  filter: grayscale(1) saturate(0.2) opacity(0.58) brightness(1.12);
}

.leaflet-map .leaflet-control-container {
  font-size: 12px;
}

.contact-map-popup {
  min-width: 220px;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
}

.contact-map-popup strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  color: #222;
}

.contact-map-popup span {
  font-size: 12px;
  line-height: 1.55;
  color: #666;
}

/* ===== Form ===== */
.form-section h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #222;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.4;
  font-family: inherit;
  color: #333;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.contact-form input {
  height: 38px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f4b21a;
  box-shadow: 0 0 0 3px rgba(244,178,26,0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form textarea {
  min-height: 78px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 38px;
  margin-top: 4px;
  padding: 0 22px;
  background: #f4b21a;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-submit:hover {
  background: #e5a410;
  transform: translateY(-1px);
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #8c8c8c;
}

.form-privacy svg {
  flex: 0 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-info {
    padding-right: 0;
    border-right: none;
  }

  .contact-desc {
    max-width: 680px;
  }
}

@media (max-width: 768px) {
  .contact-page .banner {
    min-height: 230px;
  }

  .contact-page .banner-content {
    padding-top: 32px;
  }

  .contact-section {
    padding: 46px 0;
  }

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

  .contact-info h2 {
    font-size: 24px;
  }

  .leaflet-map {
    height: 230px;
  }
}

@media (max-width: 480px) {
  .contact-page .banner {
    min-height: 210px;
  }

  .contact-page .banner-content {
    width: calc(100% - 32px);
  }

  .contact-page .banner-content h1 {
    font-size: 2rem;
  }

  .contact-section {
    padding: 38px 0;
  }

  .info-item {
    gap: 14px;
  }

  .leaflet-map {
    height: 210px;
  }
}
