:root {
  --jw-shell-height: 70px;
  --jw-shell-max: 1488px;
}
.zt.jw-shell-present > .zt-sidebar,
.zt.jw-shell-present > .zt-mobile-backdrop,
.zt.jw-shell-present .zt-main > .zt-header,
body.jw-portal-present[data-page="account"] > header.top { display: none; }

.zt.jw-shell-present .zt-main {
  width: 100%;
  margin-inline-start: 0;
  min-height: calc(100vh - var(--jw-shell-height));
}

.zt.jw-shell-present[data-jw-surface="workspace"] {
  background: radial-gradient(ellipse at 100% 5%, #e4eeff 0, transparent 49%), #f4f7fc;
}

.jw-site-header,
.jw-site-header * { box-sizing: border-box; }

.jw-site-header {
  position: sticky;
  z-index: 45;
  top: 0;
  width: 100%;
  height: var(--jw-shell-height);
  color: #101c36;
  background: rgba(249,251,255,.94);
  box-shadow: 0 1px 0 #9db3d141, 0 9px 25px #21436107;
  backdrop-filter: blur(20px);
  transition: background .32s, color .32s, box-shadow .32s;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.jw-site-header[data-surface="home"]:not(.jw-site-scrolled) {
  background: linear-gradient(105deg,#e8efff,#d2e4fc 58%,#abd0f7);
  box-shadow: none;
}

.jw-site-header[data-surface="home"].jw-site-dark {
  color: #eaf2ff;
  background: rgba(5,14,37,.94);
  box-shadow: 0 1px 0 #85a1e242, 0 9px 25px #07112629;
}

.jw-shell-width { width: min(var(--jw-shell-max), calc(100% - clamp(40px, 9vw, 150px))); margin-inline: auto; }
.jw-site-line { height: 100%; display: flex; align-items: center; gap: clamp(18px, 3.1vw, 50px); }

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

.jw-site-header :is(button, a):focus-visible { outline: 2px solid #1b86ff; outline-offset: 4px; }

.jw-site-header .jw-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: inherit;
  white-space: nowrap;
  font-size: clamp(26px, 2.35vw, 34px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.055em;
}

.jw-site-mark {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: block;
  width: 36px;
  height: 37px;
  flex: none;
}

.jw-site-mark::before,
.jw-site-mark::after {
  content: '';
  position: absolute;
  filter: drop-shadow(0 4px 5px #2869ba38);
}

.jw-site-mark::before {
  inset: 0 5px 1px 4px;
  border-radius: 65% 26% 66% 16% / 41% 43% 57% 64%;
  background: linear-gradient(142deg,#8be5ff 12%,#157be3 52%,#09368b 100%);
  transform: skew(-19deg) rotate(15deg);
}

.jw-site-mark::after {
  inset: 9px 1px 4px 3px;
  border-radius: 68% 38% 56% 15% / 55% 45% 55% 45%;
  background: linear-gradient(39deg,#2ad7f5 4%,#1473ec 45%,#183fac 78%,#58aafa);
  transform: rotate(-21deg) skewX(-11deg);
}

.jw-site-header .jw-site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 3.15vw, 53px);
  padding-inline-start: clamp(15px, 3.3vw, 58px);
  border-inline-start: 1px solid #7c9bbc52;
  flex: 1;
  margin: 0;
  white-space: nowrap;
}

.jw-site-nav a {
  position: relative;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.4;
  font-weight: 710;
}

.jw-site-header .jw-site-nav a:hover,
.jw-site-header .jw-site-nav a[aria-current="page"] { color: #095bd3; }
.zt .jw-site-header:not(.jw-site-dark) .jw-site-nav > a:not([aria-current="page"]):not(:hover) { color: #15233b; }
.zt .jw-site-header.jw-site-dark .jw-site-nav > a { color: #e3edff; }
.zt .jw-site-header.jw-site-dark .jw-site-nav > a:is(:hover,[aria-current="page"]) { color: #9fdaff; }

.jw-site-nav a[aria-current="page"]::after {
  position: absolute;
  content: '';
  inset: auto 0 -10px;
  background: currentColor;
  opacity: .82;
  height: 2px;
  border-radius: 4px;
}

.jw-site-account {
  display: flex;
  gap: 22px;
  align-items: center;
  position: relative;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 710;
}
.jw-site-account .jw-site-login:hover,
.jw-site-account .jw-site-login[aria-current="page"] { color: #0865dd; }
.zt .jw-site-header .jw-site-account > .jw-site-login:not(:hover) { color: #15233b; }
.zt .jw-site-header.jw-site-dark .jw-site-account > .jw-site-login { color: #e3edff; }
.jw-site-account .jw-site-register {
  min-width: 86px;
  min-height: 38px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(132deg,#148be6,#0a55df 68%,#0879cd);
  box-shadow: inset 0 0 10px #76dfff4c;
}
.jw-site-account .jw-site-register:hover { box-shadow: inset 0 0 13px #8bebffad; }
.jw-site-header .jw-profile-toggle {
  background: transparent;
  border: 1px solid #7e9bc770;
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
  min-height: 38px;
  display: inline-flex;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  font: inherit;
}

.jw-site-header [hidden] { display: none !important; }
.jw-site-menu { display: none; }
.jw-site-header .jw-profile-menu {
  display: grid;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  gap: 3px;
  padding: 8px;
  background: #f9fcff;
  color: #143157;
  box-shadow: 0 16px 45px #2a476d29;
  border: 1px solid #c5d7f0;
  border-radius: 13px;
}
.jw-site-header .jw-profile-menu a { padding: 9px 12px; border-radius: 7px; font-size: 13px; }
.jw-site-header .jw-profile-menu a:hover { background: #e9f2fe; color: #0957c9; }

.jw-shell-present .zt-footer > a.jw-inner-center {
  flex-shrink: 0;
  color: #4d698e;
  text-decoration: none;
}
.jw-shell-present .zt-footer > a.jw-inner-center:hover { text-decoration: underline; }
.jw-portal-present[data-page="account"] #app { min-height: calc(100vh - var(--jw-shell-height) - 110px); }

@media(max-width: 1040px) {
  .jw-site-line { gap: 18px; }
  .jw-site-header .jw-site-nav { padding-inline-start: 18px; gap: 20px; }
  .jw-site-account { gap: 14px; }
}

@media(max-width: 870px) {
  :root { --jw-shell-height: 62px; }
  .jw-shell-width { width: calc(100% - 36px); }
  .jw-site-line { gap: 12px; }
  .jw-site-mark { width: 28px; height: 29px; }
  .jw-site-header .jw-site-brand { gap: 6px; font-size: 26px; }
  .jw-site-account { margin-left: auto; }
  .jw-site-header .jw-site-nav {
    position: absolute;
    display: none;
    padding: 7px;
    inset: calc(var(--jw-shell-height) - 3px) 18px auto auto;
    width: min(290px, calc(100vw - 36px));
    align-items: stretch;
    gap: 3px;
    color: #18345c;
    background: #f9fcff;
    border: 1px solid #c5d7f0;
    border-radius: 13px;
    box-shadow: 0 16px 45px #2a476d29;
  }
  .jw-site-line:has(.jw-site-menu[aria-expanded="true"]) .jw-site-nav { display: grid; }
  .jw-site-header .jw-site-nav a { padding: 11px 12px; border-radius: 8px; }
  .jw-site-header .jw-site-nav a[aria-current="page"] { background: #eaf3ff; color: #0957c9; }
  .zt .jw-site-header.jw-site-dark .jw-site-nav > a { color: #15233b; }
  .zt .jw-site-header.jw-site-dark .jw-site-nav > a[aria-current="page"] { color: #0957c9; }
  .jw-site-nav a[aria-current="page"]::after { display: none; }
  .jw-site-menu {
    display: grid;
    place-content: center;
    gap: 3.5px;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid #a1bade87;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .jw-site-menu > span { width: 13px; height: 1.5px; border-radius: 2px; background: currentColor; }
  .jw-site-account .jw-site-register { min-width: 61px; min-height: 34px; padding-inline: 9px; }
}

@media(prefers-reduced-motion: reduce) {
  .jw-site-header { transition: none; }
}

body:has(.zt.jw-shell-present) .ache-pet-layer .ache-pet,
body:has(.zt.jw-shell-present) .ache-pet-speech { visibility: hidden !important; }

.zt.jw-shell-present .jw-coach-launch {
  display: none;
  position: fixed;
  z-index: 35;
  right: 19px;
  bottom: 17px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #bad4f1;
  border-radius: 99px;
  color: #24588d;
  background: #f8fbff;
  box-shadow: 0 3px 14px #224f7720;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
body:has(.ache-pet-layer:not([hidden])) .zt.jw-shell-present[data-jw-surface="workspace"] .jw-coach-launch { display: inline-flex; }
.zt .jw-coach-launch span { color: #066ae3; font-size: 16px; line-height: 1; letter-spacing: 1px; }
