/* 
 * footer.css - 网站页脚样式
 * 
 * 默认设计宽度：1440px
 * 适配：PC端和移动端
 */

/* 页脚样式 */
.footer {
  background-color: #0057b8;
  color: #ffffff;
  padding: 50px 0 30px;
  margin-top: 60px;
  width: 100%;
}

/* 页脚内容容器 */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
  width: 100%;
}

.footer-section {
  flex: 1;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.footer-section h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
  position: relative;
  padding-bottom: 10px;
}

.footer-divider {
  width: 40px;
  height: 3px;
  background-color: #ffffff;
  margin-bottom: 20px;
}

.follow-section .footer-divider {
  margin-left: auto;
  margin-right: auto;
}

.service-section .footer-divider {
  margin-left: auto;
  margin-right: 0;
}

/* 联系信息列表 */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 14px;
  color: #ffffff;
}

.contact-list li span {
  font-weight: 500;
  display: inline-block;
  min-width: 70px;
}

/* 二维码容器 */
.qrcode-container {
  display: flex;
  gap: 20px;
}

.qrcode-item {
  text-align: center;
}

.qrcode-item img {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
  background-color: #ffffff;
  padding: 5px;
  border-radius: 5px;
}

.qrcode-item p {
  font-size: 14px;
  margin: 0;
  color: #ffffff;
}

/* 在线服务按钮 */
.service-section {
  display: flex;
  flex-direction: column;
  text-align: right;
  height: 100%;
}

.service-section h4 {
  margin-bottom: 10px;
}

.service-section .footer-divider {
  margin-bottom: 15px;
}

.online-service {
  margin-top: 15px;
  width: 100%;
  text-align: right;
}

.service-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #0057b8;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
  text-align: center;
  font-size: 15px;
}

.service-btn:hover {
  background-color: #e6f0fd;
  color: #0057b8;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 友情链接 */
.footer-links {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #ffffff;
}

.footer-links span {
  margin-right: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 15px;
  transition: color 0.3s;
  opacity: 0.8;
}

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

.footer-links .title a:hover {
  color: var(--primary-color);
}

/* 版权信息 */
.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-copyright a:hover {
  color: #fff;
}

/* 移动端底部工具栏 - 现代化设计 */
.mobile-footer-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  border-top: 1px solid rgba(0, 87, 184, 0.08);
  box-shadow: 
    0 -12px 40px rgba(0, 87, 184, 0.12),
    0 -4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: 990;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 20px 20px 0 0;
}

.mobile-footer-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  color: #64748b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 16px;
  margin: 0 6px;
  min-height: 60px;
  background: transparent;
  overflow: hidden;
}

.mobile-footer-item i {
  font-size: 24px;
  margin-bottom: 6px;
  color: #64748b;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mobile-footer-item span {
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 激活状态样式 */
.mobile-footer-item.active {
  color: #0057b8;
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.15) 0%, rgba(0, 87, 184, 0.08) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(0, 87, 184, 0.2),
    0 4px 12px rgba(0, 87, 184, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mobile-footer-item.active i {
  color: #0057b8;
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 87, 184, 0.3));
}

.mobile-footer-item.active span {
  color: #0057b8;
  font-weight: 700;
  transform: translateY(-1px);
}

/* 悬停效果 */
.mobile-footer-item:hover {
  color: #0057b8;
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.12) 0%, rgba(0, 87, 184, 0.06) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 87, 184, 0.15),
    0 3px 8px rgba(0, 87, 184, 0.08);
}

.mobile-footer-item:hover i {
  color: #0057b8;
  transform: scale(1.08) translateY(-1px);
  filter: drop-shadow(0 3px 6px rgba(0, 87, 184, 0.2));
}

.mobile-footer-item:hover span {
  color: #0057b8;
  transform: translateY(-0.5px);
}

/* 点击波纹效果 */
.mobile-footer-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 87, 184, 0.3) 0%, rgba(0, 87, 184, 0.1) 70%, transparent 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  opacity: 0;
}

.mobile-footer-item:active::before {
  width: 100px;
  height: 100px;
  opacity: 1;
}

.mobile-footer-item:active {
  transform: translateY(-1px) scale(0.98);
}

/* 特殊图标样式 - 渐变色彩 */
.mobile-footer-item:nth-child(1) i {
  background: linear-gradient(135deg, #0057b8 0%, #4285f4 50%, #6c5ce7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

.mobile-footer-item:nth-child(2) i {
  background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite 0.5s;
}

.mobile-footer-item:nth-child(3) i {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 50%, #e83e8c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite 1s;
}

.mobile-footer-item:nth-child(4) i {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 50%, #6f42c1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite 1.5s;
}

/* 渐变动画 */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 返回顶部按钮 */
.back-to-top {
  display: none !important;
}

/* 响应式适配 */
@media (max-width: 1440px) {
  /* 容器样式 */
  .footer .container {
    max-width: 1440px;
    width: 100%;
    padding: 0 40px;
  }
  
  /* 三栏均匀布局 */
  .footer .footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
  }
  
  .footer .footer-section {
    flex: 1;
    max-width: calc(100% / 3);
    padding: 0 15px;
  }
  
  .footer .about-section {
    text-align: left;
  }
  
  .footer .follow-section {
    text-align: center;
  }
  
  .footer .service-section {
    text-align: right;
    display: flex;
    flex-direction: column;
  }
  
  .footer .online-service {
    margin-top: auto;
  }
}

@media (max-width: 1199px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 960px;
  }
  
  .footer-section {
    flex-basis: calc(50% - 20px);
  }
  
  .service-section {
    flex-basis: 100%;
    margin-top: 20px;
  }
  
  .online-service {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 720px;
  }
  
  .footer {
    padding: 20px 0 80px;
  }
  
  /* 完全隐藏三个主要模块及其所有内容 */
  .about-section,
  .follow-section,
  .service-section,
  .footer-inner,
  .footer-links {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
  
  /* 移动端底部工具栏显示 */
  .mobile-footer-bar {
    display: flex;
  }
  
  /* 移动端页脚内容调整 */
  .footer-copyright {
    border-top: none;
    padding-top: 10px; 
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
  }
  
  .qrcode-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

.about-section {
  text-align: left;
}

.follow-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 浮动导航样式（新版） */
.floating-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 12px 0;
  width: 90px;
  align-items: center;
}

.annniu {
  position: relative;
  background: none;
  border-radius: 12px;
  box-shadow: none;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
  margin: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.annniu:hover {
  background: #f5f7fa;
}

.link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0 6px 0;
  color: #222;
  text-decoration: none;
  font-size: 13px;
  width: 100%;
}

.nav-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 4px auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: none;
}

