/**
 * @date: 2024/1/24
 * @author: 小红
 * @fileName: header
 * @Description: 头部
 */
@use "util";

.header {
  @import "nav";

  & {
    position: relative;
    width: 100%;
    min-height: 60px;
  }

  @keyframes above-down {
    0% {
      opacity: 0;
      transform: translate3d(0, -50px, 0)
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0)
    }
  }


  .above {
    position: relative;
    width: 100%;
    height: 500px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    //animation: above-down .8s;
    transition: .35s;
    background-blend-mode: multiply;
    background-color: var(--above-mask-color);
    @include util.flex-center;

    @include util.useThemeVar((
      above-mask-color:(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
    ));

    //&::before {
    //  position: absolute;
    //  width: 100%;
    //  height: 100%;
    //  background-color: var(--above-mask-color);
    //  content: '';
    //}

    &-info {
      width: 100%;
      position: absolute;
      padding: 0 10px;
      text-align: center;
    }

    &-title {
      @keyframes above-title-scale {
        0% {
          opacity: 0;
          transform: scale(.7)
        }

        100% {
          opacity: 1;
          transform: scale(1)
        }
      }

      @include util.useThemeVar((
        above-title-color: (rgb(255, 255, 255), rgba(255, 255, 255, 0.9)),
      ));

      @include util.useResponsive(util.$w-md) {
        font-size: 1.85em;
      }

      & {
        font-size: 2.3em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, .15);
        line-height: 1.5;
        font-weight: 700;
        color: var(--above-title-color);
        animation: above-title-scale 1s;
      }
    }
  }

  &.dp .nav {
    background-color: var(--nav-active-background-color);
    box-shadow: var(--nav-active-shadow);

    .link {
      text-shadow: none;
      color: var(--nav-active-font-color);
    }
  }
}

