.logo-wrap
  display: flex
  align-items: center
  overflow: hidden
  min-height: 48px
  img.avatar
    object-fit: cover
  img.icon
    object-fit: contain
  .icon
    width: 48px
    height: 48px
    margin-right: 1rem
    border-radius: 4px
    flex-shrink: 0
  a
    color: inherit
    display: flex
    align-items: center
  a.avatar
    display: block
    position: relative
    width: 48px
    height: 48px
    flex-shrink: 0
    border-radius: 48px
    corner-shape: round // 保持正圆（连续曲率会使正圆变成类方形曲线）
    overflow: hidden
    margin-right: 1rem
    div.bg
      width: 100%
      height: 100%
      background: convert(hexo-config('style.gradient.avatar'))
    img.avatar
      margin: 2px
      width: "calc(100% - 2 * %s)" % @margin
      height: "calc(100% - 2 * %s)" % @margin
      border-radius: @width
      corner-shape: round
    if hexo-config('style.animated_avatar.animate')
      div.bg
        trans1: opacity
        position: absolute
        opacity: 0 !important
        z-index: -1
      @keyframes spin
        from
          transform:rotate(0deg)
        to
          transform:rotate(360deg)
    if hexo-config('style.animated_avatar.animate') == 'always'
      div.bg
        opacity: 1 !important
        animation: spin infinite 4s
        animation-timing-function: linear
    if hexo-config('style.animated_avatar.animate') == 'auto'
      &:hover
        div.bg
          opacity: 1 !important
          animation: spin infinite 4s
          animation-timing-function: linear

  a.title
    font-size: 1.5rem
    font-weight: 900
    color: inherit
    line-height: 1.2
    display: block
    position: relative
    .main
      color: var(--text)
    .sub
      color: var(--text-p1)
      trans2 opacity transform
      white-space: nowrap
    .hover
      position: absolute
      bottom: 0
      transform: translateY(8px)
      overflow: visible
    &:hover
      .normal
        opacity: 0
        transform: translateY(-8px)
      .hover
        transform: translateY(0)
        opacity: 1 !important

.wiki-home-wrap
  margin: 1rem var(--gap-base) .5rem

.wiki-home
  display: flex
  width: fit-content
  align-items: center
  padding: 6px 16px 6px 12px
  border-radius: 32px
  sidebar-light()
  color: var(--text-p2)
  font-size: $fs-13
  trans2 color background
  svg
    height: 1em
    width: auto
    margin-right: 0.25rem
  &:hover
    color: var(--text-p1)
    sidebar-light()

.l_left .wiki-home-wrap + .header
  margin-top: 0.5rem