.link-item span, .link-item {
  font-size: 13px;
  margin-top: 0px;
  line-height: 1.2;
}

/* 悬浮内容样式 */
.hover-content {
  position: absolute;
  left: -230px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 18px 20px 16px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  margin: 0;
  display: none;
  width: 210px;
  min-height: 210px;
  align-items: center;
  justify-content: center;
}

.business-hover:hover .hover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-text {
  text-align: center;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  width: 100%;
}

.qr-code {
  width: 120px;
  height: 120px;
  margin: 10px auto 6px auto;
  display: block;
}

.arrow {
  position: absolute;
  right: -8px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.top-button {
  margin-top: 0;
}

/* 移动端底部导航样式（优化对齐） - 备用样式 */
.mobile-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0, 87, 184, 0.15), 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 999;
  border-top: 1px solid rgba(0, 87, 184, 0.1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6c757d;
  font-size: 11px;
  height: 60px;
  padding: 8px;
  border-radius: 12px;
  margin: 0 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-weight: 500;
}

.nav-item .nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item .nav-text {
  font-size: 11px;
  margin: 0;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-item:hover {
  color: #0057b8;
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.08) 0%, rgba(0, 87, 184, 0.03) 100%);
  transform: translateY(-1px);
}

.nav-item.active {
  color: #0057b8;
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.1) 0%, rgba(0, 87, 184, 0.05) 100%);
  transform: translateY(-2px);
}

/* 移动端底部导航微交互效果 */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 87, 184, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 87, 184, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 87, 184, 0);
  }
}

/* 加载动画 */
.mobile-footer-bar {
  animation: slideUpIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 滑入动画 */
@keyframes slideUpIn {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 图标浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.mobile-footer-item i {
  animation: float 4s ease-in-out infinite;
}

.mobile-footer-item:nth-child(1) i {
  animation-delay: 0s;
}

.mobile-footer-item:nth-child(2) i {
  animation-delay: 0.5s;
}

.mobile-footer-item:nth-child(3) i {
  animation-delay: 1s;
}

.mobile-footer-item:nth-child(4) i {
  animation-delay: 1.5s;
}

/* 特殊效果 - 首页按钮 */
.mobile-footer-item:nth-child(1) {
  position: relative;
}

.mobile-footer-item:nth-child(1)::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #0057b8, #4285f4);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 87, 184, 0.5);
}

.mobile-footer-item:nth-child(1).active::after {
  opacity: 1;
  animation: pulse 2s infinite;
  transform: translateX(-50%) scale(1.2);
}

/* 微光效果 */
.mobile-footer-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.mobile-footer-item:hover::after {
  left: 100%;
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
  .floating-nav {
    display: none;
  }
  .mobile-footer-nav {
    display: flex;
  }
  
  /* 小屏幕优化 */
  .mobile-footer-item {
    padding: 10px 8px;
    font-size: 11px;
    min-height: 56px;
    margin: 0 4px;
  }
  
  .mobile-footer-item i {
    font-size: 22px;
    margin-bottom: 4px;
  }
  
  .mobile-footer-item span {
    font-size: 11px;
  }
  
  .mobile-footer-bar {
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }
}

@media screen and (max-width: 480px) {
  .mobile-footer-item {
    padding: 8px 6px;
    font-size: 10px;
    min-height: 52px;
    margin: 0 3px;
  }
  
  .mobile-footer-item i {
    font-size: 20px;
    margin-bottom: 3px;
  }
  
  .mobile-footer-item span {
    font-size: 10px;
  }
  
  .mobile-footer-bar {
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }
}

@media screen and (min-width: 769px) {
  .mobile-footer-nav {
    display: none;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .mobile-footer-bar {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
      0 -12px 40px rgba(0, 0, 0, 0.4),
      0 -4px 16px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .mobile-footer-item {
    color: #b0b0b0;
  }
  
  .mobile-footer-item i {
    color: #b0b0b0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }
  
  .mobile-footer-item:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow: 
      0 6px 20px rgba(255, 255, 255, 0.1),
      0 3px 8px rgba(255, 255, 255, 0.05);
  }
  
  .mobile-footer-item:hover i {
    color: #ffffff;
    filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.2));
  }
  
  .mobile-footer-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 
      0 8px 25px rgba(255, 255, 255, 0.15),
      0 4px 12px rgba(255, 255, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  .mobile-footer-item.active i {
    color: #ffffff;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
  }
  
  .mobile-footer-item span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
} 