/* ================================================== 底部 Footer ================================================== */
.footer {
  position: relative;
  background: #1A1A1A;
  padding: 0.68rem 0 0.26rem;
  /* overflow: hidden; */
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #C8CDD6;
}

/* 背景图：footer-bg.png（带网格的深色科技感底图） */
.footer__bg {
  position: absolute;
  inset: 0;
  background: url('../images/footer-bg.png') no-repeat center center / cover;
  height: 100%;
  opacity: 1;
  z-index: 0;
}

.footer>.container {
  position: relative;
  z-index: 2;
  height: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  padding-bottom: 0.46rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------- 左侧：联系信息 + 二维码 ---------------- */
.footer-left {
  flex: 0 0 auto;
  min-width: 3.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  line-height: 1.6;
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  font-size: var(--font16);
  color: #B5B9C2;
}

.footer-contact__icon {
  flex: 0 0 auto;
  width: 0.18rem;
  height: 0.18rem;
  object-fit: contain;
  display: block;
}

.footer-contact a {
  color: #B5B9C2;
  text-decoration: none;
  transition: color 0.25s ease;
}

@media (any-hover: hover) {
  .footer-contact a:hover {
    color: #fff;
  }
}

/* 二维码：并排两张 */
.footer-qr {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.footer-qr__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.footer-qr__img {
  width: 1.3rem;
  height: 1.3rem;
  background: #fff;
  padding: 0.08rem;
  border-radius: 0.08rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-qr__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-qr__txt {
  margin: 0;
  font-size: var(--font14);
  color: #9EA3AE;
  letter-spacing: 0.02em;
}

/* ---------------- 右侧：链接 6 列 ---------------- */
.footer-links {
  /* flex: 1 1 auto; */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.3rem 0.4rem;
}

.footer-col h4 {
  font-size: var(--font18);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.20rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.footer-col ul li a {
  font-size: var(--font15);
  color: #9EA3AE;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.25s ease;
}

@media (any-hover: hover) {
  .footer-col ul li a:hover {
    color: #E72211;
  }
}

/* 空白占位的 ul（最后一列「联系我们」保持空） */
.footer-col--blank {
  min-height: 0.1rem;
}

/* ---------------- 底部版权 ---------------- */
.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  margin-top: 0.28rem;
  font-size: var(--font14);
  color: #7C8190;
  line-height: 1.7;
  flex-wrap: wrap;
}

.footer-copyright__left,
.footer-copyright__right {
  margin: 0;
}

.footer-copyright__sep {
  /* margin: 0 0.14rem; */
  color: rgba(255, 255, 255, 0.12);
}

.footer-copyright a {
  color: #7C8190;
  text-decoration: none;
  transition: color 0.25s ease;
}

@media (any-hover: hover) {
  .footer-copyright a:hover {
    color: #fff;
  }
}

/* ================================================== 响应式 ================================================== */

/* 大屏桌面（≤1440px） */
@media (max-width: 1440px) {
  .footer-links {
    gap: 0.24rem 0.36rem;
  }

  .footer-left {
    min-width: 3.4rem;
    gap: 0.36rem;
  }

  .footer-qr {
    gap: 0.3rem;
  }

  .footer-qr__img {
    width: 1.18rem;
    height: 1.18rem;
  }
}

/* 中等桌面（≤1200px） */
@media (max-width: 1200px) {
  .footer {
    padding: 0.6rem 0 0.24rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.46rem;
    padding-bottom: 0.4rem;
  }

  .footer-left {
    min-width: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
}

/* 中小屏（≤1199px）：收纳折叠模式 */
@media (max-width: 1199px) {
  .footer-links {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
    width: 100%;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.06rem 0 0.12rem;
  }

  .footer-col h4 {
    cursor: pointer;
    position: relative;
    padding: 0.15rem 0.4rem 0.15rem 0;
    margin-bottom: 0;
    user-select: none;
    font-size: var(--font16);
  }

  .footer-col h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #8F8F8F;
    font-size: var(--font28);
    line-height: 1;
    font-weight: 400;
  }

  .footer-col h4.active::after {
    content: '−';
  }

  /* 默认收起 + 平滑展开动画 */
  .footer-col ul {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0;
    gap: 0.1rem;
  }

  .footer-col ul.open {
    max-height: 8rem;
    /* 足以容纳最多 4 项链接 */
    opacity: 1;
    padding: 0.1rem 0 0.18rem;
  }

  /* 收纳模式隐藏空占位列 */
  .footer-col--blank {
    display: none;
  }
}

/* 小桌面 / 大平板（≤1024px） */
@media (max-width: 1024px) {
  .footer {
    padding: 0.54rem 0 0.22rem;
  }

  .footer-qr__img {
    width: 1.08rem;
    height: 1.08rem;
  }
}

/* 平板（≤768px） */
@media (max-width: 768px) {
  .footer {
    padding: 0.46rem 0 0.2rem;
  }

  .footer-content {
    padding-bottom: 0.3rem;
    gap: 0.34rem;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .footer-contact {
    gap: 0.16rem;
  }

  .footer-qr {
    width: 100%;
    justify-content: flex-start;
    gap: 0.34rem;
  }

  .footer-qr__img {
    width: 1.4rem;
    height: 1.4rem;
  }

  /* 手机收纳：1 列 */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  .footer-copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    margin-top: 0.2rem;
    line-height: 1.8;
  }
}

/* 大手机（≤576px） */
@media (max-width: 576px) {
  .footer {
    padding: 0.4rem 0 0.18rem;
  }

  .footer-content {
    padding-bottom: 0.26rem;
  }

  .footer-qr {
    gap: 0.24rem;
  }

  .footer-qr__img {
    width: 1.28rem;
    height: 1.28rem;
  }

  .footer-copyright {
    margin-top: 0.18rem;
    line-height: 1.9;
  }

  .footer-copyright__sep {
    margin: 0 0.1rem;
  }
}

/* 手机（≤414px） */
@media (max-width: 414px) {
  .footer {
    padding: 0.34rem 0 0.16rem;
  }

  .footer-content {
    padding-bottom: 0.24rem;
    gap: 0.28rem;
  }

  .footer-qr__img {
    width: 1.16rem;
    height: 1.16rem;
  }

  .footer-copyright {
    margin-top: 0.16rem;
    font-size: var(--font12);
  }
}

/* 小手机（≤360px） */
@media (max-width: 360px) {
  .footer {
    padding: 0.3rem 0 0.14rem;
  }

  .footer-qr {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
  }

  .footer-qr__img {
    width: 1.3rem;
    height: 1.3rem;
  }
}


.footer-ower {
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(207, 207, 207, .1);
}

.footer-ower .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 22px 0 50px 0;
}