/* 徕芬商城管理后台风格：深色一级栏 + 浅灰二级栏 + 主内容区 */
.admin-frame {
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
}

.nav-rail {
  width: 72px;
  min-width: 72px;
  background: #1d1d1d;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 0 12px;
  gap: 2px;
  overflow-y: auto;
  flex-shrink: 0;
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
  border-left: 3px solid transparent;
  margin-left: 0;
  box-sizing: border-box;
  text-align: center;
}

.rail-item:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.rail-item.act {
  color: #1890ff;
  border-left-color: #1890ff;
  background: rgba(24, 144, 255, 0.12);
}

.rail-item.mock {
  cursor: default;
  opacity: 0.42;
}

.rail-item.mock:hover {
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.rail-ico {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rail-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-ico svg * {
  fill: none;
}

.nav-sub {
  width: 200px;
  min-width: 200px;
  background: #f5f7fa;
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sub-head {
  padding: 18px 20px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #262626;
  letter-spacing: 0.02em;
}

.sub-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 6px 16px;
}

.sub-item {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #595959;
  text-decoration: none;
  border-left: 3px solid transparent;
  margin-left: 0;
}

.sub-item:hover {
  color: #1890ff;
  background: rgba(0, 0, 0, 0.02);
}

.sub-item.act {
  color: #1890ff;
  background: rgba(24, 144, 255, 0.08);
  border-left-color: #1890ff;
  font-weight: 500;
}

.sub-foot {
  margin-top: auto;
  padding: 12px 16px 16px;
}

.sub-foot a {
  font-size: 12px;
  color: #8c8c8c;
  text-decoration: none;
}

.sub-foot a:hover {
  color: #1890ff;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 20px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.menu-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #595959;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.menu-toggle:hover {
  background: #f5f5f5;
}

.topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 12px;
  border-right: 1px solid #f0f0f0;
  margin-right: 4px;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: #262626;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 1px;
}

.bc {
  color: #8c8c8c;
  font-size: 13px;
  flex: 1;
  min-width: 120px;
}

.bc a {
  color: #1890ff;
  text-decoration: none;
}

.bc a:hover {
  text-decoration: underline;
}

.bc span {
  margin: 0 6px;
  color: #bfbfbf;
}

.topbar-right {
  margin-left: auto;
  color: #595959;
  font-size: 13px;
}

.ca {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
