/*
 * Admin shell skin. Targets only the legacy Layui admin frame and shared login.
 */
.zy-admin-shell .layui-layout-admin .layui-header {
  height: 56px;
  border-bottom: 1px solid rgba(15, 29, 58, .08);
  background: rgba(251, 253, 255, .94);
  box-shadow: 0 8px 26px rgba(15, 29, 58, .08);
  backdrop-filter: blur(12px);
}

.zy-admin-shell .layui-layout-admin .layui-logo {
  width: 132px;
  height: 56px;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, .18), transparent 56%),
    var(--zy-brand-ink) !important;
  color: var(--zy-text-inverse);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 56px;
}

.zy-admin-shell .layui-layout-admin .layui-side {
  width: 132px;
  background:
    radial-gradient(circle at 20% 0, rgba(22, 163, 184, .22), transparent 28%),
    linear-gradient(180deg, var(--zy-brand-ink), #0a1328);
}

.zy-admin-shell .layui-side-menu,
.zy-admin-shell .layui-side-scroll,
.zy-admin-shell #LAY-system-side-menu,
.zy-admin-shell .layui-side .layui-nav-tree {
  background:
    radial-gradient(circle at 20% 0, rgba(22, 163, 184, .22), transparent 28%),
    linear-gradient(180deg, var(--zy-brand-ink), #0a1328) !important;
}

.zy-admin-shell .layui-layout-admin .layui-layout-left {
  left: 132px;
}

.zy-admin-shell .layui-layout-admin .layui-logo span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zy-admin-shell .layui-header .layui-nav .layui-nav-item,
.zy-admin-shell .layui-header .layui-nav .layui-nav-item a {
  height: 56px;
  color: var(--zy-text-secondary);
  line-height: 56px;
}

.zy-admin-shell .layui-header .layui-nav .layui-nav-item a:hover {
  color: var(--zy-brand-blue-strong);
}

.zy-admin-shell .layui-header .layui-layout-right .layui-nav-child {
  top: 60px;
  border: 1px solid var(--zy-border-soft);
  border-radius: var(--zy-radius-md);
  box-shadow: var(--zy-shadow-md);
}

.zy-admin-shell .layui-nav-tree .layui-nav-item a {
  min-height: 46px;
  color: rgba(247, 251, 255, .76);
  line-height: 46px;
  transition: background var(--zy-motion-fast), color var(--zy-motion-fast), transform var(--zy-motion-fast);
}

.zy-admin-shell .layui-nav-tree .layui-nav-item a:hover,
.zy-admin-shell .layui-nav-tree .layui-this,
.zy-admin-shell .layui-nav-tree .layui-this > a {
  background: rgba(23, 105, 224, .28) !important;
  color: #fff !important;
}

.zy-admin-shell .layui-nav-tree .layui-nav-item a:hover {
  transform: translateX(2px);
}

.zy-admin-shell .layui-nav-tree .layui-nav-bar {
  width: 3px;
  background: #54c7ec;
}

.zy-admin-shell .layui-nav-tree .layui-nav-item i {
  opacity: .95;
}

.zy-admin-shell .wb-subnav {
  top: 56px !important;
  left: 132px !important;
  width: 124px !important;
  border-right: 1px solid var(--zy-border-soft) !important;
  background: rgba(251, 253, 255, .96) !important;
  box-shadow: 8px 0 28px rgba(15, 29, 58, .06);
  backdrop-filter: blur(10px);
}

.zy-admin-shell .wb-subnav .subnav-scene {
  height: 74px !important;
  color: var(--zy-brand-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 74px !important;
}

.zy-admin-shell .wb-subnav .menu-header,
.zy-admin-shell .wb-subnav ul li {
  height: 46px !important;
  color: var(--zy-text-secondary) !important;
  line-height: 46px !important;
}

.zy-admin-shell .wb-subnav ul li a,
.zy-admin-shell .wb-subnav ul.single li a,
.zy-admin-shell .wb-subnav ul.multiple li a {
  color: var(--zy-text-secondary) !important;
}

.zy-admin-shell .wb-subnav .menu-header:hover,
.zy-admin-shell .wb-subnav .menu-header.active,
.zy-admin-shell .wb-subnav ul li:hover,
.zy-admin-shell .wb-subnav ul li.active {
  background: var(--zy-brand-blue-soft) !important;
}

.zy-admin-shell .wb-subnav ul li.active a,
.zy-admin-shell .wb-subnav .menu-header.active {
  color: var(--zy-brand-blue-strong) !important;
  font-weight: 700;
}

.zy-admin-shell .wb-subnav .wb-subnav-fold {
  border-color: var(--zy-border-soft) !important;
  border-radius: var(--zy-radius-xs) 0 0 var(--zy-radius-xs);
  background: var(--zy-surface-solid) !important;
  color: var(--zy-brand-blue);
  box-shadow: var(--zy-shadow-sm);
}

.zy-admin-shell .layui-layout-admin .layui-body {
  top: 96px;
  left: 256px;
  background: var(--zy-bg-page);
}

.zy-admin-shell .layadmin-side-shrink2 .layui-layout-admin .layui-body {
  left: 132px;
}

.zy-admin-shell .layadmin-iframe {
  background: var(--zy-bg-page);
}

.zy-admin-shell .layadmin-setTheme {
  padding: 18px;
}

.zy-admin-shell .layadmin-setTheme-color li {
  border-radius: var(--zy-radius-sm);
  box-shadow: var(--zy-shadow-sm);
}

.zy-dashboard .page-center .center-div,
.zy-dashboard .page-body {
  background:
    radial-gradient(circle at 0 0, rgba(23, 105, 224, .07), transparent 22%),
    var(--zy-bg-page) !important;
}

.zy-dashboard .center-div-options-class {
  border: 1px solid var(--zy-border-soft);
  border-radius: var(--zy-radius-md) !important;
  background: var(--zy-surface) !important;
  box-shadow: var(--zy-shadow-sm);
}

.zy-dashboard .center-div-options-title {
  color: var(--zy-brand-ink) !important;
  font-weight: 800 !important;
}

.zy-dashboard .operate-screen-div {
  border-color: var(--zy-border-strong) !important;
  border-radius: var(--zy-radius-sm) !important;
  overflow: hidden;
}

.zy-dashboard .screen-options-active,
.zy-dashboard .change-text,
.zy-dashboard .more-text {
  color: var(--zy-brand-blue-strong) !important;
}

.zy-dashboard .operate-center-div .center-div-options,
.zy-dashboard .member-price-center .price-center-options {
  background: var(--zy-surface-muted) !important;
  border: 1px solid var(--zy-border-soft);
}

.zy-dashboard .operate-num,
.zy-dashboard .price-text,
.zy-dashboard .total-orders-num,
.zy-dashboard .num-text {
  color: var(--zy-brand-ink) !important;
  font-family: var(--zy-font-number);
}

.zy-dashboard .empty-div .empty-text {
  color: var(--zy-text-muted) !important;
}

.zy-login {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(22, 163, 184, .28), transparent 24%),
    linear-gradient(135deg, var(--zy-brand-ink), #102d62 56%, #0e5bbd) !important;
}

.zy-login .layadmin-user-login-main {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  background: rgba(251, 253, 255, .96);
  box-shadow: 0 30px 80px rgba(5, 13, 31, .32);
  overflow: hidden;
}

.zy-login .dianda-title div {
  color: var(--zy-brand-ink) !important;
  font-weight: 800;
}

.zy-login .layui-btn-fluid {
  border-radius: var(--zy-radius-sm);
  background: var(--zy-brand-blue) !important;
  box-shadow: 0 12px 24px rgba(23, 105, 224, .26);
}

.zy-login .layadmin-user-login-codeimg {
  border: 1px solid var(--zy-border-soft);
  border-radius: var(--zy-radius-sm);
}

@media (max-width: 992px) {
  .zy-admin-shell .layui-layout-admin .layui-body {
    left: 132px;
  }

  .zy-admin-shell .wb-subnav {
    display: none !important;
  }
}

/* Workbench 2.0: top module navigation + secondary menu + iframe tabs. */
.zy-workbench-shell .layui-layout-admin .layui-header {
  z-index: 1002;
  display: flex;
  align-items: center;
  overflow: visible;
  border-bottom: 1px solid rgba(15, 29, 58, .08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96) 52%, rgba(241, 247, 255, .96)) !important;
  box-shadow: 0 8px 26px rgba(15, 29, 58, .08);
  backdrop-filter: blur(12px);
}

.zy-workbench-shell .zy-shell-brand {
  display: inline-flex;
  flex: 0 0 180px;
  order: 0;
  align-items: center;
  width: 180px;
  height: 56px;
  padding: 0 20px;
  color: var(--zy-brand-ink);
  font-weight: 800;
  letter-spacing: .02em;
  box-sizing: border-box;
}

.zy-workbench-shell .zy-shell-brand::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 999px;
  background: #54c7ec;
  box-shadow: 0 0 0 6px rgba(84, 199, 236, .14);
}

.zy-workbench-shell .zy-module-nav {
  position: static;
  display: flex;
  order: 1;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 56px;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent !important;
  white-space: nowrap;
}

/* 分段控件容器：整组一个胶囊，内部无缝拼接；空间不足时容器内横向滚动，不截断任何一项 */
.zy-workbench-shell .zy-module-nav {
  background: rgba(241, 245, 252, .9) !important;
  border: 1px solid rgba(15, 29, 58, .08);
  border-radius: 999px;
  height: 40px;
  margin: 8px 0;
  padding: 4px;
  box-shadow: inset 0 1px 2px rgba(15, 29, 58, .05);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  align-items: center;
}
.zy-workbench-shell .zy-module-nav::-webkit-scrollbar {
  display: none;
}

.zy-workbench-shell .zy-module-nav .layui-nav-item {
  flex: 0 0 auto;
  height: 30px !important;
  line-height: 30px !important;
}

.zy-workbench-shell .zy-module-nav .layui-nav-item > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 62px;
  height: 30px !important;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--zy-text-secondary);
  line-height: 30px !important;
}

