/**
 * about 官网：与实体之家 gf-drawer 同款侧滑菜单（主播/兼职等站统一）
 * v=20260809drawer1
 */

/* —— 右侧抽屉（与 quanqiulvxingzhijia / klvip 一致结构） —— */
.gf-drawer {
  position: fixed;
  inset: 0;
  z-index: 10060;
  pointer-events: none;
  visibility: hidden;
}
.gf-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.gf-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}
.gf-drawer.is-open .gf-drawer__backdrop {
  opacity: 1;
}
.gf-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100%;
  background: linear-gradient(180deg, #0c1424 0%, #070b14 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  color: #f2faf8;
}
.gf-drawer.is-open .gf-drawer__panel {
  transform: translateX(0);
}
.gf-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gf-drawer__head strong {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f5c542;
  line-height: 1.3;
}
.gf-drawer__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.gf-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.gf-drawer__lang {
  margin-bottom: 12px;
}
.gf-drawer__nav a {
  display: block;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f2faf8 !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.35;
}
.gf-drawer__nav a:hover,
.gf-drawer__nav a:focus-visible {
  color: #fff !important;
  background: rgba(0, 119, 255, 0.1);
}

/* 登录：与之家官网 zhijia-member 金边钮一致，提高对比 */
.gf-drawer__head .zj-member-entry,
.gf-drawer__head-actions .zj-member-entry,
.site-drawer-topbar__login {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.65) !important;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.28), rgba(251, 146, 60, 0.18)) !important;
  color: #fff4c2 !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.2);
  border-bottom: 1px solid rgba(253, 224, 71, 0.65) !important;
}
.gf-drawer__head .zj-member-entry:hover,
.site-drawer-topbar__login:hover {
  color: #fff !important;
  border-color: #fde68a !important;
}

/* site-drawer-eco 注入的 ec-drawer 兜底：对齐 gf-drawer 可读性 */
.ec-drawer__panel {
  background: linear-gradient(180deg, #0c1424 0%, #070b14 100%) !important;
  color: #f2faf8 !important;
}
.ec-drawer__panel > a {
  color: #f2faf8 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
.ec-drawer__panel > a:hover {
  color: #fff !important;
  background: rgba(0, 119, 255, 0.1) !important;
}
.ec-drawer__login,
.site-drawer-topbar__login {
  color: #fff4c2 !important;
}

/* 主播站：禁用顶栏全屏展开菜单，只用侧滑抽屉 */
@media (max-width: 980px) {
  .ar-header.ar-header--drawer.is-open {
    position: sticky !important;
    left: auto !important;
    right: auto !important;
    top: 0 !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: rgba(7, 11, 20, 0.9) !important;
    z-index: 9000 !important;
  }
  .ar-header.ar-header--drawer.is-open .ar-nav,
  .ar-header.ar-header--drawer.is-open .ar-cta,
  .ar-header.ar-header--drawer.is-open .gsc-mobile-lang {
    display: none !important;
  }
  body.site-drawer-nav-open .ar-header.ar-header--drawer.is-open .gf-header-back,
  body.site-drawer-nav-open .ar-header.ar-header--drawer.is-open .ar-brand,
  body.site-drawer-nav-open .ar-header.ar-header--drawer.is-open .gf-menu-btn,
  body.site-drawer-nav-open .ar-header.ar-header--drawer.is-open .ar-menu {
    display: none !important;
  }
}
