﻿/* ContactsType页面样式 - 与首页风格保持一致 */

/* 基础变量定义（与index.html保持一致） */
:root {
  --primary-color: #0053b1;
  --secondary-color: #00acc2;
  --accent-color: #95dc09;
  --text-dark: #333;
  --text-light: #666;
  --text-white: #fff;
  --bg-light: #f8f9fa;
  --bg-section: #fff;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

.logo {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
}

/* 公司地址和联系方式样式 */
.contact-info1 {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  margin-bottom: 50px;
  background-color: var(--bg-section);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border-radius: var(--border-radius);
}

.contact-info1 h3 {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  font-weight: 600;
}

.contact-info1 h3 i {
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 22px;
}

.info-item {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}

.info-icon:hover {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

/* 联系我们部分 */
.contact-section {
  margin-top: 30px;
  padding: 40px 5%;
  background-color: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.section-title h2 i {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 2.2rem;
}

.section-title p {
  margin: 10px 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

.info-text h4 {
  font-size: 18px;
  margin-bottom: 5px;
  text-align: left;
  color: var(--text-dark);
  font-weight: 600;
}

.info-text p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.contact-form {
  padding: 30px;
  background-color: var(--bg-section);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  font-weight: 600;
}

.contact-form h3 i {
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 22px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group label i {
  margin-right: 8px;
  color: var(--primary-color);
  font-size: 16px;
  width: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 83, 177, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.required {
  color: #ff4d4f;
  margin-left: 4px;
}

.submit-btn {
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.submit-btn:hover {
  background-color: #003d82;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 83, 177, 0.3);
}

.submit-btn i {
  font-size: 14px;
}

/* 地图区域 */
.map-section {
  padding: 60px 5%;
  background-color: var(--bg-section);
}

#map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 1200px;
  margin: 0 auto;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .contact-section {
    padding: 30px 3%;
  }

  .contact-info1 {
    padding: 20px;
    margin-bottom: 30px;
  }

  .contact-info1 h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .contact-info1 h3 i {
    font-size: 18px;
    margin-right: 10px;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .contact-form h3 i {
    font-size: 18px;
    margin-right: 10px;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title h2 i {
    font-size: 1.8rem;
    margin-right: 12px;
  }

  .map-section {
    padding: 40px 3%;
  }

  #map-container {
    height: 300px;
  }
}

@media screen and (max-width: 480px) {
  .contact-section {
    padding: 20px 2%;
  }

  .contact-info1 {
    padding: 15px;
  }

  .contact-form {
    padding: 15px;
  }

  .contact-info1 h3,
  .contact-form h3 {
    font-size: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .contact-info1 h3 i,
  .contact-form h3 i {
    margin-right: 0;
  }

  .info-item {
    gap: 12px;
  }

  .info-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .section-title h2 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 10px;
  }

  .section-title h2 i {
    margin-right: 0;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
  }
}
