/**
 * 区域 10：页脚 (Site Footer - 目标设计稿 1:1 精确重构)
 * 结构：浮起浅灰圆角卡片 (#EDEDED, 40px 上圆角) + 100% 满铺深绿版权条 (#0F7A5B)
 */

.site-footer {
  width: 100%;
  background-color: #ffffff;
  position: relative;
}

/* ==========================================================================
   1. 浮起灰色圆角大卡片 (.footer-card)
   ========================================================================== */
.footer-card {
  max-width: 1860px;
  margin: 0 auto;
  background-color: #EDEDED;
  border-radius: 40px 40px 0 0;
  box-sizing: border-box;
}

.footer-card-inner {
  max-width: 1750px;
  margin: 0 auto;
  padding: 0 85px;
  box-sizing: border-box;
}

/* 顶部 CTA 行 */
.footer-cta {
  padding-top: 110px;
  padding-bottom: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-cta-title {
  font-size: 48px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}

.footer-cta-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: #333333;
  letter-spacing: 0.05em;
  margin-top: 44px;
  margin-bottom: 0;
  text-transform: uppercase;
}

/* "联系我们 GO" 按钮 */
.btn-contact-capsule {
  width: 440px;
  height: 72px;
  border-radius: 999px;
  background-color: #D9D9D9;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 0 36px;
  box-sizing: border-box;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact-capsule:hover {
  background-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.capsule-label {
  font-size: 19px;
  font-weight: 500;
  color: #111111;
  letter-spacing: 0.25em;
}

.capsule-go {
  width: 165px;
  height: 58px;
  border-radius: 999px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-contact-capsule:hover .capsule-go {
  transform: scale(1.04);
  background-color: #1a1a1a;
}


/* 内容区域内的 1px 细线 (#C9C9C9) */
.footer-divider {
  border-bottom: 1px solid #C9C9C9;
  margin-bottom: 60px;
}


/* ==========================================================================
   2. 6 列导航与信息网格 (.footer-grid)
   ========================================================================== */
.footer-grid {
  display: grid;
  /* 最后一列用 minmax(0,1fr)：裸 1fr 的最小尺寸是 min-content，
     联系块内容会把轨道撑破容器，造成 1440 档全站横向溢出 +144px */
  grid-template-columns: 270px 150px 150px 150px 150px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 90px;
  box-sizing: border-box;
}

/* 列 1 (品牌栏) */
.footer-col--brand {
  display: flex;
  flex-direction: column;
}

.footer-logo img {
  width: 245px;
  height: auto;
  display: block;
}

.footer-brand-tagline {
  font-size: 15px;
  color: #111111;
  margin-top: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.footer-brand-tagline .bold {
  font-weight: 700;
}

.footer-brand-subdesc {
  font-size: 16px;
  line-height: 1.9;
  color: #333333;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 90px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0E7A5F;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* 只在真实链接上给可点反馈；暂无账号 URL 的 span 是状态标记，不做悬停诱导 */
a.social-icon:hover {
  background-color: #0b634d;
  transform: translateY(-2px);
}

span.social-icon {
  cursor: default;
}

/* 列 2~5 (导航列) */
.footer-col__title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 24px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li.link-spacing-lg {
  margin-top: 14px;
}

.footer-links a {
  font-size: 15px;
  font-weight: 400;
  color: #333333;
  line-height: 2.2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0E7A5F;
}

/* 列 6 (联系我们) */
.footer-col--contact {
  display: flex;
  flex-direction: column;
}

.footer-contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap; /* 空间不足时地图卡换行，而不是把联系列撑破容器或被压扁 */
  min-width: 0;
}

.footer-contact-details {
  flex: 1 1 auto;
  min-width: 320px;
}

.contact-line {
  font-size: 15px;
  font-weight: 400;
  color: #333333;
  line-height: 2.1;
  margin: 0 0 4px 0;
}

/* 电话/邮箱已改为 tel:/mailto: 真链接，给出可见的可点提示 */
.contact-line a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-line a:hover {
  color: var(--color-primary-dark);
}

.wa-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.wa-label {
  font-size: 15px;
  font-weight: 400;
  color: #333333;
}

.wa-qr-box {
  width: 72px;
  height: 72px;
  background-color: #333333;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 地图卡片 */
.footer-map-card {
  width: 200px;
  height: 172px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  flex-shrink: 0; /* 保持卡片形状，空间不足由 wrapper 的 flex-wrap 换行解决 */
  margin-left: auto;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   3. 底部版权条 (.footer-bottom-bar) —— 100% 满铺
   ========================================================================== */
.footer-bottom-bar {
  width: 100%;
  background-color: #0F7A5B;
  height: 88px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.footer-bottom-inner {
  max-width: 1750px;
  width: 100%;
  margin: 0 auto;
  padding: 0 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  color: #FFFFFF;
  font-size: 16px;
}

.copyright-text {
  color: #FFFFFF;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.legal-links a {
  color: #FFFFFF;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.legal-links a:hover {
  opacity: 0.85;
}


/* ==========================================================================
   4. 响应式适配 (Responsive Adaptation)
   ========================================================================== */
@media (max-width: 1599px) {
  .footer-card-inner,
  .footer-bottom-inner {
    padding: 0 40px;
  }

  .footer-grid {
    grid-template-columns: 260px 160px 160px 160px 160px minmax(0, 1fr);
  }
}

@media (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .social-links {
    margin-top: 40px;
  }

  .footer-cta-title {
    font-size: 38px;
  }

  .btn-contact-capsule {
    width: 380px;
    height: 64px;
    padding-left: 24px;
  }

  .capsule-go {
    width: 140px;
    height: 52px;
    font-size: 18px;
  }
}

@media (max-width: 1023px) {
  .footer-card {
    border-radius: 24px 24px 0 0;
    margin: 0 12px;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .footer-cta-subtitle {
    margin-top: 20px;
  }

  .btn-contact-capsule {
    width: 100%;
    max-width: 440px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-col--contact {
    grid-column: span 2;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: center;
  }

  .footer-bottom-bar {
    height: auto;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col--contact {
    grid-column: span 1;
  }

  .footer-contact-wrapper {
    flex-direction: column;
  }

  .footer-map-card {
    width: 100%;
    margin-left: 0;
    margin-top: 16px;
  }
}

/* 修复：原文件此处遗留一段缺少 @media 头的残缺规则，补回容器使括号配平 */
@media (max-width: 480px) {
  .footer-contact-wrapper {
    flex-direction: column;
  }

  .footer-map-card {
    width: 100%;
    height: 120px;
  }

  .footer-bottom-bar {
    padding: 16px 20px;
    font-size: 12px;
  }
}

/* 交互提示词一·10：悬停联系软件图标，原地旋转一周 */
.wa-qr-box svg { transition: transform 0.6s ease; }
.wa-qr-box:hover svg { transform: rotate(360deg); }

@media (prefers-reduced-motion: reduce) {
  .wa-qr-box svg { transition: none; }
  .wa-qr-box:hover svg { transform: none; }
}

