#contact {
  position: relative;
  background: rgba(0,32,80,0.2);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.contact-bg {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  pointer-events: none;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1) grayscale(0.1);
}

.contact-content {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#contact-title {
  color: #fff;
  font-size: 4.6em;
  font-weight: 400;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
  line-height: .5;
}

#contact-btn {
  background: #f3c415;
  color: #222;
  font-weight: 500;
  font-size: 1.5em;
  border: none;
  border-radius: 10px;
  padding: 0.4em 1.6em;
  margin: 0 auto;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  transition: background 0.2s, color 0.2s, transform 0.18s;
  position: relative;
  top: -0.2em;
}
#contact-btn:hover {
  background: #ffe066;
  color: #111;
  transform: scale(1.06);
}
.contact-info {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
}

/* ========== PC端 ≥1024px ========== */
#contact {
  min-height: 340px;
}
#contact-title {
  font-size: 4.6em;
}
.contact-content {
  width: 100%;
  max-width: 900px;
}

/* ========== 平板端 768px~1023px ========== */
@media (min-width: 768px) and (max-width: 1023px) {
  #contact {
    min-height: 260px;
  }
  #contact-title {
    font-size: 3em;
  }
  .contact-content {
    max-width: 90vw;
    padding: 0 2em;
  }
  #contact-btn {
    font-size: 1.2em;
    padding: 0.4em 1.2em;
  }
}

/* ========== 手机端 ≤767px ========== */
@media (max-width: 767px) {
  #contact {
    min-height: 180px;
    padding: 0 0.5em;
  }
  #contact-title {
    font-size: 2em;
    line-height: 1.1;
  }
  .contact-content {
    max-width: 100vw;
    padding: 0 0.2em;
  }
  #contact-btn {
    font-size: 1em;
    padding: 0.3em 1em;
    border-radius: 8px;
  }
  .contact-info {
    margin-top: 1em;
    gap: 0.5em;
  }
} 