/* 全站「学员中心」入口（放在本文件，避免专题页覆盖 / 旧缓存 style.css 丢失样式） */
.site-header .header-actions {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-shrink: 0 !important;
}
.site-header .header-actions .btn-coach-login,
a.btn-coach-login {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  min-width: max-content !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: visible !important;
  color: #fff !important;
  background: linear-gradient(135deg, #f0a12a 0%, #e67e22 55%, #d35400 100%) !important;
  box-shadow: 0 6px 16px rgba(211, 84, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.site-header .header-actions .btn-coach-login span,
a.btn-coach-login span {
  display: inline !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  color: #fff !important;
}
.site-header .header-actions .btn-coach-login i,
a.btn-coach-login i {
  color: #fff !important;
  flex-shrink: 0 !important;
}
.site-header .header-actions .btn-coach-login:hover,
a.btn-coach-login:hover {
  color: #fff !important;
  filter: brightness(1.04);
}

/* 关于莲花 · 下拉导航 */
.nav-dropdown {
  position: relative;
}
/* 透明桥接层：填满触发项与菜单之间的空隙，避免鼠标移入时 hover 断开 */
.nav-dropdown::after {
  content: '';
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 18px;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 4px 10px;
  text-decoration: none;
  position: relative;
}
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan, #1d6fa4), var(--purple, #e67e22));
  transition: width .2s;
}
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after,
.nav-dropdown:has(.nav-dropdown-item.active) .nav-dropdown-toggle::after {
  width: 100%;
}
.nav-chevron {
  font-size: 9px;
  opacity: .65;
  transition: transform .2s;
}
.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron,
.nav-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 168px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(10,20,40,.12);
  padding: 8px;
  z-index: 200;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  transition-delay: 0s, 0s, .12s;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.06);
  border-top: 1px solid rgba(0,0,0,.06);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: rgba(29,111,164,.08);
  color: #1d6fa4;
}
.nav-dropdown-toggle.active,
.nav-dropdown:has(.nav-dropdown-item.active) .nav-dropdown-toggle {
  color: var(--text-primary, #0a1628);
}
.nav-dropdown:has(.nav-dropdown-item.active) .nav-dropdown-toggle::after {
  width: 100%;
}

/* 手机端：收起顶栏链接，汉堡打开 body 级抽屉（避免被 header 高度裁切） */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  z-index: 1102;
  position: relative;
}

.lhys-mobile-drawer {
  display: none;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(86vw, 320px);
  max-width: 100%;
  height: 100% !important;
  max-height: 100dvh !important;
  z-index: 10060 !important;
  margin: 0;
  padding: 0;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(10, 22, 40, 0.22);
  overflow: hidden;
  transform: none !important;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  background: rgba(10, 22, 40, 0.48);
  margin: 0;
  padding: 0;
}

body.is-mobile-nav-open .lhys-mobile-drawer,
.lhys-mobile-drawer.is-open {
  display: flex !important;
}

body.is-mobile-nav-open .mobile-nav-backdrop,
.mobile-nav-backdrop.is-open {
  display: block !important;
}

.lhys-mobile-drawer__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.lhys-mobile-drawer__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.lhys-mobile-drawer__close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.05);
  color: #1a1a1a;
  font-size: 18px;
  cursor: pointer;
}

.lhys-mobile-drawer__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lhys-mobile-drawer__link,
.lhys-mobile-drawer__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.lhys-mobile-drawer__link.is-active,
.lhys-mobile-drawer__link:hover,
.lhys-mobile-drawer__toggle:hover {
  background: rgba(29, 111, 164, 0.08);
  color: #1d6fa4;
}

.lhys-mobile-drawer__group.is-open > .lhys-mobile-drawer__toggle {
  background: rgba(29, 111, 164, 0.08);
  color: #1d6fa4;
}

.lhys-mobile-drawer__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 6px 10px;
}

.lhys-mobile-drawer__sublink {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #4a5568;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.lhys-mobile-drawer__sublink:hover {
  background: rgba(29, 111, 164, 0.06);
  color: #1d6fa4;
}

body.is-mobile-nav-open {
  overflow: hidden !important;
}

body.is-mobile-nav-open .mobile-nav-backdrop {
  display: block !important;
}

body.is-mobile-nav-open .lhys-mobile-drawer {
  display: flex !important;
}

@media (max-width: 900px) {
  .site-header .header-actions .btn-admin,
  .site-header .header-actions .btn-coach-login {
    display: none !important;
  }

  .site-header .mobile-menu-btn {
    display: inline-flex !important;
  }

  /* 顶栏内原始导航在手机端始终隐藏；真正菜单在 body 抽屉里 */
  .site-header .main-nav {
    display: none !important;
  }
}

.lhys-mobile-drawer__coach {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 4px 6px;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f0a12a 0%, #e67e22 55%, #d35400 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(211, 84, 0, 0.28);
  text-decoration: none !important;
}
.lhys-mobile-drawer__coach:active,
.lhys-mobile-drawer__coach:hover {
  color: #fff !important;
  filter: brightness(1.03);
}
