/* ============================================
   Footer Styles - 重构版本
   ============================================ */
.footer {
  background-color: #0f1419;
  color: #ffffff;
  padding: 80px 0 40px;
  position: relative;
}

/* 确保背景纯净无杂质 */
.footer::before,
.footer::after {
  display: none;
}

.footer * {
  background-image: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  /* 等宽，无max-width限制 */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.footer-desc {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #ffffff;
}

.footer-nav {
  min-width: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #9ca3af;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 14px;
  color: #6b7280;
}

.footer-icp {
  font-size: 13px;
  color: #6b7280;
}

.footer-icp a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: #60a5fa;
}

/* Footer Responsive */
@media (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 4;
    max-width: 100%;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid #374151;
  }

  .footer-brand .footer-logo {
    justify-content: center;
  }

  .footer-brand .footer-desc {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 1;
    text-align: left;
  }

  .footer-brand .footer-logo {
    justify-content: flex-start;
  }

  .footer-brand .footer-desc {
    margin: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 页脚微信公众号栏目 */
.footer-wechat {
  text-align: center;
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background: white;
  padding: 6px;
}

.footer-qrcode span {
  font-size: 13px;
  color: #9ca3af;
}