/* 底部通用配置 */
.footer {
  width: 100%;
  padding: 60px 20px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  z-index: 10;
}

/* 底部动物背景 */
.footer-animals {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: -10px;
}
.animals-img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 底部徽章与版权 */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  z-index: 2;
}

.badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.badge {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  border-radius: 3px;
  overflow: hidden;
  transition: opacity 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.badge:hover {
  opacity: 0.85;
}
.badge-icon {
  padding: 3px 6px;
  background: #555;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.badge-text {
  padding: 3px 8px;
  color: #fff;
}
.badge-pink .badge-text {
  background: var(--paper-pink-400);
}
.badge-blue .badge-text {
  background: var(--paper-blue-400);
}
.badge-orange .badge-text {
  background: var(--paper-deep-orange-400);
}

/* Copyright */
.copyright {
  display: flex;
  font-size: 12px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.copy-left {
  background: #555;
  color: #fff;
  padding: 3px 8px;
}
.copy-right {
  background: #888;
  color: #fff;
  padding: 3px 8px;
}

/* ----------------------------------
   右下角回到顶部按钮
---------------------------------- */
.widget-backtop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 100;
}
.widget-backtop::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bilibili-blue, #00a1d6);
  z-index: 0;
  transition: all 0.3s;
}
.widget-backtop i {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-size: 20px;
  font-weight: bold;
  transition: color 0.3s;
}

.widget-backtop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.widget-backtop:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  background: var(--bilibili-blue, #00a1d6);
}
.widget-backtop:hover::after {
  background: var(--color-white);
  transform: scale(1.5);
}
.widget-backtop:hover i {
  color: var(--bilibili-blue, #00a1d6);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .footer {
    padding: 0 0 15px 0;
  }
  .footer-bottom {
    padding: 0 15px;
  }
  .badges {
    flex-direction: column;
    gap: 10px;
  }
  .badge {
    width: 100%;
    justify-content: center;
  }
  .copyright {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .copy-left, .copy-right {
    width: 100%;
    box-sizing: border-box;
  }
  .widget-backtop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .widget-backtop::after {
    width: 24px;
    height: 24px;
  }
  .widget-backtop i {
    font-size: 16px;
  }
}
