/* 联系我们页面样式 */

/* 页面标题 */
.page-title {
  background-color: var(--light-color);
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid #eee;
  display: none;
}

.page-title h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: var(--primary-color);
  transition: all 0.3s;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #999;
}

.breadcrumb .current {
  color: var(--dark-color);
}

/* 全宽Banner样式已移至styles.css */

/* 联系方式与表单区域 */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 1rem;
}

/* 左侧联系方式 */
.contact-info-wrapper {
  background-color: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-desc {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
}

.info-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(0, 116, 217, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.info-content p {
  color: #666;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.social-connect h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 116, 217, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* 右侧联系表单 */
.contact-form-wrapper {
  background-color: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
}

.form-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.form-desc {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group .required {
  color: #e74c3c;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  min-height: 150px;
  resize: vertical;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 116, 217, 0.2);
}

.file-upload {
  padding: 0.7rem 0;
}

.file-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.3rem;
}

/* 验证码样式 - 全宽布局优化 */
.captcha-group .captcha-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 400px;
}

.captcha-group .captcha-container input {
  width: 250px;
  flex-shrink: 0;
}

/* 验证码错误提示样式 */
.captcha-group .invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.captcha-group .invalid-feedback.d-block {
  display: block;
}

.captcha-img {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.captcha-img img {
  border-radius: 4px;
  border: 1px solid #ddd;
  height: 40px;
  width: auto;
}

.refresh-captcha {
  position: absolute;
  right: -35px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  padding: 5px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-captcha:hover {
  color: #005bb5;
  transform: translateY(-50%) rotate(180deg);
}

.form-submit {
  grid-column: span 2;
  margin-top: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.submit-btn:hover {
  background-color: #005bb5;
}

/* 地图区域 */
.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-wrapper {
  width: 100%;
  height: 450px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-info {
  background: #fff;
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.location-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.location-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 116, 217, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.location-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.location-text p {
  margin-bottom: 0.5rem;
  color: #666;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  gap: 0.5rem;
  transition: all 0.3s;
}

.directions-link:hover {
  color: #005bb5;
  text-decoration: underline;
}

/* 常见问题简介 */
.faq-intro-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.faq-intro-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.faq-intro-text p {
  margin-bottom: 2rem;
  color: #666;
  line-height: 1.7;
}

.faq-intro-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  width: 100%;
}

#myMap img{
  width: auto;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-submit {
    grid-column: span 1;
  }

  .faq-intro-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq-intro-text {
    order: 1;
  }

  .faq-intro-image {
    order: 2;
  }
}

@media (max-width: 768px) {

  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .contact-title,
  .form-title {
    font-size: 1.5rem;
  }

  .location-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: center;
  }

  .location-icon {
    margin: 0 auto;
  }
}

/* 移动端验证码样式调整 */
@media (max-width: 576px) {
  .contact-info-item {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .captcha-group .captcha-container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .captcha-group .captcha-container input {
    width: 100% !important;
  }
  
  .captcha-img {
    width: 100%;
    justify-content: flex-start;
  }
  
  .refresh-captcha {
    right: -35px;
  }
}

