footer {
  background: linear-gradient(135deg, #1a3a5f 0%, #2a4a6f 100%);
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

/* 背景装饰元素 */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2a7de1, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-column .footer-nav-title {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
}

.footer-column .footer-nav-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #2a7de1;
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 60px;
}

.footer-column p {
  margin-bottom: 15px;
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.footer-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #2a7de1;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #2a7de1;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  width: 20px;
}

/* 联系信息样式 */
.footer-column p i {
  width: 20px;
  margin-right: 8px;
  color: #2a7de1;
}

/* 社交媒体样式 */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(42, 125, 225, 0.1);
  color: #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(42, 125, 225, 0.2);
}

.footer-social a:hover {
  background: #2a7de1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 125, 225, 0.3);
}

/* 底部版权区域 */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #ccc;
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #2a7de1;
}




/* 悬浮联系方式按钮 */
.contact-float {
  position: fixed;
  bottom: 30px;
  right: 15px;
  z-index: 999;
}

.contact-btn {
  width: 60px;
  height: 60px;
  /* background: linear-gradient(135deg, #2a7de1, #1a3a5f); */
  background-color: #2a7de1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 125, 225, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(42, 125, 225, 0.6);
}

.contact-btn i {
  transition: transform 0.3s ease;
}

.contact-btn img {
  transition: transform 0.3s ease;
}


.contact-btn.active img {
  transform: rotate(-45deg);
}

.contact-card {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 250px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.contact-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-card h3 {
  color: #1a3a5f;
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
}

.contact-item i {
  width: 30px;
  height: 30px;
  background: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a7de1;
  margin-right: 12px;
  font-size: 14px;
}

.contact-item span {
  color: #333;
  font-size: 14px;
}

.contact-item.phone span {
  color: #2a7de1;
  font-weight: 600;
  font-size: 15px;
}

.contact-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}


/* 响应式设计 */
@media (max-width: 1400px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column .footer-nav-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links a {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 50px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-column .footer-nav-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .footer-column .footer-nav-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-column p {
    font-size: 15px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .footer-links a {
    font-size: 15px;
    padding: 6px 0;
  }

  .footer-social {
    gap: 15px;
    margin-top: 20px;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .footer-bottom {
    padding-top: 25px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    gap: 30px;
  }

  .footer-column .footer-nav-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-column p {
    font-size: 14px;
    max-width: 280px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-social {
    gap: 12px;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .footer-bottom {
    font-size: 13px;
    padding-top: 20px;
  }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* 高分辨率屏幕优化 */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {

  .footer-links a,
  .footer-column p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-column {
  animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
  animation-delay: 0.4s;
}
