/* Contact Us Page Styles */
body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: #333;
  line-height: 1.6;
  overflow: hidden;
  font-family: Alibaba-Xi, Alibaba-Regular, "Alibaba PuHuiTi", "Alibaba-PuHuiTi",
    "Alibaba PuHuiTi 55 Regular", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* 二维码容器样式 */
.qr-code-container {
  margin-left: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.qr-code-img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body * {
  font-family: Alibaba-Xi;
}

.contact-main {
  width: 100%;
  background-image: url("https://oss.allintrip.cn/shanwentou/upfiles/onepage/bannerLink.png");
  background-size: cover;
  background-position: center;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0;
  color: #333;
  position: relative;
}
@media (max-width: 1535px) {
  .contact-main {
    display: flex!important;
    flex-direction: column;
    
  }
}

.contact-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(197, 197, 197, 0.35);
  pointer-events: none;
  z-index: 0;
}

.contact-container {
  display: flex;
  width: 100%;
  /* overflow: hidden; */
  /* position: relative; */
  z-index: 1;
}

.contact-info-section,
.contact-form-section,
.contact-map-section {
  padding: 4rem 8rem;
  width: 100%;
}

.contact-map-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 4rem 4rem 2rem;
}

#map-container {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.title-block {
  margin-bottom: 10rem;
}

.title-block h2 {
  font-size: 2.5rem;
  font-weight: 500;
  color: #fff;
  /* #003366; */
  margin: 0;
}

.title-block .subtitle {
  font-size: 0.9rem;
  color: #fff;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.title-block .subtitle::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #eee;
  /* Dark Teal Color */
  border-radius: 50%;
  margin-right: 0.6rem;
}

.info-content h3 {
  font-size: 1.1rem;
  color: #fff;
  /* #3A5F8A; */
  font-weight: 500;
  margin-bottom: 2rem;
}

.info-content p {
  font-size: 0.9rem;
  line-height: 1.9;
  /* color: #444; */
  color: #fff;
}

.info-content a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.info-content a:hover {
  color: var(--primary-color);
}

.partner-form {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 80%;
}

.form-intro {
  font-size: 0.9rem;
  color: #5a7d9a;
  /* Muted Blue/Gray */
  margin-bottom: 2rem;
  margin-top: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f8f9fa;
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #005a9c;
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  background-color: #005a9c;
  color: #fff;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, transform 0.3s;
}

.submit-btn:hover {
  background-color: #003366;
  transform: translateY(-2px);
}

.submit-btn svg {
  fill: #fff;
  width: 1em;
  height: 1em;
}

/* Responsive Styles */
@media (max-width: 1535px) {
  .contact-info-section,
  .contact-form-section {
    padding: 3rem 4rem;
  }
  .contact-map-section {
    width: 70%;
  }
  

  .title-block {
    margin-bottom: 6rem;
  }

  .title-block h2 {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info-section,
  .contact-form-section,
  .contact-map-section {
    width: 80%;
    padding: 3rem 2rem;
  }

  .contact-info-section {
    border-right: none;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
  }

  #map-container {
    height: 400px;
  }

  .title-block {
    margin-bottom: 4rem;
  }

  .title-block h2 {
    font-size: 2rem !important;
  }

  .partner-form {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  /* 移动端允许滚动 */
  body {
    overflow-y: auto !important;
    height: auto !important;
  }

  .contact-main {
    padding: 80px 15px 40px;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .contact-info-section,
  .contact-form-section,
  .contact-map-section {
    width: 100% !important;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .contact-map-section {
    padding: 2rem 1.5rem;
  }

  #map-container {
    height: 350px;
    width: 100%;
  }

  .title-block {
    margin-bottom: 2.5rem;
  }

  .title-block h2 {
    font-size: 1.8rem !important;
  }

  .title-block .subtitle {
    font-size: 0.85rem;
  }

  .info-content {
    margin-bottom: 1.5rem;
  }

  .info-content h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .info-content p {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
  }

  .qr-code-container {
    margin-top: 1.5rem;
    text-align: center;
  }

  .qr-code-img {
    width: 180px;
    height: 180px;
  }

  .partner-form {
    padding: 1.5rem;
    border-radius: 12px;
    width: 100% !important;
  }

  .form-intro {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    width: 100%;
  }

  .form-group label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
    width: 100%;
  }

  .submit-btn {
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  /* 修复 AOS 在移动端导致元素不可见的问题 */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

@media (max-width: 768px) {
  .contact-main {
    padding: 70px 12px 30px;
  }

  .contact-info-section,
  .contact-form-section,
  .contact-map-section {
    padding: 1.5rem 1.2rem;
  }

  #map-container {
    height: 320px;
    border-radius: 12px;
  }

  .title-block {
    margin-bottom: 2rem;
  }

  .title-block h2 {
    font-size: 1.6rem !important;
  }

  .title-block .subtitle {
    font-size: 0.8rem;
  }

  .info-content h3 {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .info-content p {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 0.6rem;
  }

  .info-content a {
    word-break: break-all;
  }

  .qr-code-container {
    margin-top: 1.5rem;
  }

  .qr-code-img {
    width: 160px;
    height: 160px;
  }

  .partner-form {
    padding: 1.2rem;
    border-radius: 10px;
  }

  .form-intro {
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .form-group label {
    font-size: 0.7rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.6rem 0.7rem;
    font-size: 0.8rem;
  }

  .submit-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .contact-main {
    padding: 70px 10px 25px;
  }

  .contact-info-section,
  .contact-form-section,
  .contact-map-section {
    padding: 1.5rem 1rem;
  }

  #map-container {
    height: 280px;
    border-radius: 10px;
  }

  .title-block {
    margin-bottom: 1.5rem;
  }

  .title-block h2 {
    font-size: 1.5rem !important;
  }

  .title-block .subtitle {
    font-size: 0.75rem;
  }

  .info-content h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .info-content p {
    font-size: 0.75rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
  }

  .qr-code-img {
    width: 150px;
    height: 150px;
  }

  .partner-form {
    padding: 1rem;
    border-radius: 8px;
  }

  .form-intro {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.7rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.6rem 0.7rem;
    font-size: 0.75rem;
  }

  .submit-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .contact-main {
    padding: 70px 8px 20px;
  }

  .contact-info-section,
  .contact-form-section,
  .contact-map-section {
    padding: 1.2rem 0.8rem;
  }

  #map-container {
    height: 250px;
    border-radius: 8px;
  }

  .title-block {
    margin-bottom: 1.2rem;
  }

  .title-block h2 {
    font-size: 1.3rem !important;
  }

  .title-block .subtitle {
    font-size: 0.7rem;
  }

  .info-content h3 {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .info-content p {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  .qr-code-img {
    width: 140px;
    height: 140px;
  }

  .partner-form {
    padding: 1rem;
    border-radius: 8px;
  }

  .form-group input,
  .form-group select {
    padding: 0.5rem 0.6rem;
    font-size: 0.7rem;
  }

  .submit-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}
