/**
 * SuperX Theme - Footer CSS
 */

/* ============================================
   Footer Wrapper
   ============================================ */
.superx-footer {
  background-color: var(--superx-bg-dark);
  color: var(--superx-bg-light);
  padding: var(--superx-spacing-xl) 0 var(--superx-spacing-xl);
}

.superx-footer-inner {
  max-width: var(--superx-container-width);
  margin: 0 auto;
  padding: 0 var(--superx-spacing-lg);
}

/* ============================================
   Footer Top (Sitemap)
   ============================================ */
.superx-footer-top {
  display: flex;
  /*gap: var(--superx-spacing-3xl);*/
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Footer Logo */
.superx-footer-logo {
  flex-shrink: 0;
}

.superx-footer-logo img {
  width: auto;
  max-width:140px;
}

/* Footer Columns */
.superx-footer-columns {
  display: grid;
  padding-top:10px;
  /*grid-template-columns: repeat(4, 1fr);*/
  /*gap: var(--superx-spacing-2xl);*/
  flex: 1;
}

.superx-footer-column {
  min-width: 150px;
}

.superx-footer-column-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.superx-footer-column ul {
  list-style: none;
  padding: 0;
  width: 100%;
}
.superx-footer-columns ul  > li{
  display: inline-block;
  margin-left: var(--superx-spacing-4xl);
  vertical-align: top;
}


/* 子菜单列表 */
.superx-footer-columns ul  > li > span {
  font-size: 1.2rem;
  display: block;
  font-weight: 700;
  color: #ffffff;
}

.superx-footer-columns ul  > li > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 1px;
}

.superx-footer-column ul  > li > ul > li {
  display: block;
  margin-top: var(--superx-spacing-sm);
  margin-left: 0;
}

.superx-footer-column ul li ul li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color var(--superx-transition);
}

.superx-footer-column ul li ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.superx-footer-column ul  > li > ul > li > span {
  color: #d1d5db;
  font-size: 1.1rem;
  font-weight:normal;
}

  /* 子菜单列表 */
.superx-footer-columns ul.footer-main-list > li > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   Footer Divider
   ============================================ */
.superx-footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: var(--superx-spacing-lg) 0;
}

/* ============================================
   Footer Bottom
   ============================================ */
.superx-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--superx-spacing-xl);
  align-items: center;
  color: #a1a1aa;
  width: 100%;
}

/* Copyright */
.superx-footer-copyright {
  color: #a1a1aa;
  font-size: 1rem;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.superx-footer-copyright a {
  color: #a1a1aa;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--superx-transition);
}

.superx-footer-copyright a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Legal Links */
.superx-footer-legal {
  display: flex;
  align-items: center;
  gap: var(--superx-spacing-xl);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.superx-footer-legal a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color var(--superx-transition);
  white-space: nowrap;
}

.superx-footer-legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Social Links */
.superx-footer-social {
  display: flex;
  align-items: center;
  gap: 0;
}

.superx-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  opacity: 0.90;
  transition: all var(--superx-transition);
  /*background-color: rgba(255, 255, 255, 0.05);*/
  zoom:1.3;
}

.superx-footer-social a:hover {
  opacity: 1;
  color: #ffffff;
  /*background-color: rgba(255, 255, 255, 0.15);*/
  transform: translateY(-2px);
}

.superx-footer-social a p {display: none;}
.superx-footer-social p {display: none;}

/* 响应式设计 */
@media (max-width: 768px) {
  .superx-footer-bottom {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--superx-spacing-lg);
    padding: 20px;
    text-align: center;
  }

  .superx-footer-legal {
    justify-content: center;
  }

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

  .superx-footer-copyright {
    font-size: 1rem;
  }
}



/* ============================================
   Responsive Footer
   ============================================ */
@media (max-width: 991px) {
  .superx-footer-top {
    gap: var(--superx-spacing-xl);
  }

  .superx-footer-columns {
    /*grid-template-columns: repeat(2, 1fr);*/
    gap: var(--superx-spacing-xl);
  }

  .superx-footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--superx-spacing-lg);
  }

  .superx-footer-legal {
    justify-content: center;
  }

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

@media (max-width: 767px) {
  .superx-footer-top {
    flex-direction: column;
    gap: var(--superx-spacing-xl);
  }

  .superx-footer-columns {
    /*grid-template-columns: 1fr 1fr;*/
    width: 100%;
  }

  .superx-footer-logo {
    margin-bottom: var(--superx-spacing-md);
  }
}

@media (max-width: 480px) {
  .superx-footer-columns {
    /*grid-template-columns: 1fr;*/
  }

  .superx-footer-legal {
    flex-direction: column;
    gap: var(--superx-spacing-sm);
  }
}

/* ============================================
   RTL Footer Adjustments
   ============================================ */
[dir="rtl"] .superx-footer-top {
  flex-direction: row-reverse;
}

[dir="rtl"] .superx-footer-column {
  text-align: right;
}

@media (max-width: 767px) {
  [dir="rtl"] .superx-footer-top {
    flex-direction: column;
  }
}
