/* 导航栏 — 对齐 super-i head1 */

/* 修正 common.css 错误资源路径 */
.head1 .des-btn {
  background-image: url("../img/designer/des-btn.png") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0;
  height: 2.083vw;
  min-height: 32px;
  padding: 0 1vw !important;
  border-radius: 120px;
  color: #000 !important;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

/* Logo 区 */
.logo a {
  flex-wrap: nowrap;
  white-space: nowrap;
  text-decoration: none;
  gap: 0;
}

.logo img {
  flex-shrink: 0;
}

.logo-brand {
  font-size: 1.25vw;
  font-weight: 700;
  color: #070707;
  line-height: 1;
  margin-right: 0.5208vw;
  margin-top: 0.3646vw;
  flex-shrink: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.logo-tagline {
  font-size: 0.72vw;
  color: #070707;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  opacity: 0.85;
  line-height: 1;
  margin-top: 0.3646vw;
}

/* 导航链接 */
.nav .menu li a.btn-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: #070707;
  line-height: 1.2;
}

.nav .menu li a.flowpix-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  min-height: 28px;
}

.nav .menu li a.flowpix-btn .flip-span,
.nav .menu li a.flowpix-btn .flip-text {
  line-height: 1.2;
}

.nav .menu li a.btn-text .icon {
  flex-shrink: 0;
  width: 1.25vw;
  min-width: 18px;
  margin-right: 0.42vw;
}

.nav .menu li a.btn-text .icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* 登录/注册 */
.head1 .nav .right {
  flex-shrink: 0;
}

.head1 .signup-btn {
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  color: #070707;
  min-height: 36px;
}

.head1 .signup-btn .btn-text {
  color: #070707;
}

/* 桌面端布局（与 super-i index inline style 一致） */
@media (min-width: 769px) {
  .head1 {
    flex-wrap: nowrap !important;
  }

  .head1 > .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 38%;
  }

  .head1 > .nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(8px, 0.8vw, 16px);
  }

  .head1 .nav .menu.pc {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap !important;
    margin-right: 0 !important;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
  }

  .head1 .nav .menu.pc li {
    flex-shrink: 0;
  }

  .head1 .nav .right {
    flex: 0 0 auto;
    white-space: nowrap;
    position: relative;
    z-index: 1;
  }
}

/* 登录后：压缩右侧用户信息区，避免遮挡「直播课」等末位菜单 */
body.linkon-logged-in .logo-tagline {
  display: none;
}

body.linkon-logged-in .head1 > .logo {
  max-width: 28%;
}

body.linkon-logged-in .head1 .signup-btn.is-logged {
  padding: 0.52vw 0.9vw;
  max-width: 9.5em;
}

body.linkon-logged-in .head1 .signup-btn.is-logged .btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 7em;
}

body.linkon-logged-in .head1 .signup-btn.is-logged .arrow-icon {
  display: none;
}

body.linkon-logged-in .linkon-header-logout {
  padding: 5px 10px;
  margin-left: 6px;
  font-size: 12px;
}

@media (min-width: 769px) and (max-width: 1360px) {
  body.linkon-logged-in .head1 .nav .menu.pc li {
    margin: 0 0.55vw !important;
  }

  body.linkon-logged-in .head1 .nav .menu.pc li a {
    font-size: 13px !important;
  }

  body.linkon-logged-in .linkon-header-logout {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  body.linkon-logged-in .head1 > .logo {
    max-width: 22%;
  }

  body.linkon-logged-in .logo-brand {
    font-size: 14px !important;
  }

  body.linkon-logged-in .head1 .nav .menu.pc li {
    margin: 0 0.35vw !important;
  }

  body.linkon-logged-in .head1 .nav .menu.pc li a {
    font-size: 12px !important;
  }

  body.linkon-logged-in .head1 .des-btn {
    font-size: 12px !important;
    padding: 0 0.6vw !important;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .head1 {
    padding: 0 2vw !important;
  }

  .head1 .nav .menu.pc {
    margin-right: 0.8vw !important;
  }

  .head1 .nav .menu.pc li {
    margin: 0 0.7vw !important;
  }

  .logo a {
    flex-wrap: nowrap !important;
  }

  .logo-tagline {
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  .logo-brand {
    font-size: 16px !important;
  }

  .logo a img {
    width: 1.9vw !important;
    min-width: 28px;
    margin-right: 0.3vw !important;
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .head1 {
    padding: 0 1.2vw !important;
  }

  .head1 .nav .menu.pc li {
    margin: 0 0.4vw !important;
  }

  .head1 .nav .menu.pc li a {
    font-size: 13px !important;
  }

  .logo-tagline {
    font-size: 11px !important;
  }

  .logo-brand {
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  .logo-brand {
    font-size: 16px;
    margin-right: 6px;
  }

  .logo-tagline {
    display: none;
  }

  .head1 .des-btn {
    height: 32px;
    font-size: 12px;
    padding: 0 10px !important;
  }
}
