/* 联系我们页面样式 */

/* Banner样式 */
.contact-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.contact-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 联系信息样式 */
.contact-info {
  padding: 60px 0;
  background-color: #fff;
  min-height: calc(100vh - 400px - 70px - 74px); /* 减去banner高度、header高度和footer高度 */
}

.contact-info-title {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin-bottom: 10px;
}

.contact-info-underline {
  width: 40px;
  height: 3px;
  background-color: #ff8500;
  margin: 0 auto 40px;
}

.contact-companies {
  max-width: 800px;
  margin: 0 auto;
}

.contact-company {
  margin-bottom: 40px;
  padding: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #fafafa;
}

.company-name {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff8500;
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.contact-label {
  font-weight: 500;
  color: #666;
  min-width: 60px;
  flex-shrink: 0;
}

.contact-value {
  color: #333;
  flex: 1;
}

.contact-value a {
  color: #ff8500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value a:hover {
  color: #e67600;
  text-decoration: underline;
}

.contact-general {
  margin-top: 30px;
  padding: 25px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-general .contact-item {
  margin-bottom: 8px;
}

.contact-general .contact-item:last-child {
  margin-bottom: 0;
}

/* 公司位置地图样式 */
.company-map {
  padding: 60px 0;
}

.map-title {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin-bottom: 10px;
}

.map-underline {
  width: 40px;
  height: 3px;
  background-color: #ff8500;
  margin: 0 auto 20px;
}

.map-desc {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

.map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.map-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-pin {
  width: 20px;
  height: 20px;
  background-color: #ff8500;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(255, 133, 0, 0.3);
  position: relative;
}

.marker-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

.marker-label {
  background-color: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: #ff8500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.info-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.info-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
  .contact-banner {
    height: 300px;
  }
  
  .contact-info {
    padding: 40px 0;
    min-height: calc(100vh - 300px - 60px - 74px); /* 调整移动端高度 */
  }
  
  .contact-info-title {
    font-size: 20px;
  }
  
  .contact-company {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .company-name {
    font-size: 18px;
  }
  
  .contact-item {
    flex-direction: column;
    gap: 5px;
  }
  
  .contact-label {
    min-width: auto;
  }

  /* 地图响应式 */
  .company-map {
    padding: 40px 0;
  }
  
  .map-title {
    font-size: 20px;
  }
  
  .map-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .map-placeholder {
    height: 300px;
  }
  
  .map-info-item {
    padding: 15px;
  }
  
  .info-icon {
    width: 35px;
    height: 35px;
  }
  
  .info-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 576px) {
  .contact-banner {
    height: 200px;
  }
  
  .contact-info {
    padding: 30px 0;
    min-height: calc(100vh - 200px - 60px - 74px); /* 调整小屏幕移动端高度 */
  }
  
  .contact-info-title {
    font-size: 18px;
  }
  
  .contact-company {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .company-name {
    font-size: 16px;
  }

  /* 地图响应式 */
  .company-map {
    padding: 30px 0;
  }
  
  .map-title {
    font-size: 18px;
  }
  
  .map-desc {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .map-placeholder {
    height: 250px;
  }
  
  .map-info-item {
    padding: 12px;
    gap: 12px;
  }
  
  .info-icon {
    width: 30px;
    height: 30px;
  }
  
  .info-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .info-content h4 {
    font-size: 14px;
  }
  
  .info-content p {
    font-size: 13px;
  }
} 