/* 页脚样式 */
.site-footer {
  position: relative;
  margin-top: 3rem;
  background: #f8f9fa;
  color: #333;
  border-top: 1px solid #e9ecef;
  font-size: 0.9rem;
  padding: 2rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-main {
  width: 100%;
}

.footer-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
  position: relative;
}

.footer-links li:not(:last-child)::after {
  content: '|';
  margin: 0 1.2rem;
  color: #ccc;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

.footer-copyright p {
  margin: 0.3rem 0;
  color: #666;
  font-size: 0.75rem;
}

.footer-copyright a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: var(--primary-color);
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(44, 90, 160, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
}

.back-to-top i {
  font-size: 1rem;
}

/* 移动端样式 - 媒体查询 */
@media (max-width: 768px) {
  .site-footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
  }
  
  .footer-main .container {
    padding: 0 0.5rem;
  }
  
  .footer-links {
    flex-wrap: wrap;
  }
  
  .footer-links li:not(:last-child)::after {
    margin: 0 0.5rem;
  }
  
  .footer-links a {
    font-size: 0.75rem;
  }
  
  .footer-copyright {
    padding-top: 1rem;
  }
  
  .footer-copyright p {
    font-size: 0.7rem;
  }
  
  .back-to-top {
    bottom: 20px;
    width: 36px;
    height: 36px;
  }
}

/* PC端样式 - 媒体查询 */
@media (min-width: 769px) {
  .site-footer {
    padding: 2rem 0;
  }
  
  .footer-main .container {
    padding: 0 2rem;
  }
}