/* Footer Styles */
.footer {
  background-color: #1a2b4d;
  color: #ffffff;
  padding: 0.6rem 0 0.3rem;
  width: 100%;
}

.footer-container {
  max-width: 16.77rem;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo Section */
.footer-logo {
  margin-bottom: 0.4rem;
}
.footer-logo-img{width: 1.84rem;}

.logo-text {
  font-size: var(--font-size-32);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin: 0 0 0.2rem 0;
  font-family: sans-serif;
}

.logo-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.34rem;
  margin-top: 0.48rem;
}

/* Footer Content Grid */
.footer-content {
  display: flex;
  justify-content: space-between;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  padding: 0 0.4rem 0 0;
}

/* Footer Column */
.footer-column {
  display: flex;
  flex-direction: column;
}

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

.footer-title {
  font-size: var(--font-size-20);
  color: #ffffff;
  margin: 0 0 0.2rem 0;
  text-transform: capitalize;
}

.footer-arrow {
  font-size: var(--font-size-18);
  color: var(--darkblue-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  display: none;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.12rem;
}

.footer-list a {
  color: var(--darkblue-color);
  text-decoration: none;
  font-size: var(--font-size-14);
  transition: opacity 0.3s ease;
}

.footer-list a:hover {
  opacity: 0.7;
}

/* Contact Column */
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-share{
  margin-left: 0.5rem;
  font-size: var(--font-size-18);
  
}
.social-icons {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
  
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.36rem;
  height: 0.36rem;
  color: #ffffff;
  font-size: var(--font-size-22);
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
}
.social-icon .code-box{
  position: absolute;
  bottom:110%;
  left: 50%;
  transform: translateX(-50%);
  height:0;
  display: inline-block;
  width:0;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
}
.social-icon .code-box::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.12rem solid transparent;
  border-right: 0.12rem solid transparent;
  border-top: 0.12rem solid #ffffff;
}
.social-icon .code-box img{width: 100%;height: 100%;}
.social-icon img{width: 50%;}
.social-icon svg{width: 67%;}

.social-icon:hover img,.social-icon:hover svg{
  opacity: 0.7;
}
.social-icon:hover .code-box img{
  opacity: 1;
}
.social-icon:hover .code-box{
  bottom: 110%;
  height:2rem;
  width:2rem;
  opacity: 1;
}
.cn_social-icons{
  display: none;
}
html[lang="zh-CN"] .social-icons{
  display: none;
}
html[lang="zh-CN"] .cn_social-icons{
  display: flex;
}
html[lang="cn"] .social-icons{
  display: none;
}
html[lang="cn"] .cn_social-icons{
  display: flex;
}


.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: var(--font-size-20);
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  color: #ffffff;
  text-decoration: none;
  font-size: var(--font-size-20);
  transition: opacity 0.3s ease;
}

.contact-item:hover {
  opacity: 0.7;
}

.contact-item i {
  font-size: var(--font-size-16);
  width: 0.3rem;
  text-align: center;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content:center;
  align-items: center;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--darkblue-color);
}

.footer-copyright {
  text-align: left;
}

.footer-copyright p {
  margin: 0;
  font-size: var(--font-size-14);
  
  font-family: sans-serif;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 0.07rem;
  margin-left: 1.54rem;
}

.footer-bottom-right a {
  text-decoration: none;
  font-size: var(--font-size-14);
  font-family: sans-serif;
  color: var(--darkblue-color);
  transition: opacity 0.3s ease;
}

.footer-bottom-right a:hover {
  opacity: 0.7;
}

.footer-separator {
  font-size: var(--font-size-14);
}

/* Responsive Design */

@media (max-width: 768px) {
  .footer {
    padding: 0;
  }

  .footer-container {
    max-width: 100%;
    padding: 0;
  }

  .footer-logo {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 0;
    
  }

  .footer-column:first-child {
    border-top: none;
  }

  .footer-title-wrapper {
    padding: 0.3rem 0.4rem;
    margin: 0;
    border-bottom: none;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-title {
    margin: 0;
    font-weight: 400;
  }

  .footer-arrow {
    color: #999999;
    transition: transform 0.3s ease, color 0.3s ease;
  }


  .footer-column.expanded .footer-arrow {
    transform: rotate(90deg);
  }

  .footer-list {
    display: none;
    padding: 0;
    margin: 0;
  }

  .footer-column.expanded .footer-list {
    display: block;
  }

  .footer-list li {
    margin-bottom: 0;
    padding: 0.2rem 0.4rem 0.2rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .footer-list li:last-child {
    border-bottom: none;
  }

  .footer-list a {
    text-decoration: none;
    display: block;
  }

  .footer-share {
    margin-left: 0;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.4rem;
    width: calc(100% - 0.8rem);
  }

  .footer-share .footer-title-wrapper {
    padding: 0;
    margin-bottom: 0.2rem;
    cursor: default;
  }

  .footer-share .footer-arrow {
    display: none;
  }


  .social-icons {
    gap: 0.3rem;
    margin-bottom: 0.2rem;
    justify-content: flex-start;
    width: 49%;
  }


  .contact-info {
    gap: 0.15rem;
    margin-top: 0.2rem;
    width: 49%;
  }

  .contact-item {
    padding: 0.1rem 0;
  }

  .contact-item i {
    width: 0.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.2rem 0.4rem;
  }

  .footer-copyright {
    padding: 0;
  }

  .footer-bottom-right {
    flex-wrap: wrap;
    gap: 0.1rem;
    margin-left: 0;
    display: block;
  }
  .footer-bottom-right *{
   margin-right: 0.1rem;
  }
  .footer-separator {
    margin: 0 0.1rem;
  }
  .social-icon img,.social-icon svg{height: 100%;width: auto;}
  .social-icon:hover .code-box{display: none;}
}

/* 手机版：点击 code-box 社交图标时的二维码弹层（由 global.js 创建 #footerQrModal） */
.footer-qrcode-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  box-sizing: border-box;
}

.footer-qrcode-modal.is-open {
  display: flex;
}

.footer-qrcode-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.footer-qrcode-modal-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 0.08rem;
  padding: 0.36rem 0.28rem 0.28rem;
  max-width: 90vw;
  box-shadow: 0 0.12rem 0.4rem rgba(0, 0, 0, 0.35);
}

.footer-qrcode-modal-img {
  display: block;
  max-width: 75vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.footer-qrcode-modal-close {
  position: absolute;
  top: 0.08rem;
  right: 0.08rem;
  width: 0.36rem;
  height: 0.36rem;
  border: none;
  background: transparent;
  color: #1a2b4d;
  font-size: var(--font-size-20);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.footer-qrcode-modal-close:hover {
  opacity: 0.75;
}

