/* =========================
   Fashion Header V3
========================= */

.site-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid #e5e9ed;
}

/* =========================
   Header 主体
========================= */

.header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  gap:28px;
}

/* 品牌 */

.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex:0 0 auto;
  text-decoration:none;
}

.brand strong{
  color:var(--red);
  font-size:24px;
  line-height:1;
  font-weight:700;
  letter-spacing:.5px;
}

.brand span{
  color:var(--blue);
  font-size:12px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}

/* =========================
   主导航
========================= */

.top-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  flex:1;
}

.top-nav a{
  color:#3e454d;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  transition:color .22s ease;
}

.top-nav a:hover{
  color:var(--red);
}

/* =========================
   右侧功能
========================= */

.header-right{
  display:flex;
  align-items:center;
  gap:22px;
  flex:0 0 auto;
}

.login-btn,
.order-btn{
  color:#555d66;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  transition:color .22s ease;
}

.login-btn:hover,
.order-btn:hover{
  color:var(--red);
}

/* =========================
   手机三横按钮
========================= */

.mobile-menu-btn{
  display:none;
  width:42px;
  height:42px;
  padding:8px;
  border:1px solid #dfe5ea;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}

.mobile-menu-btn span{
  display:block;
  width:100%;
  height:2px;
  margin:5px 0;
  border-radius:2px;
  background:#26313c;

  transition:
    transform .25s ease,
    opacity .25s ease;
}

/* =========================
   语言选择栏
========================= */

.language-wrap{
  width:100%;
  border-top:1px solid #edf0f3;
  background:#fff;
}

.language-wrap .container{
  width:min(1160px, calc(100% - 48px));
  margin:0 auto;
}

.language-bar{
  min-height:56px;

  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;

  color:#8a929b;
  font-size:16px;
  line-height:1.8;
}

.language-bar a{
  margin:0 7px;
  color:#123f89;
  text-decoration:none;
  white-space:nowrap;
}

.language-bar a:hover{
  color:var(--red);
}

.language-bar span{
  color:#b1b7be;
}

/* =========================
   Tablet / Mobile
========================= */

@media(max-width:900px){

  .header-inner{
    position:relative;
    min-height:64px;
    gap:10px;
  }

  .mobile-menu-btn{
    display:block;
    flex:0 0 42px;
    order:1;
  }

  .brand{
    order:2;
    margin-right:auto;
  }

  .brand span{
    display:none;
  }

  .brand strong{
    font-size:22px;
  }

  .header-right{
    order:3;
    gap:16px;
  }

  .login-btn,
  .order-btn{
    font-size:14px;
  }

  /* 手机版菜单默认隐藏 */

  .site-header .top-nav{
    position:fixed;
    top:64px;
    left:0;
    right:0;
    bottom:0;
    z-index:998;

    display:none;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:0;

    width:100%;
    height:calc(100vh - 64px);

    padding:42px 28px;

    background:#fff;
    box-shadow:none;
    border:0;

    overflow-y:auto;
  }

  .site-header .top-nav.open{
    display:flex;
  }

  .site-header .top-nav a{
    display:block;
    width:100%;

    padding:18px 0;

    border-bottom:1px solid #edf0f3;

    color:#1f3a5f;
    font-size:24px;
    line-height:1.4;
    font-weight:700;
  }

  .site-header .top-nav a:last-child{
    border-bottom:0;
  }

  body.menu-open{
    overflow:hidden;
  }

  .site-header{
    overflow:visible;
  }

  /* 三横变关闭叉号 */

  .mobile-menu-btn.open span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.open span:nth-child(2){
    opacity:0;
  }

  .mobile-menu-btn.open span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }

}

/* =========================
   手机
========================= */
@media(max-width:700px){

  .language-wrap{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .language-wrap::-webkit-scrollbar{
    display:none;
  }

  .language-wrap .container{
    width:max-content;
    max-width:none;
    margin:0;
    padding:0;
  }

  .language-bar{
    width:max-content;
    min-width:max-content;
    min-height:44px;
    padding:8px 14px;

    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:nowrap;

    white-space:nowrap;
    font-size:13px;
  }

  .language-bar a,
  .language-bar span{
    display:inline-block;
    flex:0 0 auto;
    white-space:nowrap;
  }

  .language-bar a{
    margin:0 5px;
  }

}

/* =========================
   小屏手机
========================= */

@media(max-width:520px){

  .header-inner{
    gap:7px;
  }

  .brand strong{
    font-size:20px;
  }

  .mobile-menu-btn{
    width:40px;
    height:40px;
    flex-basis:40px;
  }

  .login-btn,
  .order-btn{
    font-size:13px;
  }

  .header-right{
    gap:13px;
  }

}