.zy-workbench-shell .zy-module-nav .layui-nav-item > a i {
  display: none !important;
}

.zy-workbench-shell .zy-module-nav .layui-nav-item > a cite {
  display: inline-block !important;
  width: auto !important;
  height: 30px !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: 13px;
  font-style: normal;
  line-height: 30px !important;
  vertical-align: middle;
}

.zy-workbench-shell .zy-module-nav .layui-nav-item > a i {
  position: static;
  top: auto;
  display: none !important;
  width: auto;
  height: auto;
  margin-right: 7px;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
}

/* 选中项：白底凸出（分段控件高亮块） */
.zy-workbench-shell .zy-module-nav .layui-this > a,
.zy-workbench-shell .zy-module-nav .layui-nav-item > a:hover {
  background: #fff;
  color: var(--zy-brand-blue-strong);
  box-shadow: 0 2px 6px rgba(15, 29, 58, .12), 0 0 0 1px rgba(15, 29, 58, .04);
}

.zy-workbench-shell .zy-module-nav .layui-nav-bar,
.zy-workbench-shell .zy-module-nav .layui-nav-more {
  display: none !important;
}

.zy-workbench-shell .layui-header .layui-layout-left {
  position: static !important;
  display: inline-flex;
  order: 2;
  flex: 0 0 auto;
  left: auto !important;
  right: auto !important;
  height: 56px;
  margin-left: 0;
}

