@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-v40-chinese-simplified_latin-200.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-v40-chinese-simplified_latin-300.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-v40-chinese-simplified_latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-v40-chinese-simplified_latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-v40-chinese-simplified_latin-700.woff2") format("woff2");
}

:root {
  --site-nav-height: 72px;
  --site-nav-text: #171d39;
  --site-nav-muted: #697395;
  --site-nav-purple: #6b54ff;
  --site-nav-blue: #4f6bff;
  --site-nav-border: rgba(24, 31, 59, .08);
  --site-nav-shadow: 0 8px 24px rgba(39, 52, 109, .06);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--site-nav-height);
  padding: 0 min(64px, 4vw);
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--site-nav-text);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--site-nav-border);
  box-shadow: var(--site-nav-shadow);
  backdrop-filter: blur(12px);
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

.site-nav *,
.site-nav *::before,
.site-nav *::after {
  box-sizing: border-box;
}

.site-nav a,
.site-nav button {
  font: inherit;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

.site-nav button {
  cursor: pointer;
}

.site-nav__brand {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.site-nav__fallback-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-nav-blue), #8c45ff);
  font-weight: 950;
}

.site-nav__logo {
  display: block;
  max-width: 128px;
  max-height: 44px;
  object-fit: contain;
}

.site-nav__left-logo {
  max-width: 124px;
}

.site-nav__divider {
  width: 1px;
  height: 38px;
  background: rgba(24, 31, 59, .26);
}

.site-nav__brand-copy {
  display: inline-flex;
  align-items: center;
  color: var(--site-nav-text);
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.site-nav__links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  min-width: 0;
  color: #252d4f;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav__links a {
  position: relative;
  line-height: 72px;
  transition: color .18s ease;
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--site-nav-purple);
}

.site-nav__links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-nav-purple), #17cbd3);
  transform: translateX(-50%);
}

.site-nav__actions {
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.site-nav .nav-btn {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-nav-purple), #8a5bff);
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}

.site-nav .nav-btn-ghost {
  color: #4f63bd;
  background: #eef2ff;
}

.site-nav .user-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #252d4f;
  font-size: 14px;
  font-weight: 900;
}

.site-nav .user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-nav-blue), #8c45ff);
  background-size: cover;
  background-position: center;
}

.site-nav .user-avatar span {
  font-weight: 950;
}

.site-nav .user-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav .user-credits {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #4f63bd;
  background: #eef2ff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-nav .user-credits:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--site-nav-blue), #7a5cff);
  box-shadow: 0 10px 24px rgba(79, 107, 255, 0.28);
  transform: translateY(-1px);
}

.site-nav .user-dropdown {
  position: relative;
}

.site-nav .user-dropdown-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  color: #4f63bd;
  background: #eef2ff;
  font-size: 11px;
  font-weight: 950;
}

.site-nav .user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 150px;
  padding: 8px;
  display: none;
  border: 1px solid rgba(98, 116, 190, .16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(48, 63, 130, .16);
}

.site-nav .user-dropdown-menu.show {
  display: grid;
}

.site-nav .user-dropdown-item {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  color: #384678;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.site-nav .user-dropdown-item:hover {
  color: var(--site-nav-purple);
  background: #f2f4ff;
}

@media (max-width: 1180px) {
  .site-nav {
    padding: 0 28px;
    gap: 22px;
  }

  .site-nav__brand {
    min-width: 180px;
  }

  .site-nav__links {
    gap: 22px;
  }

  .site-nav__actions {
    min-width: 220px;
  }
}

@media (max-width: 900px) {
  :root {
    --site-nav-height: 64px;
  }

  .site-nav {
    height: 64px;
    padding: 0 18px;
    gap: 14px;
  }

  .site-nav__brand {
    min-width: 0;
    gap: 10px;
  }

  .site-nav__logo {
    max-width: 92px;
    max-height: 34px;
  }

  .site-nav__left-logo {
    max-width: 84px;
  }

  .site-nav__divider {
    height: 28px;
  }

  .site-nav__brand-copy {
    font-size: 17px;
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__actions {
    min-width: 0;
    margin-left: auto;
  }

  .site-nav .user-name,
  .site-nav .user-credits {
    display: none !important;
  }

  .site-nav .nav-btn {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .site-nav {
    padding: 0 12px;
  }

  .site-nav__brand-copy {
    display: none !important;
  }

  .site-nav .nav-btn-ghost {
    display: none !important;
  }
}
