.footer {
  if (hexo-config('footer.icon.enable')) {
    &__icon {
      display: inline-block;
      margin: 0 .4rem;
      font-size: 1em;
      color: convert(hexo-config('footer.icon.color') || '#f00');

      if (hexo-config('footer.icon.animation')) {
        animation: footerHeartBeat 1.2s infinite;

        @keyframes footerHeartBeat {
          0% {
            transform: scale(1);
          }

          15% {
            transform: scale(1.2);
          }

          30% {
            transform: scale(1);
          }

          45% {
            transform: scale(1.2);
          }
        }
      }
    }
  }

  &-inner {
    position: relative;
    padding: 1rem;
    font-size: $font-size-footer;
    text-align: center;
    color: $footer-text-color;
    background-color: $footer-bg-color;

    if (hexo-config('footer.bg_image.enable') && hexo-config('footer.bg_image.url')) {
      z-index: $z-index0;
      background: url(hexo-config('footer.bg_image.url')) no-repeat center / cover;
    }

    if (hexo-config('footer.mask.enable')) {
      &::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: $z-index-1;
        width: 100%;
        height: 100%;
        background-color: alpha(#000, hexo-config('footer.mask.opacity'));
      }
    }
  }

  a {
    color: $footer-link-color;
    transition: color .2s ease;

    &:hover {
      color: $footer-link-hover-color;
    }
  }

  &__devider {
    margin: 0 10px;
  }
}
