@charset "utf-8";
/* ========================================
   Modern Footer - 2025 Design Trends
   深色风格 + 微交互动画
   Bootstrap 5 重构版本
   变量引用 vars.css
======================================== */

/* ========== Main Footer ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.footer-main {
  padding: 60px 0 50px;
  overflow: hidden;
}

/* ========== Brand Section ========== */
.footer-brand {
  margin-bottom: 25px;
}

.footer-logo-link {
  display: inline-block;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.footer-logo-link:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.footer-logo {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-desc {
  margin-top: 15px;
  color: var(--footer-text-muted);
  font-size: 0.8125rem; /* 13px */
  line-height: 1.8;
}

/* ========== Contact Info ========== */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.contact-item {
  cursor: pointer;
}

.contact-item:hover {
  color: var(--color-text-white);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--footer-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.contact-icon svg {
  color: var(--color-primary);
}

.contact-item:hover .contact-icon {
  background: var(--color-primary);
  transform: scale(1.1);
}

.contact-item:hover .contact-icon svg {
  color: var(--color-text-white);
}

.contact-text {
  font-size: 0.875rem; /* 14px */
}

/* ========== Navigation Columns ========== */
.footer-nav-col {
  padding-top: 10px;
}

.footer-title {
  color: var(--color-text-white);
  font-size: 1rem; /* 16px */
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.footer-nav-col:hover .footer-title::after {
  width: 50px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.875rem; /* 14px */
  display: inline-block;
  position: relative;
  padding-left: 0;
  transition: all var(--transition-fast);
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 15px;
}

.footer-links a:hover::before {
  width: 10px;
}

/* ========== Footer Bottom ========== */
.footer-bottom {
  background: var(--footer-bg-bottom);
  padding: 20px 0;
  border-top: 1px solid var(--footer-border);
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem; /* 13px */
  color: var(--footer-text-muted);
}

.copyright a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copyright a:hover {
  color: var(--color-primary);
}

.copyright .divider {
  color: var(--footer-border);
  margin: 0 4px;
}

.beian-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* ========== 自定义响应式类 ========== */
.desktop-only {
  display: flex;
}
.mobile-only {
  display: none;
}

/* ========== Responsive ========== */

/* ----- 平板和移动端 (≤1024px) ----- */
@media (max-width: 1024px) {
  /* 自定义响应式类 */
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }

  /* 覆盖Bootstrap栅格 - 品牌区100%宽度 */
  .footer-main .col-lg-4 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* 隐藏导航列 */
  .footer-nav-col {
    display: none !important;
  }

  .footer-main {
    padding: 30px 15px 25px;
  }

  /* 品牌区居中 */
  .footer-brand {
    text-align: center;
    margin-bottom: 0;
  }

  .footer-logo-link {
    display: block;
  }

  .footer-logo {
    height: 36px;
  }

  .footer-desc {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.7;
    text-align: center;
    margin: 15px 0 0;
  }

  /* 联系方式 - 图标按钮行 */
  .footer-contact {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
  }

  .contact-btn {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--footer-text);
    transition: all 0.3s ease;
  }

  .contact-btn:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
  }

  .contact-btn-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .contact-btn-icon svg {
    color: var(--color-primary);
  }

  .contact-btn:hover .contact-btn-icon {
    background: var(--color-primary);
    transform: scale(1.1);
  }

  .contact-btn:hover .contact-btn-icon svg {
    color: #fff;
  }

  .contact-btn-label {
    font-size: 0.8125rem; /* 13px */
    font-weight: 500;
  }

  /* 版权区 */
  .footer-bottom {
    padding: 15px 10px;
  }

  .copyright {
    flex-direction: column;
    gap: 6px;
    font-size: 0.6875rem; /* 11px */
    text-align: center;
  }

  .copyright .divider {
    display: none;
  }

  .beian-icon {
    width: 12px;
    height: 12px;
  }
}

/* ----- 小屏手机 (<576px) ----- */
@media (max-width: 575.98px) {
  .footer-contact {
    gap: 25px;
  }

  .contact-btn-icon {
    width: 48px;
    height: 48px;
  }

  .contact-btn-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-btn-label {
    font-size: 0.75rem; /* 12px */
  }
}

/* ========== Animation on Scroll ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-nav-col {
  animation: fadeInUp 0.5s ease forwards;
}

.footer-nav-col:nth-child(2) { animation-delay: 0.1s; }
.footer-nav-col:nth-child(3) { animation-delay: 0.2s; }
.footer-nav-col:nth-child(4) { animation-delay: 0.3s; }
.footer-nav-col:nth-child(5) { animation-delay: 0.4s; }

