/* 底部样式 */
.main-footer {
  background: #2f3133;
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding-top: 38px;
}

.main-footer .container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: 230px;
  padding-right: 150px;
  box-sizing: border-box;
}

.main-footer .footer-content {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-footer .footer-main {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 38px;
}

.main-footer .footer-logo {
  flex-shrink: 0;
  margin-right: 167px;
}

.main-footer .footer-logo img {
  /* width: 120px; */
  height: auto;
}

.main-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  flex: 1;
}

.main-footer .link-column .column-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.main-footer .link-column .column-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #0c4cb7;
}

.main-footer .link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #a9a9a9;
  line-height: 30px;
}

.main-footer .link-list li .footer-link {
  color: #b0b3b8;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.main-footer .link-list li .footer-link:hover {
  color: #fff;
}

.main-footer .social-links {
  display: flex;
  gap: 15px;
}

.main-footer .social-item .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.main-footer .social-item .social-icon:hover {
  background: #0c4cb7;
  transform: translateY(-2px);
}

.main-footer .social-item .social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 底部版权区域 */
.main-footer .footer-bottom {
  background: #212324;
  padding: 15px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-footer .copyright {
  text-align: center;
  color: #b0b3b8;
  font-size: 14px;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

/* 弹窗样式 */
.social-popover {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 12px;
  position: absolute;
  z-index: 1000;
  display: none;
  /* 修改过渡效果方向 - 向下动画 */
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px); /* 改为向下移动 */
}

.social-popover.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.social-popover .qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-popover .qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-popover .qr-image {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 8px;
}

.social-popover .qr-text {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

@media (min-width: 48.0625rem) and (max-width: 64rem) {
  /* 1024px */
  .main-footer {
    min-height: 320px;
    padding-top: 38px;
  }

  .main-footer .container {
    max-width: 1024px !important;
    width: 100% !important;
    padding-left: 100px !important; /* 缩小左右内边距 */
    padding-right: 80px !important; /* 缩小左右内边距 */
  }

  .main-footer .footer-main {
    padding-bottom: 38px;
    flex-wrap: nowrap; /* 保持不换行 */
  }

  .main-footer .footer-logo {
    margin-right: 100px; /* 缩小右边距 */
    margin-bottom: 0; /* 移除底部边距 */
  }

  .main-footer .footer-logo img {
    width: auto; /* 保持原始比例 */
    height: auto;
  }

  .main-footer .footer-links {
    grid-template-columns: repeat(6, 1fr); /* 保持6列布局 */
    gap: 25px; /* 缩小间距 */
    flex: 1;
    min-width: 0;
  }

  .main-footer .link-column .column-title {
    font-size: 18px; /* 稍微缩小字体 */
    margin-bottom: 18px; /* 稍微缩小间距 */
  }

  .main-footer .link-column .column-title::after {
    width: 25px; /* 稍微缩小下划线 */
  }

  .main-footer .link-list {
    font-size: 16px; /* 稍微缩小字体 */
    line-height: 28px; /* 稍微缩小行高 */
  }

  .main-footer .link-list li .footer-link {
    font-size: 16px; /* 稍微缩小字体 */
  }

  .main-footer .social-links {
    gap: 12px; /* 缩小图标间距 */
  }

  .main-footer .social-item .social-icon {
    width: 36px; /* 稍微缩小图标 */
    height: 36px;
  }

  .main-footer .social-item .social-icon img {
    width: 18px; /* 稍微缩小图标内容 */
    height: 18px;
  }

  .main-footer .footer-bottom {
    padding: 15px 0; /* 保持原有padding */
  }

  .main-footer .copyright {
    font-size: 12px; /* 稍微缩小字体 */
  }

  /* 弹窗在1024px的适配 */
  .social-popover {
    padding: 12px; /* 保持原有padding */
    max-width: 110px;
  }

  .social-popover .qr-image {
    width: 90px; /* 稍微缩小二维码 */
    height: 90px;
  }

  .social-popover .qr-text {
    font-size: 11px; /* 稍微缩小字体 */
  }
}

/* ==================== 480px 响应式适配 - 只影响底部 ==================== */
@media (max-width: 30rem) {
  /* 480px */
  /* 响应式字体设置 */
  html {
    font-size: 16px;
  }
  .main-footer {
    min-height: auto;
    padding-top: 30px;
  }

  .main-footer .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1.5rem !important; /* 24px */
    padding-right: 1.5rem !important; /* 24px */
  }

  .main-footer .footer-content {
    padding: 0;
  }

  .main-footer .footer-main {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 30px;
  }

  .main-footer .footer-logo {
    margin-right: 0;
    margin-bottom: 25px;
    align-self: flex-start;
    margin-left: 1.5rem;
  }

  .main-footer .footer-logo img {
    width: 90px;
  }

  .main-footer .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
    width: 100%;
    justify-items: stretch;
  }

  .main-footer .link-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: 0 1.5rem;
  }

  .main-footer .link-column:nth-child(even) {
    padding-left: 2rem;
  }

  .main-footer .link-column .column-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    padding-bottom: 6px;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
  }

  .main-footer .link-column .column-title::after {
    width: 25px;
    left: 0;
    transform: none;
  }

  .main-footer .link-list {
    font-size: 1.2rem;
    line-height: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .main-footer .link-list li {
    text-align: left;
    width: 100%;
    margin-bottom: 8px;
  }

  .main-footer .link-list li .footer-link {
    font-size: 1.2rem;
    display: inline-block;
    width: auto;
  }

  .main-footer .link-list li .footer-link:hover {
    padding-left: 5px;
    transform: none;
  }

  .main-footer .social-links {
    justify-content: flex-start;
    width: 100%;
  }

  .main-footer .social-item .social-icon {
    width: 35px;
    height: 35px;
  }

  .main-footer .social-item .social-icon img {
    width: 18px;
    height: 18px;
  }

  .main-footer .footer-bottom {
    padding: 12px 0;
  }

  .main-footer .copyright {
   font-size: 0.7rem; /* 从0.8rem调小到0.7rem */
    white-space: nowrap; /* 防止换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 超出显示省略号 */
    max-width: 100%; /* 限制最大宽度 */
    padding: 0 0.5rem; /* 进一步减少左右padding */
    line-height: 1.3;
  }
  
  .main-footer .copyright br {
    display: none; /* 移除强制换行 */
  }

  .main-footer .copyright .divider {
    display: none;
  }

  .main-footer .copyright br {
    display: block;
  }

  /* 弹窗在移动端的适配 */
  .social-popover {
    padding: 10px;
    max-width: 120px;
  }

  .social-popover .qr-image {
    width: 80px;
    height: 80px;
  }

  .social-popover .qr-text {
    font-size: 1.1rem;
  }
}