.zy-workbench-shell .layui-header .layui-layout-right {
  position: static !important;
  display: inline-flex;
  order: 3;
  flex: 0 0 auto;
  left: auto !important;
  right: auto !important;
  margin-left: 8px;
  overflow: visible;
}

.zy-workbench-shell .layui-header .layui-nav .layui-nav-item a,
.zy-workbench-shell .layui-header .layui-nav .layui-nav-item {
  color: var(--zy-text-secondary);
}

.zy-workbench-shell .layui-header .layui-nav .layui-nav-item a:hover {
  color: var(--zy-brand-blue-strong);
}

.zy-workbench-shell .layui-header .layui-layout-right .layui-nav-child {
  top: 56px !important;
  right: 0 !important;
  left: auto !important;
  z-index: 2100 !important;
  min-width: 132px;
  padding: 8px !important;
  border: 1px solid var(--zy-border-soft) !important;
  border-radius: var(--zy-radius-md);
  background: #fff !important;
  box-shadow: var(--zy-shadow-float);
  opacity: 1 !important;
}

.zy-workbench-shell .layui-header .layui-layout-right .layui-nav-child dd {
  border-radius: var(--zy-radius-sm);
}

.zy-workbench-shell .layui-header .layui-layout-right .layui-nav-child dd a {
  display: block;
  height: 38px !important;
  padding: 0 12px;
  border-radius: var(--zy-radius-sm);
  background: transparent !important;
  color: var(--zy-text) !important;
  line-height: 38px !important;
}

.zy-workbench-shell .layui-header .layui-layout-right .layui-nav-child dd a:hover {
  background: var(--zy-brand-blue-soft) !important;
  color: var(--zy-brand-blue-strong) !important;
}

.zy-workbench-shell .layui-header .layui-layout-right .layui-nav-child hr {
  margin: 6px 0;
  border-color: var(--zy-border-soft);
}

.zy-workbench-shell .layui-header .layui-layout-right .zy-user-menu.layui-nav-itemed .layui-nav-child {
  display: block;
}

.zy-workbench-shell .layui-side-menu {
  display: none !important;
}

.zy-workbench-shell .wb-subnav {
  top: 56px !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 224px !important;
  border-right: 1px solid var(--zy-border-soft) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 249, 253, .94)) !important;
  box-shadow: 10px 0 30px rgba(15, 29, 58, .06);
}

.zy-workbench-shell .wb-subnav > div {
  padding: 14px 10px 64px;
  box-sizing: border-box;
}

