/* Footer整体样式 */
#main-footer {
  background-color: rgb(38, 30, 20);
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  padding: 0 5%;
  box-sizing: border-box;
}

.footer-line {
  position: absolute;
  right: 0;
  left: 0;
  height: 1.2rem;
  /* width: 100%; */
  background-color: rgb(237 199 171);
}

/* 顶部模块 */
.footer-top {
  padding: 4.2rem 0 3rem 0;
  box-sizing: border-box;
}

.footer-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo-container {
  flex: 0 0 auto;
}

.footer-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  padding: 10px;
}

.footer-contact {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
}

.contact-item {
  display: flex;
  align-items: center;
  text-align: center;
  min-width: 140px;
  gap: 2px;
  font-size: 18px;
}

.contact-icon {
  display: flex;
  width: 5rem;
  height: 5rem;
}

.wechat-img {
  cursor: pointer;
  position: relative;
}

.wechat-img:hover .qr-code-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* 中间模块 */
.footer-middle {
  padding: 2rem 0;
}

.footer-middle-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-links-container {
  flex: 1;
}

.footer-links-title {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.footer-links-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
}

.footer-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-social-container {
  flex: 0 0 auto;
}

.footer-social-list {
  display: flex;
  gap: 80px;
}

.social-item {
  position: relative;
  cursor: pointer;
}

.social-icon {
  width: 70px;
  height: 70px;
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.social-item:hover .social-icon {
  color: white;
}

/* 二维码弹窗样式 */
.qr-code-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 180px;
  box-sizing: border-box;
  text-align: center;
}

.qr-code-container {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

.social-item:hover .qr-code-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

.social-item {
  position: relative;
  display: inline-block;
}

.qr-code-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 分割线 */
.footer-divider {
  height: 1px;
  background-color: rgb(151 140 131)
}

/* 中间模块下半部分 - 横幅 */
.footer-middle-bottom {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

/* 图片自适应 */
.footer-banner-bg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* 内容容器 */
.footer-banner-content {
  position: absolute;
  top: 2rem;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: flex-start;
}

/* 标题样式 */
.footer-banner-title {
  font-family: var(--font-family);
  letter-spacing: 10px;
  font-weight: 600;
  font-size: 6rem;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}

/* 描述文本 */
.footer-banner-description {
  font-size: 3rem;
  opacity: 0.9;
  line-height: 1.4;
  padding: 1rem 0;
}

/* 按钮样式 */
.footer-banner-button {
  display: inline-block;
  color: white;
  padding: 1rem 4rem;
  border: 1px solid #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 2.1rem;
  cursor: pointer;
  position: absolute;
  bottom: 14%;
  white-space: nowrap;
}

.footer-banner-button:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

/* 底部模块 */
.footer-bottom {
  padding: 2.5rem 0 2rem 0;
  box-sizing: border-box;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 18px;
  color: rgb(231 228 221);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  color: rgb(231 228 221);
}

.footer-separator {
  color: #666;
}

.business-license-link {
  color: rgb(231 228 221);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
}

/* 营业执照弹窗 */
.license-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-active-color);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.license-modal-content {
  position: relative;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #e74c3c;
}

#licenseImage {
  max-width: 100%;
  max-height: 500px;
  margin-bottom: 15px;
}

.license-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* 二维码弹窗 */
.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-active-color);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.qr-modal-content {
  position: relative;
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.close-qr-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-qr-modal:hover {
  color: #e74c3c;
}

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

@media (max-width: 400px) {
  .footer-contact {
    gap: 15px;
  }

  .footer-links-list {
    gap: 10px;
    justify-content: center;
  }


  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .footer-top {
    padding: 2.2rem 0 1rem 0;
  }

  .footer-logo {
    width: 80px;
    height: 80px;
  }

  .contact-icon {
    width: 4rem;
    height: 4rem;
  }

  .contact-text p {
    font-size: 14px;
  }

  .footer-middle {
    padding: 25px 0;
  }

  .footer-middle-top {
    margin-bottom: 25px;
  }

  .footer-links-title {
    font-size: 16px;
  }

  .footer-link {
    font-size: 16px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .footer-divider {
    margin: 15px 0;
  }

  .footer-copyright,
  .footer-legal {
    font-size: 12px;
  }

  .license-modal-content,
  .qr-modal-content {
    padding: 15px;
  }

  #licenseImage {
    max-height: 400px;
  }

  #qrImage {
    width: 150px;
    height: 150px;
  }

  .qr-text {
    font-size: 14px;
  }
}



