/* ==================== Hero 区域 ==================== */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 4.479vw); /* 一屏高度减去导航栏高度 */
  margin-top: 4.48vw;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: -4.48vw;
  left: 0;
  width: 100vw;
  height: calc(100vh + 4.48vw); /* 一屏高度加上顶部偏移 */
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 2;
}

.hero-content {
  position: absolute;
  bottom: 11.04vw;
  left: 10.36vw;
  z-index: 3;
  padding: 0.52vw;
}

.hero-title {
  font-size: 2.5vw;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

/* ==================== 联系信息区域 ==================== */
.contact-section {
  padding: 5.1vw 10.42vw;
  background-color: #ffffff;
}

.contact-container {
  max-width: 79.17vw;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 5.31vw;
}

.contact-main {
  display: flex;
  gap: 5.21vw;
  align-items: flex-start;
}

.contact-info-wrapper {
  display: flex;
  gap: 5.21vw;
  align-items: flex-start;
  width: 79.17vw;
}

.contact-map {
  width: 35.78vw;
}

.map-image {
  width: 100%;
  height: 23.96vw;
  border-radius: 0.52vw;
  overflow: hidden;
}

.map-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details {
  width: 38.18vw;
  display: flex;
  flex-direction: column;
  gap: 2.08vw;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 1.82vw;
}

.company-header {
  display: flex;
  flex-direction: column;
  gap: 2.08vw;
}

.company-title-section {
  display: flex;
  flex-direction: column;
  gap: 1.56vw;
}

.company-name {
  font-size: 1.88vw;
  font-weight: 600;
  line-height: 1.4;
  color: #000000;
}

.divider-line {
  width: 38.18vw;
  height: 0;
  border-bottom: 0.052vw solid rgba(0, 0, 0, 0.2);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.04vw;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.04vw;
}

.contact-icon {
  width: 1.35vw;
  height: 1.35vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 100%;
  height: auto;
}

.contact-text {
  font-size: 1.04vw;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.qr-code {
  display: flex;
  align-items: center;
  gap: 1.04vw;
  margin-top: 1.56vw;
}

.qr-image {
  width: 7.71vw;
  height: 7.71vw;
  border-radius: 0.52vw;
  overflow: hidden;
}

.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== 咨询表单区域 ==================== */
.consultation-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.03vw;
  width: 100%;
}

.consultation-wrapper {
  width: 79.22vw;
  display: flex;
  flex-direction: column;
  gap: 5.63vw;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.94vw;
}

.section-line {
  width: 5.21vw;
  height: 0;
  border-bottom: 0.052vw solid rgba(0, 0, 0, 0.2);
}

.section-line.long {
  width: 51.03vw;
}

.section-title {
  font-family: "PingFang SC", sans-serif;
  font-size: 1.67vw;
  font-weight: 500;
  line-height: 1.4;
  color: #000000;
  text-transform: capitalize;
}

.form-container {
  display: flex;
  gap: 5.21vw;
  align-items: flex-start;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.04vw;
  width: 34.38vw;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.73vw;
}

.form-label {
  font-size: 1.25vw;
  font-weight: 400;
  line-height: 1.4;
  color: #000000;
}

.form-input {
  width: 100%;
  height: 3.13vw;
  padding: 0.83vw 1.56vw;
  border: 0.052vw solid rgba(0, 0, 0, 0.2);
  border-radius: 0.52vw;
  font-size: 1.04vw;
  font-weight: 400;
  line-height: 1.4;
  color: #000000;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-input::placeholder {
  color: #999999;
}

.form-input:focus {
  border-color: #d038ff;
}

/* 错误提示样式 */
.error-message {
  display: none;
  color: #dc3545;
  font-size: 0.7292vw;
  margin-top: 0.26vw;
  font-weight: 400;
}

.form-input.error {
  border-color: #dc3545;
}

.form-input.error:focus {
  border-color: #dc3545;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 0.73vw;
  width: 40.38vw;
}

.form-header {
  display: flex;
  align-items: stretch;
  gap: 0.52vw;
}

.form-title {
  font-size: 1.25vw;
  font-weight: 400;
  line-height: 1.4;
  color: #000000;
}

.message-box {
  width: 100%;
  height: 18.91vw;
  border: 0.052vw solid rgba(0, 0, 0, 0.2);
  border-radius: 0.52vw;
  padding: 1.04vw 1.56vw;
  font-size: 1.04vw;
  font-weight: 400;
  line-height: 1.4;
  color: #000000;
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  font-family: "PingFang SC", sans-serif;
  cursor: pointer;
}

.message-box::placeholder {
  color: #999999;
}

.message-box:focus {
  border-color: #d038ff;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52vw 2.08vw;
  border: 0.104vw solid transparent;
  border-radius: 5.21vw;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #d038ff 0%, #462dff 100%) border-box;
  color: #000;
  font-size: 1.042vw;
  font-weight: 500;
  line-height: 1.8;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 2.031vw;
}

.submit-btn:hover {
  transform: translateY(-0.104vw);
  box-shadow: 0 0.26vw 1.042vw rgba(208, 56, 255, 0.3);
  background: linear-gradient(90deg, #d038ff 0%, #462dff 100%);
  color: #fff;
  cursor: pointer;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1440px) {
  .contact-section {
    padding: 4.17vw 5.21vw;
  }

  .consultation-wrapper {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .hero {
    height: 31.25vw;
  }

  .hero-title {
    font-size: 1.88vw;
  }

  .contact-section {
    padding: 3.13vw 2.6vw;
  }

  .contact-main,
  .contact-info-wrapper {
    flex-direction: column;
    gap: 2.6vw;
  }

  .contact-map,
  .contact-details {
    width: 100%;
  }

  .divider-line {
    width: 100%;
  }

  .consultation-wrapper {
    height: auto;
  }

  .section-header {
    margin-bottom: 2.08vw;
  }

  .form-container {
    flex-direction: column;
    gap: 2.08vw;
  }

  .form-section,
  .form-fields {
    width: 100%;
  }

  .form-input {
    width: 100%;
  }

  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 20.83vw;
  }

  .hero-content {
    left: 1.04vw;
  }

  .hero-title {
    font-size: 1.46vw;
  }

  .contact-section {
    padding: 2.08vw 1.04vw;
  }

  .company-name {
    font-size: 1.46vw;
  }

  .section-title {
    font-size: 1.25vw;
  }

  .contact-text {
    font-size: 0.83vw;
  }

  .form-label,
  .form-title {
    font-size: 1.04vw;
  }

  .form-input {
    font-size: 0.83vw;
    height: 2.6vw;
    padding: 0.63vw 1.04vw;
  }

  .message-box {
    height: 10.42vw;
  }

  .section-line {
    display: none;
  }

  .section-header {
    justify-content: center;
  }
}
