/* ============================================================
 * Footer 底部组件样式
 * 包含：导航链接、公司信息、二维码、响应式布局
 * 设计：红色背景 (#ff0000)，白色文字，三栏布局
 * ============================================================ */

/* ---------- 底部容器 ---------- */
.site-footer {
  background-color: #ff0000;
  color: #ffffff;
  padding: 60px 0 30px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-inner {
  /* max-width: 1200px; */
  margin: 0 160px;
  /* padding: 0 24px; */
}

/* ---------- 顶部导航链接 ---------- */
.footer-nav {
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-links li {
  display: inline-flex;
  align-items: center;
}

.footer-nav-links a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-nav-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-nav-links .separator {
  margin: 0 4px;
  opacity: 0.6;
}

/* ---------- 主体内容区域 ---------- */
.footer-content {
  display: grid;
  grid-template-columns: 3fr 3fr 4fr;
  gap: 10px;
  align-items: start;
}

/* ---------- 公司信息块 ---------- */
.footer-company {
  min-width: 0;
}

.footer-company-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-company-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-company-info li {
  margin-bottom: 6px;
  word-break: break-word;
}

.footer-company-info .label {
  opacity: 0.9;
}

.footer-company-info .value {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

/* ---------- 二维码区域 ---------- */
.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-qrcode-img {
  width: 100px;
  height: 100px;
  background-color: #ffffff;
  padding: 4px;
  border-radius: 4px;
  object-fit: contain;
}

.footer-qrcode-text {
  font-size: 13px;
  text-align: center;
  opacity: 0.9;
}

/* ---------- 响应式布局 ---------- */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-qrcode {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-nav-links {
    justify-content: center;
  }

  .footer-qrcode {
    flex-direction: column;
  }
}

/* ============================================================ */
/* ============ 移动端适配优化 - 媒体查询（新增代码） ============ */
/* ============================================================ */

/* ========== 平板端适配 (max-width: 992px) ========== */
@media (max-width: 992px) {
  /* 底部容器：缩减内边距 */
  .site-footer {
    padding: 40px 0 24px;
  }

  /* 内部容器：大幅缩减左右边距 */
  .footer-inner {
    margin: 0 20px;
  }

  /* 导航区域：缩减下边距 */
  .footer-nav {
    margin-bottom: 30px;
    padding-bottom: 16px;
  }

  /* 导航链接：增大触摸间距 */
  .footer-nav-links {
    gap: 12px;
  }

  .footer-nav-links a {
    font-size: 14px;
  }

  /* 公司标题：适配缩小 */
  .footer-company-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  /* 公司信息：行间距收紧 */
  .footer-company-info li {
    margin-bottom: 5px;
    font-size: 13px;
  }

  /* 二维码：适配尺寸 */
  .footer-qrcode-img {
    width: 90px;
    height: 90px;
  }

  .footer-qrcode-text {
    font-size: 12px;
  }
}

/* ========== 手机端适配 (max-width: 768px) ========== */
@media (max-width: 768px) {
  /* 内部容器：进一步缩减 */
  .footer-inner {
    margin: 0 16px;
  }

  /* 导航链接：换行居中 */
  .footer-nav-links {
    justify-content: center;
    gap: 8px;
  }

  /* 公司标题 */
  .footer-company-title {
    font-size: 14px;
  }

  /* 公司信息：紧凑排列 */
  .footer-company-info li {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.5;
  }

  /* 公司信息标签与值：优化显示 */
  .footer-company-info .label {
    display: inline-block;
    min-width: 70px;
  }

  /* 二维码：缩小尺寸 */
  .footer-qrcode-img {
    width: 80px;
    height: 80px;
  }
}

/* ========== 小屏手机适配 (max-width: 480px) ========== */
@media (max-width: 480px) {
  /* 底部容器：最小内边距 */
  .site-footer {
    padding: 30px 0 20px;
  }

  /* 内部容器 */
  .footer-inner {
    margin: 0 12px;
  }

  /* 导航链接：紧凑布局 */
  .footer-nav {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .footer-nav-links {
    gap: 6px;
  }

  .footer-nav-links a {
    font-size: 13px;
  }

  .footer-nav-links .separator {
    margin: 0 2px;
    font-size: 12px;
  }

  /* 公司标题 */
  .footer-company-title {
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* 公司信息 */
  .footer-company-info li {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.4;
  }

  /* 信息标签：缩短最小宽度 */
  .footer-company-info .label {
    min-width: 60px;
  }

  /* 二维码：最小尺寸 */
  .footer-qrcode-img {
    width: 72px;
    height: 72px;
  }

  .footer-qrcode-text {
    font-size: 11px;
  }
}