/* ==================== 375px 响应式适配 - 只影响底部 ==================== */
@media (max-width: 23.4375rem) {
  /* 375px */
  /* 响应式字体设置 */
  html {
    font-size: 16px;
  }
  .main-footer {
    padding-top: 20px;
  }

  .main-footer .container {
    padding-left: 1rem !important; /* 16px */
    padding-right: 1rem !important; /* 16px */
  }

  .main-footer .footer-main {
    padding-bottom: 25px;
  }

  .main-footer .footer-logo {
    margin-top: 1.5rem;
    margin-bottom: 20px;
    align-self: flex-start;
    margin-left: 1rem;
  }

  .main-footer .footer-logo img {
    width: 80px;
  }

  .main-footer .footer-links {
    gap: 15px 0;
    justify-items: stretch;
  }

  .main-footer .link-column {
    align-items: flex-start;
    text-align: left;
    padding: 0 1rem;
  }

  .main-footer .link-column:nth-child(even) {
    padding-left: 1.5rem;
  }

  .main-footer .link-column .column-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    height: auto;
    justify-content: flex-start;
  }

  .main-footer .link-column .column-title::after {
    left: 0;
    transform: none;
  }

  .main-footer .link-list {
    font-size: 1.1rem;
    line-height: 1.5rem;
    align-items: flex-start;
  }

  .main-footer .link-list li {
    text-align: left;
    margin-bottom: 6px;
  }

  .main-footer .link-list li .footer-link {
    font-size: 1.1rem;
  }

  .main-footer .link-list li .footer-link:hover {
    padding-left: 5px;
    transform: none;
  }

  .main-footer .social-item .social-icon {
    width: 32px;
    height: 32px;
  }

  .main-footer .social-item .social-icon img {
    width: 16px;
    height: 16px;
  }

  .main-footer .footer-bottom {
    padding: 10px 0;
  }

  .main-footer .copyright {
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
    padding: 0 1.5rem;
    display: block;
  }

  .main-footer .copyright .divider {
    display: none;
  }

  .main-footer .copyright br {
    display: block;
  }

  /* 弹窗在超小屏幕的适配 */
  .social-popover {
    padding: 8px;
    max-width: 110px;
  }

  .social-popover .qr-image {
    width: 70px;
    height: 70px;
  }

  .social-popover .qr-text {
    font-size: 0.9rem;
  }
}
