/* footer.css —— 页脚 + 响应式覆盖（base 在前，@media 在后） */

/*footer*/
.footer {
  line-height: 24px;
  padding: 24px 0 20px 0;
  background: #fff;
}
.footer a {
  color: #646464;
}
.f-cta {
  margin-bottom: 0;
}
.footer .l .f-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
}
.footer .l .f-link a.f-link {
  display: inline-block;
}
.f-cta a {
  display: block;
  padding-left: 23px;
  position: relative;
}
.f-cta a:before {
  content: '';
  width: 24px;
  height: 24px;
  position: absolute;
  top: 0;
  left: 0;
  background: url(../images/addr-1.png) no-repeat left top;
}
.f-nav a,
.f-nav {
  color: #1d2467;
}
.f-nav a {
  padding-left: 10px;
  position: relative;
  margin-left: 10px;
}
.f-nav a:before {
  content: '';
  width: 5px;
  height: 5px;
  position: absolute;
  top: 50%;
  margin-top: -1px;
  left: 0;
  background: #1d2467;
}
.footer .tools {
  float: right;
  margin-bottom: 7px;
}
.tools a {
  width: 27px;
  height: 27px;
  display: block;
  float: left;
  background: #c6c6c6;
  border-radius: 100%;
  margin-left: 13px;
}
.tools .sina .ico {
  background-image: url(../images/sina.png);
}
.tools .qq .ico {
  background-image: url(../images/qq.png);
}
.tools .weixin .ico {
  background-image: url(../images/weixin.png);
}
.footer .pw {
  text-align: center;
}
.footer .l {
  color: #646464;
  float: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  vertical-align: middle;
}
.footer .r {
  float: none;
  text-align: center;
  margin-top: 0;
  display: inline-block;
  vertical-align: middle;
}
.f-cop {
  color: #646464;
  font-size: 12px;
}
.f-cop span,
.f-cop a {
  margin-left: 30px;
}
.footer .r > * {
  display: inline-block;
  vertical-align: middle;
  margin-left: 24px;
}
.footer .r > *:first-child {
  margin-left: 0;
}
.footer .r .f-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.footer .r .f-link img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
/*footer end*/

/* ========= 响应式 ========= */

@media screen and (min-width: 1153px) {
  .footer a:hover {
    color: #da271e;
  }
  .f-cta a:hover:before {
    background-position: left bottom;
  }
}

@media screen and (max-width: 1024px) {
  /* ≤1024 一律改为上下堆叠，避免 .l/.r 因 inline-flex/inline-block 在窄行上水平溢出
     被 html { overflow-x:hidden } 裁掉，导致 .l 内容看不到 */
  .footer .l,
  .footer .r,
  .footer .tools {
    float: none;
    display: block;
    width: 100%;
    vertical-align: top;
    text-align: center;
  }
  .footer .r {
    margin-top: 20px;
  }
  .footer .l {
    overflow: visible;
  }
} /* 1024 */

@media screen and (max-width: 641px) {
  /* footer: .l/.r 改 block 占满父宽并堆叠；.r 再改成 flex 让 inline-block 子项自动换行居中，
     避免 text-align:center + 宽 inline-block 子项双向溢出被 html overflow-x:hidden 裁掉 */
  .footer {
    overflow: visible;
  }
  .footer .l,
  .footer .r {
    display: block;
    width: 100%;
    float: none;
    overflow: visible;
  }
  .footer .l {
    text-align: center;
  }
  .footer .r {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
  }
  .footer .r > * {
    margin: 0 6px;
    min-width: 0;
  }
  .footer .l .f-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 6px;
  }
  .footer .l .f-link a {
    min-width: 0;
  }
  .footer .r .f-link {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer .l .f-link a,
  .footer .r .f-link,
  .footer .f-cta a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
} /* 641 */

@media screen and (max-width: 481px) {
  /* footer: 更紧凑、字号缩小 */
  .footer {
    padding: 14px 0 140px 0;
    line-height: 22px;
  }
  .footer .r {
    margin-top: 8px;
  }
  .footer .r > * {
    margin: 0 4px;
    font-size: 12px;
  }
  .f-cop {
    font-size: 11px;
  }
  .f-cta a {
    font-size: 12px;
  }
} /* 481 */
