@charset "utf-8";
/**
 * contact-new.css - 联系我们页极简风格
 * 设计理念: 与首页/产品/新闻页统一 - 极简留白 + 大字体轻量化 + 克制微交互
 */

/* ========== 0. 防溢出基础 ========== */
html {
  overflow-x: hidden;
}

/* ========== 1. Page Banner - 页面横幅 ========== */
.page-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #f8f9fa;
}
.page-banner__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  text-align: center;
  padding: 20px;
}
.page-banner__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.page-banner__subtitle {
  font-size: 15px;
  font-weight: 300;
  opacity: 0.9;
  margin: 0;
}

/* ========== 2. Breadcrumb - 面包屑 ========== */
.breadcrumb-nav {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 18px 0;
  font-size: 13px;
  color: #999;
}
.breadcrumb-nav .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb-nav .home-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  margin-right: 2px;
}
.breadcrumb-nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumb-nav a:hover {
  color: var(--color-primary, #EF3B1B);
}
.breadcrumb-nav .separator {
  color: #ccc;
  font-size: 12px;
}
.breadcrumb-nav .current {
  color: #333;
}

/* ========== 3. Contact Section ========== */
.contact-section {
  background: #fff;
  padding: 70px 0;
}

/* ========== 4. Tab Navigation ========== */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 15px;
  color: #666;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn:hover {
  background: #f0f0f0;
}
.tab-btn.active {
  color: #fff;
  background: var(--color-primary, #EF3B1B);
}
.tab-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ========== 5. Tab Content ========== */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ========== 6. Company Info Tab ========== */
.company-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background: #f8f9fa;
}
.info-card__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #EF3B1B);
  border-radius: 50%;
}
.info-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}
.info-card__content {
  flex: 1;
}
.info-card__label {
  font-size: 13px;
  color: #888;
  margin: 0 0 8px;
}
.info-card__value {
  font-size: 16px;
  color: #333;
  margin: 0;
  line-height: 1.6;
}
.info-card__value a {
  color: inherit;
  text-decoration: none;
}
.info-card__value a:hover {
  color: var(--color-primary, #EF3B1B);
}

/* Map */
.map-container {
  position: relative;
  height: 400px;
  background: #f8f9fa;
}
#amap {
  width: 100%;
  height: 100%;
}

/* AMap InfoWindow 样式 */
.amap-info-content {
  padding: 12px 15px;
  min-width: 200px;
}
.amap-info-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.amap-info-address {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}
.amap-info-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff5f5;
  border: 1px solid #ffe0e0;
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-primary, #EF3B1B);
  cursor: pointer;
  transition: all 0.2s ease;
}
.amap-info-nav:hover {
  background: #ffecec;
}

/* 地图选择弹窗 (移动端) */
.map-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.map-modal.show {
  opacity: 1;
  visibility: visible;
}
.map-modal__content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.map-modal.show .map-modal__content {
  transform: translateY(0);
}
.map-modal__content h4 {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin: 0 0 20px;
}
.map-modal__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.map-modal__list button {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 15px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}
.map-modal__list button:hover {
  background: #f5f5f5;
}
.map-modal__list button:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}
.map-modal__cancel {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  border: none;
  background: #f5f5f5;
  font-size: 15px;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.map-modal__cancel:hover {
  background: #eee;
}

/* 地图图标 */
.map-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}
.map-icon.amap {
  background: linear-gradient(135deg, #0091ff 0%, #006bea 100%);
}
.map-icon.baidu {
  background: linear-gradient(135deg, #3385ff 0%, #2b6cb0 100%);
}
.map-icon.tencent {
  background: linear-gradient(135deg, #07c160 0%, #059948 100%);
}

/* ========== 7. Contact People Tab ========== */
.contact-header {
  text-align: center;
  margin-bottom: 40px;
}
.contact-header h3 {
  font-size: 24px;
  font-weight: 300;
  color: #1a1a1a;
  margin: 0 0 10px;
}
.contact-header p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.person-card {
  background: #f8f9fa;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
}
.person-card:hover {
  background: #fff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.person-card__name {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin: 0 0 20px;
}
.person-card__qrcode {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.person-card__qrcode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card__qrcode-tip {
  font-size: 12px;
  color: #888;
  margin: 0 0 20px;
}

/* 响应式提示文字 - 桌面端显示扫描，移动端/平板显示点击复制 */
.tip-desktop { display: inline; }
.tip-mobile { display: none; }

@media (max-width: 1024px) {
  .tip-desktop { display: none; }
  .tip-mobile { display: inline; }

  .person-card__qrcode {
    cursor: pointer;
  }

  .person-card__qrcode:active {
    transform: scale(0.98);
  }
}
.person-card__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.person-card__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}
.person-card__item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.person-card__item a:hover {
  color: var(--color-primary, #EF3B1B);
}
.person-card__item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary, #EF3B1B);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ========== 8. Toast ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========== 9. Responsive ========== */
@media (max-width: 1199.98px) {
  .page-banner {
    height: 280px;
  }
  .contact-section {
    padding: 60px 0;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .page-banner {
    height: 240px;
  }
  .company-info {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 350px;
  }
}

@media (max-width: 767.98px) {
  .page-banner {
    height: 200px;
  }
  .page-banner__title {
    font-size: 1.5rem;
  }
  .breadcrumb-nav {
    padding: 12px 0;
    font-size: 12px;
  }
  .contact-section {
    padding: 50px 0;
  }
  .tab-nav {
    flex-direction: column;
    margin-bottom: 40px;
  }
  .tab-btn {
    justify-content: center;
  }
  .info-card {
    padding: 25px 20px;
  }
  .info-card__value {
    font-size: 14px;
  }
  .map-container {
    height: 300px;
  }
  .contact-header {
    margin-bottom: 30px;
  }
  .contact-header h3 {
    font-size: 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .person-card {
    padding: 25px 15px;
  }
  .person-card__name {
    font-size: 16px;
  }
  .person-card__qrcode {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 575.98px) {
  .page-banner {
    height: 160px;
  }
  .page-banner__title {
    font-size: 1.25rem;
  }
  .page-banner__subtitle {
    font-size: 13px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
