/* ========== 页脚 ========== */
.footer {
  background-color: #222222;
  color: #fff;
  min-width: 800px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 18px;
  position: relative;
  border-bottom: 1px solid rgba(147, 147, 147, 0.5);
}

.footer-logo {
  height: 45px;
  width: 173px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.social-item {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.social-item img {
  height: 27px;
  transition: opacity 0.3s ease;
}

.social-item .hover-icon {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.social-item:hover > img:first-child {
  opacity: 0;
}

.social-item:hover .hover-icon {
  opacity: 1;
}

/* 社交媒体二维码弹窗 - 完全匹配下载按钮的二维码样式 */
.qr-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  margin-top: 15px;
  border-radius: 8px;
  padding: 4px;
  background-color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.social-item:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.qr-popup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* 二维码箭头指示器 - 与下载按钮保持一致 */
.qr-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  position: relative;
  border-bottom: 1px solid rgba(147, 147, 147, 0.5);
}

.footer-main {
  padding: 60px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 88px;
}

.link-group h4 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 24px;
  font-weight: 600;
}

.link-group ul {
  list-style: none;
}

.link-group li {
  font-size: 14px;
  color: #939393;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.link-group li:hover {
  color: #ffffff;
}

.qr-codes {
  display: flex;
  gap: 32px;
  align-items: center;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-item img {
  width: 109px;
  height: 109px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.qr-item p {
  font-family: "AlibabaPuHuiTi-2-55-Regular";
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.company-info {
  font-size: 12px;
  color: #939393;
}

.mobile-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-icon img {
  height: 30px;
}

.mobile-icon span {
  color: #33965C;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 40px;
}

.copyright {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #939393;
  gap: 10px;
}

.beian-icon {
  width: 20px;
  height: 20px;
}

/* ========== 响应式设计 - 底部相关 ========== */
@media screen and (max-width: 1200px) {
  .footer-links {
    gap: 60px;
  }

  .qr-codes {
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .qr-codes {
    justify-content: center;
  }

  .social-links {
    gap: 20px;
  }
}
