/* ==========================================================
   页脚（黑色主题，电脑版 / 手机版自适应）
   结构：标语栏 → 导航 + 联系方式 + 二维码 → 版权行
   ========================================================== */

.footer {
  background: #000;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 顶部标语栏（米色） ---------- */
.footer-tagline {
  background: var(--p-beige);
  color: #333;
  text-align: center;
  padding: 80px 20px;
  font-size: 48px;
  letter-spacing: 6px;
  font-weight: 500;
  font-family: "隶书";
}

/* ---------- 主体 ---------- */
.footer-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 28px 28px;
}

/* 导航（电脑端横向），下方分隔线 */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

/* 主区域：二维码（左）+ 联系方式（右） */
.footer-main {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
}

/* 联系方式：与二维码同高，三行均分 */
.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80px;
  /* 与二维码同高 */
}

.footer-contact p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

/* 二维码：图片填充（无圆角） */
.footer-qrcode {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* ---------- 底部版权行（与导航栏同一 max-width） ---------- */
.footer-bottom {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* 顶部横线：与上方导航横线同宽（左右各内缩 28px，与 footer-body 内容区对齐） */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* 备案号链接 */
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- 手机端 ---------- */
@media (max-width: 860px) {
  .footer-tagline {
    padding: 60px 16px;
    font-size: 32px;
    letter-spacing: 3px;
  }

  .footer-body {
    padding: 28px 18px 18px;
  }

  /* 导航纵向排列 + 分隔线 */
  .footer-nav {
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer-nav a {
    display: block;
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .footer-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  /* 手机端：联系方式在左、二维码在右（覆盖 HTML 中的顺序） */
  .footer-contact {
    order: -1;
    height: 80px;
    /* 与手机端二维码同高 */
  }

  /* 二维码与联系方式同一行、靠右 */
  .footer-qrcode {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 18px;
  }

  /* 手机端横线：与导航内容区对齐（内缩 18px） */
  .footer-bottom::before {
    left: 18px;
    right: 18px;
  }
}
