/* ============================================================
   footer.css - 页脚全局样式
   所有页面必须引入，全部页面共用
   ============================================================ */

.site-footer {
  background: #E9EEF3;
  color: #AAAAAA;
  padding-top: 0;

}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px 0;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 24px;
}

.footer-col {
  flex: 0 1 auto;
  min-width: 0;
  padding-right: 0;
}

.footer-col-col-home {
  min-width: 80px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 600;
  color: #57575C;
  /*margin-bottom: 20px;*/
  padding-bottom: 18px;
  position: relative;
  line-height: 1;
}

/*.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--color-primary);
}*/

.footer-col a {
  display: block;
  font-size: 14px;
  color: #57575C;
  line-height: 32px;
  transition: color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.footer-col a:hover {
  color: #000000;
}

.footer-contact {
  font-size: 13px;
  line-height: 26px;
  color: #57575C;
}

.footer-contact .contact-label {
  margin-top: 0;
  line-height: 28px;
}

.footer-contact .contact-phone {
  font-size: 14px;
  font-weight: 600;
  color: #57575C;
  letter-spacing: 0.5px;
}

/* 客服/座机：文字与号码同行，整体左对齐 */
.footer-contact .contact-line {
  line-height: 28px;
  white-space: nowrap;
}

.footer-right {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: center;
  margin-top: 32px;
}

.footer-right .qr-code-wrap {
  width: 120px;
  height: 120px;
  background: #FFFFFF;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}

.footer-right .qr-code-wrap img {
  width: 100%;
  height: 100%;
}

.footer-right .qr-text {
  font-size: 13px;
  color: #57575C;
  margin-top: 10px;
  line-height: 1;
  position: relative;
  left: -4px
}

/* 桌面端：服务热线文字与二维码左边缘对齐；移动端仍按下方规则居中 */
@media (min-width: 1025px) {
  .footer-col-col-about .footer-right {
    margin-left: 0 !important;
  }
}

/* --- 友情链接 + 地址行 --- */
.footer-info-row {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 8px 20px;
  border-top: 1px solid #93959D;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #57575C;
}

.footer-info-row a {
  color: #57575C;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.footer-info-row a:hover {
  color: #FFFFFF;
}

/* --- 版权备案栏 --- */
.footer-bottom {
  background: #57575C;
  padding: 0;
  margin-top: 0;
  border-top: none;
}

.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.footer-bottom-inner .copyright {
  color: #FFFFFF;
}

.footer-bottom-inner a {
  color: #FFFFFF;
  text-decoration: underline;
  transition: opacity var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-bottom-inner a:hover {
  opacity: 0.8;
}

.footer-bottom-inner .police-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* --- 列宽微调：产品中心列与右侧其他列视觉对齐（100px） --- */
.footer-col-col-product {

  max-width: 222px;
}

/* ============================================================
   产品中心列：二级标题 + 三级子菜单（footer-col-col-product）
   - 三级菜单默认收起，展开/收起由全局 JS 控制（桌面 hover / 移动端 click）
   - height + opacity 柔和过渡，无布局抖动
   ============================================================ */

.footer-col-sub {
  position: relative;
}

.footer-col-sub>.footer-col-l3 {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.35s ease, opacity 0.3s ease;
}

.footer-col-sub.is-open>.footer-col-l3 {
  opacity: 1;
}

.footer-col-l3 a {
  display: block;
  font-size: 14px;
  line-height: 26px;
  color: #57575C;
  text-decoration: none;
  white-space: normal;
  transition: color var(--transition-fast);
}

.footer-col-l3 a:hover {
  color: #000000;
}

.footer-col-col-solution {
  min-width: 120px;
}

.footer-col-col-agent {
  min-width: 150px;
}

.footer-col-col-case {
  min-width: 130px;
}

.footer-col-col-info {
  min-width: 100px;
}

.footer-col-col-about {
  min-width: 130px;
}

/* Agent物流智能体 / 资讯/资源中心 标题不折行（手机端 ≤1024px 由下方媒体查询还原） */
.footer-col-title {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .footer-col-title {
    white-space: normal;
  }
}

/* --- 响应式 --- */
/* 1400px 以下：收窄各列 + 缩小间距，避免 1309-1201px 区间"关于我们"整列换行 */
@media (max-width: 1400px) {
  .footer-columns {
    gap: 24px;
  }

  .footer-col-col-home {
    min-width: 56px;
  }

  .footer-col-col-product {
    max-width: 170px;
  }

  .footer-col-col-solution {
    min-width: 84px;
  }

  .footer-col-col-agent {
    min-width: 130px;
  }

  .footer-col-col-case {
    min-width: 84px;
  }

  .footer-col-col-info {
    min-width: 106px;
  }

  .footer-col-col-about {
    min-width: 84px;
  }
}

@media (max-width: 1024px) {

  /* ===== 手机/平板模式（≤1024px）：只显示服务热线 + 二维码 ===== */
  /* 上下各留 24px，水平居中 */
  .site-footer {
    padding: 24px 0;
  }

  .footer-inner {
    padding: 0 20px;
  }

  /* 隐藏所有非"关于我们"的列（含导航列及其标题），通用兜底 + 强覆盖 */
  .site-footer .footer-columns>.footer-col:not(.footer-col-col-about) {
    display: none !important;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* 关于我们列（服务热线 + 二维码）居中，隐藏"关于我们"标题 */
  .footer-col-col-about {
    width: 100%;
    text-align: center;
  }

  .footer-col-col-about .footer-col-title {
    display: none !important;
  }

  .footer-col-col-about .footer-contact {
    text-align: center;
  }

  .footer-col-col-about .footer-right {
    margin: 16px auto 0 !important;
    /* 覆盖内联 margin-left:auto，手机端水平居中 */
    width: auto;
    padding: 16px;
  }

  /* 隐藏友情链接 + 地址行 */
  .footer-info-row {
    display: none !important;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================================
   footer 顶部导航 + 搜索框（新增，仅作用于 footer 内部）
   ============================================================ */
.footer-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #93959D;
}

.footer-topnav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-topnav-links a {
  font-size: 16px;
  line-height: 26px;
  color: #57575C;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-topnav-links a:hover {
  color: #000000;
}

.footer-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 415px;
  max-width: 100%;
  height: 42px;
  background: #F5F7FA;
  border: 1px solid #93959D;
  border-radius: 8px;
  overflow: hidden;
  transition: width 0.3s ease;
}

.footer-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 16px;
  font-size: 16px;
  line-height: 26px;
  color: #57575C;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.footer-search-input::placeholder {
  color: #93959D;
}

.footer-search-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

/* 搜索框收缩态：仅保留放大镜按钮 */
.footer-search.is-collapsed {
  width: 42px;
}

.footer-search.is-collapsed .footer-search-input {
  width: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   产品中心列：三级分组静态布局（新增，仅作用于产品中心列）
   ============================================================ */
.footer-col-col-product {
  max-width: none;
}

/* 一级标题与解决方案/资讯资源中心等栏目标题统一（14px/600） */
.footer-col-col-product > .footer-col-title {
  font-size: 16px;
  line-height: 1;
  padding-bottom: 16px;
  margin-bottom: 0;
}

/* 内部列采用与 .footer-columns 一致的弹性布局：space-between + gap 24px，列间距与其他栏目保持一致 */
.footer-col-col-product .pc-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-col-col-product .pc-group {
  flex: 0 1 auto;
  min-width: 0;
}

.footer-col-col-product .pc-subgroups {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-col-col-product .pc-subgroup {
  flex: 0 1 auto;
  min-width: 0;
}

/* 二级/三级标题与普通栏目标题统一（14px/600） */
.footer-col-col-product .pc-title {
  font-size: 14px;
  font-weight: 600;
  color: #57575C;
  line-height: 1;
  white-space: nowrap;
  
}

.footer-col-col-product .pc-title-l2,
.footer-col-col-product .pc-title-l3 {

  margin-bottom: 8px;
    padding-top: 11px;
}

/* ============================================================
   数字化物流 / 数字化供应链 标题下划线（Figma #935:4846）
   - 数字化物流下划线宽 441px，跨旗下两列（多式联运 + 公路物流）
   - 数字化供应链下划线宽 128px
   ============================================================ */
.footer-col-col-product .pc-title-l2 {
  position: relative;
}

.footer-col-col-product:nth-child(1) > .pc-title-l2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 441px;
  height: 1px;
  background: #DBDFE8;
}

.footer-col-col-product:nth-child(3) > .pc-title-l2 {
  margin-bottom: 12px;
}

.footer-col-col-product:nth-child(3) > .pc-title-l2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 128px;
  height: 1px;
  background: #DBDFE8;
}

/* 链接与其他栏目统一（13px/28px 行高） */
.footer-col-col-product .pc-body a {
  display: block;
  font-size: 13px;
  line-height: 28px;
  color: #57575C;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col-col-product .pc-body a:hover {
  color: #000000;
}

@media (max-width: 1024px) {
  /* ≤1024px：隐藏顶部首页/客户案例、搜索框及底部 border-bottom 分隔线 */
  .footer-topnav {
    display: none;
  }
}

/* ============================================================
   footer 栏目标题底色 + 数字化物流分割线（新增，仅作用于 footer）
   ============================================================ */
.footer-columns {
  position: relative;
}

/* 一级栏目标题行通栏底色（产品中心/解决方案/Agent物流智能体/资讯资源中心/关于我们） */
.footer-columns::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #DBDFE8;
}




/* 移动端：隐藏标题底色条 */
@media (max-width: 1024px) {
  .footer-columns::before {
    display: none;
  }
}

/* ============================================================
   资讯/资源中心：二级标题「资讯」「资源」单独设置 padding-bottom
   （不与其他栏目标题关联）
   ============================================================ */
.footer-col-col-info .footer-col-sub > .footer-col-title {
  padding-top: 12px;
}

/* ============================================================
   1025–1159px：仅修复页脚「关于我们」等栏目整列换行，不改字号
   - 六列强制单行（nowrap !important），列可收缩但绝不换行；
   - 内容区放宽至 90% 提供横向空间，列间距下限 4px（平均分配）；
   - 标题单行；联系电话等超长内容允许折行，不撑宽整列。
   ============================================================ */
@media (min-width: 1025px) and (max-width: 1159px) {
  .footer-inner {
    max-width: 90%;
  }

  .footer-columns {
    flex-wrap: nowrap !important;
    gap: 4px;
  }

  .footer-columns > .footer-col {
    flex-shrink: 1;
    min-width: 0;
  }

  .footer-columns .footer-col > .footer-col-title {
    white-space: nowrap;
  }

  .footer-columns .footer-contact .contact-line {
    white-space: normal;
  }
}