@media (max-width: 992px) {
  .footer-top-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-middle-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links-container,
  .footer-social-container {
    width: 100%;
  }

  .footer-links-list {
    gap: 20px;
    justify-content: center;
  }

  .footer-social-list {
    justify-content: center;
  }

  .footer-middle-bottom {
    width: 100%;
    position: relative;
    height: auto;
    display: block;
  }

  .footer-banner-title {
    font-size: 24px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 2560px) {
  .footer-banner-title {
    font-size: 7.5rem;
  }

  .footer-banner-description {
    padding: 3rem 0;
  }
}

@media screen and (min-width: 1920px) {
  .footer-banner-title {
    font-size: 7rem;
  }

  .footer-banner-description {
    font-size: 3rem;
  }

  .footer-banner-button {
    font-size: 2.5rem;
    padding: 10px 30px;
  }
  
}

@media screen and (max-width: 1366px) {
  .footer-banner-title {
    font-size: 5rem;
  }

  .footer-banner-description {
    font-size: 2rem;
  }

  .footer-banner-button {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    bottom: 17%;
  }
}

@media screen and (max-width: 1201px) {
  .footer-banner-title {
    font-size: 5rem;
  }

  .footer-banner-description {
    font-size: 2.5rem;
  }

  .footer-banner-button {
    font-size: 2rem;
    padding: 0.8rem 2rem;
    bottom: 16%;
  }

  .footer-banner-content {
    top: 3rem;
  }
  .footer-contact {
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }
}

@media screen and (max-width: 1025px) {
  .footer-banner-title {
    font-size: 4.5rem;
    letter-spacing: 8px;
  }

  .footer-banner-description {
    font-size: 18px;
  }

  .footer-banner-button {
    font-size: 2rem;
    padding: 0.5rem 1.5rem;
    bottom: 10%;
  }

  .footer-banner-content {
    padding: 0 15px;
    top: 1rem;
  }
}

@media screen and (max-width: 900px) {}

@media screen and (max-width: 768px) {
  .footer-banner-title {
    font-size: 3rem;
    letter-spacing: 6px;
  }

  .footer-banner-description {
    font-size: 16px;
    padding: 0.2rem 0;
  }

  .footer-banner-button {
    font-size: 1.5rem;
    bottom: 16%;
    display: none;
  }

  .footer-banner-content {
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
    height: 100%;
  }

}

@media screen and (max-width: 600px) {
  .footer-top {
    padding: 4.2rem 0 3rem 0;
  }

  .footer-logo {
    width: 100px;
    height: 100px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .contact-item {
    min-width: auto;
  }

  .footer-middle {
    padding: 30px 0;
  }

  .footer-middle-top {
    margin-bottom: 30px;
  }

  .footer-links-list {
    gap: 15px;
    justify-content: center;
  }

  .footer-divider {
    margin: 10px 0;
  }

  .qr-code-popup {
    min-width: 150px;
  }

  .qr-code-image {
    width: 120px;
    height: 120px;
  }

  .footer-banner-title {
    font-size: 3rem;
    letter-spacing: 4px;
    line-height: 1.1;
  }

  .footer-banner-description {
    font-size: 14px;
    padding: 0 15px;
  }

  .footer-banner-button {
    padding: 8px 25px;
    font-size: 14px;
    bottom: -8px;
    min-width: 130px;
    display: none;
  }

  .footer-banner-content {
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
    height: 100%;
  }
}

@media screen and (max-width: 480px) {
  .footer-banner-title {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .footer-banner-description {
    font-size: 13px;
    padding: 0 10px;
  }

  .footer-banner-button {
    padding: 8px 20px;
    font-size: 13px;
    bottom: -6px;
    min-width: 120px;
  }

  .footer-banner-content {
    padding: 0 10px;
    top: 1rem;
  }

  .footer-middle-bottom {
    border-radius: 6px;
  }

  .footer-banner-content {
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
    height: 100%;
  }
}

@media screen and (max-width: 360px) {
  .footer-banner-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .footer-banner-description {
    font-size: 12px;
  }

  .footer-banner-button {
    padding: 6px 18px;
    font-size: 12px;
    min-width: 110px;
  }

  .footer-banner-content {
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
    height: 100%;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1366px) {
  /* #main-footer {
      margin: auto 12rem;
  } */
  .footer-line {
    right: 12rem;
    left: 12rem;
  }
}

@media screen and (min-width: 1367px) and (max-width: 1440px) {
   /* #main-footer {
      margin: auto 20rem;
  } */

  .footer-line {
    right: 20rem;
    left: 20rem;
  }
}

@media screen and (min-width: 1441px) and (max-width: 1920px) {
  /* #main-footer {
      margin: auto 20rem;
  } */
  .footer-line {
    right: 20rem;
    left: 20rem;
  }
}

@media screen and (min-width: 1921px) and (max-width: 2559px) {
   /* #main-footer {
      margin: auto 20rem;
  } */
  .footer-line {
    right: 20rem;
    left: 20rem;
  }

   .footer-banner-button {
    bottom: 18%;
  }
   .footer-banner-button {
    font-size: 1.8rem;
  }
}

@media screen and (min-width: 2560px) and (max-width: 3839px) {
  /* #main-footer {
      margin: auto 20rem;
  } */
  .footer-line {
    right: 20rem;
    left: 20rem;
  }
}