/* ========================================
   Enterprise Footer Styles
   企业级Footer样式
   ======================================== */

.enterprise-footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.enterprise-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.enterprise-footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand Column */
.footer-brand {
  padding-right: 2rem;
}

.footer-logo img {
  max-height: 48px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer Columns */
.footer-column h5 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: '›';
  font-size: 1.25rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Info */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  width: 20px;
  color: #667eea;
  font-size: 16px;
  margin-top: 2px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: white;
  text-decoration: underline;
}

/* QR Code */
.footer-qr {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.footer-qr:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer-qr img {
  width: 120px;
  height: 120px;
  margin-bottom: 0.75rem;
  border-radius: 8px;
}

.footer-qr p {
  font-size: 0.8125rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.copyright a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright a:hover {
  color: white;
  text-decoration: underline;
}

/* Footer Certifications */
.footer-certifications {
  display: flex;
  gap: 2rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-certifications span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-certifications i {
  color: #10b981;
  font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-column h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .enterprise-footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-column h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-links a:hover {
    transform: none;
  }
  
  .footer-contact li {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.5rem;
  }
  
  .footer-certifications {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .enterprise-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-logo img {
    max-height: 40px;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .footer-qr {
    margin-top: 1rem;
  }
  
  .footer-qr img {
    width: 100px;
    height: 100px;
  }
}

/* Print Styles */
@media print {
  .enterprise-footer {
    background: white !important;
    color: black !important;
  }
  
  .enterprise-footer::before {
    display: none !important;
  }
  
  .footer-desc,
  .footer-links a,
  .footer-contact,
  .copyright {
    color: black !important;
  }
  
  .back-to-top,
  .footer-social {
    display: none !important;
  }
}

