/* ========================================
   联系页面 - 标签页切换 + 响应式网格布局
   ======================================== */

:root {
  --contact-bg: #f5f7fb;
  --contact-card-bg: #ffffff;
  --contact-accent: #EF3B1B;
  --contact-accent-hover: #d63418;
  --contact-accent-light: #fef0ed;
  --contact-text: #333333;
  --contact-muted: #79808f;
  --contact-border: #e5e8f0;
  --transition-speed: 0.3s;
}

/* ========================================
   基础容器
   ======================================== */
.webcontact {
  background: #fff;
  padding: 60px 0 80px;
}

.webcontact_infor {
  padding: 0 20px;
}

.webcontactinfor_main {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--contact-card-bg);
  overflow: hidden;
}

/* 顶部横幅图片区 */
.webcontactinfor_img {
  position: relative;
  background: linear-gradient(135deg, #0c6dff 0%, #42b4ff 60%, #99d7ff 100%);
  padding: 48px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  color: #fff;
}

.webcontactinfor_img img.contactimg {
  width: 100%;
}

.contacttext {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.contacttext span {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 600;
}

/* ========================================
   标签页导航
   ======================================== */
.tab-navigation {
  display: flex;
  border-bottom: 2px solid var(--contact-border);
  background: #fff;
  padding: 0 60px;
}

.tab-btn {
  position: relative;
  flex: 0 0 auto;
  padding: 20px 32px;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--contact-muted);
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-btn i {
  font-size: 20px;
}

.tab-btn:hover {
  color: var(--contact-accent);
}

.tab-btn.active {
  color: var(--contact-accent);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--contact-accent);
}

/* ========================================
   标签页内容区
   ======================================== */
.tab-content-wrapper {
  position: relative;
  overflow: hidden;
}

.tab-content {
  display: none;
  padding: 50px 60px 70px;
}

.tab-content.active {
  display: block;
}

/* ========================================
   公司信息标签页（标签1）
   ======================================== */
.company-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.company-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.company-item {
  display: flex !important;
  gap: 18px;
  padding: 20px 0 !important;
  align-items: center;
  border-bottom: 1px solid var(--contact-border);
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.company-item i {
  font-size: 42px;
  color: var(--contact-accent);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-detail span {
  display: block;
  color: var(--contact-muted);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.company-detail p,
.company-detail a {
  margin: 0;
  font-size: 20px;
  color: var(--contact-text);
  font-weight: 600;
  text-decoration: none;
}

.company-detail a:hover {
  color: var(--contact-accent);
}

/* 高德地图 */
.amap_container {
  overflow: hidden;
  min-height: 400px;
  border: 1px solid var(--contact-border);
  box-shadow: none !important;
  border-radius: 0 !important;
  background: none !important;
  position: relative;
  z-index: 1 !important;
}

.amap_container #amap {
  width: 100%;
  height: 100% !important;
  min-height: 400px;
}

.amap_container #amap * {
  z-index: 1 !important;
}

/* ========================================
   联系人标签页（标签2）- 响应式网格卡片
   ======================================== */
.contact-people-wrapper {
  position: relative;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h3 {
  margin: 0;
  font-size: 28px;
  color: var(--contact-text);
  font-weight: 700;
}

.contact-header p {
  margin: 10px 0 0;
  color: var(--contact-muted);
  font-size: 16px;
}

/* 网格布局容器 */
.contact-scroll-container {
  position: relative;
  padding: 20px 0 30px;
}

.contact-person-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.person-card {
  padding: 20px;
  border: 1px solid var(--contact-border);
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.person-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--contact-border);
}

.person-header h4 {
  margin: 0;
  font-size: 22px;
  color: var(--contact-text);
  font-weight: 700;
}

.person-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* 二维码区域 */
.person-qrcode-wrapper {
  text-align: center;
  cursor: pointer;
}

.person-qrcode-wrapper img {
  width: 140px;
  height: 140px;
  border: 2px solid var(--contact-border);
}

.person-qrcode-wrapper p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--contact-muted);
  font-weight: 500;
}

.person-qrcode-wrapper .mobile-text {
  display: none;
}

/* 联系方式列表 */
.person-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--contact-border);
}

.contact-detail-item i {
  font-size: 20px;
  color: var(--contact-accent);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--contact-text);
}

.contact-detail-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-detail-item a:hover {
  color: var(--contact-accent);
  text-decoration: underline;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .tab-content {
    padding: 40px 35px 60px;
  }

  .tab-navigation {
    padding: 0 35px;
  }
}

@media (max-width: 1024px) {
  .contact-person-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .webcontact {
    padding: 30px 0 50px;
  }

  .webcontactinfor_img {
    padding: 32px;
  }

  .tab-navigation {
    padding: 0 20px;
  }

  .tab-btn {
    padding: 16px 20px;
    font-size: 16px;
  }

  .tab-btn i {
    font-size: 18px;
  }

  .tab-content {
    padding: 30px 20px;
  }

  .company-info {
    grid-template-columns: 1fr;
  }

  .contact-person-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .webcontactinfor_img {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contacttext {
    align-items: center;
  }

  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 14px 16px;
    font-size: 15px;
  }

  .tab-btn span {
    display: none;
  }

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

  .person-qrcode-wrapper .desktop-text {
    display: none;
  }

  .person-qrcode-wrapper .mobile-text {
    display: block;
  }

  .contact-header h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .webcontact_infor {
    padding: 0 12px;
  }

  .tab-content {
    padding: 20px 15px;
  }

  .person-card {
    padding: 20px;
  }

  .person-qrcode-wrapper img {
    width: 120px;
    height: 120px;
  }

  .company-item {
    padding: 16px 0;
  }
}
