/* 联系我们页面样式 */
.contact-main {
  background: #fff;
  min-height: 100vh;
  padding-top: 80px;
}

.contact-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
   align-items: stretch; /* 新增：使两侧等高 */
}

/* 左侧联系信息区域 */
.contact-info {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  margin: 0 0 30px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-label {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 18px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.contact-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #000;
}

/* 英文联系信息样式 */
.en-contact-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.en-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.en-block > div {
  font-size: 22px;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.en-block > div:first-child {
  font-weight: 700;
  font-size: 24px;
  color: #000;
  margin-bottom: 8px;
}

.en-block a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.en-block a:hover {
  color: #004499;
  text-decoration: underline;
}

/* 语言切换样式 */
.chinese-content {
  display: flex;
}

.english-content {
  display: none;
}

/* 英文状态下的布局 */
.contact-container.english-mode {
  flex-direction: column;
}

.contact-container.english-mode .contact-info {
  flex: none;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.contact-container.english-mode .contact-map {
  display: none;
}

/* 右侧地图区域 */
.contact-map {
  flex: 1.5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 50px 40px;
}

.map-container {
  width: 100%;
  height: 80%;
  position: relative;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.en-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

/* 地图覆盖层 */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* 地图标记 */
.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
}

/* 地图占位符 */
.map-placeholder {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-content {
  text-align: center;
  color: #333;
  z-index: 3;
  position: relative;
}

.map-marker {
  margin-bottom: 30px;
}

.marker-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

.marker-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.map-locations {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.location-item {
  font-size: 14px;
  color: #666;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.location-item:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .contact-container {
    max-width: 100%;
    padding: 0 20px;
  }

  .contact-info {
    padding: 40px 30px;
  }

  .contact-title {
    font-size: 48px;
    margin-bottom: 40px;
  }

  .contact-details {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    flex: none;
    padding: 40px 30px;
  }

  .contact-map {
    height: 300px;
  }

  .contact-title {
    font-size: 38px;
    margin-bottom: 30px;
  }

  .contact-details {
    gap: 25px;
  }

  .contact-container.english-mode .contact-info {
    max-width: 100%;
  }

  .office-title {
    font-size: 20px;
  }

  .email-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .email-label {
    min-width: auto;
  }

  .map-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .contact-main {
    padding-top: 60px;
  }

  .contact-info {
    padding: 30px 20px;
  }

  .contact-title {
    font-size: 38px;
    margin-bottom: 25px;
  }

  .contact-details {
    gap: 20px;
  }

  .contact-label {
    font-size: 20px;
  }

  .contact-value {
    font-size: 18px;
  }

  .contact-map {
    height: 250px;
  }

  .map-content {
    padding: 15px;
  }

  .map-marker {
    margin-bottom: 20px;
  }

  .marker-icon {
    font-size: 36px;
  }

  .marker-text {
    font-size: 16px;
  }

  .location-item {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .contact-info {
    padding: 25px 15px;
  }

  .contact-title {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .contact-details {
    gap: 15px;
  }

  .contact-label {
    font-size: 19px;
  }

  .contact-value {
    font-size: 17px;
  }

  .contact-map {
    height: 200px;
  }

  .map-content {
    padding: 10px;
  }

  .map-marker {
    margin-bottom: 15px;
  }

  .marker-icon {
    font-size: 32px;
  }

  .marker-text {
    font-size: 14px;
  }

  .location-item {
    font-size: 11px;
    padding: 5px 10px;
  }
}
