/* ==========================================================================
   页脚 — 样式（深色版）
   背景 rgb(47,53,58)；Logo 居中；三个地址横排；联系方式图标悬浮展开
   ========================================================================== */

.site-footer {
  --sf-primary: #2e9c27;             /* 果绿：深色底上的高亮 */
  --sf-bg: rgb(47, 53, 58);
  --sf-text: #ffffff;
  --sf-text-soft: rgba(255, 255, 255, 0.72);
  --sf-text-mute: rgba(255, 255, 255, 0.45);
  --sf-line: rgba(255, 255, 255, 0.14);
  --sf-popover-bg: #ffffff;
  --sf-popover-ink: #2f353a;
  /* 底部联系图标尺寸变量：桌面与移动端共用，改这里即可全端生效 */
  --sf-icon-w: 35px;
  --sf-icon-h: 22px;
  --sf-font: "Inter", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", sans-serif;

  box-sizing: border-box;
  font-family: var(--sf-font);
  line-height: 1.7;
  color: var(--sf-text);
  background: var(--sf-bg);
  padding-block: clamp(28px, 3vw, 40px) clamp(18px, 2vw, 24px);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* --------------------------------------------------------------------------
   1. Logo 居中
   -------------------------------------------------------------------------- */
.site-footer__brand {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.site-footer__brand img {
  display: block;
  height: 34px;
  width: auto;
}

/* --------------------------------------------------------------------------
   2. 公司地址横排
   -------------------------------------------------------------------------- */
.site-footer__address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__address-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  flex-wrap: wrap;
}

.site-footer__address-icon {
  display: flex;
  flex: none;
  color: var(--sf-primary);
}

.site-footer__address-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__address-link,
.site-footer__address-text {
  color: var(--sf-text-soft);
  transition: color 0.3s ease;
}

.site-footer__address-link:hover,
.site-footer__address-link:focus-visible {
  color: var(--sf-primary);
}

/* --------------------------------------------------------------------------
   3. 联系方式：文字信息行 + 悬浮展开图标
   -------------------------------------------------------------------------- */
.site-footer__contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  margin: clamp(16px, 2vw, 22px) 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__contact-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sf-text-soft);
}

.site-footer__contact-info-icon {
  display: flex;
  flex: none;
  color: var(--sf-primary);
}

.site-footer__contact-info-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__contact-info a {
  color: var(--sf-text-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer__contact-info a:hover,
.site-footer__contact-info a:focus-visible {
  color: var(--sf-primary);
}

.site-footer__contact {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(14px, 1.8vw, 18px);
}

.site-footer__contact-item {
  position: relative;
}

.site-footer__contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--sf-line);
  border-radius: 0;                 /* 方形边框 */
  background: rgba(255, 255, 255, 0.06);
  color: var(--sf-text);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.site-footer__contact-btn:hover,
.site-footer__contact-btn:focus-visible {
  border-color: var(--sf-primary);
  background: var(--sf-primary);
  color: #fff;
  outline: none;
  transform: translateY(-3px);
}

.site-footer__contact-btn svg {
  display: block;
  width: var(--sf-icon-w);
  height: var(--sf-icon-h);
}

.site-footer__contact-btn svg path {
  fill: currentColor;
}

/* 悬浮展开卡片 */
.site-footer__popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--sf-popover-bg);
  color: var(--sf-popover-ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s;
  z-index: 30;
  text-align: center;
}

/* 隐藏的悬停桥接区，避免鼠标从图标移到卡片时卡片消失 */
.site-footer__popover::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

/* 底部小箭头 */
.site-footer__popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 8px solid transparent;
  border-top-color: var(--sf-popover-bg);
  transform: translateX(-50%);
}

.site-footer__contact-item:hover .site-footer__popover,
.site-footer__contact-item:focus-within .site-footer__popover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.site-footer__popover-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-popover-ink);
}

.site-footer__popover-qr {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 8px;
}

.site-footer__popover-link {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--sf-popover-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.site-footer__popover-link:hover,
.site-footer__popover-link:focus-visible {
  color: var(--sf-primary);
}

/* --------------------------------------------------------------------------
   4. 底部：版权 + 备案号
   -------------------------------------------------------------------------- */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(20px, 2.5vw, 28px);
  padding-top: 14px;
  border-top: 1px solid var(--sf-line);
  font-size: 12px;
  color: var(--sf-text-mute);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  color: var(--sf-text-mute);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
  color: var(--sf-primary);
}

/* --------------------------------------------------------------------------
   5. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  /* 为移动端底部悬浮栏留出空间，避免遮挡版权信息 */
  .site-footer {
    padding-bottom: 96px;
  }

  .site-footer__address {
    gap: 6px 20px;
  }

  .site-footer__contact-info {
    gap: 6px 20px;
  }

  .site-footer__address-item {
    font-size: 12.5px;
  }

  .site-footer__contact-info-item {
    font-size: 12.5px;
  }
}

@media (max-width: 575.98px) {
  .site-footer__contact {
    gap: 20px;
  }

  .site-footer__contact-btn {
    width: 40px;
    height: 40px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   6. 友情链接条
   -------------------------------------------------------------------------- */
.yqlj {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  background-color: #2e9c27;         /* 友情链接条：青绿 */
}

.yqlj1 {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  min-height: 50px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 64px);
  color: #fff;
  display: flex;          /* 横排关键 */
  align-items: center;    /* 垂直居中 */
  flex-wrap: wrap;        /* 链接多时自动换行 */
  gap: 4px 10px;
}

.yqlj1 span {
  font-size: 17px;
  font-weight: bolder;
  flex-shrink: 0;
}

.yqlj1 a {
  color: #fff;
  overflow-wrap: anywhere;  /* 长 URL 换行，防止超出屏幕 */
}

@media (max-width: 575.98px) {
  .yqlj1 span {
    font-size: 15px;
  }

  .yqlj1 a {
    font-size: 13px;
  }
}
