/* EasyDecide 控制台 · 手机端左侧图标栏（参考常显 icon rail） */
@media (max-width: 860px) {
  .egm-page--dash .egm-dash-mtabs {
    display: none !important;
  }

  .egm-page--dash .egm-dash-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 90;
    width: 56px;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    min-height: 0;
    max-height: none;
    padding: 8px 6px 0;
    transform: none !important;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .egm-page--dash .egm-dash-main {
    padding-left: 68px;
  }

  .egm-page--dash .egm-dash-bottom {
    left: 56px;
  }

  /* 收起：只显示图标 */
  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-drawer-head,
  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-nav-group__title,
  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-nav__item > span:not(.egm-dash-nav__icon),
  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-drawer-lang,
  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-drawer-foot__meta,
  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-drawer-foot__link {
    display: none !important;
  }

  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-sidebar__body {
    padding: 4px 0 8px;
    gap: 10px;
  }

  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-nav-group {
    gap: 4px;
  }

  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-nav {
    gap: 4px;
    align-items: center;
  }

  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-nav__item {
    width: 44px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 12px;
    text-align: center;
  }

  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-nav__icon {
    width: auto;
    font-size: 18px;
    line-height: 1;
  }

  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-nav__item.is-on {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
    box-shadow: none;
  }

  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-drawer-foot {
    padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    gap: 0;
  }

  .egm-page--dash .egm-dash-shell:not(.is-menu-open) .egm-dash-drawer-foot__brand {
    justify-content: center;
    padding: 0;
  }

  /* 展开：汉堡打开后仍用完整抽屉（带文字） */
  .egm-page--dash .egm-dash-shell.is-menu-open .egm-dash-sidebar {
    top: 0;
    z-index: 1200;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    padding: 16px 12px 0;
    box-shadow: 8px 0 32px rgba(15, 23, 42, .12);
  }

  .egm-page--dash .egm-dash-shell.is-menu-open .egm-dash-nav__item {
    width: 100%;
    justify-content: flex-start;
    padding: 0 14px;
  }
}

/* 左侧图标悬停 / 点按：二级菜单浮层（对标账户管理 flyout） */
.egm-dash-nav__item.is-flyout-on:not(.is-on) {
  background: #f3f4f6;
  color: #111827;
}

.egm-dash-flyout {
  position: fixed;
  z-index: 1100;
  min-width: 188px;
  max-width: min(280px, calc(100vw - 72px));
  padding: 10px 8px 10px 0;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .14);
  display: none;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.egm-dash-flyout.is-on {
  display: block;
}

.egm-dash-flyout::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 16px;
}

.egm-dash-flyout__list {
  margin: 0 8px 0 14px;
  padding: 2px 0 2px 10px;
  list-style: none;
  border-left: 2px solid #e5e7eb;
}

.egm-dash-flyout__item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1.35;
}

.egm-dash-flyout__item:hover,
.egm-dash-flyout__item:focus {
  background: #f3f4f6;
  outline: none;
}

.egm-dash-flyout__item.is-on {
  color: #0f172a;
  font-weight: 800;
}

/* 会员中心子页（办卡 / 收银 / 钱包等）：常显左侧图标栏 */
.egm-rail-host {
  padding-left: 56px;
  box-sizing: border-box;
}
.egm-rail-host .egm-dash-shell--sat {
  display: block !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: visible !important;
}
.egm-rail-host .egm-dash-sidebar {
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 90;
  width: 56px !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 8px 6px 0 !important;
  padding-bottom: calc(12px + var(--ed-float-lift, 0px) + env(safe-area-inset-bottom, 0px)) !important;
  transform: none !important;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  border-bottom: 0;
  box-shadow: none;
  overflow: hidden;
}
.egm-rail-host .egm-dash-drawer-head,
.egm-rail-host .egm-dash-nav-group__title,
.egm-rail-host .egm-dash-nav__item > span:not(.egm-dash-nav__icon),
.egm-rail-host .egm-dash-drawer-lang,
.egm-rail-host .egm-dash-drawer-foot__meta,
.egm-rail-host .egm-dash-drawer-foot__link {
  display: none !important;
}
.egm-rail-host .egm-dash-sidebar__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 0 8px;
  overflow-y: auto;
  overflow-x: hidden;
}
.egm-rail-host .egm-dash-nav-group { gap: 4px; }
.egm-rail-host .egm-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.egm-rail-host .egm-dash-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #4b5563;
  font: inherit;
  cursor: pointer;
}
.egm-rail-host .egm-dash-nav__icon {
  font-size: 18px;
  line-height: 1;
}
.egm-rail-host .egm-dash-nav__item.is-on {
  background: #1f2937;
  color: #fff;
}
.egm-rail-host .egm-dash-drawer-foot {
  padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
}
.egm-rail-host .egm-dash-drawer-foot__brand {
  justify-content: center;
  padding: 0;
}
.egm-rail-host .egm-dash-drawer-foot__mark {
  display: block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.egm-rail-host .egm-dash-drawer-foot__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.egm-rail-host .sv-bottom-nav {
  left: 56px !important;
  width: auto !important;
  max-width: none !important;
}
