/* ============================================================
   官网底部导航共用组件样式（Figma 节点 299:6630，1920 基准）
   配色：底 #fff + rgba(196,207,218,.1) 叠加、正文 #203746、
        弱化文字 rgba(32,55,70,.5)、分隔线/标银 #c4cfda
   结构：.wuling-footer-main（logo + 5 栏目 / 邮箱 + 社交）
        + .wuling-footer-bar（版权 / 法律链接 / 返回顶部）

   兼容性约定（2026-09-07 重写，IE11 / 旧版 Safari 可用）：
   · 不用 flex 布局承载 max-width 容器（IE11 忽略 flex 容器上的
     max-width，会导致底栏拉满全宽）；布局改用 float + inline-block。
   · 不使用 flex gap（IE11 与 Safari <14.1 不支持），间距一律用
     相邻兄弟 margin 实现。
   · 不使用 flex 简写中的 calc()（IE11 直接丢弃整条 flex 声明）。
   · 分栏用 inline-block + font-size:0 消除空白节点，天然顶部对齐、
     不会出现 float 高度不齐的“卡位”问题。
   ============================================================ */

.wuling-site-footer {
  font-family: var(--wuling-font-family);
  background-image: linear-gradient(rgba(196, 207, 218, 0.1), rgba(196, 207, 218, 0.1)), linear-gradient(#ffffff, #ffffff);
  color: #203746;
}

.wuling-site-footer,
.wuling-site-footer * {
  box-sizing: border-box;
}

.wuling-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wuling-site-footer h3,
.wuling-site-footer p {
  margin: 0;
}

/* float 容器清除浮动（IE8+ 可用的 clearfix） */
.wuling-footer-top::after,
.wuling-footer-cols::after,
.wuling-footer-mid::after,
.wuling-footer-bar-inner::after {
  content: "";
  display: table;
  clear: both;
}

.wuling-footer-main {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 0;
}

/* ----- 上部：logo + 栏目（float 左右分布；宽度按 1440 设计基准换算为百分比） ----- */
.wuling-footer-logo {
  float: left;
  display: inline-block;
  width: 14.2%; /* 204.75 / 1440 */
  min-width: 150px;
}

.wuling-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.wuling-footer-cols {
  float: right;
  width: 68.7%; /* (178.66x5 + 24x4) / 1440 */
  max-width: 100%;
  font-size: 0; /* 消除 inline-block 之间的空白 */
}

.wuling-footer-col {
  display: inline-block;
  vertical-align: top;
  width: 18%; /* 178.66 / 989.3 */
  margin-left: 2.5%; /* 24 / 989.3，5x18% + 4x2.5% = 100% */
  font-size: 14px; /* 恢复正文字号 */
  text-align: left;
}

.wuling-footer-col:first-child {
  margin-left: 0;
}

.wuling-footer-heading {
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(32, 55, 70, 0.5);
  white-space: nowrap;
}

/* 设计稿 294:6150：列表与标题间距 pt-24。
   注意必须压过上方 .wuling-site-footer ul 的 padding:0 重置（提高优先级） */
.wuling-site-footer .wuling-footer-list {
  padding-top: 24px;
}

.wuling-footer-list > li + li {
  margin-top: 12px;
}

/* 设计稿 294:6150：14px / leading-normal / tracking 0.14px */
.wuling-footer-link {
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.14px;
  color: #203746;
  text-decoration: none;
  white-space: nowrap;
}

.wuling-footer-link:hover {
  color: #203746;
  text-decoration: underline;
}

/* ----- 中部：邮箱 + 社交 -----
   设计稿 294:6196：items-end——邮箱文字底部与社交图标底部对齐。
   用 display:table + table-cell(vertical-align:bottom) 实现，IE9+ 安全 */
.wuling-footer-mid {
  display: table;
  width: 100%;
  margin-top: 40px;
}

.wuling-footer-email {
  display: table-cell;
  vertical-align: bottom;
  text-align: left;
  font-size: 16px;
  letter-spacing: 0.16px;
  color: rgba(32, 55, 70, 0.5);
}

.wuling-footer-email a {
  color: inherit;
  text-decoration: underline;
}

.wuling-footer-follow {
  display: table-cell;
  vertical-align: bottom;
  text-align: left;
  width: 19%; /* 273 / 1440 */
  min-width: 216px; /* 5 枚图标的最小可用宽度 */
}

.wuling-footer-follow-heading {
  color: #c4cfda;
}

/* 社交图标行：无 max-width、无 gap，flex space-between 在 IE11 可用 */
.wuling-footer-socials {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.wuling-footer-social {
  display: inline-block;
  width: 13.2%; /* 36 / 273 */
  max-width: 36px;
}

.wuling-footer-social img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- 底栏：版权 / 法律链接 / 返回顶部 -----
   注意：.wuling-footer-bar-inner 不能用 flex（IE11 会忽略 max-width），
   用 float 左右 + 中间 inline-block 居中实现 space-between 效果 */
.wuling-footer-bar {
  border-top: 1px solid #c4cfda;
}

.wuling-footer-bar-inner {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.14px;
  color: rgba(32, 55, 70, 0.5);
  text-align: center;
}

.wuling-footer-copyright {
  float: left;
  max-width: 40%;
  text-align: left;
}

.wuling-footer-legal {
  display: inline-block;
  vertical-align: top;
}

.wuling-footer-legal-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.wuling-footer-legal-link + .wuling-footer-legal-link {
  margin-left: 24px;
}

.wuling-footer-legal-link:hover {
  color: #203746;
}

.wuling-footer-backtop {
  float: right;
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.wuling-footer-backtop img {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.wuling-footer-backtop:hover {
  color: #203746;
}

/* ===== 响应式 ===== */
@media (min-width: 576px) {
  .wuling-footer-main,
  .wuling-footer-bar-inner {
    width: calc(100% - 64px);
  }
}

@media (min-width: 768px) {
  .wuling-footer-main,
  .wuling-footer-bar-inner {
    width: calc(100% - 80px);
  }
}

@media (min-width: 1280px) {
  .wuling-footer-main,
  .wuling-footer-bar-inner {
    width: calc(100% - 128px);
  }
}

@media (min-width: 1440px) {
  .wuling-footer-main,
  .wuling-footer-bar-inner {
    width: calc(100% - 160px);
  }
}

/* ≤1343：上区改为上下堆叠，栏目三列等宽（inline-block 百分比宽度） */
@media (max-width: 1343.98px) {
  .wuling-footer-main {
    padding-right: 0;
    padding-left: 0;
  }

  .wuling-footer-logo,
  .wuling-footer-cols {
    float: none;
  }

  .wuling-footer-cols {
    margin-top: 48px;
    width: 100%;
  }

  .wuling-footer-col {
    width: 33.3333%;
    margin-left: 0;
    margin-bottom: 40px;
    padding-right: 24px;
  }
}

/* ≤767：栏目两列，邮箱/社交与底栏全部堆叠居中 */
@media (max-width: 767.98px) {
  .wuling-footer-main {
    width: calc(100% - 40px);
    padding: 48px 0 40px;
  }

  .wuling-footer-col {
    width: 50%;
  }

  /* 中区的 table/table-cell 只在桌面档生效，移动端退回普通块级堆叠 */
  .wuling-footer-mid {
    display: block;
  }

  .wuling-footer-email,
  .wuling-footer-follow {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .wuling-footer-email {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .wuling-footer-follow {
    max-width: 273px;
    margin-top: 32px;
  }

  .wuling-footer-bar-inner {
    width: calc(100% - 40px);
    text-align: center;
  }

  .wuling-footer-copyright,
  .wuling-footer-backtop {
    float: none;
    max-width: 100%;
    text-align: center;
  }

  .wuling-footer-legal {
    display: block;
  }

  .wuling-footer-bar-inner > * + * {
    margin-top: 16px;
  }
}

@media (max-width: 575.98px) {
  .wuling-footer-heading {
    font-size: 14px;
    letter-spacing: 1.8px;
    white-space: normal;
  }

  .wuling-footer-link {
    white-space: normal;
  }

  .wuling-footer-email {
    font-size: 14px;
    word-break: break-all;
  }
}
