.site-footer {
  background: #fff;
  color: #666;
  padding-top: 56px;
  border-top: 1px solid #ebebeb;
}

.site-footer .wrap {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  align-items: stretch;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.footer-brand h3 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-brand p {
  font-size: 13px;
  color: #666;
  line-height: 1.85;
  margin-bottom: 12px;
}

.footer-qr {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-end;
  margin-top: auto;
}

.footer-qr-item {
  text-align: center;
}

.footer-qr-item img {
  height: 92px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
}

.footer-qr-item span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.footer-col{
	text-align: right;
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.footer-col ul {
  margin-top: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col li:last-child {
  margin-bottom: 0;
}

.footer-col a {
  font-size: 13px;
  color: #666;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #333;
}

.footer-bar {
	width: 1200px;
	max-width: 100%;
	margin: 0 auto;
  border-top: 1px solid #e8e8e8;
  padding: 20px 0 28px;
}

.footer-bar-inner {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  color: #999;
  gap: 8px;
}

.footer-bar-inner a:hover {
  text-decoration: underline;
}

@media (max-width: 1240px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-qr {
    justify-content: flex-start;
  }
}

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

  .footer-qr {
    justify-content: flex-start;
  }

  .footer-bar-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ===== Hi Ula 页脚（重设计层） ===== */
.footer-lockup { margin-bottom: 18px; }
.footer-brand .footer-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 340px;
}
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; }
.footer-contact a,
.footer-contact span,
.footer-contact button {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-contact a:hover,
.footer-contact button:hover { color: #605dba; }
.footer-contact button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.footer-contact .fc-label {
  display: inline-block;
  min-width: 44px;
  color: #999;
  font-size: 12px;
}
.footer-contact .fc-wechat { color: #555; }
.footer-bar-inner {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: #999;
}
.footer-bar-inner a { color: #605dba; }
.footer-bar-inner a:hover { text-decoration: underline; }
.footer-bar .brand-dot { color: #605dba; margin: 0 6px; }

/* 「联系与合作」栏按钮（微信咨询），外观与栏目链接一致 */
.footer-col button.footer-col-wechat {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
  text-align: right;
}
.footer-col button.footer-col-wechat:hover { color: #333; }

/* ===== 微信二维码浮层：点击触发点正下方弹出（fixed 定位由 JS 计算坐标） ===== */
[data-qr-trigger] { cursor: pointer; }
.qr-pop {
  position: fixed;
  z-index: 1200;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  padding: 12px 12px 8px;
  text-align: center;
  display: none;
  white-space: nowrap;
}
.qr-pop.is-open { display: block; }
.qr-pop::before {
  content: '';
  position: absolute;
  top: -5px;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: #fff;
  border-left: 1px solid #ebebeb;
  border-top: 1px solid #ebebeb;
}
.qr-pop img {
  width: 148px;
  height: 148px;
  display: block;
  margin: 0 auto;
}
.qr-pop p {
  margin: 8px 0 2px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}
/* 下方空间不足向上翻转时：箭头改在浮层底部指向下 */
.qr-pop.is-above::before {
  top: auto;
  bottom: -5px;
  border-left: none;
  border-top: none;
  border-right: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}