.zy-workbench-shell .wb-subnav .subnav-scene {
  height: auto !important;
  min-height: 48px;
  padding: 8px 12px 14px !important;
  color: var(--zy-brand-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 24px !important;
}

.zy-workbench-shell .wb-subnav .menu-header,
.zy-workbench-shell .wb-subnav ul li {
  height: 40px !important;
  border-radius: var(--zy-radius-sm);
  line-height: 40px !important;
}

.zy-workbench-shell .wb-subnav ul.single li a,
.zy-workbench-shell .wb-subnav ul.multiple li a,
.zy-workbench-shell .wb-subnav ul a {
  padding-left: 13px !important;
  border-radius: var(--zy-radius-sm);
}

.zy-workbench-shell .wb-subnav .menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px !important;
}

.zy-workbench-shell .wb-subnav .menu-icon {
  width: auto;
  height: auto;
  line-height: 1;
}

.zy-workbench-shell .wb-subnav ul.multiple {
  margin: 4px 0 8px;
  padding: 4px;
  border-radius: var(--zy-radius-md);
  background: var(--zy-surface-muted) !important;
}

.zy-workbench-shell .wb-subnav .wb-subnav-fold {
  right: -10px;
  left: auto !important;
  display: none;
}

.zy-workbench-shell .zy-workspace-tabs {
  position: fixed;
  z-index: 1001;
  top: 56px;
  right: 0;
  left: 224px;
  display: flex;
  align-items: center;
  height: 44px;
  border-bottom: 1px solid var(--zy-border-soft);
  background: rgba(251, 253, 255, .94);
  box-shadow: 0 8px 24px rgba(15, 29, 58, .06);
  backdrop-filter: blur(10px);
}

.zy-workbench-shell .zy-tab-scroll {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  padding: 0 12px;
  overflow-x: auto;
}

.zy-workbench-shell .zy-workspace-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 180px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--zy-text-secondary);
  line-height: 30px;
}

.zy-workbench-shell .zy-workspace-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zy-workbench-shell .zy-workspace-tab.active,
.zy-workbench-shell .zy-workspace-tab:hover {
  border-color: rgba(23, 105, 224, .18);
  background: var(--zy-brand-blue-soft);
  color: var(--zy-brand-blue-strong);
}

.zy-workbench-shell .zy-tab-close {
  margin-left: 7px;
  color: var(--zy-text-muted);
  font-size: 12px;
}

.zy-workbench-shell .zy-tab-close:hover {
  color: var(--zy-brand-red);
}

.zy-workbench-shell .zy-tab-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 0 12px 0 8px;
}

.zy-workbench-shell .zy-tab-actions button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--zy-border-soft);
  border-radius: 999px;
  background: var(--zy-surface-solid);
  color: var(--zy-text-secondary);
  cursor: pointer;
}

.zy-workbench-shell .zy-tab-actions button:hover {
  border-color: rgba(23, 105, 224, .22);
  color: var(--zy-brand-blue-strong);
}

.zy-workbench-shell .layui-layout-admin .layui-body {
  top: 100px !important;
  left: 224px !important;
  background: var(--zy-bg-page);
}

.zy-workbench-shell .layadmin-side-shrink2 .layui-layout-admin .layui-body {
  left: 224px !important;
}

@media (max-width: 1440px) {
  /* 窄屏隐藏次要入口，给顶部模块导航腾空间 */
  .zy-workbench-shell .layui-layout-left .layui-nav-item[onclick="fullScreen()"],
  .zy-workbench-shell .layui-layout-left .layui-nav-item a[onclick="fullScreen()"],
  .zy-workbench-shell .layui-layout-left .layui-nav-item a[onclick="refresh()"],
  .zy-workbench-shell .layui-layout-left .layui-nav-item a[onclick="showlinks()"],
  .zy-workbench-shell .layui-layout-left .layui-nav-item a[onclick="openmobile()"] {
    display: none;
  }

  /* 右侧低频入口一并隐藏（控制台仅超管可见、帮助、更多） */
  .zy-workbench-shell .layui-layout-right .layui-nav-item[title="控制台"],
  .zy-workbench-shell .layui-layout-right .layui-nav-item[title="帮助中心"],
  .zy-workbench-shell .layui-layout-right .layui-nav-item a[onclick="theme()"] {
    display: none;
  }
}

@media (max-width: 1100px) {
  .zy-workbench-shell .zy-shell-brand {
    width: 148px;
  }

  .zy-workbench-shell .zy-module-nav .layui-nav-item > a {
    padding: 0 10px;
  }

  .zy-workbench-shell .zy-tab-actions button:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .zy-workbench-shell .layui-layout-admin .layui-header {
    overflow-x: auto;
  }

  .zy-workbench-shell .wb-subnav {
    width: 188px !important;
  }

  .zy-workbench-shell .zy-workspace-tabs,
  .zy-workbench-shell .layui-layout-admin .layui-body,
  .zy-workbench-shell .layadmin-side-shrink2 .layui-layout-admin .layui-body {
    left: 188px !important;
  }
}
